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
1
vote
1 answer

What happens to vehicles when they end their route?

My project is to build a VANET-based smart parking simulation for a small-scale urban area. I dynamically define a route for vehicles to traverse to, then park for 'x' amount of time. Implementation for that is complete, the next step was to define…
wesleyfung
  • 100
  • 1
  • 7
1
vote
2 answers

Multiple runs in omnet++ but with new network

I am trying to get different results for the code I have written in veins. I would like to run simulation multiple times to get average of all result. Issue I am facing is when I use repeat=5 i get exact same result in all 5 runs. I want to…
Sam1324
  • 387
  • 2
  • 13
1
vote
1 answer

Veins simulation running very slow

I am running Veins simulation with 25 cars and 100 Rsu's. Simulation is running awfully slow. I tried with the example given and the case is same. What can I do ? I have tried with Release mode, switching off animations, with command mode, increased…
Sam1324
  • 387
  • 2
  • 13
1
vote
0 answers

Precision float number

I use omnetpp-4.6 and veins-4a2 to execute my simulation. I run this code which the variable "ch" corresponds to an id packet. In this example, 46.100 is the packet number 100 for the node 46 in my simulation. I need to convert it to a float number,…
Joe
  • 85
  • 1
  • 9
1
vote
1 answer

How to control the transmission power and speed based on the distance between two vehicles in Veins

I am a beginner about Veins. Now I am trying to simulate dynamic adjustment of the transmission power and speed between 2 running vehicles based on their distance with each other with Veins 4.5, Omnet 5.0 and Sumo 0.29. So far I have built the Sumo…
1
vote
0 answers

How to efficiently place RSUs of a SUMO scenario in OMNeT++?

I am trying to perform an experiment for vehicular ad hoc networks using Omnet++ (v 5), Veins (v. 4.4), and Sumo (v. 0.25.0). I use LuST Scenario as a realistic mobility trace. I would like to place RSUs optimally throughout the entire region, e.g.,…
Mohammad Khodaei
  • 501
  • 1
  • 4
  • 15
1
vote
1 answer

Vehicles Sending message to RSU at the start

I am simulating a scenario where vehicles send message to RSU as soon as they are generated.For this I tried to include the code for wsm message in my intialize method of the TraCIDemo11p.cc file but the messages are not sent as soon as the vehicle…
Tapu
  • 25
  • 5
1
vote
1 answer

Veins V2I Omnet++ bit stream or noise

I am using Veins for V2I communication, I have already created an application and I would like to ask you if there is possible to set a background bit stream or noise in my simulation scenario.
george ch
  • 23
  • 6
1
vote
1 answer

Sending a message when a vehicle leaves the simulation

I use OMNeT++-4.6, sumo-0.22.0 and Veins-4a2. In my simulation, each node creates a message, stores it in its buffer and after some delay it sends all its messages. I did two timers to specify the delay of created and sent messages. So, the message…
Fariha
  • 497
  • 1
  • 5
  • 13
1
vote
1 answer

Regarding Dynamic Routing in Veins

In the example given in Veins' example scenario in Erlangen city when the accident occurs do other vehicle choose a different path after for the duration of the accident? If yes, how does this dynamic routing take place???
1
vote
1 answer

How to write a traffic light "get program" and "get phase" functions in traci interface?

Checking in the TraCICommandInterface there are only two function for the traffic lights. The first one is setProgram and the other one is setPhaseIndex how can I write the get functions for them?
pb772
  • 539
  • 1
  • 3
  • 14
1
vote
1 answer

Why I get an error code 139 if I run this code?

I would like to know why I can build this project, but as soon as RSU receives the message I get an error 139. Even if I try to solve by removing the code inserted in onData function and run the project again, still doesn't work.…
pb772
  • 539
  • 1
  • 3
  • 14
1
vote
1 answer

What is the unit of travel time and speed in Veins?

I'm working on Veins in OMNeT++, by using TraCI commands to get the travel time of roads using this method: double getCurrentTravelTime(). The value which I get from this is very small. So I wondered what the unit of travel time is and also how…
1
vote
1 answer

Sent acks are received by multiple nodes in Veins-4a2 using prepareWSM method

I use OMNeT++-4.6, sumo-0.22.0 and Veins-4a2. In my scenario, when an RSU receives a message from a node, it sends an ACK using the prepareWSM method: sendWSM(prepareWSM("ack", ackLengthBits, type_SCH, ackPriority, senderId , 2)) So, the RSU sends…
Fariha
  • 497
  • 1
  • 5
  • 13
1
vote
2 answers

How can we transform simTime() to milliseconds?

I use Omnet++-4.6 and Veins-4a2. The method simTime() returns the current time in seconds. I need to transform it to milliseconds, but I could not. When I declare a simtime_t variable like this: simtime_t TimeVar = simTime() * 1000; it gives an…
Fariha
  • 497
  • 1
  • 5
  • 13