Commit Graph

1730 Commits

Author SHA1 Message Date
Simon Duquennoy
cf7150cfdd Replace leftover MAKE_ROUTING_NONE with MAKE_ROUTING_NULLROUTING 2018-03-09 16:29:06 +00:00
Atis Elsts
dacab090fd restrict Zoul examples to specific boards 2018-03-09 16:29:06 +00:00
Simon Duquennoy
b0b71f6624 Do not attempt to compile SLIP for nrf52dk 2018-03-09 16:29:06 +00:00
Simon Duquennoy
89c5adc0e4 IP64-router examples: only for Zoul/Orion 2018-03-09 16:29:06 +00:00
Simon Duquennoy
5cbf6f26fe Do not build TSCH examples for cc13xx boards 2018-03-09 16:29:06 +00:00
Simon Duquennoy
206b5dfe45 Example slip-radio: do not compile for native 2018-03-09 16:29:06 +00:00
Simon Duquennoy
164a8b218b Example ip64-router: only meant for platform Zoul/Orion 2018-03-09 16:29:06 +00:00
Atis Elsts
dab9ea0817 nrf52dk: move the build error when building without IPv6 from Makefile to C header file to enable PLATFORMS_EXCLUDE syntax in Makefiles 2018-03-09 16:29:06 +00:00
Atis Elsts
3d2788d4c6 Reorganize the nrf52dk/coap-demo example to make it compatible with the new build system 2018-03-09 16:29:06 +00:00
Atis Elsts
074b797e88 Update Makefiles to be compatible with the new build system and restrict them to specific platforms where needed 2018-03-09 16:29:06 +00:00
Atis Elsts
9eadf9feaa Allow to compile the leds example for platforms with LEDS_LEGACY_API 2018-03-09 14:47:45 +00:00
Joakim Eriksson
66917d94af coap-example: made endpoint static in process 2018-03-05 16:35:45 +01:00
George Oikonomou
be307bf004 Add RGB LED example and tests 2018-03-01 15:29:31 +00:00
George Oikonomou
92ab28bc8f Add LED HAL example and tests 2018-03-01 15:29:31 +00:00
George Oikonomou
40ca7d0443 Migrate to LED HAL (Zoul examples) 2018-03-01 15:29:31 +00:00
George Oikonomou
ad32bdd070 Migrate to LED HAL (GPIO HAL example) 2018-03-01 15:29:31 +00:00
George Oikonomou
a1b9ba2630 Migrate to LED HAL (IPSO Objects) 2018-03-01 15:29:30 +00:00
George Oikonomou
db058b166c Migrate to LED HAL (CoAP example) 2018-03-01 15:29:30 +00:00
George Oikonomou
21151279c2 Remove LED use from examples that don't really need them 2018-03-01 15:29:30 +00:00
George Oikonomou
bd73649eac Update Zoul rev-b Makefile to specify the BOARD
The examples in this directory are only meant for BOARD remote-revb
2018-03-01 15:05:18 +00:00
George Oikonomou
f22b54ae9f Update Zoul/Orion example Makefile.target to specify the board 2018-03-01 15:05:18 +00:00
George Oikonomou
c4f7d0f147 Fix Zoul at-test example
Add missing include and fix the CONTIKI path in the makefile
2018-03-01 13:34:32 +00:00
Simon Duquennoy
b321e3e11a Zoul at-test example: added missing include 2018-03-01 13:34:32 +00:00
Atis Elsts
b2063a9815 Zoul: test-servo.c was defined as project multiple times 2018-03-01 13:34:32 +00:00
Atis Elsts
3a1b830f92 MQTT demo: add missing include 2018-03-01 13:34:32 +00:00
Atis Elsts
6ced7e506f IPSO objects: include dev/leds.h 2018-03-01 13:34:31 +00:00
Simon Duquennoy
0290692815 ipv6-hooks example: added missing include 2018-03-01 13:34:31 +00:00
Simon Duquennoy
bfb4f9537b 6p-packet example: use MAC address instead of node_id to hardcode coordinator 2018-03-01 13:34:31 +00:00
George Oikonomou
1f44c1530e
Merge branch 'develop' into contrib/tsch-print-schedule 2018-02-25 18:48:00 +00:00
Simon Duquennoy
e30423f6cc
Merge branch 'develop' into contrib/gpio-hal 2018-02-25 18:17:32 +01:00
Simon Duquennoy
16c4b2fe6c Removing obsolete flag RPL_NS_LINK_NUM 2018-02-24 15:27:40 -08:00
George Oikonomou
b9a321d602 Add GPIO HAL example 2018-02-24 12:50:02 +00:00
Simon Duquennoy
9596a4285e Use PRI macros for safe printf and logs 2018-02-23 10:58:45 -08:00
Simon Duquennoy
539d717263 Fix simple-node example configuration 2018-02-23 05:56:39 -08:00
Simon Duquennoy
30d12fd994 Fix potential compilation error for example multicast 2018-02-02 08:51:29 -08:00
Simon Duquennoy
123105ab20 Move source routing state management from RPL Lite and RPL Classic to uip. 2018-02-02 08:51:29 -08:00
Simon Duquennoy
f8ddf8c816 Added missing includes for modules that rely on RPL 2018-02-02 08:51:29 -08:00
Simon Duquennoy
627cb3de9c Homogenize access to RPL non-storing links from external modules 2018-02-02 08:50:17 -08:00
Simon Duquennoy
65cbc45145 Rename routing module flags 2018-02-02 08:50:17 -08:00
Simon Duquennoy
0fc93b6d37 Fix udp-client example, now using NETSTACK_ROUTING 2018-02-02 08:50:17 -08:00
Simon Duquennoy
7adfb92b63 Routing module configuration through netstack.h 2018-02-02 08:50:17 -08:00
Simon Duquennoy
26d51c15d7 Routing API: added more missing functions, homogenize configuration 2018-02-02 08:50:17 -08:00
Simon Duquennoy
52b10b6389 RPL border router Web server cleanup 2018-02-02 08:47:46 -08:00
Simon Duquennoy
bc73bb3284 Added root_start to routing driver 2018-02-02 08:47:46 -08:00
Simon Duquennoy
83e9414a71 Add root_set_prefix to routing driver 2018-02-02 08:47:21 -08:00
Simon Duquennoy
14ccd337c9 rpl_dag_root module simplification 2018-02-02 08:47:21 -08:00
Simon Duquennoy
3a39b51056 JN516x examples: remove obsolte RPL tools 2018-02-02 08:47:21 -08:00
Simon Duquennoy
871ee1e34f Added routing module with only routing.h, now included wherever RPL is used 2018-02-02 08:45:02 -08:00
Piotr Zierhoffer
840fee1494 Renode: fix vector table offset in the script.
The cc2538-node.resc script was vulnerable to changing the position of
the vector table.
It also had a wrong hardcoded value. Now it will automatically verify
the position of the `vectors` symbol and set the vtor position
accordingly.
2018-02-01 17:31:42 +01:00
Simon Duquennoy
0a4b072973 Cooja .csc files: do not load collect-view 2018-02-01 05:03:55 -08:00
George Oikonomou
63a96752c8
Merge branch 'develop' into contrib/coap-lwm2m-dtls 2018-02-01 00:17:38 +00:00
Joakim Eriksson
50642b3e49 removed unused code and sensors on Sky slip-radio 2018-01-27 14:52:14 +01:00
Joakim Eriksson
1c0e76025b fixed slip-radio config, added shell to NBR and added parsing to no-framer 2018-01-26 22:59:48 +01:00
wirstrom
2122ffdeeb Fixed alignment bug for msp430 2018-01-26 11:54:01 +01:00
Niclas Finne
7d5fe004f0
Merge branch 'develop' into contrib/coap-lwm2m-dtls 2018-01-19 18:21:38 +01:00
Simon Duquennoy
41312917f8 NullNet examples: check paylaod size before reading it 2018-01-12 09:18:34 -08:00
Niclas Finne
3c52d6727c The CoAP example no longer fits in the limited ROM in Tmote Sky.
Added a compile warning and documented the limitation in the README.
2018-01-12 18:04:40 +01:00
Niclas Finne
5dfaa5267b Moved the LWM2M standalone example to external repository 2018-01-12 01:20:53 +01:00
Niclas Finne
ca827938ee Updated LWM2M example to use the logging module 2018-01-12 01:20:53 +01:00
Niclas Finne
c9d255b847 Updated LWM2M to use the logging module 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
4c56184a9b Updated CoAP to use 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
Joakim Eriksson
c86b763e5d renamed coap packet to coap message - for naming closer to RFC 2018-01-12 01:20:53 +01:00
Niclas Finne
a866fcbfad CoAP: replaced coap_send_message() with coap_sendto() that returns
number of bytes sent or error.
2018-01-12 01:20:52 +01:00
Niclas Finne
b117a8bba8 CoAP: Various minor updates in CoAP example 2018-01-12 01:20:52 +01:00
Niclas Finne
4a82bda543 Various updates in LWM2M standalone example
* Use LWM2M security object as DTLS keystore by default
* Mark endpoint as secure regardless if DTLS peer exists or not
* Somewhat less debug output by default
2018-01-12 01:18:41 +01:00
Joakim Eriksson
6fe4026686 COAP: adapted CoAP examples to new API 2018-01-12 01:18:41 +01:00
Niclas Finne
082f4b920c ipso-objects: updated IPSO objects sensor/controllers to latest LWM2M API.
Added macros to setup IPSO sensor and control template data structs.
2018-01-12 01:18:41 +01:00
Niclas Finne
ebb329de5c CoAP: added make option to specify CoAP DTLS keystore to use by default.
The currently available options are:

