veins

Computing End-To-End Delay in Veins

纵饮孤独 提交于 2019-12-20 03:49:11
问题 I have read a bunch of posts on SO regarding the computation of end-to-end delay in Veins, but have not found an answer to be fulfilling in explaining why the delay is seemingly too low. I am using: Veins 4.7 Sumo 0.32.0 Omnetpp 5.3 Channel switching is turned off. I have the following code, sending a message from the transmitting node: if(sendMessage) { WaveShortMessage* wsm = new WaveShortMessage(); sendDown(wsm); } The receiving node computes the delay using the wsm creation time, but I

Regarding Dynamic Routing in Veins

℡╲_俬逩灬. 提交于 2019-12-18 07:12:59
问题 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: Yes, vehicles take other routes due to the accident to avoid the following traffic jam. That is the whole point of informing other vehicles about the accident using IVC here. Regarding rerouting see TraCIDemo11p.cc (l. 48) and TraCICommandInterface.cc (l. 138). Edit:

Veins Multiple Applications in multiples Vehicle types

…衆ロ難τιáo~ 提交于 2019-12-18 05:25:12
问题 in my simulation using OMNeT++, Veins, and SUMO i want run multiple applications according to their vehicle type, as specified in the .rou.xml file using type="XXX" For example: <vehicle ... type="private" ... > runs APP_private (using something like *.node[*].applType ="APP_private" ) <vehicle ... type="bus" ... > runs APP_bus (using something like *.node[*].applType ="APP_bus" ) How can I define this in omnetpp.ini ? 回答1: Veins 4.6 allows you to set any or all of the moduleType , moduleName

How to send beacon with viens

馋奶兔 提交于 2019-12-14 03:36:03
问题 I know How to send a message for car a to car b or rsu. but I need to send beacons. what is different between sending a message and sending beacons. I cant see any sendBeacon(). How should I send one? 回答1: Fundamentally, a beacon is simply a repeated broadcast message that carries some information of general interest in the vicinity of the sender. You can achieve this in Veins by having your application call its sendDown method every once in a while. You can find some example code that does

Wait for receiving an ACK in finish() function in Veins

别等时光非礼了梦想. 提交于 2019-12-14 03:34:34
问题 I use OMNeT++-4.6, sumo-0.22.0 and Veins-4a2. In my simulation, I need that all nodes send their messages when leaving the simulation to their destination which are RSU in my case. The problem that all nodes send their messages in finish() function but they are not receiving by RSU since every node should wait before it can access the channel and then it will be destroyed. I need to make every node when leaving the simulation waits until receiving an ACK from the destination. Then, when it

Error in Veins tutorial simulation

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:28:36
问题 I am starting to use Omnet++ with veins for VANET simulations, but at the end of the tutorial (http://veins.car2x.org/tutorial/), where it says to go into the IDE and click "Run As > OMNeT++ simulation", an error occured : Cannot evaluate parameter 'headerLength': (omnetpp::cDoubleParImpl)headerLength: Cannot cast from type double to integer - in module (Mac1609_4) RSUEXAMPLESCENARIO.rsu[0].nic.mac1609_4 (id=12), during network initialization. Ok, it crash trying to cast int from double, but

error encountered in building vein-lte 1.3

旧城冷巷雨未停 提交于 2019-12-13 16:04:19
问题 When I run the 'make' command at the terminal window to build vein-lte 1.3, I encounter a fatal error at applications/commons/ApplicationBase.cc: 18:0 . There seem to be an issue with including the header Operationalbase.h in ApplicationBase.h . It complains that there is no such file or directory. The error is originating from the inet folder. I really need help with resolving this. Cheers. 来源: https://stackoverflow.com/questions/45459603/error-encountered-in-building-vein-lte-1-3

Class “Veins::ObstacleControl” not found

陌路散爱 提交于 2019-12-13 05:37:17
问题 I have followed step by step the tutorial to install Veins, but when I tried running the example scenario (final step) I ended up with the above error. The whole error was: Error in module (cModule) RSUExampleScenario (id=1) during network setup: Class "Veins::ObstacleControl" not found -- perhaps its code was not linked in, or the class wasn't registered with Register_Class(), or in the case of modules and channels, with Define_Module()/Define_Channel(). TRAPPING on the exception above, due

How to disable lane changes in SuMO?

假如想象 提交于 2019-12-12 19:48:47
问题 I am using a TraCI call to set the lane change mode of a vehicle to 0 to disable all lane changing: TraCICommandInterface::setLaneChangeMode(0b000000000000); However, the vehicle still does a lane change afterwards. I also tried 256 (i.e. 0b000100000000 and 512 (i.e. 0b001000000000 ) as indicated in the wiki or in this post. It seems that the executed lane change action was queued earlier (i.e. before the TraCI call), because the vehicle is flashing its turn light, and could not be executed

Veins - Unexpected behavior with lost packets in certain vehicles

☆樱花仙子☆ 提交于 2019-12-12 08:17:06
问题 I'm working with the Veins framework over the OMNeT++ simulator and I'm facing a weird situation where certain few nodes lose all received packets. To put everybody in context, I'm simulating 100 nodes (4 flows of 25 nodes), all under coverage (apparently), and sending 10 packets per second each. Depending on the moment the nodes enter the network (i.e: are created by SUMO), some of them (usually just 1 but can be 2, 3, 4...) enter in a mode where all packets are marked as lost