Node-red on Pi not showing the Serial USBs

Hello;
I am new to raspi, and I have a problem getting data from my Arduino board, which is connected via USB to the Pi. I used to connect the Arduino to a Nod-red installed on a PC, and it works very well. I have got the reTerminal DM (HMI based on Raspi), and I installed the Node-red on it. Everything about Node works very well, including graphs and all nodes. However, the Serial node does not show my serial USBs. I searched the internet to find out the problem. The Arduino Giga sounds like it is seen by the pi, but nothing comes to the nod-red to get a reading from it. The /dev/ttyS0 is not the Giga board. I even tried to test it, but nothing was received. I connected the Arduino back to the PC, and everything was okay.
Please see the pictures, and thanks for your patience.

Screenshot 2024-06-25 at 8.40.28 pm

If you unplug the usb serial and run ls /dev/tty* again is anything missing? Possibly one of the /dev/ttyCH343USB entries?

Thank you for your reply. I tried this also, and nothing changed. Both /dev/ttyCH343USB0 and /dev/ttyCH343USB1 are there with and without USB connection.

In that case run
tail -f /var/log/syslog
then plug/unplug the serial usb and see what appears in the log.

or journalctl -f

That is correct, using journalctl is a better way to do it as not all systems will log to syslog.

1 Like

Thank you @Colin and @hardillb. When I return to the lab, I will check them and share any results. I appreciate your help.

Hello,
This is the log response when I connect and disconnect the Arduino board from the USB. By the way, the terminal uses a Pi CM4, if this makes any difference.

-name="new target" error="Get \"http://192.168.0.72:8086/metrics\": dial tcp 192.168.0.72:8086: i/o timeout"
Jun 26 12:14:34 pi kernel: usb 1-1.1: new full-speed USB device number 9 using xhci-hcd
Jun 26 12:14:34 pi kernel: usb 1-1.1: New USB device found, idVendor=2341, idProduct=0266, bcdDevice= 1.01
Jun 26 12:14:34 pi kernel: usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 26 12:14:34 pi kernel: usb 1-1.1: Product: Giga
Jun 26 12:14:34 pi kernel: usb 1-1.1: Manufacturer: Arduino
Jun 26 12:14:34 pi kernel: usb 1-1.1: SerialNumber: 0031003E3033510C34323437
Jun 26 12:14:35 pi mtp-probe[2774]: checking bus 1, device 9: "/sys/devices/platform/scb/fe9c0000.xhci/usb1/1-1/1-1.1"
Jun 26 12:14:35 pi mtp-probe[2774]: bus: 1, device: 9 was not an MTP device
Jun 26 12:14:35 pi mtp-probe[2777]: checking bus 1, device 9: "/sys/devices/platform/scb/fe9c0000.xhci/usb1/1-1/1-1.1"
Jun 26 12:14:35 pi mtp-probe[2777]: bus: 1, device: 9 was not an MTP device
Jun 26 12:14:41 pi influxd-systemd-start.sh[1562]: ts=2024-06-26T11:14:41.994897Z lvl=error msg="Unable to gather" log_id=0q13JddW000 service=scraper scraper-name="new target" error="Get \"http://192.168.0.72:8086/metrics\": dial tcp 1

The pi is not recognising the device as a serial device. It would say in the log if it did and where it was mounted.
Do you have to do something on the Giga to configure it as serial?

Otherwise I think you will need to try elsewhere for the cause, it isn't a node-red problem obviously.

Thanks for your reply.

I opened an issue ticket with the reTrminal DM maker, and it may only recognise Tx and Rx directly to the GPIO pins, so I ordered a USB to RS485 adapter. I will see how it works.

Hi,

I solved the problem. It sounds like the drivers that shall be installed for the terminal DM conflict with the USB type for the pi; I found in the driver file they added somehow (I am not good at explaining it ), not the ACM type but CH34, which is not the one on the hardware. However, I took the lines to install any USB drivers in that driver file, and it works now.

1 Like