LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RSSI value from receiver (https://www.linuxquestions.org/questions/linux-newbie-8/rssi-value-from-receiver-891011/)

cendana 07-10-2011 11:25 PM

RSSI value from receiver
 
Hi everybody,

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:
1) (packet.h)
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.


All times are GMT -5. The time now is 04:21 AM.