what is the value of Pt for range of 20m in ns2

2019-09-03 09:51发布

i want to know how to set value of Pt transmitted power for range transmission

Phy/WirelessPhy set Pt_ 0.2818  (gives my signal will travel upto 250m )

this code for 250m but what about authers ranges like 20 or 30m what is the method for calculating Pt? please help

标签: ns2
2条回答
Explosion°爆炸
2楼-- · 2019-09-03 10:21

Another example with distances : ns2.3x/tcl/ex/wpan/wpan_demo4b.tcl → → lines 61 - 77 :

# For model 'TwoRayGround'
set dist(5m)  7.69113e-06
set dist(9m)  2.37381e-06
set dist(10m) 1.92278e-06
set dist(11m) 1.58908e-06
set dist(12m) 1.33527e-06
set dist(13m) 1.13774e-06
set dist(14m) 9.81011e-07
set dist(15m) 8.54570e-07
set dist(16m) 7.51087e-07
set dist(20m) 4.80696e-07
set dist(25m) 3.07645e-07
set dist(30m) 2.13643e-07
set dist(35m) 1.56962e-07
set dist(40m) 1.20174e-07
Phy/WirelessPhy set CSThresh_ $dist(12m)
Phy/WirelessPhy set RXThresh_ $dist(12m

)

查看更多
贼婆χ
3楼-- · 2019-09-03 10:38

? Could "0.2818" be a mathematical notation ?

Examples from simulation files :

cd [examples]/ && grep -R "Phy/WirelessPhy set Pt" *

Phy/WirelessPhy set Pt_ 0.3196e-5 ;#power needed to have 100m of distance

Phy/WirelessPhy set Pt_ 0.09588e-5 ;#power needed to have 30m of distance

Phy/WirelessPhy set Pt_ 0.281838

Phy/WirelessPhy set Pt_ 0.025

Phy/WirelessPhy set Pt_ 1

Phy/WirelessPhy set Pt_ 0.28    ;# transmitter signal power (Watt)

Phy/WirelessPhy set Pt_ 0.031622777        ;# Tx power (W)

Phy/WirelessPhy set Pt_ 7.214e-3

Phy/WirelessPhy set Pt_ 8.5872e-4    ;# 40m

Phy/WirelessPhy set Pt_ 1.33826e-3   ;# 50m

Phy/WirelessPhy set Pt_ 7.214e-3     ;# 100m

Phy/WirelessPhy set Pt_ 0.2818       ;# 250m

Phy/WirelessPhy set Pt_ 2.28289e-11  ;# 500m

Phy/WirelessPhy set Pt_ 1.1272        ;# 1000m transmission range

查看更多
登录 后发表回答