I've used the: call Timer0.getNow() interface command to record the value of a millisecond timer just before calling send() and just after sendDone() is signalled before in order to record that delay...? There's probably a way to record "jiffy" timestamps fropm the interface - if you come across something like that or something not requiring a timer I'd love to know! :) I tried using the LocalTime interface as well, I think it worked similarly in ms.
If you come across the method(s) for timestamping at the actual Tx time rather than before calling send() I'd like to know too! I was hoping to be able to somehow stick a timestamp into a packet at the time of send (either by editing a field in the message or by tacking on a footer as it's being transmitted) but have not yet found the right calls to play with. -Ben > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Tal > Rusak > Sent: 07 January 2008 22:11 > To: Philip Levis > Cc: [email protected] > Subject: Re: [Tinyos-help] Packet Transmission Delays > > > The most useful for my application will probably be "the > time from > send() to sendDone()", since I need to coordinate several actions > based on the time at which a packet would be received if the > transmission is successful (but without depending on it actually > being received, i.e., without using the receive event). > > Thanks, > Tal > > > > > On Jan 7, 2008, at 12:04 AM, Tal Rusak wrote: > > > >> Hi, > >> Is it possible to tell (or measure) precisely the time it > >> takes to > >> transmit a packet in the example applications TestSerial > (for packets > >> sent to and from the serial port) and RadioCountToLeds > (for mote-mote > >> radios)? If so, how? > >> Thanks for your help in advance. > > > > By "time it takes to transmit" do you mean the duration of time from > > the first to the last bit, the time when the first bit is sent, or > > the time from send() to sendDone() (i.e., including RF backoff, > > serial control messages, etc.). > > > > Phil > > > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/t inyos-help ******************************************************************************* Please consider the environment before printing this email. ******************************************************************************* This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may not be divulged to any third party without the express permission of the originator. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thales Research & Technology (UK) Limited. ******************************************************************************* _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
