[Tinyos-help] Bug In Arithmetic Ops

Christophe Braillon christophe.braillon at inrialpes.fr
Tue Nov 20 14:59:48 PST 2007


Are you sure that you have no warning like "non-atomic read or write"? 
It would be really surprising if the hardware or compiler had bugs on 
that kind of basic operation...

Federico Fiorentin a écrit :
> 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.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


More information about the Tinyos-help mailing list