Does anyone know how to send raw hex codes over a rs232 interface ?
i copied the panasonic tv over rs232 plugin and put the protocol to “raw” but i need it to send a code in hex without frontrunning code.
this has to be sent without extra characters and in hexa-decimal format: AA 5D FE 01 00 06
anyone can shed a light on this for me ?
i used :
<?xml version="1.0"?>
<implementation>
<settings>
<protocol>raw</protocol>
</settings>
<functions>
function sendCommand(command)
if (luup.io.write(command .. string.char(13)) == false) then
luup.log("Cannot send command " .. command .. " communications error", 1)
luup.set_failure(true)
return false
end
return true
end
didn’t seem to work. no response from the television.
im not really sure if it should be entered this way. i put the protocol to raw and send both versions of the command , one with spaces and one with the dashes but neither give any response.
the tv is locked with a pincode and im not sure if mdc is turned on or has an id between 0 and 24. according to what i understand it should response nevertheless to some common commands.
is there any way to check what is send through the rs232 device ? i.e. a raw output reader which puts everything outputted by the rs232 cable to a monitor. or can anyone help me out on how to let the vera show the response from the tv ?
well … i don’t have the samsung monitor anymore and i blew up my RS232 usb dongle , never got it to work
from what i remember there wasn’t a way to get back the response from the other side of the cable. it was a send and hope it would work thingy.
i have no idea if mcv made any changes to the protocol for RS232 or if someone has gotten it to work though.
somehow it supposed to send raw codes, so there is a possibility it might work with the right talking to the device.
the example in first post should work.
use :
sendCommand(“\11\22\33\44\55\66”)
to send codes 11,22,33,44,55 to the rs232 device.
hope you get it work and please share ur findings.
ah so it can receive the return values from another device
rs-232 cables need not be longer then 5 meters preferably shorter. checked the power if it need TTL or usb voltage ? using a straight or null-modem cable ? (tx and rx swapped)
have you tried converting the hex to binary and send this ?
Best Home Automation shopping experience. Shop at Ezlo!