Commit Graph

14195 Commits

Author SHA1 Message Date
Joakim Eriksson
00cd589c84
Merge branch 'develop' into contrib/ci-frag-large 2018-08-11 00:16:00 +02:00
Joakim Eriksson
288f1c9e7f
Merge pull request #455 from simonduq/fix/coap-endpoint-is-reachable
CoAP: fix `coap_endpoint_is_connected`
2018-08-11 00:15:18 +02:00
Joakim Eriksson
351908a1ba
Merge branch 'develop' into fix/coap-endpoint-is-reachable 2018-08-10 21:46:29 +02:00
Joakim Eriksson
cde41c60ca
Merge pull request #613 from g-oikonomou/bugfix/variable-definition
Move variable definition to start of function
2018-08-10 21:23:07 +02:00
Joakim Eriksson
8dc1116241
Merge branch 'develop' into bugfix/variable-definition 2018-08-10 18:02:03 +02:00
George Oikonomou
abdeb4f4d1
Merge pull request #611 from ComNetsHH/fix-sfsimple
sixtop example: fix incorrect access to uint8_t *cell_list
2018-08-08 22:47:24 +01:00
George Oikonomou
94fb9e2437
Merge branch 'develop' into fix-sfsimple 2018-08-08 21:42:38 +01: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
c8432009e9 Move variable definition to start of function 2018-08-03 19:08:56 +01:00
ohrensessel
4e79ba949f sixtop example: fix incorrect access to uint8_t *cell_list 2018-07-30 20:53:29 +02:00
Simon Duquennoy
950bde89c2
Merge pull request #603 from debug-ito/icmp-log
Fix log output from uip_icmp6_send function.
2018-07-17 17:38:18 +02:00
Toshio Ito
840bab8f6c uip_icmp6_send: move log messages at the end of function.
It prints UIP_IP_BUF->destipaddr, but this is updated in the middle of
this function. Before this fix, the address was NOT the destination of
the ICMPv6 packet, but was whatever destination that previous operation
wrote to uip_buf.
2018-07-06 13:46:36 +09:00
Niclas Finne
c7b485399f
Merge pull request #577 from carlosgp143/contrib/extend-coap-request-APIs
CoAP: unified request_state for both blocking and callback APIs and add status codes
2018-06-29 17:07:53 +02:00
carlosgp143@gmail.com
2db8fa80e2 Unified coap_request_state and added status for extra information 2018-06-29 09:33:18 +02:00
Simon Duquennoy
8a863a7a76
Merge pull request #588 from carlosgp143/fix/queue-mode-params
Changed default Q-Mode values in LwM2M example
2018-06-28 16:06:30 +02:00
carlosgp143@gmail.com
a4757cb723 Changed default values for dynamic adaptation and Q-Mode objects 2018-06-27 09:36:00 +02:00
George Oikonomou
00e10b9316
Merge pull request #585 from g-oikonomou/contrib/license
Enable license auto-detection on github
2018-06-26 14:35:13 +01:00
Simon Duquennoy
2bbaecb4c8
Merge branch 'develop' into contrib/license 2018-06-26 12:29:17 +02:00
Simon Duquennoy
98c6580e6f
Merge pull request #586 from g-oikonomou/bugfix/tools/tunslip6-macos
Specify default tun/tap name on Mac OS
2018-06-26 12:27:59 +02: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
George Oikonomou
05455f949c Enable license auto-detection
This commit changes the LICENSE.md text such that it can get automatically detected by licensee and github's license detection. This will make the license appear in the project's overview on github.

