Commit graph

3340 commits

Author SHA1 Message Date
nvt-se b8f3dca765 fixed merge_log bug and space allocation error with isolated pages. 2009-02-12 11:24:22 +00:00
adamdunkels 13a3029435 Rewrote the random_rand() pseudo random number generator to use the libc rand() function instead 2009-02-11 11:09:59 +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 b80d3cfdb9 Added a . to the SOURCEDIRS variable so that system files can be overridden by having a file with the same name in a local directory 2009-02-11 09:03:52 +00:00
adamdunkels 9d75781a78 Added packet attributes for energy spent on a packet (RIMEBUF_ATTR_LISTEN_ENERGY and RIMEBUF_ATTR_TRANSMIT_ENERGY) 2009-02-10 23:51:12 +00:00
adamdunkels b15198b9a8 Bugfix: the Chameleon header parser modules should not clear the packet attributes, because the MAC or radio layers may have added attributes already 2009-02-10 23:49:58 +00:00
adamdunkels e1ef13dad6 Reduced the size of the packet cache from four to two to avoid falseley dismissing fresh packets (the header field that hold sequence numbers is only two bits wide, hence all sequence numbers fits in a four-entry cache...) 2009-02-10 00:44:50 +00:00
adamdunkels 6c95bd895a Added default initialization of polite announcements. Not sure where the best place for this is, but this at least allow us to start experimenting with this. 2009-02-09 22:05:33 +00:00
adamdunkels 3efb83c338 Added announcement includes 2009-02-09 21:09:42 +00:00
adamdunkels 0de445e035 Initialize the announcement module 2009-02-09 21:08:12 +00:00
adamdunkels 3670ef2f44 Rewrote the collect module so that it uses the announcement module rather than the neighbor-discovery module. This makes it possible to implement other annoumcement back-ends than the traditional broadcast-based neighbor discovery 2009-02-09 20:58:25 +00:00
adamdunkels 37e15ab537 Use C rand() instead of random_rand() 2009-02-09 20:54:49 +00:00
fros4943 51006b3f8d webserver bugfix, caused nightly wget test to fail:
* too many timer_reset will naively increase the start-time, even though timer has not expired. use timer_restart instead
2009-02-09 13:04:37 +00:00
nvt-se 98f7f9a06a sizeof on coffee_fd_set is no longer suitable since it has become a
pointer.
2009-02-09 12:02:10 +00:00
fros4943 f1fc4c879f cfs_coffee_get_fd_set() was renamed 2009-02-09 10:09:13 +00:00
fros4943 4f7f3c97b5 * added coffee_files to the protected memory needed during cfs-based checkpointing operations
* renamed cfs_coffee_get_fd_set() to cfs_coffee_get_protected_memory() to highlight that not only fd_set is protected
2009-02-09 10:08:26 +00:00
adamdunkels 9b23d1553e Removed left-over log output 2009-02-08 21:06:23 +00:00
adamdunkels dd9ffd87c4 Added missing #include announcement.h 2009-02-08 20:14:18 +00:00
adamdunkels 0d1e7e9b32 Improved parsing of serial data and output 2009-02-08 19:38:22 +00:00
adamdunkels 54b4226f70 Nightly test that runs Contiki's shell collect command in much the same way as the Contiki collect program does 2009-02-08 19:34:34 +00:00
adamdunkels 085df6b630 Improved version of LPP with support for broadcasts as well as announcement data in the probes 2009-02-08 19:30:18 +00:00
adamdunkels 37b86b9236 Added cr/nl to end of prompt to make scripting easier 2009-02-08 19:28:57 +00:00
fros4943 2d671a1265 Nimbus look and feel is not fully supported on many linux platforms:
* changing default look and feel to cross platform l&f on linux systems
2009-02-08 18:33:05 +00:00
nvt-se d0a546b049 A long refactoring session yielded the following.
Technical changes:

