drvnbysound
Senior Member
Alright guys I've done a LOT of searching and haven't been able to find an answer, so I'm looking for some help...
As the thread title states I've got a M1XSP connected to the RS-232C port of my LG LCD TV. The LG protocol is included as part of the owners manual - easy enough. I'm able to send commands to the TV just fine; I can power it on/off, change it's input etc. My issue is that I can't figure out how to get the return messages from the TV; I know they are being sent, but I haven't figured out the syntax of what the Elk 'Text' needs to be to "receive" them.
If you aren't familiar I will explain a small portion of the LG protocol. For power, the transmission instruction is: [k][a][ ][Set ID][ ][Data][Cr] ; For the Data, 00 is OFF and 01 is ON. My Set ID is 01. So if I want to power ON the TV I send: ka 01 01Cr; or in Elk terms: ka 01 01^M
As mentioned above, my problem is the receipt of the Acknowledgement messages. When the TV receives the Power command and returns an Acknowledgement message in the following syntax: [a][ ][Set ID][ ][OK][Data][x]; so when viewed via Telnet I receive the following when the TV is powered on: a 01 OK01x
I assume part of my issue is that the Acknowledgement message doesn't end with a Cr, but rather the terminating character is always 'x' .... and I'm not sure how to handle that in Elk 'language'
Any ideas?
As the thread title states I've got a M1XSP connected to the RS-232C port of my LG LCD TV. The LG protocol is included as part of the owners manual - easy enough. I'm able to send commands to the TV just fine; I can power it on/off, change it's input etc. My issue is that I can't figure out how to get the return messages from the TV; I know they are being sent, but I haven't figured out the syntax of what the Elk 'Text' needs to be to "receive" them.
If you aren't familiar I will explain a small portion of the LG protocol. For power, the transmission instruction is: [k][a][ ][Set ID][ ][Data][Cr] ; For the Data, 00 is OFF and 01 is ON. My Set ID is 01. So if I want to power ON the TV I send: ka 01 01Cr; or in Elk terms: ka 01 01^M
As mentioned above, my problem is the receipt of the Acknowledgement messages. When the TV receives the Power command and returns an Acknowledgement message in the following syntax: [a][ ][Set ID][ ][OK][Data][x]; so when viewed via Telnet I receive the following when the TV is powered on: a 01 OK01x
I assume part of my issue is that the Acknowledgement message doesn't end with a Cr, but rather the terminating character is always 'x' .... and I'm not sure how to handle that in Elk 'language'
Any ideas?