[Tinyos-devel] timesync

Omprakash Gnawali gnawali at usc.edu
Wed Feb 27 20:29:44 PST 2008


On Wed, Feb 27, 2008 at 7:24 PM, Philip Levis <pal at cs.stanford.edu> wrote:
>
>
>  On Feb 27, 2008, at 7:13 PM, Miklos Maroti wrote:
>
>  > Hi!
>  >
>  >> Why is getNow() in TimeSyncPacket interface?
>  >
>  > Good question. There is only one standard time source in tinyos:
>  > LocalTime which is a 32-bit 32KHz timer. I envision that we need a
>  > finer resolution (TMicro), so we either need to make LocalTime
>  > parametric, or have the getNow command inside the TimeSyncPacket
>  > interface. Either is fine for me.
>
>  There is also something to be said for utility. If users of an
>  interface almost always want to use some commands another interface
>  as well, then merging those in (assuming it won't add code bloat due
>  to bad inlining) reduces how many wirings you need to write. An
>  example of this was adding commands to Send.
>


Sure then we probably need to rename TimeSyncPacket to something else
because it sounds strange to read time using TimeSyncPacket interface.
Unfortunately, I don't have a better idea right now.

- om_p


More information about the Tinyos-devel mailing list