News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

hitachi serial code

Started by darkwizard864, February 11, 2016, 07:54:03 AM

Previous topic - Next topic

darkwizard864

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

You start with ( and ' - but you end only with ) instead of ' )
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

darkwizard864

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

Quote from: darkwizard864 on February 11, 2016, 05:44:55 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

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.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

darkwizard864

thank you posed that seemed to work