On Jan 12, 2007, at 10:11 PM, Shuo Xiao wrote:

Hello everyone,

I'd like to run ack mode in tinyos 2.0 on two micaz motes and changed application BlinkToRadio to be implemented on micaz by using unicast address. I added "requestAck" command when timer fired. Where can I add "wasAcked" command? Should it be added in "AMSend.sendDone" event? I'd like to use Leds toggling to indicate that the sender sends a packet with requestAck, the receiver sends back ack on its received packet, and then the original sender surely receives the ack packet. Is the "wasAcked" command used to do like this?

Command "wasAcked" in interface "PacketAcknowledgements" actually gets the value of "ack", which is defined in CC2420 metadata header structure of tinyos 2.0. In radio link, how to change the value of "ack", and what's the mechanisms used in tinyos 2.0 to manipulate this?

Thanks a lot

To request an ack from a receiver, call requestAck() before you call send().

To see if it was acked, call wasAcked() in or after the sendDone() event but before you call send() or requestAck().

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

Reply via email to