omnet++

Results Analysis in OMNET++

£可爱£侵袭症+ 提交于 2019-12-18 18:21:32
问题 I am using Veins framework with OMNET++ to simulate a highway scenario. I am using cOutVector to collect the results from my experiments. I have more than 1000 nodes (vehicles), and the cOutVector collects results individually for each module (node). However, I need to collect the overall results. For example, How many beacons were received by all nodes? Is there anyway of collecting such results? 回答1: In OMNeT++ the output results can be saved in two different types, and thus, file formats:

RoadId() from the BaseWaveApplLayer.cc (VEINS, OMNET++)

旧城冷巷雨未停 提交于 2019-12-18 09:38:27
问题 how can i get information such as roadid in order to use it as a new field for example in beacon messages from BaseWaveApplLayer.cc? best, Pavlos 回答1: There is the class TraCICommandInterface which provides access methods for such data like getRoadId() . In the class TraCIDemo11p you can find an example how to get this information. It basically boilds down to performing the following steps: TraCIMobility* mobility = TraCIMobilityAccess().get(getParentModule()); TraCICommandInterface* traci =

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

Is casting possible in parameter expressions in OMNET++?

谁说我不能喝 提交于 2019-12-13 20:28:53
问题 I have a fairly simple bit of code in OMNET++ that takes one parameter from the user and uses it to decide several others network ExampleNetwork { parameters: int k; int variable = (k / 2); ... } This code will build correctly but when running gives the error message: 'Cannot evaluate parameter 'test'. Cannot cast 1 from type double to integer (note: no implicit conversion from double to int)' where '1' is the value of k/2. It seems the way to fix this would be to explicitly cast the result

Omnet++/Inet: how to adjust routing files when adding components to a .NED scenario

醉酒当歌 提交于 2019-12-13 17:09:17
问题 For an exam we are studying LISP Mobile (Locator/Identifier Separation Protocol) and we have asked to some researchers from a German University to send us their LISP simulator with Omnet++/Inet. Inside, we have found the following scenario which is very useful to us: where we have a lispMobileNode multihomed with two wlan interfaces which receives UDP packets (in particular VoIP or video) from a correspondent node which is not mobile called standardHost. This scenario works perfectly as

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

Calculating sensing range from sensing sensitivity of the device in Castalia?

人走茶凉 提交于 2019-12-13 08:47:49
问题 I am implementing a WSN algorithm in Castalia. I need to calculate sensing range of the sensing device. I know I will need to use the sensing sensitivity parameter but what will be the exact equation? 回答1: The answer will vary depending on the behaviour specified by the PhysicalProcess module used. Since you say in your comment that you may be using the CarsPhysicalProcess let's use that as an example. A sensor reading request initiated by the application is first sent to the SensorManager