Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: teensy_loader_cli with multiple devices connected

  1. #1
    Junior Member
    Join Date
    Apr 2020
    Posts
    3

    teensy_loader_cli with multiple devices connected

    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...

  2. #2
    Junior Member
    Join Date
    Apr 2020
    Posts
    3
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •