I would like to pass though an USB FTDI RS485 to Node-RED on a RPi 5.
This is my compose file:
services:
node-red_dev:
image: nodered/node-red:4.0.2
container_name: node-red_dev
restart: unless-stopped
privileged: true
user: node-red
group_add:
- dialout
ports:
- 1880:1880
networks:
- net
volumes:
- dev_data:/data
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
networks:
net:
volumes:
dev_data:
This is the output from the console:
~$ whoami
node-red
~$ id
uid=1000(node-red) gid=1000(node-red) groups=20(dialout),1000(node-red)
~$ ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Jul 16 12:57 /dev/ttyUSB0
~$ dmesg | grep ttyUSB
[ 30.610798] usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0
I can see the FTDI device in the console but I can't get the node-red-contrib-modbus node to work in Node-RED.
Not sure if there is a dialout group mismatch.
I am out of my depth and any assistance would be appreciated. TIA.