How to send beacon with viens

2019-10-03 23:03发布

I know How to send a message for car a to car b or rsu. but I need to send beacons. what is different between sending a message and sending beacons. I cant see any sendBeacon(). How should I send one?

标签: omnet++ veins
1条回答
何必那么认真
2楼-- · 2019-10-04 00:09

Fundamentally, a beacon is simply a repeated broadcast message that carries some information of general interest in the vicinity of the sender. You can achieve this in Veins by having your application call its sendDown method every once in a while.

You can find some example code that does this in https://github.com/sommer/veins/blob/veins-4.5/src/veins/modules/application/ieee80211p/BaseWaveApplLayer.cc#L242

查看更多
登录 后发表回答