Songwei: If you use an rfxlink based stack (rf230, cc2520, cc2420x), then here is what you can do:
The totalRetries variable in tos/lib/rfxlink/layers/PacketLinkLayerP.nc contains the number of retries. You can change the code such that this value is exposed e.g. by adding an interface that allows for getting the retry value. Just make sure that you check the number of retries in the sendDone event, because later it may become invalid. Janos On Wed, Sep 12, 2012 at 9:47 AM, Songwei Fu <[email protected]> wrote: > Hi, > > I know that I can set the maxRetries and retryDelay using interface > PacketLink. But is there a way to know that the actual number of retries > that has been done by the mote to send a message? > > Regards, > Songwei > > _______________________________________________ > 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
