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
2 answers

Error when building veins_inet subproject

I have imported the veins_inet subproject when importing the veins 4.5 project (by selecting the "Search for nested projects") in Omnet++. I have built veins and can run the Erlangen example. However, I cannot build the veins_inet project. The…
zanlik
  • 41
  • 1
  • 6
0
votes
1 answer

How to know each node state/statistics om veins/omnet?

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…
Sam1324
  • 387
  • 2
  • 13
0
votes
1 answer

how can I get the Id for a rsu in veins?

I have three rsu in my app. is there any id for rsu like car id for cars? if yes, how can I get rsu id in rsu initializer method? if not how can I distinguish between rsus?
Naser Hamidi
  • 176
  • 1
  • 11
0
votes
2 answers

Plotting RSUs with GPS data in Veins

I am trying to plot RSU based on GPS coordinates. Is there any easy way to do it? I have written a program where I convert GPS coordinates to cartesian but I get cartesian points on basis of reference GPS coordinates which doesn't get placed nicely…
Sam1324
  • 387
  • 2
  • 13
0
votes
3 answers

Reduce the coverage area between vehicles

I need to reduce the coverage area of communication between vehicles. Should I reduce values of these parameters in omnetpp.ini? *.**.nic.phy80211p.sensitivity = -89dBm *.**.nic.phy80211p.maxTXPower = 10mW *.**.nic.phy80211p.thermalNoise =…
Joe
  • 85
  • 1
  • 9
0
votes
0 answers

ASSERT: condition (intersectAt.size() % 2) == 0 false in function calculateAttenuation

I had this error at 258s in my simulation, I have consulted the response in this link "Model error: ASSERT: condition (intersectAt.size() % 2) == 0 false in function calculateAttenuation, veins/modules/obstacle/Obstacle.cc" and I removed the ASSERT…
Joe
  • 85
  • 1
  • 9
0
votes
1 answer

how to get Frame Id in BaseWaveApplLayer class veins

I am implementing ACK functionality to be sent by RSU and I am trying to get frameID in BaseWaveApplLayer class. It has cMessage object but I am unable to get correct freamID I tried to use messageId but it is different than the sent from nodes.…
Sam1324
  • 387
  • 2
  • 13
0
votes
0 answers

Compiling Veins4.5 on Omnet++ 5.1 on ubuntu 14.04

am trying to build veins on OMNet++5.1on ubuntu 14.04 but cant get it to work. both veins 4.4 and veins 4.5 give the same error. here is my stack trace: 18:40:54 **** Build of configuration gcc-debug for project veins **** make MODE=debug…
0
votes
1 answer

Sending ACKs from RSU to Nodes in Veins

I am trying to send Ack to nodes when I receive the message. I am able to get the frame id, not able to figure it out how do I include this frame id in my message and broadcast it? Any pointer? it will be helpful. Thanks. Update: Here is what I am…
Sam1324
  • 387
  • 2
  • 13
0
votes
1 answer

Difference between getCurrentPosition() and getPositionAt(time) in Veins

I'm using Veins 4.4, OMNeT++ 5.0 and Sumo 0.25. I use traci->getCurrentPosition() to get the actual position of the vehicle, i.e., traci->getCurrentPosition().x and traci->getCurrentPosition().y. I want to estimate the position of the vehicle at a…
0
votes
2 answers

Send message only once instead of periodically

I have developed a scenario where at first the vehicles send a self messsage and upon reception of the self message vehicles send a message to RSU. The self message code is written in the initialize() method. But during simulation the vehicles send…
Tapu
  • 25
  • 5
0
votes
1 answer

Regarding Messages in Veins

I want to send a message as soon as the vehicle starts. For this I am using the self-message technique. I send a self-message and in the handleMessage method after receiving the self-message I send the WaveShortMessage which I want to send. Is this…
0
votes
2 answers

speed of vechile in veins increases slowly

I'm using veins 4.4, OMNeT++ 5.0 and SuMO 0.25. I have set vehicle speed to 0 to stop them by traciVehicle->setSpeed(0) then after certain case i set them to 20 by traciVehicle->setSpeed(20) to cross the intersection but for no reason it increases…
user12345
  • 55
  • 9
0
votes
1 answer

Handling traci in the RSU module

CONTEXT: In my program I have an intersection with a traffic light that coordinates vehicles movement. On the vertical lane, not that frequently trams will cross. On the horizontal lane, frequent cars. In my communication simulation experiment,…
pb772
  • 539
  • 1
  • 3
  • 14
0
votes
2 answers

Calculating distance between cars nodes VEINS

I am new to VEINS and trying to implement weighted p-persistence inside MyVeinsApp.cc. Distance between the sending node and receiving is used in that formula. I saw the 2 functions below. virtual Coord& getSenderPos(); virtual const Coord&…
user629034
  • 659
  • 2
  • 11
  • 30