I need to send a message only to one vehicle that i want to choose. I am reading the available TraCIDemo11p and the cars are broadcasting the message to all cars. How can change that and make it send the message to only one care for example to car number 3.Thank you
Asked
Active
Viewed 1,033 times
0
-
Have you read the documentation? – Lightness Races in Orbit Jul 11 '16 at 15:36
-
yes I read the documentation available on veins website but still I am lost. Thank you @LightnessRacesinOrbit – Sara Hamad Jul 11 '16 at 15:37
-
1What did it say? Did anything come close to what you needed? What have you tried so far? Have you tried the product's mailing list / support forums? – Lightness Races in Orbit Jul 11 '16 at 15:38
-
Actually the documentation is so brief and it does not contain enough details. I am trying to modify the available example. @LightnessRacesinOrbit – Sara Hamad Jul 11 '16 at 15:41
-
Okay - you'd be best asking the authors on their mailing list first as we are not support for third-party products! – Lightness Races in Orbit Jul 11 '16 at 15:45
1 Answers
0
Keep in mind that communication between cars in Veins (or any MANET simulator) is wireless which means that many cars can hear the MAC frame that sent to a specific node.
To send a message from car A to another car B, they must be in their wireless range or they support an ad-hoc routing protocol to reach other not-in-range cars (which is not implemented in Veins, AFAIK).
If you are sure that both sending and receiving cars are in range, then you can fill the destination address in WSM by the ID of the intended car and let the WAVE application to delete any message that has a destination address different from the local ID.

kemara
- 116
- 2
- 6