I'm interfacing a Kern weight scale through serial port with Node-RED. The communication works perfectly in a terminal in both direction.
However, I'm only able to write to the serial port with NR with the "serial out" and "serial request" node but I wasn't successful to get any answer form it with either "serial in" or "serial request" nodes.
For example, when I monitor my serial device with "cat /dev/ttyUSB0" in a terminal while sending a message from NR, I get an answer in the terminal but nothing from within NR, "serial request" node goes in timeout and "serial in" remains mute ...
I am not sure whether it would give that symptom, but perhaps the sequence \r\n does not appear in the stream. Have you tried other options there, specify a timeout for example, or fixed lengths with a short count.
Can you ensure that only one thing is trying to access the port at one time. You probably can’t share serialport with node-red and picocom st the same time. And indeed maybe even out and request nodes
Thanks for the hint ! That was it !
I've clean up my flow and kept only a single "request" node and killed any other process accessing the port.
After deploying and restarting the flows, it finally captures inbound data from the serial port within NR.