Hi Leijun,

what you have is software timers (when using many instances of Timer). The more you have, the more sw overhead there is, thus more drift. For accurate intervals you'll have to use a different approach with the hw timers.

Regards,

        Harri

At 08:27 PM 11/14/2005 -0500, Leijun Huang wrote:
Hello,

In TOSSIM, I have two timers, A and B. Timer A is started at the right
beginning and is repeated every 2048 ms. Timer B is started in a
message event handler (in ReceiveXXX.receive() and
SendXXX.sendDone()), and it is a one-shot timer. I found that without
Timer B activated, Timer A will fire repeatedly every 2048 ms. But
with Timer B activated, Timer A will have different intervals between
fires, sometimes 205x ms, sometimes with more drift. I also found that
with more simulated nodes, the drift gets bigger. Is there anyboday
having similar experience?

Thanks,
--Leijun

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to