I have two USB Type A to COM cables. Let’s call them: Cable 1 and cable 2. Now I need to make sure their TTY device assignments stay the same after reboot. I am using Ubuntu.
For example I want to the computer to assign cable 1 to ttyUSB1 and cable 2 to ttyUSB2. Because of after the computer reboots, it will shuffle those cable to TTY assignments.
So I read some solutions for similar problems for other similar devices.
But there is a problem.
So when I try this:
sudo udevadm info --query=property --name=/dev/ttyUSB0 > usb0 sudo udevadm info --query=property --name=/dev/ttyUSB1 > usb1
vimdiff usb0 usb1
The cables don’t have
ID_SERIAL_SHORT value. There is no difference except names
ttyUSB1. The cables are manufactured by the same company. So there is no difference by serial name.
diff first secnd
1a2 > Bus 002 Device 020: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port