Author Topic: hitachi serial code  (Read 3406 times)

darkwizard864

  • Veteran
  • ***
  • Posts: 131
    • View Profile
hitachi serial code
« on: February 11, 2016, 07:54:03 am »
hello
I tring to send a serial code to a hitachi cp-x2011n

here a snip of code I tring to send

SendCommand(\xBE\xEF\x03\x06\x00\x2A\xD3\x01\x00\x00\x60\x\x00\x00)

and here is error I am getting

198:01   02/11/16 1:43:34.261      Failed loading code: Error loading code:
error: (eval):196: compile error
(eval):52: syntax error, unexpected $undefined, expecting ')'
SendCommand(\xBE\xEF\x03\x06\x00\x2A\xD3\x01\x00\x00\x60\x\x00\x00)
             ^, line: 196

Names Operation Type Header Command Data
CRC Action Type Setting Code
Power Set Turn off BE EF 03 06 00 2A D3 01 00 00 60 00 00
Turn on BE EF 03 06 00 BA D2 01 00 00 60 01 00
Get BE EF 03 06 00 19 D3 02 00 00 60 00 00

dark

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: hitachi serial code
« Reply #1 on: February 11, 2016, 12:25:15 pm »
You start with ( and ' - but you end only with ) instead of ' )

darkwizard864

  • Veteran
  • ***
  • Posts: 131
    • View Profile
Re: hitachi serial code
« Reply #2 on: February 11, 2016, 05:44:55 pm »
that did not seem to work..
so I uploaded technical info on it..
http://www.filedropper.com/11technicalmanual
maybe some one could see if I am doing this wrong..
this what I tried.
made a new template for the projector.... selected generic serial device  control rs232c
then for power on and off I used the sendcommand('\xBE\xEF\x03\x06\x00\xBA\xD2\x01\x00\x00\x60\x01\x00\)

that did not seem to work.
but in tech manual says it has tcp port 23
when I try to telnet in that port it timesout

dark

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: hitachi serial code
« Reply #3 on: February 11, 2016, 07:49:48 pm »
then for power on and off I used the sendcommand('\xBE\xEF\x03\x06\x00\xBA\xD2\x01\x00\x00\x60\x01\x00\)

Again, the end is wrong. Try

Code: [Select]
sendcommand('\xBE\xEF\x03\x06\x00\xBA\xD2\x01\x00\x00\x60\x01\x00')
if it still doesn't work, you have a connectivity issue, that you need to check first.

darkwizard864

  • Veteran
  • ***
  • Posts: 131
    • View Profile
Re: hitachi serial code
« Reply #4 on: February 12, 2016, 05:36:38 am »
thank you posed that seemed to work