문제

How do I enable trace files using WifiHelper in NS3 something similar to its lte equivalnt of:

LteHelper lteHelper->EnableTraces();

I am particularly interested in the SINR information.

도움이 되었습니까?

해결책

You can call any of the functions defined in trace-helper.h. I would recommend one from the pcap family that generates information which can be read with wireshark: signalDbm and noiseDb, both of which are defined in the code in src/wifi/core/yans-wifi-phy.cc:YansWifiPhy::EndReceive

double signalDbm = RatioToDb (event->GetRxPowerW ()) + 30;
double noiseDbm = RatioToDb (event->GetRxPowerW () / snrPer.snr) - GetRxNoiseFigure () + 30;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top