Mac_1609-4::setTxPower() to Set TXPOWER in Application

两盒软妹~` 提交于 2019-12-11 15:29:24

问题


How do I control Transmission Power based on certain parameters? Do I need to use Mixim? If so, is there any tutorials on it? OR Is the only appropriate place to do it is in the mac1609-4 file in the TXPOWER parameter? If that's the place to do it, then how can I get vehicle position to do it? For example I want the transmission power to be 10 at point X and Y on the road.

Thanks in advance.


回答1:


An application can set the transmission power for every message sent via the 1609.4 MAC layer by attaching a PhyControlMessage object (as a control message); see here for an example. Alternatively, you can alter the default transmit power via the Mac1609_4::setTxPower method; see here for an example.

An application that inherits from BaseWaveApplLayer can read the current position via its BaseWaveApplLayer::curPosition attribute.



来源:https://stackoverflow.com/questions/47759161/mac-1609-4settxpower-to-set-txpower-in-application

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