Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/contiki-ng/motelist
motelist.py: A mote detection script for Contiki-NG
https://github.com/contiki-ng/motelist
Last synced: 4 days ago
JSON representation
motelist.py: A mote detection script for Contiki-NG
- Host: GitHub
- URL: https://github.com/contiki-ng/motelist
- Owner: contiki-ng
- License: bsd-3-clause
- Created: 2018-08-04T13:25:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T12:02:48.000Z (over 1 year ago)
- Last Synced: 2024-05-10T22:03:29.845Z (8 months ago)
- Language: Python
- Size: 75.2 KB
- Stars: 1
- Watchers: 10
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# motelist.py: A mote detection script for Contiki-NG
The motelist.py tool aims to automatically detect and output a list of
sensor/IoT devices connected to a computer.Unless stated otherwise within individual files, motelist sources are
distributed under the terms of the [3-clause BSD license](LICENSE.md).
This license gives everyone the right to use and distribute the code,
either in binary or source code format, as long as the copyright license
is retained in the source code.Some parts of motelist.py (especially the Linux backend), are based on
original work done by Janis Judvaitis and Atis Elsts.## Usage
```bash
$ ./motelist.py -h
usage: motelist.py [-c] [-o] [-b] [-p PATTERNS [PATTERNS ...]] [-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
-p PATTERNS [PATTERNS ...], --patterns PATTERNS [PATTERNS ...]
Search for additional port filename patterns, for
example you can pass -p "/dev/tty.usbserial*"
-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
```## Links
GitHub repository: https://github.com/contiki-ng/motelist