@TotallyInformation Can I trouble you again? I did notice ttyUSBx can change quite often, but I found even ls -l /dev/serial/by-id/
can output different device IDs
Mostly I get this
$ ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Nov 14 08:54 usb-SimTech__Incorporated_SimTech__Incorporated_0123456789ABCDEF-if02-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 Nov 14 08:54 usb-SimTech__Incorporated_SimTech__Incorporated_0123456789ABCDEF-if03-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 Nov 14 08:54 usb-SimTech__Incorporated_SimTech__Incorporated_0123456789ABCDEF-if04-port0 -> ../../ttyUSB3
lrwxrwxrwx 1 root root 13 Nov 14 08:54 usb-SimTech__Incorporated_SimTech__Incorporated_0123456789ABCDEF-if05-port0 -> ../../ttyUSB4
lrwxrwxrwx 1 root root 13 Nov 14 08:54 usb-SimTech__Incorporated_SimTech__Incorporated_0123456789ABCDEF-if06-port0 -> ../../ttyUSB5
But some time I get this
$ ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Nov 21 08:50 usb-SimTech__Incorporated_SimTech__Incorporated-if02-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 Nov 21 08:50 usb-SimTech__Incorporated_SimTech__Incorporated-if03-port0 -> ../../ttyUSB2
lrwxrwxrwx 1 root root 13 Nov 21 08:50 usb-SimTech__Incorporated_SimTech__Incorporated-if04-port0 -> ../../ttyUSB3
lrwxrwxrwx 1 root root 13 Nov 21 08:50 usb-SimTech__Incorporated_SimTech__Incorporated-if05-port0 -> ../../ttyUSB4
lrwxrwxrwx 1 root root 13 Nov 21 08:50 usb-SimTech__Incorporated_SimTech__Incorporated-if06-port0 -> ../../ttyUSB5
I did some search that there's no way to force a static device ID in linux, so is my only way out write a bit of script to dynamically get the ID?
if so, how do I go about setting port name dynamically in Node-Red, this post says its impossible