I'm trying to send commands to my Azur 540R v3 receiver using the node-red-node-serialport pallette.
As background info I use a Moxa Serial Server and I'm able to send commands to a video switch. As I use a different cable I also tested this by using Termite (a RS-232 terminal) and pressing a button on the receiver with as result that data is received.
I'm starting simple and are trying to send a command to the receiver.
You can't just add \r in the payload or it will just send the characters \ and then r - the simplest way would be to add it by using the node option to add the \r
(and you probably may also want \r for the input line split also.)
The other way is either use a function to append the character - eg msg.payload += "\r"; return msg; Or to set the inject type to be JSON and quote the whole string in order to make it proper JSON. eg
"#1,01,1\r"