[Tinyos-help] Bug In Arithmetic Ops

Federico Fiorentin f.fiorentin at gmail.com
Tue Nov 20 11:51:04 PST 2007


Bug In Arithmetic Ops

I'm developing a synchronization algorithm for Tmote Sky in TinyOS2 with a
Poller and 2 Clients.
The poller sends periodically a Request Packet, and the clients reply it.

In the Reply packet there's:
 the Request Packet receive timestamp (TS) ,
 a time value (TV) always inferior the timestamp
 and them difference (TS - TV).

I found out that the subtraction evaluated by the mote isn't always correct,
sometimes it diverge of 1,2,4,8.... it seems that the mote doesn't calculate
correctly when it's stressed.

Any suggestion is welcome.

Thanks,Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071120/d995a31a/attachment.html


More information about the Tinyos-help mailing list