In my simulation, I want to make RSU (RoadSide Unit) send message every 30 seconds to the vehicles in the range. In another work, the WSM messages are generated by RSU, and will be received by vehicles. How can I possibly change the provided TraCIDemoRSU11p.cc in Veins 4.6 to do this? I know handlePositionUpdate is used for the mobility module. But since the position of RSU is not changing, does this function work for RSU?
Asked
Active
Viewed 729 times
1 Answers
3
You can schedule an event as a self-message (e.g. BaseWaveApplLayer.cc:106) and upon receiving this event send your WSM and re-schedule the event (e.g. BaseWaveApplLayer.cc:239).

Julian Heinovski
- 1,822
- 3
- 16
- 27
-
@Jia Guo: if you like this answer, please mark it as solution such that other people can benefit from it. – Julian Heinovski Apr 18 '18 at 13:10