If you have ACKs enabled then sendDone() is signaled either after the ACK has arrived, which extends the "sending" time by a small amount -- the ACK is usually a single byte, or when a timeout expires -- which extends the time a lot.
MS trilok i wrote: > yes i'm measuring send() to sendDone() time. I also have one doubt that, > is sendDone() is signaled only when the sender receives ACK from > receiver of that particular packet?. > > > Date: Thu, 25 Jun 2009 10:51:48 -0600 > > From: [email protected] > > To: [email protected] > > CC: [email protected] > > Subject: Re: [Tinyos-help] Need Help on Timers > > > > I'm posting this back to the help list to keep a record. > > > > I don't know what you are measuring, send() to sendDone()? > > If that's the case the times look to be long by an order > > of magnitude. > > > > MS > > > > trilok i wrote: > > > hi micheal, > > > > > > After your explanation, I set Jiffies( 30.5 us ) in my application > and I > > > got packet sending time as 87.96ms , 99.369ms, 102.724ms, 93.4825ms, > > > 101.253ms, 102.56 ms . Here is , how i calculated values . > > > > > > I got 3368 as my jiffie value for each packet then > > > > > > ( 3368 * 30.5 micros seconds ) / 1000 = 102.724ms . > > > > > > I'm using same mote for sending and receiving packets . Is the times > > > which i got is correct and appropriate. > > > > > > > Date: Wed, 24 Jun 2009 13:42:27 -0600 > > > > From: [email protected] > > > > To: [email protected] > > > > CC: [email protected]; [email protected] > > > > Subject: Re: [Tinyos-help] Need Help on Timers > > > > > > > > I believe that is all correct. Add the proviso that subsequent > > > > start()s will "erase" whatever the specific Timer was doing > > > > before so if you call REPEAT followed by ONE_SHOT you should > > > > only get one fired() event 1000 ticks after the last start(). > > > > > > > > The ticks are "binary" on (I believe) all platforms, meaning > > > > 1024/second. For sub-microsecond timing there are JiffyTimers > > > > and others I don't remember offhand. > > > > > > > > MS > > > > > > > > ලසන්ති wrote: > > > > > > > > > > > > > > > I was getting confused and frustration on timers concept. > > > > > Please, I need help for better understanding. Can anyone say what > > > > > happens when i set Timer.start(TIMER_REPEAT,1000) and > > > > > Timer.start(TIMER_ONE_SHOT,1000); > > > > > > > > > > > > > > > *First of all, i should tell that these two functions are in > TinyOS 1, > > > > > not TinyOS 2x. So, you should be working on TinyOS 1. > > > > > then your questions: > > > > > ** Timer.start(TIMER_REPEAT,1000) : by calling this, you set a > timer > > > > > which signals a fired() event in every 1000 time. For an > example if > > > you > > > > > want to read the phenominon in every 1000 time period, then you use > > > > > TIMER_REPEAT. > > > > > Timer.start(TIMER_ONE_SHOT,1000) : this signals fired() event only > > > once. > > > > > * > > > > > > > > > > > > > > > > > > > > and what about Timer.fired(). Is Timer.fired() is signaled for > > > > > every 1 tick of 1000 ( or ) for every 1000 ticks once. > > > > > > > > > > * once per every 1000 ticks * > > > > > > > > > > > > > > > > > > > > and what about if I want to find a time ( say 0.90 ms ) using > timers > > > > > for specific mote ( say telosb ). > > > > > > > > > > *i am not clear what do you mean by this question. But, cal > > > > > Timer.getNow() gives the current time.* > > > > > > > > > > *Note: I am also new to TinyOS, so i guess somebody else will > correct > > > > > me, if i am wrong or missing something.* > > > > > > > > > > Lasanthi > > > > > > > > > > > > > > > > > > > > > > > > > On Wed, Jun 24, 2009 at 11:06 AM, trilok i <[email protected] > > > > > <mailto:[email protected]>> wrote: > > > > > > > > > > Hi to all, > > > > > > > > > > I was getting confused and frustration on timers concept. > > > > > Please, I need help for better understanding. Can anyone say what > > > > > happens when i set Timer.start(TIMER_REPEAT,1000) and > > > > > Timer.start(TIMER_ONE_SHOT,1000); > > > > > > > > > > and what about Timer.fired(). Is Timer.fired() is signaled for > > > > > every 1 tick of 1000 ( or ) for every 1000 ticks once. > > > > > and what about if I want to find a time ( say 0.90 ms ) using > timers > > > > > for specific mote ( say telosb ). > > > > > > > > > > IF anyone explains this clearly, I can concentrate on my next > work . > > > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > Get easy photo sharing with Windows Live™ Photos. Drag n’ drop > > > > > <http://www.microsoft.com/india/windows/windowslive/photos.aspx> > > > > > > > > > > _______________________________________________ > > > > > Tinyos-help mailing list > > > > > [email protected] > > > > > <mailto:[email protected]> > > > > > > > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > _______________________________________________ > > > > > Tinyos-help mailing list > > > > > [email protected] > > > > > > > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > > > ------------------------------------------------------------------------ > > > Videos Get the latest video streams on movies, Try it! > > > <http://video.msn.com/?mkt=en-in> > > ------------------------------------------------------------------------ > Videos Get the latest video streams on movies, Try it! > <http://video.msn.com/?mkt=en-in> _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
