What are the sample values present in meyer-heavy.txt present in
tos/lib/noise ?? Are they some sample gain values? In the topology.txt, the
pattern is something like
"1   2   -87" which mean signal sent by 1 , received by 2 with gain -87. Are
these values present inside topology.txt randomly generated? And the link is
made between the nodes whose pattern is found inside this toplogy.txt as we
have a link between '1' and '2' in the above case. But somebody told me that
link is formed between nodes whose gain value is greater than some specific
value. But the code below present in tutorial says that link is formed for
all the patterns present in topology.txt file .

>>> f = open("topo.txt", "r")
>>> lines = f.readlines()
>>> for line in lines:
...   s = line.split()
...   if (len(s) > 0):
...     print " ", s[0], " ", s[1], " ", s[2];
...     r.add(int(s[0]), int(s[1]), float(s[2]))

The path loss equation is :

Log-distance path loss model is formally expressed as:
[image: PL\;=P_{Tx_{dBm}}-P_{Rx_{dBm}}\;=\;PL_0\;+\;10\gamma\;\log_{10}
\frac{d}{d_0}\;+\;X_g,]In JTossim GUI the parameters given are : d0 , PL0
,gamma , shadowing component. Gain is calculated using these parameters. But
these parameters remain the same for all nodes as they are given by us. On
what basis it makes out the links? I am still *confused about the formation
of network topology using this "radio propogation model"----> "path loss
model".*Thanks,Vinodh.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to