• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Static mapping of USB-devices
#3
Hey Armin,

this is what we do on a stock rasbian:

1) figure out the serial number of the attached device:


Code:
$ udevadm info --name=/dev/ttyUSB1 --attribute-walk

2) create a rule for static mapping in /etc/udev/rules.d/10-usb-serial.rules
Code:
SUBSYSTEM=="tty", ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", ATTRS{serial}=="xxxxxxxxxx",  SYMLINK+="ttyUSB_MyDevice1"

3) load the new rule (only required before reboot)

Code:
sudo udevadm trigger


4) verify
Code:
$ ls -l /dev/ttyUSB_MyDevice1

now, you can adress the device as ttyUSB_MyDevice1 instead of ttyUSB0 or whatever it might be mapped to.
  Reply


Messages In This Thread
Static mapping of USB-devices - by deme - May-11th-2019, 10:55 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-11th-2019, 11:20 AM
RE: Static mapping of USB-devices - by deme - May-13th-2019, 09:23 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-13th-2019, 10:06 AM
RE: Static mapping of USB-devices - by deme - May-13th-2019, 10:51 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-13th-2019, 02:52 PM
RE: Static mapping of USB-devices - by Armin@netPI - May-13th-2019, 04:23 PM
RE: Static mapping of USB-devices - by deme - May-15th-2019, 10:06 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-15th-2019, 11:17 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-15th-2019, 11:29 AM
RE: Static mapping of USB-devices - by deme - May-15th-2019, 12:08 PM
RE: Static mapping of USB-devices - by Armin@netPI - May-15th-2019, 04:02 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Faulty devices description file from Github Whatzittoya13 5 23 March-11th-2019, 11:58 AM
Last Post: Armin@netPI
  Updating of many devices remotely Johannes 6 181 November-1st-2018, 12:35 PM
Last Post: Johannes
  [SOLVED] USB Serial device mapping into Container hannes 12 599 August-27th-2018, 04:50 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)