UnitDiskRadioMedium 没有功耗设置?(omnetpp) [英] UnitDiskRadioMedium no power consumption settings? (omnetpp)

查看:71
本文介绍了UnitDiskRadioMedium 没有功耗设置?(omnetpp)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看着:

OMNET++:如何获得无线信号功率?>

https://github.com/inet-framework/inet/blob/master/examples/wireless/scaling/omnetpp.ini

在 UnitDiskRadio 中发送的数据包似乎没有与功耗相关的设置.

有没有办法在单位磁盘无线电介质中设置数据包功耗,或者相反,在 ApskScalarRadioMedium 中设置通信范围?

解决方案

UnitDiskRadio 是无线电的简化版本,您对传输、传播、衰减等细节不感兴趣.您只想拥有清晰的传输距离.高于此,传输总是失败,低于此传输总是成功.如果您想模拟应用程序级或路由等高级行为,这很简单、快速且适合.在这种情况下,您真的不关心您的收音机从电网(或电池)中消耗多少电量.

另一方面,如果您对低级细节感兴趣,则应该对整个无线电传输过程进行建模.在这种情况下,您对功率消耗进行建模并基于该传输,并且没有明确的传输范围.传输是否成功是一个概率结果,取决于功率、天线配置、编码、调制、噪声和许多其他因素,因此您不能将其设置为简单的范围".

TLDR:不,你不能在同一个收音机上设置它们.

PS:并确保不要混搭各种电源参数.您链接的第一个问题是关于获取接收到的数据包的功率(即接收到的信号强度).第二个链接显示了如何配置传输功率(在天线上输出),在问题中您指的​​是功耗,这是第三件事,意思是您从电池中提取多少电量来进行传输.它们不是一回事.

Looking at:

OMNET++: How to obtain wireless signal power?

and

https://github.com/inet-framework/inet/blob/master/examples/wireless/scaling/omnetpp.ini

there seem to be no power consumption related settings to packets that are sent in a UnitDiskRadio.

Is there a way of setting packet power consumption in a unit disk radio medium, or, conversely, communication range in ApskScalarRadioMedium?

解决方案

UnitDiskRadio is a simplified version of a radio, where you are not interested in the transmission, propagation, attenuation etc. details. You just want to have a clear cut transmission distance. Above that, the transmission always fails, below that the transmission always succeed. This is simple, fast and suitable if you want to simulate high level behavior like application level or routing. You really don't care how much your radio draws from a power grid (or battery) in this case.

On the other hand, if you are interested in low level details, the whole radio transmission process should be modeled. In this case, you model the power draw and based on that transmission and there is no clear cut transmission range. Whether a transmission succeeds is a probabilistic outcome depending on power, antenna configuration, encoding, modulation, noise and a lot of other stuff, so you cannot set it as a simple "range".

TLDR: No, you cannot set both of them on the same radio.

PS: and make sure that you do not mix and match various power parameters. The first question you linked is about getting the power of a received packet (i.e. how strong that signal was when it was received). The second link show how to configure the transmission power (that goes out on the antenna), and in the question you are referring to power consumption which is a third thing, meaning how much you draw from a battery to make the transmission. They are NOT the same thing.

这篇关于UnitDiskRadioMedium 没有功耗设置?(omnetpp)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