Hi everyone,

I just pushed some new tool I've been using for a while to the tinyos
repository. One of this is motelist2.

The difference between motelist and motelist2:
-motelist is perl based (and cpp on win), motelist2 is python based (p3
compatible)
-motelist searches for hardcoded VID/PID, therefor it should be modified
every time a new bridge is used, motelist2 tries to find every usb serial
port. I've tested it with ftdi, microchip and silabs chips. On linux, it
uses sysfs, on cygwin, it uses the registry in procfs (/proc/registry)

Compatibility:
motelist -c is used in telos* Makefiles, so the output of motelist2 -c is
the same. Currently it even filters for the devices supported by motelist.

Usecase:
Newer ucmotes has their ID written into the end of their usb description,
e.g. "UCMote ProtonB v1.0 ID:1023"
The following command can be used to get the nodeid of the node on the
ttyACM0 port:
motelist2 -p|grep /dev/ttyACM0|cut -d, -f8|sed 's/.*ID://'
With some checks, it can be easily integrated in Makefiles.

Best,
Andras
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to