* none   - No keystore registered.
* simple - Keystore using fixed PSK credentials.
* lwm2m  - Keystore based on LWM2M security objects

If an application wants to provide its own keystore, it selects 'none'
and registers its own at startup.
2018-01-12 01:18:41 +01:00
Niclas Finne
e7edd147a9 Imported LWM2M standalone example from lwm2m-contiki at https://github.com/sics-iot/lwm2m-contiki 2018-01-12 01:18:41 +01:00
Niclas Finne
83446e3f58 Imported ipso-objects from lwm2m-contiki at https://github.com/sics-iot/lwm2m-contiki 2018-01-12 01:18:41 +01:00
Johan Liseborn
862198c79a Include strings.h to access strncasecmp 2018-01-11 08:17:47 +01:00
spoerk
604e846ff1 Merge branch 'develop' of github.com:contiki-ng/contiki-ng into feature/ipv6_over_ble 2018-01-03 15:27:42 +01:00
spoerk
40a9822225 Cleanup of the hardware specific values 2018-01-03 15:22:50 +01:00
spoerk
2a49608af6 link layer problem fixed 2018-01-03 14:51:23 +01:00
spoerk
35c08597e6 BLE L2CAP moved to the other MAC implementations 2018-01-03 14:36:14 +01:00
spoerk
5a28133452 IPv6-over-BLE client example moved 2018-01-03 13:28:11 +01:00
Simon Duquennoy
6de6e15ce7 Move RPL border router from example to os/services 2017-12-22 05:21:39 -08:00
Simon Duquennoy
89c4f5e509 RPL BR: rework such as the main .c file defines its own process 2017-12-22 05:21:39 -08:00
Simon Duquennoy
070b493391 Automatically include module-macros.h when provided by modules 2017-12-22 05:21:39 -08:00
Simon Duquennoy
cf262c57c8 RPL BR and slip-radio: use c flag '-imacros' to include module-specific defines 2017-12-22 05:21:39 -08:00
Simon Duquennoy
e63d428a91 RPL BR: more rafactoring: move project-conf and sky module to project top-level 2017-12-22 05:21:39 -08:00
Simon Duquennoy
81d1b1bd80 PROJECTDIR now turned into modules via MODULES_REL 2017-12-22 05:21:39 -08:00
Simon Duquennoy
a0961ac2a1 Build system: automatically include Makefiles from PROJECTDIRS 2017-12-22 05:21:39 -08:00
Simon Duquennoy
c2d301a434 Remove unnecessary '-' before inclusion of Makefile.identify-target 2017-12-22 05:21:39 -08:00
Simon Duquennoy
e744f0a505 Refactor rpl-border-router makefile 2017-12-22 05:21:39 -08:00
Simon Duquennoy
2fd6fa1fd6 Automatically compile .c files from PROJECTDIRS 2017-12-22 05:21:39 -08:00
spoerk
fd0f0ca4b6 Merge branch 'develop' of github.com:contiki-ng/contiki-ng into feature/ipv6_over_ble 2017-12-15 11:41:27 +01:00
spoerk
7a7c4e0015 added support for IPv6 over BLE communication 2017-12-15 11:20:44 +01:00
George Oikonomou
c3d2b095b6 Add example demonstrating the data structure libraries 2017-12-13 16:38:50 +00:00
Simon Duquennoy
e048348f6d RPL border router: disable Web server on platform sky 2017-12-09 05:36:11 -08:00
Simon Duquennoy
b339c42a09 RPL border router: re-enable Web-server-free compilation 2017-12-09 05:36:11 -08:00
Joakim Eriksson
1356994795 added support for usage of the transmission count attirbute in uipbuf 2017-12-09 10:22:19 +01:00
Simon Duquennoy
e795517750
Merge branch 'develop' into contrib/stack-guard 2017-12-05 15:16:54 +01:00
George Oikonomou
29662d4e6d Clarify sensniff doc: It is also distributed as part of Contiki-NG 2017-12-05 00:44:20 +00:00
Atis Elsts
f9516eae73 Add stack check library and example 2017-12-01 13:35:06 +00:00
George Oikonomou
38df9fdfb2 Change slip_write return type and use it where possible 2017-11-24 12:31:20 +00:00
Joakim Eriksson
5c9997519b
Merge branch 'develop' into contrib/project-conf-fix 2017-11-17 15:54:03 +01:00
Simon Duquennoy
87d8f1854e sixtop example: remove unnecessary defines from project-conf.h 2017-11-11 15:35:11 +01:00
Simon Duquennoy
af4d2a943f 6tisch example: remove unnecessary define from project-conf.h 2017-11-11 15:34:47 +01:00
Simon Duquennoy
4307744f22 etsi-plugtest-2017 example: remove unnecessary define from project-conf.h 2017-11-11 15:34:29 +01:00
Simon Duquennoy
3572ab1f4f Platform cooja: disable TCPIP annotations by default 2017-11-10 23:46:51 +01:00
George Oikonomou
0adc6bfbad Merge Release v4.0 into develop 2017-11-06 15:13:17 +00:00
Simon Duquennoy
e63de9271c
Merge pull request #155 from yatch/pr/bugfix-in-sixtop-example
sixtop: bugfix adding a missing 'static' modifier
2017-11-05 10:15:21 +01:00
Yasuyuki Tanaka
669a646f19 sixtop: bugfix adding a missing 'static' modifier 2017-11-05 11:30:44 +09:00
Simon Duquennoy
a5eb7b6164 Update rpl-udp example README.md 2017-11-03 17:05:44 +01:00
Piotr Zierhoffer
2e687fe389 Update readme of rpl-udp example to mention Renode 2017-11-02 23:10:07 +01:00
Piotr Zierhoffer
6a70bbe013 Add renode target in rpl-udp Makefile
To run Renode with the rpl-udp demo, run the following command:

