Hi
I'm starting a new project using RS485 MODBUS; I can drive the conncted device using "serial out" node but if in the same flow I put a "serial in" node, trhe serial out node switch to "disconnected" and "serial in" node is "connected". Of course it is necessary to read and write serial just to receive the device response but I don't uderstand why seems to be impossible
Use a serial request node.
But if you are using modbus use node-red-contrib-modbus instead.
If, for some reason, you do want to use separate in and out nodes on the same port then make sure that you select the same serial port config node, don't add a second one for the second node. So when you click on the dropdown in both serial nodes you should be seeing just one option, not two.
If you added a second serial port config for the second node then you will have two config nodes separately trying to connect to the same port, which is not possible. The serial in and out nodes must both use the same config node.
Hi
Thanks for your reply. I've not added a new connection, what I've seen is that if I rebbot my Raspberry PI, both nodes switch to "connected" but the serial in node doesn't read the incoming data.
I will investigate further...
As @Colin also suggested - use the serial request node instead if you want request/response type behaviour.
Thanks to all for your answers and suggestion. I have solved all the problems simply using node-red-contrib-modbus.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.