Hi, Take a look at CpmModelC in the tos/lib/tossim. That's where the packets are dropped according to the SNR.
You could replace this file with yours (instead of wiring to CpmModelC, you wire to your custom-made file), and then use the gain attribute in a dirty way to decide if you should drop x % of the packets. So, when you setup your network, the gain you set for a link will be the probability of the packet loss. All of this can be done quickly. Cheers, Alban 2009/5/18 Rémi Villé <[email protected]>: > Hi, > > I am wondering how to simulate with TOSSIM a link quality of 50% (1 msg > received for 2 send) between two nodes ? > As I understand there's a loss of connection between two nodes, for an event > step, when we have gain - noise >= 0 > Whereas it seems to be possible to apply a quality link to the whole > network, it seems difficult to create a noise file which will apply at any > time, e.g., a 50% quality for a specific link and a 70% for an other one. > > Is there a way to perform that ? How did you test the routing grounded on > ETX ? > > Regards, > > Rémi > > _______________________________________________ > 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
