[Tinyos-help] Help with Ack' s in CC2420TransmitP.nc
Ramon Duato Navarro
rduaton at tsc.uc3m.es
Fri Dec 12 07:41:39 PST 2008
Hi!
Maybe someone can help me.
I am working with TinyOs 2.1 and Micaz and want to understand
the link layer without using Packet Link Layer.
I am reading the CC2420Csma.nc CC2420TransmitP.nc file and I
am getting a bit confused with the ACK's
In CC2420TransmitP.nc, when you send a packet and receive an ACK then you call
signalDone(SUCCESS);
and the sendDone event is signalled with SUCCESS.
But what happens when you don't receive the ACK??
As far as I have understood, you call
call BackoffTimer.start( CC2420_ACK_WAIT_DELAY )
and when this Timer expires you call again
signalDone(SUCCESS);
(since we are in the ACK_WAIT state)
So , there are no retransmissions and you do the same signalling as if you had received the ACK.
Is that correct?
Thanks in advance!
Ramon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081212/c007bf50/attachment.htm
More information about the Tinyos-help
mailing list