That's right. TOS_Msg->ack in sendDone() will tell you if an ACK was received. My old code bolus has an example of ACK-retransmit: http://www.etantdonnes.com/Motes/robocode.tar.gz
MS ram kishore wrote: > Hi all, > > I am using mica2 ,TOS 1.1.10. > > I want to implement simple Stop-and-wait protocol.Mote A sends, B > receives and sends acknowledgment. If A doesnt receive, it will > re-transmit. > > After searching mailing lists, I concluded that to enable Acks, call > MacControl.EnableAck() in the start() function in the reciever. > > Is this correct? > At the sender side how do I know that acknowledgment is received.? > > Best Regards, > Kishore > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
