Commit Graph

84 Commits

Author SHA1 Message Date
Adam Dunkels
ec8c7e9be0 Cleanup of the node-id.h files. The node-id.h file contains
declarations of functions for setting and getting a node ID number, a
functionality that exists on many platforms. Since this functionality
was not considered part of the Contiki core, each platform defined its
own node-id.h file. This commit attempts to clean this up by
collecting the node-id.h into a core/sys/node-id.h file that replaces
the old node-id.h files from the platform directories.
2012-11-20 19:59:46 +01:00
Adam Dunkels
944537fccf Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree 2012-10-26 15:54:49 +02:00
Adam Dunkels
7faeb1fa3d Updated to use latest Rime APIs 2011-09-05 22:38:23 +02:00
Adam Dunkels
126899278c Include string header 2011-09-05 11:41:08 +02:00
Nicolas Tsiftes
a92b31ad21 Minor style improvement. 2011-06-23 15:21:20 +02:00
Niclas Finne
28780dff57 Removed example for deprecated Rime abstraction 2011-05-12 15:14:41 +02:00
Enric M. Calvo
425edf3a44 Cleaned up some files, moved z1-websense example 2011-03-16 17:41:03 +01:00
Enric M. Calvo
7c3527a062 ICTP: lowered radio power + print unicast data 2011-03-07 22:33:59 +01:00
Enric M. Calvo
ae67f3c257 added example-unicast2 and 3 for ictp 2011-03-07 16:33:01 +01:00
Enric M. Calvo
404b735cc4 Fixed radio and contiki conf to get RIME working
cc2420 isr handled at cc2420-arch, disabled accel. interrupts and modified
platform/z1/contiki-conf.h to use same mac as sky.
Added example-broadcast-button, sends packets every second or when button pushed.
Works with other Z1s and Sky
2011-02-27 12:35:19 +01:00
adamdunkels
820d6eb334 Allow the network to settle before sending first packet. Packet transmissions are now periodic, and randomized within each period. 2011-01-10 15:11:44 +00:00
nvt-se
540675bc6a Updated the announcement example to follow the current API. 2011-01-07 23:23:31 +00:00
adamdunkels
73cdccb9f4 New example that shows how to send and receive broadcast and unicast as well as how to use a simple Contiki list and a memb memory block pool. 2010-12-14 10:07:28 +00:00
adamdunkels
125656d3cd Let node ID 1 be the source 2010-11-15 21:50:02 +00:00
adamdunkels
ee6f542a06 Add checks for file size problems (fix by Roger Larsson) 2010-11-15 21:49:05 +00:00
adamdunkels
5cdc2e877f Don't place link if destination is the null address 2010-11-07 10:32:13 +00:00
adamdunkels
47e7fd35c2 Data collection example 2010-11-06 15:17:38 +00:00
adamdunkels
994e350026 Broadcast example 2010-11-06 15:03:48 +00:00
adamdunkels
6947e750d0 Removed left-over powertrace include 2010-11-06 14:43:45 +00:00
adamdunkels
f4671d63e1 Added network arrows in Cooja, fixed so that node ID 1 now is sink 2010-11-06 10:44:06 +00:00
adamdunkels
79ba20ddcc Updated to new collect router API 2010-03-25 08:52:23 +00:00
adamdunkels
f2c9b3e813 Remove old neighbor.h inclusion 2010-03-19 13:20:40 +00:00
adamdunkels
5be78ce843 The button sensor must be initialized before it is used 2010-02-03 21:11:33 +00:00
adamdunkels
50b2118731 Send to node 1.0 instead of 41.41, to make the example work better in Cooja. 2010-02-02 16:36:46 +00:00
nifi
bf04174bb3 Updated to match the new sensors API 2010-01-15 10:24:35 +00:00
joxe
a6abcbe578 fixed to compile with new sensors API 2010-01-14 14:32:22 +00:00
nvt-se
553589d0bb argument must be qualified as const 2009-12-28 18:18:23 +00:00
nifi
e032f7ac2c fixed compiler warnings 2009-12-18 15:26:35 +00:00
nifi
5de7d07093 fixed compiler warning 2009-11-19 17:31:23 +00:00
nifi
e6015bce4c added printout of sender of received messages 2009-11-19 17:29:41 +00:00
adamdunkels
e14a30262c Updated the Rime channel numbers so that all examples can be run in the same network without channel clashes 2009-10-18 17:52:08 +00:00
adamdunkels
f97cbce055 Added broadcast example for completeness 2009-10-18 17:49:24 +00:00
fros4943
7741d58cdb minor fix: removed superfluous etimer_reset 2009-06-09 19:31:55 +00:00
fros4943
45e3b5a8b3 transmit with random intervals: 2-4 seconds 2009-06-09 09:27:03 +00:00
adamdunkels
381beac299 Code style fixes 2009-05-06 15:03:49 +00:00
adamdunkels
d0b969ec5a Rewrote the multihop example to better show how to use the multihop layer. Now also shows how to use the memb, list, and annoncement mechanisms. 2009-03-23 18:10:09 +00:00
adamdunkels
65eb5fd4e8 Renamed the rimebuf module to packetbuf to signal that the module is used outside of a pure Rime context (e.g., the sicslowpan code uses it). 2009-03-12 21:58:20 +00:00
zhitao
77c8524aa5 wait until rime finishes forwarding to send 2009-03-10 14:36:48 +00:00
adamdunkels
151853ca37 Added example announcement code 2009-03-08 20:27:42 +00:00
fros4943
6c1207c5d5 updated runicast example: added sender history to detect duplicate callbacks 2009-03-03 12:28:39 +00:00
nvt-se
a0226e2418 switched all users of cfs_seek(x,y) to cfs_seek(x,y,CFS_SEEK_SET) 2009-02-27 14:28:02 +00:00
fros4943
ab61e8b8b5 bugfix: including random.h to avoid random_rand() assumed signed, and timer intervals becoming very very small 2009-02-17 08:44:44 +00:00
adamdunkels
585620c102 Reverted the recent change from random_rand() to rand(). It turned out that
since libc rand() returns a signed int, there were frequently problems with
timer values wrapping. By reverting to random_rand(), we can provide a
random generator that returns an unsigned and the timer problems are solved.
2009-02-11 11:08:53 +00:00
adamdunkels
9c4d2da561 Bugfix: it is etimer_reset() that makes timer behavior stable, not etimer_restart() 2009-02-07 22:38:01 +00:00
adamdunkels
67f649c4aa Use etimer_restart() to avoid synchronization effects from the abc_send() invocation taking time to complete 2009-02-07 22:28:25 +00:00
adamdunkels
c10ae7b6dc Increased the inter-packet time to work better on the sky platform 2009-02-07 16:17:33 +00:00
adamdunkels
2e55bb5151 Removed the blink process to make the code simpler, added randomness to the transmission intervals 2009-02-06 10:12:52 +00:00
nifi
4eebe9afd9 Updated to match new mesh API. Thanks to Carlo Alberto Boano for fixing. 2009-01-19 13:24:42 +00:00
nifi
677dd296a6 Updated to match new multihop API. Thanks to Carlo Alberto Boano for fixing. 2009-01-16 17:40:16 +00:00
adamdunkels
c0ce2efd89 Removed the rimeaddr ->u16 field 2008-12-01 15:19:11 +00:00