-
In my Eclipse MOSAIC simulation, I want to send a message to a specific vehicle using the routing information obtained from a received message. Currently, I extract the routing from the received message like this:
However, I want to directly address the specific vehicle that sent the original message, ensuring efficient communication without broadcasting. Could you confirm:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, theoretically you can send a message directly to a vehicle via a topological unicast. However, currently our couplings to OMNeT++ and ns-3 do not implement topological unicasts. Only SNS does. So If you are using SNS for adhoc-simulation, you can use: MessageRouting receiverrouting = lastVehicleStatus.getRouting();
MessageRouting newRouting = getOs().getAdHocModule().createMessageRouting()
.singlehop()
.topological()
.destination(receiverrouting.getSource().getSourceAddress())
.build(); or in the old API format you are using: MessageRouting receiverrouting = lastVehicleStatus.getRouting();
MessageRouting newRouting = getOs().getAdHocModule().createMessageRouting()
.topoCast(receiverrouting.getSource().getSourceName(), 1); Otherwise, you have to stick to the broadcast method and filter on application layer. |
Beta Was this translation helpful? Give feedback.
Hi, theoretically you can send a message directly to a vehicle via a topological unicast. However, currently our couplings to OMNeT++ and ns-3 do not implement topological unicasts. Only SNS does. So If you are using SNS for adhoc-simulation, you can use:
or in the old API format you are using: