UnitDiskRadioMedium no power consumption settings? (omnetpp)

断了今生、忘了曾经 提交于 2021-01-07 06:31:14

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/65293303/unitdiskradiomedium-no-power-consumption-settings-omnetpp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!