0

I am doing the geographic routing in VEINS. However, in a moment the message is not transmitted by a node.

I suspect this is caused by a collision. I know that it is possible to take collision statistics at the end of the simulation.

But, I was wondering if there is any method I can use to print the collision on the OMNeT ++ console in real time.

Development environment used: SUMO 1.2.0, VEINS 5.0 and OMNet++ 5.5.1.

campos
  • 153
  • 2
  • 12

1 Answers1

0

I suggest taking a look at the various visualizers in INET. For example you can set up a packet drop visualizer. See the related showcase. You can also visualize the actual electromagnetic signal if you want to see it on lower level.

Rudi
  • 6,418
  • 1
  • 16
  • 20
  • Thank you for your answer @Rudi. Would I be able to do this analysis without using INET? In my simulation I use only the VEINS framework. – campos Mar 31 '20 at 18:47
  • You can use macros like EV_TRACE in the C++ code to write things to the log window (when running the GUI version of your simulation) or to the console (when running the command line version). In fact, an EV_TRACE macro already does this [at the place where collisions are counted](https://github.com/sommer/veins/blob/veins-5.0/src/veins/modules/phy/Decider80211p.cc#L160), so simply running your simulation in debug mode (and making sure that log messages up to and including `trace` are printed) is enough to achieve what you asked for. – Christoph Sommer Jun 26 '20 at 07:26