Commit Graph

14161 Commits

Author SHA1 Message Date
Joakim Eriksson
ee8fccb70a
Merge pull request #633 from retfie/lwm2m-ipso-object
Fix get_temp_value for lwm2m-ipso-object example
2018-08-30 13:07:10 +02:00
Kiril Petrov
e19e67b510 Fix get_temp_value for lwm2m-ipso-object example
Signed-off-by: Kiril Petrov <contiki@geomi.org>
2018-08-29 20:30:13 -07:00
Niclas Finne
6ebdbf0675
Merge pull request #624 from nvt/fix-antelope-issues
Fix Antelope issues with memory checking
2018-08-28 15:35:14 +02:00
Nicolas Tsiftes
7860ca5da0 Set a larger default bytecode size since the example on the Contiki-NG wiki requires this. 2018-08-27 15:58:57 +02:00
Nicolas Tsiftes
196accb9b7 Check if too many relations are inserted. 2018-08-27 15:58:57 +02:00
Nicolas Tsiftes
f9bc65eab2 Enhanced LVM error checking. 2018-08-27 15:58:57 +02:00
Nicolas Tsiftes
a73822176a Check element size when parsing tokens. 2018-08-27 15:58:57 +02:00
Simon Duquennoy
21042ae748
Merge pull request #615 from g-oikonomou/contrib/motelist
Add motelist as a submodule
2018-08-22 09:36:20 +02:00
Simon Duquennoy
c17d92ea36
Merge branch 'develop' into contrib/motelist 2018-08-17 10:54:02 +02:00
George Oikonomou
1af84bdc5b
Merge pull request #614 from g-oikonomou/contrib/vagrant-with-usbserial
Enable USB device support within the vagrant image
2018-08-14 21:46:57 +01:00
Simon Duquennoy
eedcac75c2
Merge branch 'develop' into contrib/vagrant-with-usbserial 2018-08-14 15:40:54 +02:00
Simon Duquennoy
b8881a042e
Merge pull request #618 from Rehan-MALAK/test-the-tests
fix some bugs in the RPL border tests
2018-08-14 10:05:05 +02:00
Rehan MALAK
1a65e0ea75 fix some bugs in the RPL border tests
* 08-border-router-cooja-frag.sh was using 01-border-router-cooja.csc
  so if the test failed, the summary was wrongly indicating
  a failed 01-board-router-cooja test
* same for 09-native-border-router-cooja-frag.sh
  which has now it's own cooja configuration
* 05-native-ping was using 01-native-ping
* homogenizes the mode : all scripts are 644 now
2018-08-13 13:54:19 +02:00
Simon Duquennoy
6917f02ad9
Merge pull request #545 from simonduq/contrib/tsch-minor
TSCH: keep track of min/max drift seen
2018-08-11 15:33:05 +02:00
Joakim Eriksson
e9f0b33b89
Merge branch 'develop' into contrib/tsch-minor 2018-08-11 10:51:33 +02:00
Joakim Eriksson
0f1ae09a65
Merge pull request #568 from simonduq/contrib/ci-frag-large
CI test with large fragments
2018-08-11 10:49:58 +02:00
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