Answer the question
In order to leave comments, you need to log in
Is it possible to change the DEVNAME parameter in udev for a usb device?
Is it possible in any way to change the DEVNAME of the usb device connection (see the picture below)?
What would be /dev/ttyUSB0 instead of /dev/ttyUSB5.
Tried to do it through this rule
DRIVERS=="cp210x", ATTRS{interface}=="CP2102 USB to UART Bridge Controller", KERNEL="/dev/ttyUSB5"
DRIVERS=="cp210x", ATTRS{interface}=="CP2102 USB to UART Bridge Controller", DEVNAME="/dev/ttyUSB5"
Answer the question
In order to leave comments, you need to log in
Solved the problem with this rule
DRIVERS=="cp210x", SYMLINK+="ttyUSB5"
Can.
On a vskidka from the rule, you can throw, for starters, everything superfluous. For example ATTRS{interface}=="CP2102 USB to UART Bridge Controller" - it's better to bind to Vendor ID and Model ID (I don't guarantee that they are called that way, I forgot over the years)
Unfortunately, over the years I don't remember how I did it ( the truth was tied to a specific port where it is plugged).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question