Sample Header Ad - 728x90

Rename a USB device for static name without udev rule

0 votes
0 answers
660 views
I have an Arduino board connected to a
port and recognized by Ubuntu as the
device. For programming reasons on the Arduino site, the device should be visible on Linux as the
device. This trouble could be solved by using
and the rule:
=="tty", ATTRS{idVendor}=="XXX", ATTRS{idProduct}=="YYY", MODE="0666", SYMLINK+="ttyUSBO"
written in the
/etc/udev/rules.d/99-usb-serial.rules
The Arduino board works with these settings, and everything looks good. But I want to connect the second device with a
chip. This device is automatically recognized by Ubuntu and registered as the
device. At this point, I have a mix - because I have symlink from Arduino to the
and "true"
device from the
chip. As a result, none of these devices are working correctly. When I tried to look at the
, there was a mix of data from these two devices. I tried to rename the
from the
chip by writing another
rule, but this didn't have any effect because I could only create another symlink to the
device. Renaming the
device with the
rules is impossible, according to the documentation I tried to find another way to rename the
device to the static name, e.g.,
, during connecting but failed. Can the
based chip device static name be given during its connecting or renamed it later so as not to collide with the
symlink created for Arduino?
Asked by Gregosh (1 rep)
Oct 26, 2023, 10:43 AM