i have two identical usb-2-serial devices that i wanna assigned to fixed ports.
Bus 001 Device 025: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Phone Data Cable
idVendor 0x067b Prolific Technology, Inc.
idProduct 0x2303 PL2303 Serial Port / Mobile Phone Data Cable
bcdDevice 3.00
iManufacturer 1 Prolific Technology Inc.
iProduct 2 USB-Serial Controller
iSerial 0
Bus 001 Device 022: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Phone Data Cable
idVendor 0x067b Prolific Technology, Inc.
idProduct 0x2303 PL2303 Serial Port / Mobile Phone Data Cable
bcdDevice 3.00
iManufacturer 1 Prolific Technology Inc.
iProduct 2 USB-Serial Controller
iSerial 0
the problem is how to assign them fixed to “ttyUSB1” and the other to “ttyUSB2” with an udev rule or something else. has someone a solution ?
unfortunately there is a problem. both are 100% identical, the only difference is the bus (where it is connected). if i unplug one, let’s say ttyUSB1 and plug it in again the previous assignment is not renumbered and the device is assigned to ttyUSB3. i want to prevent this. fyi i’m running several other serial ports actually, this causes some headache if i need to unplug one of them temporarily.
no because after shutdown the enumeration alters the device id’s. the devices are connected via usb-hubs. depending which connections on the hub are active while booting the id’s get assigned. they are not fixed. bringing up some more trouble by using them in vm’s.