Udev rules for serial devices to make names fixed
Jump to navigation
Jump to search
To add a special device name to a serial device add the following udev rule to your system:
/etc/udev/rules.d/99-custom_serial_dev_MT.rules
# serial tty interface of a FTDI driven device
SUBSYSTEM=="tty", ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="YYYY", ATTRS{serial}=="XXXXXXXXXX", SYMLINK+="ttyUSB_<my special dev name>"
# USB gadget driver for serial devices / tty interface
SUBSYSTEMS=="usb", SUBSYSTEM=="tty", ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="YYYY", SYMLINK+="ttyACM<my special dev name>"
And finaly reload the udev rules:
sudo udevadm control --reload-rules && sudo udevadm trigger
Then unplug/(re)-plug the device and if every thing goes well, your device has a symlink in the /dev/ folder.