I would like the 4 UARTS that show to be on a name other than /ttyUSB0
because i have many devices that end up on /ttyUSB*
.
I have written a rule which can create a symlink or new name based on the attributes, but I am unable to get the symlink/names to start at 0
if another device is already plugged in, thus stopping my scripts from working
eg FTDI Quad UART chip is plugged in
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB2
/dev/ttyUSB3
When plugged in after another device
/dev/ttyUSB1
/dev/ttyUSB2
/dev/ttyUSB3
/dev/ttyUSB4
When rule applied, it only mimics the numbering of the original instead of starting back at 0
Here is the basic rule:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", SYMLINK:="ttyUART$number", GROUP:="users", MODE:="0666"
I have tried a few different variables in the naming, but have not been successful. My goal is to have the FTDI UARTS show as
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB2
/dev/ttyUSB3
No matter the order of the USB devices