Score:1

How to consistently idenfity USB devices with udev

io flag

I have a udev rule for a USB cable with 2 serial ports that successfully matches ttyUSBx to /dev/ttyUCx

KERNEL=="ttyUSB*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="ttyUC%n"

My problem is as follows: If I have no other USB devices, then I end up with /dev/ttyUC0 and /dev/ttyUC1

But, when there is another USB device I could end up with

/dev/ttyUC0 and /dev/ttyUC1 OR /dev/ttyUC1 and /dev/ttyUC2

Is there any way to ensure that I always get the same symlink names (no matter what other USB devices are present)?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.