Hi,
I was getting problems with the following 2 simulations:
Phy/WirelessPhy set RXThresh_ 630e-15
Phy/WirelessPhy set CSThresh_ 630e-15
and i also added the following lines:
Antenna/OmniAntenna set Gt_ 25.0
Antenna/OmniAntenna set Gr_ 50.0
I was using the FreeSpace model, and a distance of 880 m with
Gr=50 and Gt=25.
After runninn the script for a Pt_ = 0.0158 W (12 dBm), the power received
using the Friis formula or the result printed by the function gives:
OFDM phy receiving packet with mod=0 and cp=0.250000
0.031842: d: 880.000000, Pr: 1.199811e-09
But if I run the script for Pt= 0.01 W (10 dBm), there is no packet
received, and Pr is not printed, but it should be more or less
7.2e-10.
My question is, there must be another variable that i'm forgetting,
because for 0.01 W, the received power should be 7.2e-10 >> 6.30e-13,
I mean 7.2e-10/6.30e-13=1142 W/W, or 30.6 dB. I would like to know
where is that 30.6 dB implemented?
And then i checked the variable distCST_:
for the first case:
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 1086.2
for the second case, Pt_=0.01 W:
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 862.8
->In this case is less than the 880 m.
So maybe the missing 30.6 dBm are calculated in the variable
distCST_, do you have any ideias?
Thanks in advance, Tiago Junqueira