Jukebox usb devices

From RevSpace
Jump to navigation Jump to search

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.