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
0
votes
1 answer

Why is DemoBaseApplLayer::myId different in Veins versions 4.7.1 and 5.0?

In Veins 5.0, the myId member accessible from, e.g., TraCIDemo11p::initialize(int stage), refers to the OMNeT++ module ID of the NIC (e.g., node[0].nic). In Veins 4.7.1, myId used to refer to the OMNeT++ module ID of the host (e.g., node[0]). Why…
campos
  • 153
  • 2
  • 12
0
votes
0 answers

How to view streets in OMNet ++?

Usually when integrating SUMO, VEINS and OMNeT ++ is shown in OMNeT ++ the polygons of buildings that are close to the streets, allowing to see the outline of the streets. However, Manhattan-type models do not have polygons that outline the…
campos
  • 153
  • 2
  • 12
0
votes
1 answer

How to define ahead vehicle in veins?

I am using omnetpp 5.4.1, veins 4.7.1 and sumo-0.30.0. I want to define the vehicles that are ahead of other vehicles. for instance I want that just ahead vehicle send message but behind vehicle only receive messages whose senders are ahead…
sepideh
  • 61
  • 7
0
votes
1 answer

Error Building OpenFlow project in OMNET++

I downloaded an openflow for OMNeT 5.5.1 and inet 3.6.6 from the following link: https://github.com/CoRE-RG/OpenFlow When I build the project it could not create libopenflow_dbg.dll file, and it gives the following errors: make[1]: ***…
Baram
  • 19
  • 4
0
votes
1 answer

How can I store nodeId, direction,and speed of a vehicle in RSU in veins version 5?

Thank you for reading the question. I have a simple query that when vehicles are broadcasting a message then the event happened and re-routing of vehicles are being done. But if I want to store the information of a vehicle such as nodeId, Speed,…
Ravneet_Kaur
  • 33
  • 1
  • 8
0
votes
1 answer

How to present those traffic lights in SUMO in VEINS?

I want to simulate the communication between vehicles and traffic lights in VEINS. I have all SUMO files I need, including < tlLogic>...< /tlLogic> sections in my net.xml. But I don't know how to implement those traffic lights in VEINS. Should I…
Neil
  • 11
  • 4
0
votes
1 answer

Why returntype of getSenderSpeed() is Coord& in DemoSafetyMessage.h Veins5?

My question is In DemoSafteyMessage.h Why this function has Coord& type instead of double or any other datatype. besides the protected data member is also protected: Coord senderSpeed; public: virtual Coord& getSenderSpeed(); virtual const Coord&…
Ravneet_Kaur
  • 33
  • 1
  • 8
0
votes
1 answer

How OMNeT lets vehicles and RSUs transmit data

In tic toc, they are tic. out - > {delay = exponential (200ms);} - > toc. in; The out gate is connected to the in gate and then transmitted through the out gate. The following code: CMessage * MSG = new cMessage ("tictocMsg"); Send (msg,…
Sun
  • 1
  • 2
0
votes
1 answer

Openflow Extension for OMNET++

I am using omnet++ 5.5.1, veins-5a2, and sumo 1.2.0. Which openflow version does omnet++ support? And from where i can download it? Please help me. thanks
Baram
  • 19
  • 4
0
votes
2 answers

How come onWSM method does not get invoke when sending messages from RSU?

I'm trying to send messages from RSU to the cars, basically, I want to flood the network, but for some I can not seem to see any message that are received by the car module. I did try cleaning the project. I tried following the veins example but…
Abubakar Saad
  • 202
  • 1
  • 2
  • 13
0
votes
2 answers

Getting vehicle ID

I am trying to get vehicle id as follow: mobility = TraCIMobilityAccess().get(getParentModule()); assert(mobility); traci = mobility->getCommandInterface(); traciVehicle = mobility->getVehicleCommandInterface(); cout<<…
Baram
  • 19
  • 4
0
votes
1 answer

Timer time reflected in simulation time

I want initialize a 5-second counter and send a message. If a response message is received before the end of 5 seconds, the timer is interrupted and action is taken. However if the timer ends and no message is received another action will be…
campos
  • 153
  • 2
  • 12
0
votes
1 answer

How can I visually see the range of RSU?

Is there a way, I can outline the range of RSU in omnet++?. I know how to set the range of RSU, as shown in the code below. But how do I actually see that range. Because, I want to see if the how does the transmission happens outside the RSU. I…
Abubakar Saad
  • 202
  • 1
  • 2
  • 13
0
votes
0 answers

How to establish vehicle communication in Veins/Omnet++

I am trying to learn how to use Veins and Omnet++, so forgive any glaringly obvious oversights. I was able to successfully run the example program, and I managed to create a custom SUMO vehicle simulation, but I cannot figure out how to incorporate…
0
votes
0 answers

Sending a "beacon hello"

A vehicle entering the simulation must send a "Hello beacon" to form a cluster. If there is already a vehicle, it will respond with another "Hello beacon". How can this be done in the veins? I saw this previous post, but I don't know if my case is…
campos
  • 153
  • 2
  • 12