Commit graph

10420 commits

Author SHA1 Message Date
Nicolas Tsiftes 8a7e2e5892 Merge pull request #1240 from atiselsts/energest_accuracy
Improve energest accuracy
2015-09-07 15:35:35 +02:00
Fredrik Österlind dde83500c9 Merge pull request #1056 from tim-ist/packet_sync
[Cooja/cc2420] Check the frame preamble and MPDU length before parsing an outgoing packet
2015-09-07 14:36:15 +02:00
George Oikonomou dd640cd229 Merge pull request #1195 from bkozak-scanimetrics/cc26xx_improve_watchdog
CC26xx - various fixes and improvements for the watchdog module
2015-09-04 17:20:50 +01:00
George Oikonomou b6dac70474 Merge pull request #1231 from bkozak-scanimetrics/cc26xx_rf_core_fix_transmit_wake
CC26xx - enable correct IRQ in rf_core_cmd_done_en
2015-09-04 17:08:50 +01:00
Atis Elsts eac1973073 Introduce ENERGEST_SWITCH macro. It allows to switch between energest modes without running into the risk of losing a tick in the process 2015-09-04 11:49:02 +02:00
Atis Elsts 2f79810b58 Use ENERGEST_SWITCH to switch between different power modes to improve energest accuracy. 2015-09-04 11:46:00 +02:00
Billy Kozak b71353181d CC26xx - enable correct IRQ in rf_core_cmd_done_en
Fix for #1229

rf_core_cmd_done_en() was enabling the wrong irq for detecting the
completion of foreground operations. This was causing cc26xx devices
to not wake-up on time when calling lpm_sleep() from transmit().
2015-09-02 12:37:33 -06:00
Adam Dunkels 92c1a68b94 Merge pull request #1215 from joakimeriksson/rpl-child-locking
Move locking of neighbors / children from RPL to uip-ds6-route module
2015-09-02 19:42:45 +02:00
Simon Duquennoy 10395fffde Merge pull request #1230 from simonduq/fix-wismote-random-init
Fix Wismote randon_init for link-layer addresses shorter than 8 bytes
2015-09-02 17:44:57 +02:00
Simon Duquennoy 265b65c67c Fix Wismote randon_init for link-layer addresses shorter than 8 bytes 2015-09-01 19:57:37 +02:00
Antonio Lignan c792993664 Merge pull request #1226 from simonduq/z1-wismote-minor
Minor fixes to Z1 and Wismote
2015-09-01 14:15:20 +02:00
Fredrik Österlind 650de13ad8 Merge pull request #822 from cmorty/pull/cooja_saferandom
Make Random simulation thread safe
2015-09-01 11:13:23 +02:00
Fredrik Österlind 562a451191 Merge pull request #1224 from cmorty/pull/refactor
Pull/refactor
2015-09-01 10:58:27 +02:00
Simon Duquennoy 4904386f41 Wismote: init random seed 2015-09-01 10:51:25 +02:00
Simon Duquennoy db1635cf3c Z1: configure SFD timestamp with flag CC2420_CONF_TIMESTAMP, for consistency the Sky platform and with cc2420.c 2015-09-01 10:03:44 +02:00
Simon Duquennoy 34280338ac Z1: init random seed 2015-09-01 10:02:35 +02:00
Billy Kozak fde3202a3f cc26xx - added optional locking mode for WDT
Added a mode, configurable by the CONTIKI_WATCHDOG_CONF_LOCK_BETWEEN_USE
macro, which locks the WDT register between uses so as to prevent
any accidental modifications
2015-08-31 09:12:16 -06:00
Billy Kozak 22d8a8dd56 cc26xx - implemented watchdog_stop
Also modified watchdog_start so that if we stop and start again the
watchdog timeout will be reset (by calling watchdog_periodic).
2015-08-31 09:12:16 -06:00
Billy Kozak dfdb0a6487 cc26xx - fixed WDT reloading
According to the TRM, the WDT does not produce a reset until it
expires twice. After expiring the WDT will set the INT flag if it
is unset, and reset the MCU if INT is already set.

Before this patch, watchdog_periodic() only un-sets the INT flag. This
means that the behaviour of watchdog_periodic is underministic in that
the value of the countdown timer will be different depending on
when the function was called.

This patch fixes this behaviour by also reloading the timout value.
2015-08-31 09:10:26 -06:00
Billy Kozak 85555cf6cf Made cc26xx WDT reload configurable with macro
CONTIKI_WATCHDOG_TIMER_TOP sets the reload value of the WDT
2015-08-31 09:10:26 -06:00
Sebastian Schinabeck ef779d4fc1 settingsObservable superseded by radioMediumObserver
Wasn't used anyway
2015-08-31 14:59:53 +02:00
Sebastian Schinabeck c1a275f0b2 Refactored RadioMediumObservable and added new Observable
Refactored RadioMediumObservable to RadioTransmissionObservable because of its function
Added correct RadioMediumObservable and updating in AbstractRadioMedium, DirectedGraphMedium and MRM
Added some documentation
2015-08-31 14:59:47 +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
Sebastian Schinabeck 42077adbb1 Add ScnObservable class with setChangedAndNotify() function
The ScnObservable extends the normal Observable with the combined setChangedAndNotify() function
2015-08-31 14:40:39 +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
Joakim Eriksson 4d5c749cf7 removed locking of rpl-parent since it was never unlocked - moved to routing module 2015-08-27 18:45:06 +02:00
Joakim Eriksson 5dee80a253 added locking of nexthop for routes to avoid the risk of nexthop removal 2015-08-27 18:45:06 +02:00
Joakim Eriksson 7c2bff0462 added debug print for nbr-table-module 2015-08-27 18:45:06 +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