[Tinyos-devel] improving FTSP interface
Miklos Maroti
mmaroti at math.u-szeged.hu
Fri Aug 8 10:55:50 PDT 2008
> In that case, excluding wraparound, there is no possibility that 5
> units difference between previous time and current time is different
> from 5 units?
Yes, it is possible because of skew (global time might run faster than
the local time), or the time offset could change slightly over time
(if the globla time and local time is not exactly linearly dependent
because of crystal instability). However, the effect of these should
be minimal (+/- 5%) compared to the local time difference. So if your
application periodically wakes up using a Timer every 2^30 local time
units, then it should not miss any wrap around.
By the way, you can query the root (leader) node id via the
TimeSyncInfo interface. I think the overflow event could go into this
interface as well.
Miklos
More information about the Tinyos-devel
mailing list