我希望你能帮助我如何在ns2.34中设置传输范围,我已经用距离执行了阈值程序,我得到了Rxthresh_值,但我不知道如何得到 CSThresh_ 值?
答案 0 :(得分:0)
来自http://mailman.isi.edu/pipermail/ns-users/2005-January/046659.html
"如何确定CPThresh,CSThresh& RXThresh"
"为了给它们设置值,你可以在你的中添加一些东西 scenario_xxx.tcl文件"
# Initialize the SharedMedia interface with parameters to make
# it work like the 914MHz Lucent WaveLAN DSSS radio interface
Phy/WirelessPhy set CPThresh_ 10.0
Phy/WirelessPhy set CSThresh_ 1.559e-11
Phy/WirelessPhy set RXThresh_ 3.652e-10
Phy/WirelessPhy set bandwidth_ 2e6
Phy/WirelessPhy set Pt_ 0.28183815
Phy/WirelessPhy set freq_ 914e+6
Phy/WirelessPhy set L_ 1.0
Phy/WirelessPhy set debug_ false