据我所知,SNR 是信噪比或噪声和信号强度的差异,所以我想要的是移动节点将从接入点检测到的信号的 SNR 值,因此噪声将如何放置或估计计算信噪比?
在我探索 INET 的源代码时,我发现了getSNR()
and setSNR()
,但我不知道它们在 OMNeT++ 中是如何工作的?
通常计算SNR
发生在较低层,并且与应用程序中使用的传播模型密切相关。
这个答案可能会有所帮助:https ://stackoverflow.com/a/31728592/4786271
getSNR()
并且setSNR()
听起来像用于将信息放入 OMNeT++ 数据包中的函数。
我建议你看看Radio.h
and Radio.cc
。以下功能可能有用:
/** @brief Buffer the frame and update noise levels and snr information */
virtual void handleLowerMsgStart(AirFrame *airframe);
/** @brief Unbuffer the frame and update noise levels and snr information */
virtual void handleLowerMsgEnd(AirFrame *airframe);
/** Sends a message to the upper layer */
virtual void sendUp(AirFrame *airframe);