Hi
One of the things I’m looking to do is to send appropriate hex commands to my IP linked HDMI Matrix. I have this capability working on my home automation controller (using Lua) , but I really wanted to see how I could do it too with node-red.
My attempt so far is here, picking up bits and pieces from other attempts.
[{"id":"2a2a3f46.2d7348","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"4fcea536.d49b64","type":"inject","z":"2a2a3f46.2d7348","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":440,"wires":[["637facf2.a1fd04"]]},{"id":"d910d7b7.bc2858","type":"tcp out","z":"2a2a3f46.2d7348","host":"192.168.1.204","port":"4002","beserver":"client","base64":false,"end":true,"name":"HDMI Matrix","x":480,"y":700,"wires":[]},{"id":"637facf2.a1fd04","type":"function","z":"2a2a3f46.2d7348","name":"msg.payload = new Buffer([0x02,0x32,0x31,0x32,0x03]);","func":"msg.payload = new Buffer([0x02,0x32,0x31,0x32,0x03]);\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":560,"wires":[["d910d7b7.bc2858"]]}]
When the hex command is sent the HDMI Matrix also send a response which would be good to capture, if I knew how, but I assume it’s not possible as I currently have the TCP node’s connection to close after the message is sent to allow other systems/controllers to use it.