To keep track of packet loses, it is possible to keep a packet
counter in your application which is incremented whenever a packet is
successfully sent. Then, add a debug statement in Receive.receive
that prints this counter when a packet is successfully received. You
will see only the counter values that were actually received.
You may need multiple counters as you have multiple links.
This approach is similar to what is done in the RadioCountToLeds
program in the /tinyos-2.x/apps/ directory.
Tal
> Avinash Sridharan wrote:
>> I detected the total numbers of packet lost in the channel by doing a
>> grep on the word "Lost" from the debug statements from the channel
>> model, since this is printed out whenever is a packet is dropped by
>> the channel model. I have two questions:
> This doesn't seem like a very sound methodology to me. Take a look at
> the debug statement on line 390:
>
> dbg("Gain,SNRLoss", "Going to lose packet from %i with signal %lf as am
> receiving a packet from %i with signal %lf\n", list->source,
> list->power, source, rcv->power);
>
> If your grep was not with -i (case insensitive), there's also line 308:
>
> dbg("CpmModelC,SNRLoss", " - lost packet from %i as SNR was too low.\n",
> (int)mine->source);
>
> Phil
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help