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

2019-08-20 10:25发布

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.

标签: veins
1条回答
姐就是有狂的资本
2楼-- · 2019-08-20 10:47

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.

查看更多
登录 后发表回答