Commit Graph

2592 Commits

Author SHA1 Message Date
Simon Duquennoy
c17d92ea36
Merge branch 'develop' into contrib/motelist 2018-08-17 10:54:02 +02:00
Simon Duquennoy
eedcac75c2
Merge branch 'develop' into contrib/vagrant-with-usbserial 2018-08-14 15:40:54 +02:00
Joakim Eriksson
00cd589c84
Merge branch 'develop' into contrib/ci-frag-large 2018-08-11 00:16:00 +02:00
George Oikonomou
ffcd04d413 Add motelist as a submodule
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
```
2018-08-04 14:43:22 +01:00
George Oikonomou
f73fc7d0e0 Install linux kernel image extras 2018-08-03 23:23:14 +01:00
George Oikonomou
6f65063306 Bootstrap the vagrant image with a single apt install 2018-08-03 23:22:57 +01:00
George Oikonomou
14225300fc Specify default tun/tap name on Mac OS
e5c7437 fixed a bug that was preventing multiple instances of tunslip6 from running. This same commit however broke tunslip6 on Mac OS, as documented in contiki-os/contiki#1560 as well as in contiki-ng/contiki-ng#466

Basically the commit in question merely removed some code. This commit puts that code back in, but makes it conditional for Mac OS.

Fixes #466
2018-06-24 16:29:47 +01:00
Yasuyuki Tanaka
f325d44964 Dockerfile: add gdb 2018-06-09 23:16:32 +02:00
George Oikonomou
b0f5640101 Update cc2538-bsl to latest version 2018-06-07 12:56:34 +01:00
George Oikonomou
c0fe6216f6 Update the dockerfile to install packages required for readthedocs builds/tests 2018-06-05 21:11:40 +01:00
George Oikonomou
57692d21f9 Add support for documentation on readthedocs.io 2018-06-05 21:10:01 +01:00
Simon Duquennoy
e71bc0a818 Update Cooja to latest 2018-06-05 13:05:20 +02:00
Simon Duquennoy
bf11c827b0 Docker: by default, build non-standalone image (contiki-ng as a mount) 2018-06-04 21:18:07 +02:00
Simon Duquennoy
1f4d4ee7cf
Merge branch 'develop' into contrib/tools/viewconf 2018-05-28 20:53:14 +02:00
George Oikonomou
5d234e1138 Move viewconf to its own dir 2018-05-27 18:33:53 +01:00
George Oikonomou
8daaa357f5 Remove makefsdata 2018-05-27 18:33:35 +01:00
George Oikonomou
3e3cb08c7f Move serialdump and tunslip6 to their own subdir 2018-05-26 15:27:25 +01:00
George Oikonomou
e1a81808df Remove tools/timestamp, which is no longer in use 2018-05-26 13:55:03 +01:00
George Oikonomou
da9b35e815 Change time format output 2018-05-26 13:55:03 +01:00
George Oikonomou
4d97186df2 Support tunslip6 and serialdump with a single makefile 2018-05-26 13:55:02 +01:00
George Oikonomou
93608baed4 Improve baudrate handling 2018-05-26 13:49:36 +01:00
George Oikonomou
b2bd5ed662 Tidy-up handling of O_SYNC and O_DIRECT 2018-05-26 13:49:35 +01:00
George Oikonomou
64ad54d692 Fix usage string 2018-05-26 13:46:50 +01:00
George Oikonomou
aa926ee288 Remove dead code block 2018-05-26 13:46:50 +01:00
George Oikonomou
a81ff510f5 Provide a macro for the unknown baudrate 2018-05-26 13:46:49 +01:00
George Oikonomou
5c65a07c56 Fix serialdump code style 2018-05-26 13:46:49 +01:00
George Oikonomou
a8f392ffa7 Move serialdump source to the top-level tools dir 2018-05-26 13:46:49 +01:00
George Oikonomou
31ceb23f3a Remove sky serialdump makefile and binaries 2018-05-26 13:46:49 +01:00
George Oikonomou
cf8d2b6f13 Remove jn516x serialdump source, makefile and binaries 2018-05-26 13:46:49 +01:00
George Oikonomou
fd379cd50b Add missing case statement 2018-05-12 15:19:33 +01:00
George Oikonomou
b45d284be2 Merge branch 'release-4.1' into develop 2018-05-09 22:18:01 +01:00
Simon Duquennoy
181cb57057 Dockerfile: minor fix 2018-04-30 03:16:21 -07:00
Simon Duquennoy
650a278e72 Dockerfile: add Renode 2018-04-30 03:16:19 -07:00
Simon Duquennoy
2996569585 Dockerfile: added Mosquitto 2018-04-27 11:59:46 -07:00
Simon Duquennoy
4da9202d22 Add lrwrap to login and native BR 2018-04-26 03:00:04 -07:00
Simon Duquennoy
a099bda058 Added jool-start.sh script 2018-04-26 00:47:30 -07:00
Simon Duquennoy
15a06b85bc Added flag for 802.15.4 default channel 2018-04-13 02:26:48 -07:00
Simon Duquennoy
02aebac0d7 Viewconf: moving PANID up 2018-04-13 02:23:49 -07:00
Simon Duquennoy
a3e62befb8 TSCH: rework .h system, now following the same structure as rpl-lite 2018-03-28 10:39:41 -07:00
Rémy Léone
5364f81f5a Add Vagrant support 2018-03-19 10:39:29 +01:00
Simon Duquennoy
b909fb2878 Docker: enable IPv6 automatically in container 2018-03-02 08:45:53 -08:00
Simon Duquennoy
19467c5d9e Fix typo in viewconf.c 2018-02-27 10:40:56 -08:00
Niclas Finne
309745780e Removed the remaining Contiki Interface declaration macros (CCIF/CLIF) 2018-02-21 01:14:10 +01:00
Simon Duquennoy
26d51c15d7 Routing API: added more missing functions, homogenize configuration 2018-02-02 08:50:17 -08:00
Simon Duquennoy
376f72559a Updating Cooja to latest 2018-02-01 07:38:12 -08:00
Simon Duquennoy
0a4b072973 Cooja .csc files: do not load collect-view 2018-02-01 05:03:55 -08:00
Simon Duquennoy
88ae175c9a Tools: remove collect-view 2018-02-01 05:01:43 -08:00
Niclas Finne
7bbbbbab9a Excluded the optional tinyDTLS module from Doxygen 2018-01-12 01:20:53 +01:00
Niclas Finne
49d38e6d06 Added LWM2M runtime log level to the logging module 2018-01-12 01:20:53 +01:00
Niclas Finne
21d464952b Added CoAP runtime log level to the logging module 2018-01-12 01:20:53 +01:00