@zenofmud So what i would like to do is replicate the commands send by the software i use to communicate to the serial device, i have the serial device connected to a TCP node and i used the debug to capture the messages. I have them all in inject nodes for now.
[{"id":"8d0d2cb1.e72ad","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"3d129480.b361fc","type":"inject","z":"8d0d2cb1.e72ad","name":"3","topic":"","payload":"{\"topic\":\"Serial_Send\",\"payload\":[10],\"ip\":\"::ffff:xx.xxx.xxx.x\",\"port\":8337,\"_session\":{\"type\":\"tcp\",\"id\":\"75e9dc7b.6c8f44\"},\"_msgid\":\"7bf4c9bf.6e0918\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":200,"wires":[["3a285025.2d391"]]},{"id":"cd4f17d6.172fa8","type":"inject","z":"8d0d2cb1.e72ad","name":"4","topic":"","payload":"{\"topic\":\"Serial_Send\",\"payload\":[1,80,50,2,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,41,3,98],\"ip\":\"::ffff:xx.xx.xx.xx\",\"port\":8337,\"_session\":{\"type\":\"tcp\",\"id\":\"75e9dc7b.6c8f44\"},\"_msgid\":\"63d8dd24.876264\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":240,"wires":[["3a285025.2d391"]]},{"id":"93b655af.f3c068","type":"inject","z":"8d0d2cb1.e72ad","name":"5","topic":"","payload":"{\"topic\":\"Serial_Send\",\"payload\":[1,82,49,2,55,57,56,48,48,49,40,49,48,41,3,101],\"ip\":\"::ffff:xx.xx.xxx.xx\",\"port\":8337,\"_session\":{\"type\":\"tcp\",\"id\":\"75e9dc7b.6c8f44\"},\"_msgid\":\"6a6c789f.cac758\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":280,"wires":[["3a285025.2d391"]]},{"id":"28822ab9.add616","type":"inject","z":"8d0d2cb1.e72ad","name":"6","topic":"","payload":"{\"topic\":\"Serial_Send\",\"payload\":[1,82,49,2,55,57,53,48,48,49,40,48,56,41,3,97],\"ip\":\"::ffff:xx.xxx.xxx.x\",\"port\":8337,\"_session\":{\"type\":\"tcp\",\"id\":\"75e9dc7b.6c8f44\"},\"_msgid\":\"2773d50c.9d82da\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":320,"wires":[["3a285025.2d391"]]},{"id":"8bd36fe6.fdbb7","type":"inject","z":"8d0d2cb1.e72ad","name":"7","topic":"","payload":"{\"topic\":\"Serial_Send\",\"payload\":[1,80,50,2,40,49,66,66,67,66,53,55,57,50,57,53,54,66,56,70,67,41,3,30],\"ip\":\"::ffff:xx.xxx.xxx.x\",\"port\":8337,\"_session\":{\"type\":\"tcp\",\"id\":\"75e9dc7b.6c8f44\"},\"_msgid\":\"4fb41a05.582f44\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":360,"wires":[["3a285025.2d391"]]},{"id":"b327d69a.b4f4c8","type":"inject","z":"8d0d2cb1.e72ad","name":"8","topic":"","payload":"{\"topic\":\"Serial_Send\",\"payload\":[1,82,49,2,55,57,53,48,48,49,40,48,56,41,3,97],\"ip\":\"::ffff:xx.xxx.xxx.xx\",\"port\":8337,\"_session\":{\"type\":\"tcp\",\"id\":\"75e9dc7b.6c8f44\"},\"_msgid\":\"cf740586.aab1e8\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":400,"wires":[["3a285025.2d391"]]},{"id":"b41989b7.298cb8","type":"inject","z":"8d0d2cb1.e72ad","name":"2","topic":"","payload":"{\"topic\":\"Serial_Send\",\"payload\":[6,48,53,49,13],\"ip\":\"::ffffxx.xxx.xxx.x\",\"port\":8337,\"_session\":{\"type\":\"tcp\",\"id\":\"75e9dc7b.6c8f44\"},\"_msgid\":\"21f462c2.ebd7de\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":160,"wires":[["3a285025.2d391"]]},{"id":"7e108b0a.27a1b4","type":"inject","z":"8d0d2cb1.e72ad","name":"1","topic":"","payload":"{\"topic\":\"Serial_Send\",\"payload\":[47,63,48,48,49,33,13,10],\"ip\":\"::ffff:xx.xx.xxx.x\",\"port\":8337,\"_session\":{\"type\":\"tcp\",\"id\":\"75e9dc7b.6c8f44\"},\"_msgid\":\"5199bbc2.37fcd4\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":120,"wires":[["3a285025.2d391"]]},{"id":"3a285025.2d391","type":"debug","z":"8d0d2cb1.e72ad","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":480,"y":300,"wires":[]}]
So i can copy the commands into a file and set it to send each command per line (I'm new to Node so apologies if this is a basic question))
Do you have an example i could see?