Skip to content

Locating Controllers KERNEL and KERNELS settings

Thomas W. C. Carlson edited this page Apr 15, 2022 · 3 revisions

Background

For the Raspberry pi to properly assign the correct device name to the microcontrollers we need to make note of each KERNAL and KERNELS name. This will be used in the next step Establishing udev rules for the Controllers

Every device which connects to the RPi has unique information about itself available to the serial bus host. We can use this to ensure that when we plug in an Arduino over USB it is always recognized with a static name. This means we don't need to worry about plug in order.

By plugging in one device at a time and running the command udevadm info -a -n /dev/ttyACM0 | less we can get the pertinent data needed to write a udev rule which does this mapping of IDs.

Steps

  1. Run ls /dev/ttyACM* to see a list or no list of current connected devices.
  2. Plugin one microcontroller.
  3. Run ls /dev/ttyACM* to see what name the device got given.
  4. With that device name run udevadm info -a -n /dev/ttyACM0 | less.
  5. Seach the list of attributes (ATTRS), looking for the first instance of ATTRS{serial}==

  1. Copy down this value for use in writing the rule, and keep track of which device has that value. Then unplug the device, and repeat steps 1-6 for each other device that needs a name.

Next: Establishing udev rules for the Controllers