> Anyways, I wanted to compute the packet delivery ratio as what is written in 
> the readme file by Lin Gu. I uploaded the Genericbase application in one of 
> the motes but all I can see is that the red LED turned OFF. It says here that 
> the Genericbase application captures all the packets that it can hear and 
> report it back to the UART - forward all incoming UART messages out to the 
> radio. I wonder how to compute the data delivery ratio then. :)

GenericBase (or TOSbase) dumps received packets to
UART, which can be captured by the "ListenRaw" java
program. There may be other similar UART capture
programs in the TinyOS tool set. Just choose one that
you like. You should be able to find documentation
about these tools in the TinyOS-Help archive.

When you write your application, you know how many
packets are supposed to be sent. Every node knows 
how many packets it has received. These numbers can
be sent to UART or be piggybacked in the wireless
packets. Then, with these numbers known, the packet
delivery ratio is
   number of packets received / number of packets sent

If you are using Chirp.SPRIME, you can find some code
dealing with these numbers (such as "lGot") if you
read the program. You can use them as examples but
feel free to invent your own -- these are quite
standard practices and you can choose anything that
fits your need.

lin

-- 
Lin Gu
Department of Computer Science
University of Virginia
Tel: 434-825-3115
Web: http://www.cs.virginia.edu/~lg6e
--------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to