I have 2 Arduino Micro based devices that I want to use on my Ubuntu Linux machine. I need them to have unique serial ports. Unfortunately, both have the same serial number which makes identification through udev rules difficult (if not impossible).
This is the serial number that I get for both:
$ udevadm info -a -p $(udevadm info -q path -n /dev/ttyACM0) | grep -i serial
ATTRS{serial}=="0000:00:14.0"
Is there any way to manually set the serial number on an Arduino Micro? Or is there any other unique identifying properties I can use for udev rules?
Typically, I do something like this in my /etc/udev/rules.d/99-usb-serial.rules
file:
SUBSYSTEM=="tty", ATTRS{product}=="Arduino Uno", ATTRS{serial}=="64936333936351911191", SYMLINK+="MyDevice"
Side note: I also have a Due, that has the same serial number as the Micros, but since ATTRS{product} is different, I can differentiate it.