On Sep 27, 2009, at 3:02 PM, Razvan Musaloiu-E. wrote:
>>
>> 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
>> }
>>
>
> You should probably use application level acks. :-) You can also
> disable
> the .1% but doing this will make the simulation less real. The code
> that
> produce the false acks is in tos/lib/CpmModelC.nc and the lines are
> the
> following:
Yes -- by removing this 0.1% you might be letting your application
proceed, but you're also assuring it won't proceed in a real network.
The right thing to do is incorporate higher layer acknowledgements.
Breaking end-to-end integrity is wishful thinking.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help