PaulStoffregen / teensy_loader_cli

Command line Teensy Loader
http://www.pjrc.com/teensy/loader_cli.html
332 stars 152 forks source link

Add the option to choose the serial port #25

Open NICOLASGON opened 8 years ago

NICOLASGON commented 8 years ago

Hello,

This patch add the option in the cli to choose the teensy we want to flash. Thank you, Nicolas Gonzalez

peternewman commented 6 years ago

This is the serial number of the device, rather than anything to do with the serial port isn't it?

siteswapjuggler commented 4 years ago

Is this patch still active and valid ? Do you know a good way to get Teensys serial number with a command line tool ?

peternewman commented 4 years ago

Do you know a good way to get Teensys serial number with a command line tool ?

Something like lsusb should do so @siteswapjuggler

siteswapjuggler commented 4 years ago

Hello I found lsusb -v which works like a charm thanks :)

peternewman commented 4 years ago

Hello I found lsusb -v which works like a charm thanks :)

Adding -d and the right vendor/product would let you just show Teensys, which might be even more useful.

lshw may also show them, and has XML and JSON output formats which could be parsed more reliably. It also has ways to filter for just particular classes of data.

siteswapjuggler commented 4 years ago

Yep my final scrip is something is : lsusb -v -d 0x16c0: | grep iSerial