When customizing the transmission ranges of nodes in tcl file, NS2 taking lowest transmission range in simulation. How can I change the value into highest (1000m or 2050m)?

#terminal output

num_nodes is set 4

INITIALIZE THE LIST xListHead

channel.cc:sendUp - Calc highestAntennaZ_ and distCST_

highestAntennaZ_ = 1.5, distCST_ = 250.0

SORTING LISTS ...DONE!

#in tcl file

#Higher range

Phy/WirelessPhy set CPThresh_ 10.0;

Phy/WirelessPhy set CSThresh_ 8.08e-14;#2050m

Phy/WirelessPhy set RXThresh_ 1.43e-12;#1000m

Phy/WirelessPhy set bandwidth_ 512kb;

Phy/WirelessPhy set Pt_ 0.28183815;

Phy/WirelessPhy set freq_ 2.4e+6;

Phy/WirelessPhy set L_ 1.0;

Antenna/OmniAntenna set X_ 0;

Antenna/OmniAntenna set Y_ 0;

Antenna/OmniAntenna set Z_ 1.5;

Antenna/OmniAntenna set Gt_ 1;

Antenna/OmniAntenna set Gr_ 1;

#lower range

Phy/WirelessPhy set CPThresh_ 10.0;

Phy/WirelessPhy set CSThresh_ 3.65e-10;#250m

Phy/WirelessPhy set RXThresh_ 1.43e-8;#100m

Phy/WirelessPhy set bandwidth_ 512kb;

Phy/WirelessPhy set Pt_ 0.28183815;

Phy/WirelessPhy set freq_ 2.4e+6;

Phy/WirelessPhy set L_ 1.0;

Antenna/OmniAntenna set X_ 0;

Antenna/OmniAntenna set Y_ 0;

Antenna/OmniAntenna set Z_ 1.5;

Antenna/OmniAntenna set Gt_ 1;

Antenna/OmniAntenna set Gr_ 1;

I used threshold.cc file to calculate appropriate values.

More T.M.A.U. Gunathilaka's questions See All
Similar questions and discussions