受信範囲の設定

  • 1.setdestの修正
ns-2.26/indep-utils/cmu-scen-gen/setdest/setdest.ccにある.
const double RANGE = 250.0;// ← メートルで指定
デフォルトでは,250.0m
  • 2.thresholdツールを使って,電力の計算
[compile threshold.cc]
$ cd ns-2.26/indep-utils/propagation/
$ g++ -lm threshold.cc -o threshold

[example]
$ threshold -m TwoRayGround 250
distance = 250
propagation model: TwoRayGround

Selected parameters:
transmit power: 0.281838
frequency: 9.14e+08
transmit antenna gain: 1
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: 3.65262e-10
$
  • 3.RxThresh_にセット
最終更新:2008年05月27日 12:54