-
Notifications
You must be signed in to change notification settings - Fork 17
ttyUSB
Thomas Le Mézo edited this page Sep 22, 2015
·
10 revisions
http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/ https://www.google.fr/?gws_rd=ssl#q=udev+rules.d+SUBSYSTEMS+ATTRS
usb-devices
udevadm info --name=/dev/ttyS1 --attribute-walk
In /etc/udev/rules.d, Create a new file called 99-usb-serial.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A6008isP", SYMLINK+="arduino"
- keller : /dev/keller
- pololu : /dev/pololu
- xsens : /dev/xsens
- gps : /dev/gps
- sonar : /dev/sonar
- echo sounder : /dev/echo_sounder
- modem : /dev/modem
# Keller
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="keller", GROUP="dialout"
# Pololu
SUBSYSTEM=="tty", ATTRS{idVendor}=="1ffb", ATTRS{idProduct}=="008c", ATTRS{serial}=="00103389", SYMLINK+="pololu", MODE="0666", GROUP="dialout"
# XSens
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="d38b", ATTRS{serial}=="XSXR23E7", SYMLINK+="xsens", GROUP="dialout", MODE="0660"
# FTDI HUB
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", DRIVER=="", ATTRS{bInterfaceNumber}=="00", ATTRS{interface}=="Quad RS232-HS", SYMLINK+="gps"
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", DRIVER=="", ATTRS{bInterfaceNumber}=="01", ATTRS{interface}=="Quad RS232-HS", SYMLINK+="sonar"
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", DRIVER=="", ATTRS{bInterfaceNumber}=="02", ATTRS{interface}=="Quad RS232-HS", SYMLINK+="echosounder"
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", DRIVER=="", ATTRS{bInterfaceNumber}=="03", ATTRS{interface}=="Quad RS232-HS", SYMLINK+="modem"