Hi,
I would like to change default transmission range of MobileNode from 250m to 1km, by using ~/ns-allinone-2.35/ns-2.35/ indep-utils/propagation/ threshold and execute the following command:
$ ./threshold -m TwoRayGround -fr 5.9e+9 1000
i get these values:
distance = 1000
propagation model: TwoRayGround
Selected parameters:
transmit power: 0.281838
frequency: 5.9e+09
transmit antenna gain: 1
receive antenna gain: 1
system loss: 1
transmit antenna height: 1.5
receive antenna height: 1.5
Receiving threshold RXThresh_ is: 1.42681e-12
So, i modify me tcl script as follows:
Phy/WirelessPhy set RXThresh_ 1.42681e-12
Phy/WirelessPhy set CSThresh_ 1.42681e-12
Phy/WirelessPhy set Pt_ 0.281838
Phy/WirelessPhy set freq_ 5.9e+9
and it works OK, now how to obtain the new transmission range inside c++ code?