Giving a static device name[edit]
- Get the automatically assigned device name
sudo dmesg | grep tty
[21151.646593] cdc_acm 1-2:1.2: ttyACM0: USB ACM device
- Get vendor and product id
udevadm info --name=/dev/ttyACM0 --attribute-walk | grep idProduct
ATTRS{idProduct}=="374b"
ATTRS{idProduct}=="0002"
udevadm info --name=/dev/ttyACM0 --attribute-walk | grep idVendor
ATTRS{idVendor}=="0483"
ATTRS{idVendor}=="1d6b"
sudo nano /etc/udev/rules.d/50-usb-serial.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", SYMLINK+="specificName"
sudo udevadm trigger
- Now the device should be available with the new name
ls -l /dev/specificName
lrwxrwxrwx 1 root root 7 Apr 26 07:33 /dev/specificName -> ttyACM0