I cannot get the serial node to connect to my Arduino Uno on a Zimaboard running Debian 11.
Node-red v3.1.3
node.js v16.20.2
This is the error message I get in the debug window when I deploy:
"[serialconfig:0f496120833bbdad] serial port /dev/ttyACM0 error: Error: Error: No such file or directory, cannot open /dev/ttyACM0"
I have combed through the forums and made sure permissions are set correctly, my username is in the dialout group, and added a udev rule for good measure (following the guidelines on the Arduino forum). I can connect with the Arduino IDE to program and even interact through the serial monitor. The program is closed out when attempting to connect through node-red to ensure the port isn't taken.
Confirmed that I can connect to this Arduino with the same USB cable with node-red v3.1.3 and Node.js v20.10.0 on a PC running Windows 11 Home. I was surprised the Node.js version wasn't a problem!
Any help with next steps would be greatly appreciated! Thank you.
Output of ls -l /dev/ttyACM0:
crw-rw----+ 1 root dialout 166, 0 Dec 22 12:22 /dev/ttyACM0
Output of lsof /dev/ttyACM0:
lsof: WARNING: can't stat() overlay file system /var/lib/docker/overlay2/8ea64174b98be2ba96997329824cf7fbf7c725de2b6d0ead19e892ad014228e1/merged
Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /var/lib/docker/overlay2/0558710d382a04799edaf01350ba3e3487cd9a61a2735700c32252dfa76ffa06/merged
Output information may be incomplete.
lsof: WARNING: can't stat() nsfs file system /run/docker/netns/default
Output information may be incomplete.
lsof: WARNING: can't stat() nsfs file system /run/docker/netns/93f5d6514cfd
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 670685 casaos 104u CHR 166,0 0t0 473 /dev/ttyACM0
NOTE: I tried killing the process above and redeploying, with same error.
Output of lsusb -v for the Arduino:
Bus 001 Device 004: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x2341 Arduino SA
idProduct 0x0043 Uno R3 (CDC ACM)
bcdDevice 0.01
iManufacturer 1 Arduino (www.arduino.cc)
iProduct 2
iSerial 220 95237323834351F0A1E1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x003e
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 0
CDC Header:
bcdCDC 10.01
CDC ACM:
bmCapabilities 0x06
sends break
line coding and serial state
CDC Union:
bMasterInterface 0
bSlaveInterface 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 255
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)