Jukebox usb devices: Difference between revisions
Jump to navigation
Jump to search
(Created page with "By default they are known by /dev/ttyUSB0 [http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/ This page] describes how to give them an other name. The nr...") |
No edit summary |
||
Line 16: | Line 16: | ||
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A6027PH8", SYMLINK+="nrf24l01p" | SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A6027PH8", SYMLINK+="nrf24l01p" | ||
The arduino nano of the | The arduino nano of the [[Traffic light]] has vendor/prod: | ||
1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter | 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter | ||
Latest revision as of 20:01, 25 September 2015
By default they are known by /dev/ttyUSB0
This page describes how to give them an other name.
The nrf has serial:
udevadm info -a -n /dev/ttyUSB0 | grep '{serial}' | head -n1
ATTRS{serial}=="A6027PH8"
vendor/etc:
Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
I've created and added the file /etc/udev/rules.d/10-local.rules:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A6027PH8", SYMLINK+="nrf24l01p"
The arduino nano of the Traffic light has vendor/prod: 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
so I've added:
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="tl"
Note that it has no clear serial number.