make renode TARGET=cc2538dk SCRIPT=rpl-udp
2017-11-02 17:02:35 +01:00
Piotr Zierhoffer
da2f84db19 Add sample Renode scripts for rpl-udp example
This sample allows to run two connected TI CC23538DK nodes, connected
via radio, in the Renode Framework. The emulation loads the compiled
binaries for client and server nodes. It also fetches a precompiled
bootloader.
2017-11-02 17:02:35 +01:00
George Oikonomou
77f4e75acf
Merge pull request #146 from simonduq/pr/border-router-common
Move more border router code to common directory
2017-11-02 13:10:28 +00:00
George Oikonomou
517031f673 Improve code style and remove obsolete lines 2017-11-02 09:49:01 +01:00
Niclas Finne
18d8008264 Added simple energest example 2017-11-02 00:09:53 +01:00
Simon Duquennoy
71ed11cdea Border router: removed unused variable 'prefix' 2017-11-01 20:32:45 +01:00
George Oikonomou
a0fcec6f02
Merge pull request #142 from simonduq/pr/examples-readme
More README.md work for the examples
2017-11-01 16:01:00 +00:00
Simon Duquennoy
50f060477c RPL border router: move more shared functionality to common directory 2017-11-01 16:07:46 +01:00
Simon Duquennoy
2d2b60fe5b RPL border router: move webserver code to common directory 2017-11-01 16:07:46 +01:00
Simon Duquennoy
575966a63e
Merge pull request #145 from simonduq/pr/border-router-enhancement
Border-router: move border-router.c to top level for cleaner compilation
2017-11-01 15:34:09 +01:00
Joakim Eriksson
7e9c95f031
Merge pull request #143 from simonduq/pr/coap-example-rename
Move 'examples/coap-example' to 'examples/coap'
2017-11-01 14:43:01 +01:00
Simon Duquennoy
3a3a30cb69 Border-router: move border-router.c to top level for cleaner compilation 2017-11-01 14:40:18 +01:00
Simon Duquennoy
16a77d97f7 Move 'examples/coap-example' to 'examples/coap' 2017-11-01 09:31:20 +01:00
Simon Duquennoy
dfb7940d17 Added general RPL border router readme 2017-11-01 09:27:51 +01:00
Simon Duquennoy
c7316ad63d Added embedded RPL border router readme 2017-11-01 09:27:18 +01:00
Simon Duquennoy
79e823b4d3 Update slip-radio readme 2017-11-01 09:26:57 +01:00
Simon Duquennoy
3eb98851d5 Update rpl-udp example readme 2017-11-01 09:26:51 +01:00
Simon Duquennoy
3a4c7d5dc4 Update native RPL border router readme 2017-11-01 09:26:11 +01:00
Simon Duquennoy
193f55d79a Minor logging improvement for the border router 2017-11-01 08:51:41 +01:00
George Oikonomou
bfb744bdaa Delete platform-specific border-router example (jn516x/tsch/simple-sensor-network/) 2017-11-01 00:06:02 +00:00
George Oikonomou
c98a8c06d0 Delete platform-specific border-router example (jn516x/rpl/) 2017-11-01 00:06:02 +00:00
George Oikonomou
4654fe761d Combine all RPL Border Routers under a single, modular example 2017-11-01 00:06:02 +00:00
George Oikonomou
21dacd56c4 Provision for platform-specific example aspects
* Use early target identification
* Move sky-specific code to separate sub-dir
2017-10-31 23:30:37 +00:00
George Oikonomou
d09c54fe8e Use logging 2017-10-31 23:30:37 +00:00
George Oikonomou
3656d2f9ec Restore MAC state to on after we have received a prefix 2017-10-31 23:30:37 +00:00
George Oikonomou
6a5136ac76 Imprvove code style 2017-10-31 23:30:37 +00:00
George Oikonomou
c4616c4260 Make slip-specific putchar sky-specific 2017-10-31 22:26:23 +00:00
George Oikonomou
ab68be8672 Use the logging module 2017-10-31 22:26:23 +00:00
George Oikonomou
2388aa9302 Improve code style 2017-10-31 22:26:23 +00:00
George Oikonomou
ab894dcde1 Change functions to static 2017-10-31 22:26:23 +00:00
George Oikonomou
1d9a3c5668 Move sky-specific example code to separate sub-dir 2017-10-31 22:26:23 +00:00
George Oikonomou
87395d161b Allow the inclusion of target-specific header 2017-10-31 22:26:23 +00:00
George Oikonomou
96e63e99ef Allow the target to specify its own Makefile
This can allow the target to e.g. add sources to the build
2017-10-31 22:26:22 +00:00
George Oikonomou
9d2091fbde Remove platform-specific configuration 2017-10-31 22:26:22 +00:00
George Oikonomou
6da8976c5e Use top-level target identification 2017-10-31 22:26:22 +00:00
George Oikonomou
3cb93f7df7 Remove obsolete files and code 2017-10-31 22:26:22 +00:00
George Oikonomou
a05a6b59d0 Remove all unnecessary BAUD2UBR macro definitions 2017-10-31 21:56:38 +00:00
George Oikonomou
73544572cf Change all calls to adhere to new prototype 2017-10-31 21:56:38 +00:00
George Oikonomou
3460a4c735 Don't assume the platform will provide uart1.h 2017-10-31 21:56:38 +00:00
Simon Duquennoy
13f8db6290 Rework rpl-udp example. No more need for hardcoded IPv6 addresses. As the server is also the root, simply send to the DAG root (known via RPL DAG ID) 2017-10-31 18:59:53 +01:00
Simon Duquennoy
e171a529f6 Update hello-world README.md 2017-10-31 18:59:53 +01:00
Simon Duquennoy
3418fff4df Move packet processing example as a new, simpler example: ipv6-hooks 2017-10-31 18:59:53 +01:00