Additional information that was previously in LICENSE.md is moved to the README.
2018-06-23 13:35:22 +01:00
George Oikonomou
cc37ae5851
Merge pull request #572 from lafka/lafka-include-guards
Add guards for service-specific includes in contik-main
2018-06-19 16:03:08 +01:00
Simon Duquennoy
a0f176e4a4
Merge branch 'develop' into lafka-include-guards 2018-06-17 12:42:41 +02:00
Simon Duquennoy
f8d3d0f3c6
Merge pull request #575 from angelos-oikonomopoulos/dynamic-shell-command-registration
Dynamic shell command registration
2018-06-13 14:16:19 +02:00
angelos-oikonomopoulos
0aea8efb7c
Merge branch 'develop' into dynamic-shell-command-registration 2018-06-12 13:26:42 +02:00
Simon Duquennoy
d933123d0e
Merge pull request #579 from yatch/pr/dockerfile-add-gdb
Dockerfile: add gdb
2018-06-11 23:12:29 +02:00
Angelos Oikonomopoulos
45b0241f94 Introduce dynamically registered shell command sets
Commands are part of a single array, which means that their definition
is static. However, different apps in the same source tree may
reasonably want to add to the command set (perhaps even shadow existing
commands), which would make for awkward code.

Instead, allow dynamic registration/deregistration of command sets at
runtime. This keeps the data overhead low (two pointers per enabled
command set).
2018-06-11 11:09:24 +00:00
Olav Frengstad
f8d004b92f Move LLSEC checks from tsch-security.h to tsch-security.c
Different part of the stack is pulled in from `contiki-main.c` this has the unintended
side effect of including TSCH headers even when TSCH is not used. When using LLSEC for
CSMA this triggers an error and compilation fails.
2018-06-11 10:48:17 +02:00
Yasuyuki Tanaka
f325d44964 Dockerfile: add gdb 2018-06-09 23:16:32 +02:00
Angelos Oikonomopoulos
1a95aad7a7 Mark shell_commands as const
This enables the compiler to place the array in flash, saving us a bit
of RAM.

Suggested-by: g-oikonomou
2018-06-08 10:44:33 +00:00
Simon Duquennoy
56dd8dcea4
Merge pull request #573 from g-oikonomou/contrib/bsl
Update cc2538-bsl to latest version
2018-06-08 10:51:16 +02:00
George Oikonomou
b0f5640101 Update cc2538-bsl to latest version 2018-06-07 12:56:34 +01:00
Simon Duquennoy
734eb48df8
Merge pull request #549 from simonduq/contrib/deployment
Deployment module
2018-06-06 16:31:02 +02:00
Simon Duquennoy
833cf2f87d Fix copyright headers 2018-06-06 15:38:26 +02:00
Simon Duquennoy
f968c11a2f Added compile test for example libs/deployment 2018-06-06 15:38:26 +02:00
Simon Duquennoy
98338aad2d Add Flocklab Openmotes as an example deployment mapping 2018-06-06 15:38:26 +02:00
Simon Duquennoy
c0a1c586be Added deployment example 2018-06-06 15:38:26 +02:00
Simon Duquennoy
95208a804a Deployment: use node-id for compact address logging 2018-06-06 15:38:26 +02:00
Simon Duquennoy
9ae283031a Added deployment module 2018-06-06 15:38:26 +02:00
Simon Duquennoy
052997364d
Merge pull request #547 from g-oikonomou/contrib/readthedocs
Add support for documentation on readthedocs.io
2018-06-06 09:33:25 +02:00
George Oikonomou
61559808b4
Merge branch 'develop' into contrib/readthedocs 2018-06-05 22:04:25 +01:00
George Oikonomou
77d07ea6b9
Merge pull request #569 from simonduq/fix/docker-build-fail
CI: fail test in case building Docker image failed
2018-06-05 22:04:02 +01:00
George Oikonomou
41c0851f79 Test readthedocs build on travis 2018-06-05 21:11:40 +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
94398b0176 CI: fail test in case building Docker image failed 2018-06-05 17:41:59 +02:00
George Oikonomou
0cee22fd71
Merge pull request #567 from MartinNPN/develop
rx full IRQ handling for cc13xx/cc26xx
2018-06-05 13:50:03 +01:00
Simon Duquennoy
838db51b8f CI fragmentation tests: increase ping size to 1200 bytes 2018-06-05 14:08:02 +02:00