what are txgain and rxgain parameters in YansWifiPhyHelper class

230 views
Skip to first unread message

Kapil Kumar sharma

unread,
Mar 2, 2020, 4:24:30 AM3/2/20
to ns-3-users
i was going through the code in energy-model-example.cc , an example program from energy model.
the following    lines are confusing me

 YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
   wifiPhy.Set ("RxGain", DoubleValue (-10));
  wifiPhy.Set ("TxGain", DoubleValue (offset + Prss));

what is the meaning of rxgain and txgain in the last two line
I tried to search the web for this two parameters but i found no satisfactory explaination
please do help me

Parys

unread,
Mar 2, 2020, 5:57:18 AM3/2/20
to ns-3-users
Hello:
I am not an expert but I think, that this article describes well this topic: https://www.electronicdesign.com/technologies/communications/article/21796484/understanding-wireless-range-calculations.
Values TX and RX gains are the values that can affect the range and quality of your transmission.
In general, it comes to
Received power = transmit power + gains losses

Please correct me, If I am wrong.
Cheers. 
Message has been deleted

Kapil Kumar sharma

unread,
Mar 3, 2020, 12:19:39 AM3/3/20
to ns-3-users
thank you so much for this article Parys, i am a computer science student so i don't have that much background understanding about  communication field.Your article helped me clear some doubts
Reply all
Reply to author
Forward
0 new messages