[Tinyos-help] CC2420 Hardware ACKs

David Moss dmm at rincon.com
Thu Feb 14 08:30:51 PST 2008


The CC2420 radio requires the acknowledgment request flag be set in the FCF
byte before it will automatically generate a hardware acknowledgment for any
received packet.

-David


-----Original Message-----
From: Rodolfo de Paz Alberola [mailto:rodolfo.depaz at cit.ie] 
Sent: Thursday, February 14, 2008 9:12 AM
To: David Moss
Cc: 'tinyos-help'
Subject: RE: [Tinyos-help] CC2420 Hardware ACKs

Hi David,

On Thu, 2008-02-14 at 08:56 -0700, David Moss wrote:
Are you requesting an acknowledgment before sending?

> 
> call PacketAcknowledgements.requestAck(&myMsg);
> call AMSend.send(0x0, &myMsg, sizeof(my_payload_t));
> 
No, I thought that only calling the command setAutoAck 
it should enable MDMCTRL0.AUTOACK leaving to the CC2420 radio chip 
all the process. 

This command that you mention for requesting acks I think that only
works for SW acks.


Does it the software work as expected using software acknowledgments?
> 
Yes, I did another application using software acknowledgments and it
works fine, 
but in this case I would like to use hw acks since i am trying to model
the 
cc2420 radiochip which has hw acks as well.

Thanks for your help. Any idea?

--------
Rodo

On Thu, 2008-02-14 at 08:56 -0700, David Moss wrote:
> Are you requesting an acknowledgment before sending?
> 
> call PacketAcknowledgements.requestAck(&myMsg);
> call AMSend.send(0x0, &myMsg, sizeof(my_payload_t));
> 
> Does it the software work as expected using software acknowledgments?
> 
> -David
> 
> 
> -----Original Message-----
> From: tinyos-help-bounces at millennium.berkeley.edu
> [mailto:tinyos-help-bounces at millennium.berkeley.edu] On Behalf Of Rodolfo
de
> Paz Alberola
> Sent: Thursday, February 14, 2008 4:28 AM
> To: tinyos-help
> Subject: [Tinyos-help] CC2420 Hardware ACKs
> 
> Hi all,
> 
> I was trying to set Hardware ACKs for CC2420 radio chip. I did a simple
> ping pong application in which I posted a task call ack() inside the
> event SplitControl.startDone(error_t error). 
> 
> The task call ack activates HW acknowledgements in the following way:
> 
> bool activated = TRUE;
> task void ack() {
>    atomic{
>       call CC2420Config.setAutoAck(activated,activated);
>       if (call CC2420Config.sync() != SUCCESS) {
>           post ack();
>       }
>    }
> 
> However, the mote that is sending messages is not receiving any ack.
> Should I do anything else to activate CC2420 HW acks?. Any help? 
> 
> Regards,
> 
> -----
> Rodo
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 




More information about the Tinyos-help mailing list