Serial node strangeness

I have a flow running on a Raspberry Pi that has two serial nodes that communicate with an Arduino - one for reading from the Arduino, one for writing back to it. Most of the time both nodes work properly, but for some reason right now the write node will connect successfully to the serial port but the read node will not. I've rebooted the Pi to see if that would help, but it did not.

Raspberry Pi model 4
Node red version 1.3.5

node-red-log reports the serial connection error:

Welcome to Node-RED
26 Aug 13:48:15 - [info] Node-RED version: v1.3.5
26 Aug 13:48:15 - [info] Node.js  version: v14.17.1
26 Aug 13:48:15 - [info] Linux 5.10.17-v7l+ arm LE
26 Aug 13:48:16 - [info] Loading palette nodes
26 Aug 13:48:18 - [info] Dashboard version 2.30.0 started at /ui
26 Aug 13:48:18 - [info] Settings file  : /home/pi/.node-red/settings.js
26 Aug 13:48:18 - [info] HTTP Static    : /home/pi/github/
26 Aug 13:48:18 - [info] Context store  : 'default' [module=memory]
26 Aug 13:48:18 - [info] User directory : /home/pi/.node-red
26 Aug 13:48:18 - [warn] Projects disabled : editorTheme.projects.enabled=false
26 Aug 13:48:18 - [info] Flows file     : /home/pi/.node-red/flows_poolcontrol.json
26 Aug 13:48:18 - [info] Server now running at
26 Aug 13:48:18 - [info] Starting flows
26 Aug 13:48:19 - [info] Started flows
26 Aug 13:48:19 - [error] [serialconfig:8290e893.ce4a18] serial port /dev/ttyUSB0 error: Error: Error: No such file or directory, cannot open /dev/ttyUSB0

On the RPi COM port designations tend to "jump" around.. one time being ttyUSB0 and the next ttyUSB1, etc. There are many Googled references to this, and possible ways to lock the designations to a device.

1 Like

Interesting. Both of my serial port nodes are configured to talk to the same device (ttyUSB0). That is one of the most perplexing things to me, that one would work and the other would not.

Serial ports are usually opend exclusively so one will open and lock it, the other will fail. This is a pretty typical pattern.

How many serial config nodes do you see if you click the drop-down config node list?

There is just one serial config node, used by the two different nodes (one serial-in and one serial-out).

Thanks - I replied below that I see there is one "serial configuration node" that is used by both the serial-in node and the serial-out node. This exact flow has worked for over a month, and nothing that I know of has changed, which is why this is extra strange.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.