Hi. I'm simulating multi-hop application in tossim. I requested acknowledgement using PacketAcknowledgements for each packet sent. I found some strange things happened in the simulation. For some packets, (1). the sender gets negative ACK even though the packets was successfully received; OR (2). the sender gets positive ACK even though the packet was lost.
Then, I found this: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2009-January/037710.html which basically said that such false acknowledgement may happen at a chance of .1% in TOSSIM. Can anyone let me know how to ensure correct acknowledgement, since my application cannot proceed without reliable acknowledgement. In my code, I checked the acknowledgement as follow: event void AMSend.sendDone(message_t* bufPtr, error_t err) { if(call PacketAcknowledgements.wasAcked(bufPtr)) { // go to next step } else // resend the message at application level }
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