* Factored out file specific information from the file descriptor
  structure into a new file structure.

  - Useful file metadata can be stored after the file is closed.
  - File descriptors become much smaller.
  - Significantly reduces the need to scan for the file end.

* Use correct types in all function signatures.
* Removed the directory cache.

Results:

* Enormous speed increase when opening cached files (10x-20x.)
* Multiple fd:s pointing to the same file have the correct semantics.
* About 100 bytes smaller ROM size.
* Slightly smaller static RAM size.
2009-02-08 17:08:13 +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 91d280c4c9 Reverted to the old behaviour on broadcasts: send strobes for both unicast and broadcast packets. 2009-02-07 18:45:50 +00:00
adamdunkels 4b71003c2f Changed from random_rand() to rand() for better pseudo randomness 2009-02-07 18:43:45 +00:00
fros4943 3fcd77f522 increased default java memory allocation for contiki tests 2009-02-07 17:24:15 +00:00
adamdunkels 440899e4cb Seed rand() with the node ID + MAC address 2009-02-07 16:49:36 +00:00
joxe 250ed0b910 updated mspsim with support for setting node id 2009-02-07 16:39:43 +00:00
joxe 4b78e80bda added MAC address setting - setNodeID in SkyNode 2009-02-07 16:38:51 +00:00
adamdunkels 29ec3b02f5 A nightly test of the Rime collect protocol on the sky platform 2009-02-07 16:18: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 752291f450 Changed from random_rand() to rand() function for (pseudo) random numbers because random_rand() does not work that well 2009-02-07 16:16:31 +00:00
adamdunkels 91e8487032 Added Doxygen documentation 2009-02-07 16:15:37 +00:00
adamdunkels cf57c8189f Added a nightly test for the Rime collect protocol 2009-02-06 10:13:55 +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
adamdunkels be846d8c90 A new experimental network primitive called an 'announcement'. An
announcement is an (ID, value) tuple that is disseminated to local
area neighbors. An application or protocol can explicitly listen to
announcements from neighbors. When an announcement is heard, a
callback is invoked.

Announcements can be used for a variety of network mechanisms such as
neighbor discovery, node-level service discovery, or routing metric
dissemination.

Application programs and protocols register announcements with the
announcement module. An announcement back-end, implemented by the
system, takes care of sending out announcements over the radio, as
well as collecting announcements heard from neighbors.
2009-02-05 19:32:01 +00:00
adamdunkels 5cf0c25ca6 A few more minor fixes 2009-02-04 20:58:05 +00:00
adamdunkels 96882c402a Fixed conformance to Contiki code style :) 2009-02-04 20:55:41 +00:00
joxe 9689a579be added DCO/CPU speed re-synch each 30 seconds 2009-02-04 19:32:20 +00:00
joxe 80848e4106 added DCO-resync function and default config 2009-02-04 18:28:44 +00:00
fros4943 80feb7ad57 added experimental checkpointing functionality:
currently only implemented on the sky platform
2009-02-04 18:12:57 +00:00
fros4943 3c11bf4d8c start each log file with its filename 2009-02-04 17:58:17 +00:00
fros4943 1795dbf199 added checkpoint and rollback commands:
writes/reads checkpoint images from file system.

(temporarily disabled rime debug and sniff commands)
2009-02-04 17:54:28 +00:00
fros4943 520ad77046 sky checkpointing test:
Tests node local checkpointing on the Sky platform. A single node checkpoints and rollbacks with a repeating echo background process. Running examples/sky-shell/sky-shell.c
2009-02-04 17:53:16 +00:00
fros4943 c16921f108 checkpointing library implemented for the sky platform (cfs interface is currently not optimized) 2009-02-04 17:51:49 +00:00
fros4943 bf39076206 added experimental checkpointing functionality:
currently only implemented on the sky platform
2009-02-04 17:49:15 +00:00
nvt-se fda75c4c08 Use the right type for pages in the directory cache. This makes the
cache much smaller on most platforms.
2009-02-03 16:21:53 +00:00