Questions tagged [veins]

Veins is an open source framework for running vehicular network simulations.

Veins is an open source framework for running vehicular network simulations. It is based on two well-established simulators: OMNeT++, an event-based network simulator, and SUMO, a road traffic simulator. It extends these to offer a comprehensive suite of models for IVC simulation. See the official website for further information.

786 questions
2
votes
1 answer

C++: Make socket object visible outside initializing if-statement in endless loop function

within an endless loop function in C++/omnet++ I try to initialize a socket object 'sock' and afterwards I want to retrieve the incoming data in my endless loop. This would be easy of course in normal C++ code...But well we're within omnet++…
2
votes
2 answers

How to include a new message extended from DemoSafetyMessage in the MyVeinsApp application?

I created a new safety messsage that is extended from the DemoSafetyMessage: import veins.modules.messages.DemoSafetyMessage; namespace veins; packet NewSafetyMsg extends DemoSafetyMessage { double senderAngle; double PowRxdBmAvg; } I include this…
Fady Samann
  • 115
  • 7
2
votes
1 answer

Sending msg from RSU to vehicles in veins

I'm trying to implement a small example in veins: the RSU broadcasts its own ID and other information, and the vehicle receives the RSU'S ID and records it. I have created a new msg file named BeaconRSU.msg, and the application layer's cc files of…
Tiffany
  • 43
  • 5
2
votes
1 answer

How to establish communication between specific nodes in Vanet?

I have SUMO, Omnet++, Inet, veins and Vanet to estblish the communication between nodes (Vehicles in SUMO) in my simulation. I did message passing between the Nodes(Vehicles) in omnet++ using VANET But the message is passing between all the nodes…
2
votes
0 answers

Increasing the vehicle communication range by increasing its transmission power in Artery with Veins

I am currently working on evaluating the effects of communication load on generation of Cooperative Awareness Messages. For this, I am using Artery with veins for simulating the 802.11p stack. From my simulation, I observed that I was only getting…
Bas
  • 469
  • 8
  • 22
2
votes
2 answers

Omnet++5.0: Simulation terminated with exit code: -1073741819

I'm beginner at omnet++ and veins, I have just installed Omnet++ 5.0 (on Windows 10) and installed INET with it as well. I've added a new application traci named "obstacle" to block véhicules, I've changed the files erlangen.launchd.xml and…
2
votes
1 answer

Is there any DCC algorithm implemented in Veins?

I learned from the Veins website that Veins relies on IEEE 802.11p and 1609.4 which does not mandate a DCC mechanism. I am wondering if any DCC algorithm is still implemented in Veins except using 3rd party models?
Cong Chen
  • 51
  • 2
2
votes
0 answers

Error : TraCIMobility::getExternalId called with no external_id set yet

I tried to import DSRC vehicles from veins and veins_inet wireless hosts into the same environment. I modified the existing veins_inet3 subproject with contents of the veins modules and defined two vehicle types in SUMO. I tried to import it in .ini…
2
votes
1 answer

Cannot create medium visualization for X.radio because network node visualization is not found- Omnet++

I am attempting to add the communication ranges of the cars in the Veins_Inet example. I included a visualizer in the network NED file: visualizer: IntegratedVisualizer {} I also the following line to the ini…
Riley K
  • 363
  • 3
  • 17
2
votes
1 answer

Doubts regarding SUMO, VEINS AND OMNET++

I am having a bit confusion in understanding the difference between usage of Veins, Omnet++ and Sumo. As per my understanding: SUMO is to provide road traffic simulation(vehicle movements) Omnet++ is for network simulation (cars can be simulated as…
2
votes
1 answer

How to launch artery example without graphical user interface

I have a question about artery (the veins extension): If you launch the example with the command cmake --build build --target run_example the framework will launch omnet++ for graphical debugging. Is it possible to run this example without a…
elvenking
  • 97
  • 6
2
votes
1 answer

How to use inet modules in veins simulation

I want the nodes in my simulation to use AODV protocol to rout packets to the RSU (i don't want the packets to be broadcasted), I know that AODV is implemented in inet but i can't figure out how to use inet models in veins simulation. I added inet4…
Nina
  • 109
  • 8
2
votes
2 answers

how to cancel a timer when using timerManager in veins omnet

I'm using TimerManager class provided in veins to manage timers in my simulation. I created a recurring timer that fires every 5 seconds and I want to cancel it when a specific msg is received but I don't know how to use the cancel method: void…
Nina
  • 109
  • 8
2
votes
1 answer

Why is the value of CO2 emission calculated in the simulation different from the value stored in the .sca file?

In my simulation, I calculated the travel time and CO2 emission.I calculated CO2 emission using the following functions: double TraCICommandInterface::Vehicle::getCO2(std::string vehicle, std::string lane, std::string edge) { return…
rakhsha
  • 99
  • 7
2
votes
1 answer

How to differentiate RSU IDs from Node IDs in Veins and Omnet++?

We have a problem with our Veins simulation. We are trying to implement an algorithm in the demo scenario (TraCIDemo11p) regarding message diffusion and our problem is with sending WSM messages. We want to send a specific message from a Node (e.g.…
Bokiyz
  • 23
  • 3
1 2
3
52 53