Go Down

Topic: please help test aduino detection script for linux (Read 647 times) previous topic - next topic


Hi everyone,

I just made a quick script to that tries to find USB-connected arduinos from a linux machine.
I'd really appreciate some feedback whether it works ok from machines other than mine,
since it uses sysfs and I don't know how generic all that is between distributions/kernels/etc.

The attached script should be run just like this:

     $ chmod u+x guess_programmer_parameter.perl
     $ ./guess_programmer_parameter.perl --device

and should output something like /dev/ttyACM0 (for uno rev.3 at least) or /dev/ttyUSB0 (for Duemilanove)
when it finds exactly one Arduino.

It should give error messages when no arduino is connected or when multiple ones are connected.


Go Up