Hi,

 

I have several questions about Acks for CC2420 in Tinyos 2.1.0.

 

1.       In the CC2420ControlP.nc, it seems that autoAck is enabled by
default, but why I cannot get ack at all by calling
PacketAcknowledgements.wasAcked(message_t* p_msg)?

 

2.       Then I tried to call CC2420Config.setAutoAck(TRUE, TRUE) and
CC2420Config.sync() to enable autoAck by hand, but still not successful by
calling PacketAcknowledgements.wasAcked(message_t* p_msg).

 

3.       Finally, I have to add PacketAcknowledgements.requestAck(&pkt)
before calling send, then I can have Acks from
PacketAcknowledgements.wasAcked(message_t* p_msg).

 

 

Is there anything wrong in my first two steps? Do I have to call
Acks.requestAck(&pkt) in order to have my Acks?

 

Thanks,

 

Jason

 

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

Reply via email to