how to get RSS (Received Signal Strength) ???

238 views
Skip to first unread message

MacLovin

unread,
Apr 8, 2014, 11:04:42 AM4/8/14
to ns-3-...@googlegroups.com
hello,
i have wifi AdHoc topology with 2 nodes and i wanna get the RSS (Received Signal Strength) value for the Wireless Ad Hoc network node !

Do you have any idea of a small example of code? 

Thanks

Konstantinos

unread,
Apr 8, 2014, 12:16:31 PM4/8/14
to ns-3-...@googlegroups.com
You can use the promiscuous trace source from the YansWifiPhy and log the value
  • MonitorSnifferRx: Trace source simulating a wifi device in monitor mode sniffing all received frames
  489 WifiPhy::NotifyMonitorSniffRx (Ptr<const Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble, double signalDbm, double noiseDbm)
490 {
491  m_phyMonitorSniffRxTrace (packet, channelFreqMhz, channelNumber, rate, isShortPreamble, signalDbm, noiseDbm);
492 }
493 

Examples for using trace sources are throughout the ns-3 code and also in the documentation
Reply all
Reply to author
Forward
0 new messages