I'm writing a very simple serial driver to control On/Off for a video wall. I loaded the driver onto our director and made the physical and composer connections, but when I issue the power on command, the display doesn't do anything.
I have the following code:
CMDS_SERIAL = {
--Power
["ON"] = "F5 88 FF FE FE 01",
["OFF"] = "F5 88 FF FE FE 00",
--Input Toggle
["DP"]= "F5 88 FF FE 01 01",
["HDMI"]= "F5 88 FF FE 01 02"
}
function ReceivedFromProxy(idBinding, strCommand, tParams)
if CMDS_SERIAL[strCommand] ~= nil then
C4:SendToSerial(idBinding, tohex(CMDS_SERIAL[strCommand]))
print("sending " .. strCommand)
print("command is " .. CMDS_SERIAL[strCommand])
else
print (strCommand .. " command not found")
end
end
I know the hex commands work. I can connect to the displays directly via serial wire and putty. I can turn the display on and off that way.
I imagine I am just missing something simple.
thanks