0

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

Sara Hamad
  • 645
  • 1
  • 6
  • 12

1 Answers1

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