Commit graph

10395 commits

Author SHA1 Message Date
Simon Duquennoy 36f6ce7b82 Added NXP JN516x regression testing 2015-09-23 14:38:43 +02:00
Simon Duquennoy 4811bb8edb Added *.jn516x to .gitignore 2015-09-23 14:38:42 +02:00
Simon Duquennoy 0780e1a051 Added NXP JN516x examples 2015-09-23 14:38:41 +02:00
Simon Duquennoy 11f9b780c8 Added tools for NXP JN516x 2015-09-23 14:38:40 +02:00
Simon Duquennoy bd7d45080d Added NXP JN516x platform 2015-09-23 14:38:31 +02:00
Nicolas Tsiftes b8cccb6d3c Merge pull request #1183 from simonduq/galois_mul2
galois_mul2 conditional-free implementation
2015-08-31 14:41:17 +02:00
Nicolas Tsiftes 5a6c1bf948 Merge pull request #1223 from alignan/removed_unused_max_dag_entries
Remove unused RPL_CONF_MAX_DAG_ENTRIES
2015-08-31 13:27:59 +02:00
Adam Dunkels 023deaf49f Merge pull request #862 from tadodotcom/ctimer-set-process
feat(ctimer): API extension to explictly state the process a ctimer belongs to
2015-08-31 11:51:32 +02:00
Valentin Sawadski 2cd74d043d CTIMER API extension to explictly state the process a ctimer belongs to 2015-08-31 10:31:36 +02:00
Simon Duquennoy ddf970d3db Merge pull request #695 from sdefauw/contiki
IPv6 prefix bug
2015-08-29 20:27:50 +02:00
Antonio Lignan 90eca482ea Remove unused RPL_CONF_MAX_DAG_ENTRIES 2015-08-29 20:22:18 +02:00
Simon Duquennoy cc3bcbefd4 Merge pull request #1076 from cmorty/pull/serialdump
Make EINVAL handling more robust and revert binary
2015-08-28 23:54:43 +02:00
Simon Duquennoy 7d8940f380 Merge pull request #1222 from joakimeriksson/rpl-remove-next
RPL: removed pointer to next parent since it is not used anymore
2015-08-28 20:09:52 +02:00
Joakim Eriksson 9e16d93278 removed pointer to next parent since it is not used anymore 2015-08-28 19:15:23 +02:00
Nicolas Tsiftes 607303ecdd Merge pull request #1081 from pablocorbalan/light
Remove old unused light drivers
2015-08-28 14:13:00 +02:00
Antonio Lignan 37470bbc1b Merge pull request #1055 from sumanpanchal/msp430x-elfloader
Added MSP430x ELFLOADER support to load image with large memory model.
2015-08-27 21:19:27 +02:00
Fredrik Österlind c3f61e2c79 Merge pull request #563 from cmorty/etimer_reset_set
Add function etimer_reset_set.
2015-08-27 13:08:37 +02:00
Fredrik Österlind 9738c5c396 Merge pull request #1218 from adamdunkels/pr/rpl-massive-test
RPL large-scale test & bugfix
2015-08-27 12:53:46 +02:00
Adam Dunkels e859ad8e05 Need to increase the Cooja serial buffer size to accomodate the traffic 2015-08-27 10:28:54 +02:00
Adam Dunkels 2b549f3789 Bugfix: need to explictly drop RPL packets by setting uip_len = 0, otherwise those packets are forwarded, with the wrong link layer address as a sender, causing the mesh to create false routes 2015-08-27 10:28:54 +02:00
Adam Dunkels 9cd84563cb Send a no-path DAO when becoming feather mode, so that the network can drop routes to us, which are no longer needed 2015-08-27 10:27:56 +02:00
Adam Dunkels 32511dc512 Enable the rpl-large test in travis 2015-08-27 10:27:56 +02:00
Adam Dunkels 52006aec0f Simulation test with more RPL nodes than the network can handle that attempt to access a remote HTTP server. After completing their connection, they go to feather mode, freeing up route table entries in the network, to let more nodes reach the HTTP server 2015-08-27 10:27:56 +02:00
Adam Dunkels bfb29d2f11 Merge pull request #1116 from cetic/pr-uip-clear-buffer
Add uip_clear_buf() macro and replace all instances of uip_len = 0
2015-08-27 10:27:08 +02:00
Antonio Lignan e801f44844 Merge pull request #1206 from simonduq/travis-mspgcc-4-7-2
Travis: upgrade mspgcc to 4.7.2
2015-08-27 09:37:08 +02:00
Nicolas Tsiftes 5db8006d0b Merge pull request #1032 from sumanpanchal/wismote-external-flash-driver
Wismote external flash driver
2015-08-26 13:18:18 +02:00
Fredrik Österlind 9dca7d78b1 Merge pull request #1201 from simonduq/new-merging-policy
New PR merging policy
2015-08-26 11:55:57 +02:00
Oliver Schmidt 7dc8ace067 Merge pull request #1214 from oliverschmidt/master
Fixed DHCP client.
2015-08-25 23:06:41 +02:00
Moritz 'Morty' Strübe 9b77aac542 Add function etimer_reset_set.
This new function is similar to reset, but allows to also set a new
timeout. Thus long-term accuracy with changing timeouts is now possible.
2015-08-25 17:03:44 +02:00
Oliver Schmidt 12fd559244 Fixed DHCP client.
RFC2131 states on page 36 regarding DHCPREQUEST: " 'xid' from server DHCPOFFER message "

