ffcd04d413
This commit adds contiki-ng/motelist as a submodule under tools/motelist. The tool aims to automatically detect and output a list of sensor/IoT devices connected to a computer. It has been developed and tested in OSX and Ubuntu. There is currently no support for Cygwin, nor does the tool's author plan to provide such in the future :). The tool is expected to work with Python 2.7 and 3+. It has been tested and successfully detects CC26xx Launchpads and Zolertia RE-Mote and Firefly devices. Motelist's ultimate goal is to replace vendor-specific motelist-foo tools under the respective tools/ subdirectories, with a single tool that can detect as many devices as possible and that provides its output in a homogenous and script-friendly format. This pull does not remove anything until the new motelist has been tested and found useful. Unless stated otherwise within individual files, motelist sources are distributed under the terms of the 3-clause BSD license. Some parts of motelist.py (especially the Linux backend), are based on ideas and original work done by Janis Judvaitis and Atis Elsts. ## Usage ```bash $ python motelist.py -h usage: motelist.py [-c] [-o] [-b] [-h] [-v] Automatically detect and print out a list of motes connected to this computer optional arguments: -c, --csv Print list in CSV format -o, --omit-header Omit header row -b, --brief Only print serial port paths -h, --help Show this message and exit -v, --version Prints software version ``` Standard output: ```bash $ python motelist.py Port Serial VID PID Product Vendor ------------ ------------------ ------ ------ ----------------------------------- ----------------- /dev/ttyACM0 L200015Z 0x0451 0xBEF3 XDS110 (02.02.05.01) with CMSIS-DAP Texas Instruments /dev/ttyACM1 L200015Z 0x0451 0xBEF3 XDS110 (02.02.05.01) with CMSIS-DAP Texas Instruments /dev/ttyUSB0 ZOL-B001-A20000777 0x10C4 0xEA60 Zolertia Firefly platform Silicon Labs ``` You can get the output in CSV format: ```bash $ python motelist.py -c Port;Serial;VID;PID;Product;Vendor /dev/ttyUSB0;ZOL-B001-A20000777;0x10C4;0xEA60;Zolertia Firefly platform;Silicon Labs /dev/ttyACM0;L200015Z;0x0451;0xBEF3;XDS110 (02.02.05.01) with CMSIS-DAP;Texas Instruments /dev/ttyACM1;L200015Z;0x0451;0xBEF3;XDS110 (02.02.05.01) with CMSIS-DAP;Texas Instruments ``` You can ommit the header row with `-o`. You can also ommit all columns except the first one with `-b`. You can also combine the `-cob` options: ```bash $ python motelist.py -ob /dev/ttyUSB0 /dev/ttyACM0 /dev/ttyACM1 ```
25 lines
999 B
Plaintext
25 lines
999 B
Plaintext
[submodule "tools/cc2538-bsl"]
|
|
path = tools/cc2538-bsl
|
|
url = https://github.com/JelmerT/cc2538-bsl.git
|
|
[submodule "arch/cpu/cc26xx-cc13xx/lib/cc26xxware"]
|
|
path = arch/cpu/cc26xx-cc13xx/lib/cc26xxware
|
|
url = https://github.com/contiki-ng/cc26xxware.git
|
|
[submodule "arch/cpu/cc26xx-cc13xx/lib/cc13xxware"]
|
|
path = arch/cpu/cc26xx-cc13xx/lib/cc13xxware
|
|
url = https://github.com/contiki-ng/cc13xxware.git
|
|
[submodule "tools/sensniff"]
|
|
path = tools/sensniff
|
|
url = https://github.com/g-oikonomou/sensniff.git
|
|
[submodule "tools/cooja"]
|
|
path = tools/cooja
|
|
url = https://github.com/contiki-ng/cooja.git
|
|
[submodule "os/net/security/tinydtls"]
|
|
path = os/net/security/tinydtls
|
|
url = https://github.com/contiki-ng/tinydtls.git
|
|
[submodule "tests/18-coap-lwm2m/example-lwm2m-standalone"]
|
|
path = tests/18-coap-lwm2m/example-lwm2m-standalone
|
|
url = https://github.com/contiki-ng/example-lwm2m-standalone.git
|
|
[submodule "tools/motelist"]
|
|
path = tools/motelist
|
|
url = https://github.com/contiki-ng/motelist
|