adamdunkels
f50b8db53b
Implement repeats with a periodic second timer to allow for greater range than what is possible with Contiki ctimers. Use RTIMER_NOW() instead of rtimer_arch_now().
2009-12-09 18:12:23 +00:00
adamdunkels
f4e6758b22
Use RTIMER_NOW() instead of rtimer_arch_now()
2009-12-09 18:08:26 +00:00
adamdunkels
9ac4109bad
Increased the clock speed to 32768/4 from 32768/8 to provide better accuracy for power profiling of radio CCA checks
2009-12-09 12:55:35 +00:00
adamdunkels
eff2203310
There were many bugs in the rtimer code, particularly one that made only one rtimer at a time work. We have a new rtimer system that we're testing, but in the meantime, I rewrote the rtimer code to explicitly support only one rtimer. Makes the code significantly simpler (and fixes a bug that was very hard to track down).
2009-12-08 23:55:17 +00:00
adamdunkels
f9260c4fae
Enable interrupts during the periodic clock processing to allow rtimers to execute on top of the clock
2009-12-08 23:40:14 +00:00
adamdunkels
a4df6e0fbf
Remove the read from TAIV - this should not be done for TIMERA0 interrupts (in fact, doing so messes up the other timer a interrupts, like the clock tick...)
2009-12-08 23:39:45 +00:00
adamdunkels
873f4d0222
Need to clear the interrupt flag register for Timer A
2009-12-07 14:32:16 +00:00
fros4943
5660d6c168
bugfix: returned radio on during boot
2009-12-07 12:31:19 +00:00
fros4943
be1c818938
statistics bug fix: divide by number of motes + show time ruler at zoom in/out
2009-12-07 11:14:02 +00:00
fros4943
c1520a7134
added support for multiple log mote interfaces / mote
2009-12-07 11:06:08 +00:00
fros4943
5e251b837a
hide interfered radio events when radio is not on
2009-12-07 11:04:15 +00:00
fros4943
38e0b7918a
set radio interfered even when it is turned off -> cca is set immediately when radio is turned on
2009-12-07 11:03:19 +00:00
adamdunkels
2f105e933a
Variable xmac_is_on was used both in interrupt and non-interrupt contexts and needs to be volatile
2009-12-06 23:29:38 +00:00
adamdunkels
df784546ee
Remove sniff and debug commands to save code space
2009-12-06 23:28:25 +00:00
adamdunkels
53457eb1f0
Fixed compilation warning
2009-12-06 17:10:54 +00:00
adamdunkels
8bcc838d8a
Bugfix: don't set the 'we are sending' flag until we are actually sending
2009-12-06 17:05:45 +00:00
adamdunkels
6897270289
Bugfix to the Contiki LPP encounter timing code: encounters are now
...
properly timed.
2009-12-06 13:18:32 +00:00
adamdunkels
822149f943
Significant improvements to the Contiki X-MAC:
...
* the code is simplified, particularly the duty cycling logic
* old unused code has been removed
* Contiki X-MAC now listens before sending a strobe to avoid MAC-level
collisions
* broadcasts are sent directly, without strobes, reducing the power
consumption of receivers
* turn off radio for 1 ms between sending a strobe and expecting the
strobe ack
2009-12-06 13:16:59 +00:00
adamdunkels
cef2e65c9b
Added an error type for signalling a MAC-layer collision
2009-12-05 21:49:51 +00:00
adamdunkels
e3fed27f4a
Broke out the CC2420 SFD interrupt into a separate file to allow easier overloading with project-specific files
2009-12-05 19:42:56 +00:00
adamdunkels
4a1a823a49
Code style fix
2009-12-05 13:29:41 +00:00
adamdunkels
6815e2a53f
Code style fix
2009-12-05 11:26:20 +00:00
fros4943
9ec2b64008
added ESB helloworld test (cloned from Sky)
2009-12-02 17:16:57 +00:00
fros4943
5f88fac53c
renamed serial port mote interface SkySerial to MspSerial + replaced ESB's log mote interface with the new MspSerial (ESB motes can now read serial port data)
2009-12-02 17:12:32 +00:00
fros4943
36d09eaa69
requesting mote wakeup when receiving radio data + code cleanup (faster code)
2009-12-02 16:39:42 +00:00
fros4943
51f210b37f
removed unused and unneeded custom radio data classes
2009-12-02 16:29:36 +00:00
fros4943
2f9ccfa26d
merged mspsim's compile dialogs
2009-12-02 16:27:32 +00:00
fros4943
8bd7187491
the simulation object now handles the motetype configuration for motes; common functionality that was earlier implemented in each mote.
...
this patch allows the simulator more freedom for hand-picking mote class loaders
+ some debug output in experimental ImportAppMoteType
2009-11-27 15:53:10 +00:00
fros4943
a1b4597b95
fixed announcement compilation error
2009-11-27 14:27:50 +00:00
adamdunkels
aeefa75304
Fixed alignment problems in announcement packet creation
2009-11-27 12:49:27 +00:00
fros4943
236a6eee15
added new application mote type that loads a configurable application mote java class.
...
the new mote type makes it easier to create and load new application-level motes
2009-11-25 20:52:33 +00:00
fros4943
fa26d2f213
configure and load methods may throw a MoteTypeCreationException
2009-11-25 20:48:22 +00:00
fros4943
93672649d2
made project class loader public + throw exception is mote class could not be loaded
2009-11-25 20:47:18 +00:00
fros4943
ac424ca88a
bugfix: interfered nondestination radio
2009-11-25 18:13:05 +00:00
fros4943
7d6ee814da
added documentation
2009-11-25 16:05:47 +00:00
fros4943
ff93ba8e0f
decreased transmission interval and increased transmission duration of disturber mote, since short packets could still get through with the current settings
2009-11-25 16:03:00 +00:00
fros4943
d77d7ab667
updated mspsim.jar: implements cc2420's crc footer
2009-11-25 15:51:15 +00:00
fros4943
451be82efd
radio connection update: radio should not be removed from destinations, but instead flagged as interfered.
...
(and the radio medium will keep delivering data also to interfered destinations to avoid the half-filled RXFIFO problem)
+ minor fix: the received signal strength is the maximum of all sending radio
2009-11-25 15:49:58 +00:00
fros4943
5c67d113c8
minor bug fix: arraydequeue may return null entries
2009-11-25 15:44:51 +00:00
fros4943
3c4fe0e3b7
closing fileoutputstream
2009-11-25 15:43:45 +00:00
fros4943
24d0330d2d
radio connection update: radio should not be removed from destinations, but instead flagged as interfered
2009-11-25 15:43:03 +00:00
fros4943
45d23c026e
new radio medium method signature + increased history size
2009-11-25 15:40:46 +00:00
fros4943
0a9e9dea59
* observing motes' radio states ("is transmitting") instead of radio events ("started transmitting").
...
previously the last radio event was logged in the Timeline, which could be very confusing when a radio was interfered while transmitting a packet: it looked like the radio stopped transmitting. (this behavior did not, however, affect the simulation output but only the timeline)
* added Radio Logger menu option shortcut, for quickly moving from the Timeline to the Radio Logger plugin
* minor ui fixes regarding event tooltips: tooltip info appear at mouse clicks
2009-11-25 15:39:57 +00:00
fros4943
d27a2dfb5b
added Payload Alias for easier overview of several packets with identical payloads.
...
added Timeline menu option for quickly viewing the selected radio packet in the Timeline plugin.
2009-11-25 15:32:34 +00:00
fros4943
d4f674c053
updated obsolete method signature:
...
when the radio medium was still tick-based, several radio connection could finish "simultaneously" (during the same tick), which is no longer possible
2009-11-25 15:26:35 +00:00
fros4943
2955eb9798
distinct between a radio connection's interfered radios, and interfered destination radios: interfered destinations still receive connection data
...
+ faster code and updated documentation
2009-11-25 15:21:15 +00:00
fros4943
7e6fbd9f7b
output warning if radio shuts down during transmission
2009-11-25 15:18:11 +00:00
fros4943
01e9498dd9
radio medium update: receiving nodes that become interfered still receive connection data, but may (should) choose to ignore or corrupt it.
...
this solves a problem with half-filled FIFO buffers on CC2420 radio platforms
+ minor fixes: the received signal strength is the maximum of all active connection, and a transmitting radio may still be interfered
2009-11-25 10:36:08 +00:00
fros4943
5ed294f001
minor patch: remember last exported jar filename
2009-11-25 10:29:21 +00:00
fros4943
c0e115895d
when a receiving radio is interfered by another transmission, the actual data received is corrupted.
2009-11-25 10:01:55 +00:00