As the DHCPOFFER message uses the 'xid' from the DHCPDISCOVER message this means that the DHCP client is supposed to re-use the 'xid' from its DHCPDISCOVER for the DHCPREQUEST.
2015-08-25 16:24:37 +02:00
George Oikonomou ea5216a9cb Merge pull request #1212 from jonnteolsson/cc13xx-contrib
Add support for the CC13xx
2015-08-25 16:58:53 +03:00
sumanpanchal fd5b03b767 WISMOTE external flash driver support 2015-08-24 22:50:22 +05:30
Antonio Lignan eaa8760a0d Merge pull request #1083 from uknoblic/cc1200
cc1200: New device driver for TI sub-ghz radio
2015-08-24 00:39:15 +02:00
Jonas Olsson 8cb7562684 Improve the SPI and external flash driver for the sensortag
For the SPI
* We improve the return semantics of _read() and _write()
* We set speed based on the value returned from ti_lib_sys_ctrl_clock_get() instead of using a hard-coded value

External flash changes:
* Rename macros to match instruction names
* verify_part(): Return a different value when the device is powered down and when communication fails
* Change return value semantics of static functions
* Adjust checks of board_spi_ return values
* Wait for BUSY to clear before attempting to send PD
* Accept two possible flash parts: W25X40CL (4MBit) as well as the W25X20CL (2MBit)
2015-08-23 20:41:13 +01:00
Jonas Olsson 67045d4012 Export RSSI to default parent in the CC26xx web demo
The current version of the CC26xx web demo publishes over MQTT the default parent's IPv6 address and the last observed RSSI of this link. This is collected by active probing (periodic ping).

This commit brings the probing functionality to the example's main code module. The MQTT client keeps publishing as previously, but we now also export the same information through CoAP resources. Configuration is still possible through the example's web server.
2015-08-23 20:41:12 +01:00
Jonas Olsson e96b15773a Document how to use the debugger devpack 2015-08-23 20:41:12 +01:00
Jonas Olsson f4576a635f Document CC26xx/CC13xx border router and slip-radio 2015-08-23 20:41:12 +01:00
Jonas Olsson bad7eb2bc8 Add a very sleepy CC26xx/CC13xx demo
This demonstraties how to combine CC13xx tick suppression, RPL leaf mode and turning off ContikiMAC duty cycling to build an extremely low-consuming firmware.
2015-08-23 20:41:12 +01:00
Jonas Olsson 72b586cb7d Modify cc26xx examples to play nicely with the CC13xx addition 2015-08-23 20:41:11 +01:00
Jonas Olsson 3d19b0036e Add support for SmarfRF06 + CC1310EM
This commit updates the srf06-cc26xx platform by adding support for the CC1310EM.

We generalise the way this platform selects CPU/board so that we can easily add more combinations in the future. These changes have implication on how to build for different devices, so make sure to have a look at the updated README
2015-08-23 19:54:43 +01:00
Jonas Olsson 01e36532c2 Add support for the CC13xx CPU
This commit:

* Moves all cpu files from cpu/cc26xx to cpu/cc26xx-cc13xx
* Bumps the CC26xxware submodule to the latest TI release
* Adds CC13xxware as a submodule
* Adds support for sub-ghz mode / IEEE 802.15.4g
* Splits the driver into multiple files for clarity. We now have the following structure:
  * A common module that handles access to the RF core, interrupts etc
  * A module that takes care of BLE functionality
  * A netstack radio driver for IEEE mode (2.4GHz)
  * A netstack radio driver for PROP mode (sub-ghz - multiple bands)

This commit also adds tick suppression functionality, applicable to all chips of the CC26xx and CC13xx families. Instead waking up on every clock tick simply to increment our software counter, we now only wake up just in time to service the next scheduled etimer. ContikiMAC-triggered wakeups are unaffected.

Laslty, this commit also applies a number of minor changes:
* Addition of missing includes
* Removal of stub functions
* Removal of a woraround for a CC26xxware bug that has now been fixed
2015-08-23 19:54:42 +01:00
Ulf Knoblich bfcea70831 Removed NULLRDC specific stuff from rf configuration as it is not the correct place to define it 2015-08-20 16:00:18 +02:00
Simon Duquennoy a5e3faca5f Travis: upgrade mspgcc to 4.7.2 2015-08-20 10:09:45 +02:00
Antonio Lignan 6c6a1af70d Merge pull request #1202 from simonduq/fix-travis-icon
Fix Travis icon in README.md
2015-08-19 11:37:02 +02:00
Simon Duquennoy 7e0638b00f Travis icon in README.md: show build status of the current master rather than latest build status (can be any pull request) 2015-08-19 09:21:38 +02:00
Simon Duquennoy eb0da7dfe9 Updated CONTRIBUTING.md to reflect Contiki's new merging policy 2015-08-18 22:06:56 +02:00
George Oikonomou 63bb46f01b Merge pull request #1174 from bkozak-scanimetrics/cc26xx_fix_read_frame_implementation
Cc26xx fix read frame implementation
2015-08-15 00:44:26 +01:00
Billy Kozak feec05cdf2 CC26xx - fix misuse of len variable in read_frame
read_frame was misuing the packet length in the following ways:
- returning non-zero even if buf_len is too short for the packet
- truncating the length to buf_len if len is too long then using the
  truncated (i.e. wrong) length to index into the buffer
- memcpying too many bytes (used buf_len instead of real length)

This commit fixes all of this and adds some code to report
on packet length errors (to match with cc2538 driver).
2015-08-14 12:44:55 -06:00
Billy Kozak ceb24f656e Improved style of read_frame
- moved variable declaration to top of function in accordance with the
  Contiki style guide
- made function flatter, reduced nesting to improve readability
2015-08-14 12:43:34 -06:00
Billy Kozak 547f8e7aaa Fixed race condition with rf cpu in read_frame
Fixed a race condition that could occur in read_frame because the
dataEntry is set to PENDING before we are finished reading from it.
2015-08-14 12:42:10 -06:00