Hi!

On Thu, 11 Feb 2010, Arik Sapojnik wrote:

> Hi all,
>
> Is there a way to know the number of retries it took to deliver the message?
>

I never tried this but the CC2420 driver is saving the number or attempts 
it made in the maxRetries. This value can be retrieved with 
PacketLink.getRetries.

    104    command uint16_t PacketLink.getRetries(message_t *msg) {
    105      return (call CC2420PacketBody.getMetadata(msg))->maxRetries;
    106    }

    220    void signalDone(error_t ror) {
    221      call DelayTimer.stop();
    222      call SendState.toIdle();
    223      (call CC2420PacketBody.getMetadata(currentSendMsg))->maxRetries = 
totalRetries;
    224      signal Send.sendDone(currentSendMsg, error);
    225    }

-- Razvan ME
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to