teensy_loader_cli with multiple devices connected

Status
Not open for further replies.

hardillb

New member
Hi,

I have a system that has multiple (at this time 2) Teensy 3.2s attached via USB to a raspberry pi. I have udev rules to label the serial ports presented by each so I know which is which when they enumerate so I talk to the right one.

Initially I had just one device and I was using teensy_loader_cli to push updates to the device, now I've added the second I can't find a way to distinguish between them when I want to update new sketches?

At the moment it's always picking the last one to enumerate which is making life difficult...
 
In case anybody else stumbles on this needing the same.

I took the patch from here and paired it with:

Code:
udevadm info /dev/ttyACM0 | awk -F "[ =]" '/ID_SERIAL_SHORT/ { print $3 }'

which will grab the serial number for the matching Serial port device.
 
Status
Not open for further replies.
Back
Top