How can we know which message is sent by which node and which node received it? When a car broadcasts a message, I want to know who all received it. Is there any way we can know the global knowledge? I did see the log of packet traffic but how can I include more info into same? and how can I enable it in Express mode?
This is quite hard to determine in a broadcasting environment, however your best chance is to create an extra simulation module (or just a class).
This PacketMonitor
can behave like an oracle if you provide packetSent()
and packetReceived()
methods.
You will need to assign IDs to each message and then use the aforementioned methods to "register" the message in a table-like data structure of the PacketMonitor
when a message is sent and received, respectively.
This is not a very complicated solution but it requires proper design and some extra thought on how to capture all of the potential scenarios.