RSSI value from receiver
I'm using NS2 2.33 and my research involved IEEE802.11 infrastructure network. Is it possible for me to obtain the RSSI value from the receiver? How can I go about it? How can I use the RSSI value to find the distance between the transceiver and the receiver using Friis free space equation?
I tried to insert several lines:
double rssi; at struc hdr_cmn
2)(wireless-phy.cc) inside WirelessPhy::SendUp
hdr_cmn*cmh = hdr_cmn::access(p)
cmh->rssi = Pr;
printf ("The rssi is : %f", cmh->rssi)
after compile, I just got The rssi is :0.0000
Please give me some advice.
Thanking you in advance.
Last edited by cendana; 07-12-2011 at 05:31 AM.
Reason: first time not detail.