There is a known problem with the way that timestamping is being done in TinyOS 2.x. There is an active discussion going on now in the core working group about what the right interface / implementation should be.
That said, there is an interface in place now if you need soemthing up and running right away. Take a look at the RadioTimeStamping interface in tinyos-2.x/interfaces and at teh components 'tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC' and 'tinyos-2.x/tos/chips/cc2420/transmit/CC2420TransmitC.nc' For now, you will have to access the RadioTimeStamping interface through these low level components directly, depending on which platform you are using. Hopefully, once the new interface and implementation are decided on, it can be exposed in some platform independent manner through ActiveMessageC. Kevin On Nov 13, 2007 7:40 AM, Michael Collett <[EMAIL PROTECTED]> wrote: > Hi, > > I've recently started with TinyOs 2 and I'm having a bit of trouble > understanding how to timestamp messages as they are received and transmitted: > > *I want to be able to (as precisely as possible) include the local node time > in a message at the point of transmission > -What interface do I need to use? > -How/at what point do I add this timestamp to the message payload? > > *I want to be able to (as precisely as possible) log the time of reception of > a message > -Can I use Metadata from the message? > -How do I go about this (do I need to wire directly to lower-level > components)? > > Your help would be greatly appreciated. > > Mike > ------------------------------------------------------------------- > This e-mail and any attachments may contain confidential and/or > privileged material; it is for the intended addressee(s) only. > If you are not a named addressee, you must not use, retain or > disclose such information. > > NPL Management Ltd cannot guarantee that the e-mail or any > attachments are free from viruses. > > NPL Management Ltd. Registered in England and Wales. No: 2937881 > Registered Office: Serco House, 16 Bartley Wood Business Park, > Hook, Hampshire, United Kingdom RG27 9UY > ------------------------------------------------------------------- > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- ~Kevin _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
