Commit Graph

2607 Commits

Author SHA1 Message Date
George Oikonomou
06ad0f26b3 Quiet unzip 2018-10-20 16:04:02 +01:00
George Oikonomou
3c9eafc83b Quiet pip output 2018-10-20 16:03:51 +01:00
George Oikonomou
d756cb6e48 Quiet git clone 2018-10-20 15:25:14 +01:00
George Oikonomou
20fa52997c Quiet wget 2018-10-20 15:25:02 +01:00
George Oikonomou
995a076262 Explicitly set noninteractive frontent 2018-10-20 15:24:16 +01:00
George Oikonomou
882bfd083d Delete the zolertia-specific motelist 2018-10-16 22:03:59 +01:00
Simon Duquennoy
5497dc1e20 TSCH: timeslot timings as a structure, for flexible configuration 2018-10-04 10:50:09 +02:00
George Oikonomou
c29cfc256e
Merge branch 'develop' into null-character 2018-09-17 11:13:22 +01:00
Rehan MALAK
ee9d123842 update uncrustify configuration 2018-09-13 11:12:36 +02:00
Rehan MALAK
9a5373f267 fix indentation 2018-09-13 10:02:36 +02:00
Rehan MALAK
163f455fc7 add '\0' terminal character 2018-09-13 10:02:36 +02:00
Edvard Pettersen
5ea0c80ae1
Merge branch 'develop' into contrib/ti-simplelink 2018-09-12 09:27:43 +02:00
Edvard Pettersen
232fbd4c98 Fixed travis errors 2018-08-31 16:39:20 +02:00
Edvard Pettersen
c8edacdd6d Added doxygen exclude of Core SDK 2018-08-31 11:06:32 +02:00
George Oikonomou
8930ca7b2d Update cc2538-bsl to latest
This commit updates cc2538-bsl to its latest version. This latest version improves CC2640R2 detection and also adds support for detection of more chip packages.
2018-08-22 23:39:41 +01:00
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