Hi, Alexander,

I got the same point as you mentioned.  Now we got a quick solution
by setting the topology coordination (in the source code) manually,
(of course we can read that information from an external file):
for example:
 adcValues[0][128] = 0;  // X for node 0
 adcValues[0][129] = 0;  // Y for node 0
 adcValues[1][128] = 80;
 adcValues[1][129] = 80;
 adcValues[2][128] = 200;
 adcValues[2][129] = 200;
...
(be careful to set the value after the default initialization "generic_adc_init(0" in
/tos/platform/pc/adc_model.c)

Then with the topology specification, in "beta/TOSSIM-CC2420/HPLCC2420M.nc"
the simulator can get different lqi and loss for links. A multihop connectivity can
be setup depending on your routing protocols.

- Ray


Alexander Becher wrote:
* Wang, Lei (Ray):
Alexander Becher wrote:
* Yang Peng:
Does anyone use "run -rf=yourlossyfile.nss nodeNUM" ?

It seems like my lossy.nss file does not work, seems like it is not
read....
You also have to specify "-r=lossy".
could you give more instructions on how to use it in cc2420? we tried, and it looks like cc2420 tossim does not read it at all?

Hmm, apparently I overread that you are using TOSSIM-CC2420. I have not
used that one. Its README.txt says about packet loss:

- The CC2420 provides LQI and RSSI readings to the packet. The simulator
  generates these numbers and packet loss probabilities based on
  empirical data over distance, so the simulation depends on the ADC
  readings that contain the (X,Y) locations of the motes (which can
  be set using the SetLocations plugin for TinyViz).

For TOSSIM-CC2420, that's all I know. Sorry.

Regards,
Alexander

_______________________________________________
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

Reply via email to