As Janos said it's hard coded for each platform so some poking around is in order to find out for yours. It's pretty much the roundtrip time for a single byte message if I understand the mechanism.
However, and again this may be T1 specific, I found the timeout on the Java side to be set around 1 sec in Packetizer.java, which made my PC->mote recovery creapy slow. I changed the value to a public so I could fiddle it per application requirements. MS Andrey Gursky wrote: > Thanks Janos! > > It's really short enough so I'll better keep it :) > > Andrey > > > > Janos Sallai wrote: >> The length of this timeout is radio stack specific. It's approximately >> 800us on the IRIS. It's actually hard-coded into RF230ActiveMessageP.nc. >> I suggest that you do not change it, unless you know what you're doing. >> >> Janos >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Andrey >> Gursky >> Sent: Tuesday, July 22, 2008 4:21 PM >> To: Michael Schippling >> Cc: [email protected] >> Subject: Re: [Tinyos-help] Event sendDone done after the message is >> received? >> >> Hello! >> >> Janos has pointed me to the appropriate interface in T2. Michael, thanks >> >> for the information about ACK in T1. >> >> Interesting how long is this timeout in T2 by default and whether it can >> >> be simply changed? >> >> >> Andrey >> >> >> Michael Schippling wrote: >>> I can't opine on T2 because I don't use it. >>> I would hope that the semantics are similar, >>> in which case, with ACKs enabled, you should >>> see true/false on the indicator where false >>> would be a timeout. In T1 this increases the >>> time between send and done by the timeout length. >>> >>> MS >>> >>> Andrey Gursky wrote: >>>>>> If you have ACKs enabled and are sending point-to-point messages >>>>>> then sendDone() is signaled after the ACK is received or times out. >>>>>> Otherwise, w/o ACKs, and for BCAST messages, sendDone() is signaled >>>>>> when the transmitter is finished sending. >>>>> Is it hopefully possible to distinguish between received ACK and >>>>> timeout? With value in error definitely not. But maybe there is some >>>>> function (for CC2420 and RF230), could be called in sendDone to get >>>>> the answer whether it was ACK or timeout? >>>>> >>>> Michael, I've seen your answer regarding ack, but it was for T1. I've >>>> forgotten to mention I use T2. It should be something like >>>> msg->..?..->cc2420.ack in sendDone() for MicaZ? And is there also ack >>>> for IRIS? >>>> >>>> Andrey >> _______________________________________________ >> Tinyos-help mailing list >> [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 _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
