omnet++

Veins - INET compatibility

北城以北 提交于 2019-12-23 05:39:27
问题 I’m currently searching for 802.11p simulation feasability and I would like to test IPv6 as well, apart from the WAVE/IEE 802.11p. The INET would be the solution but I’m doubting about the compatibility with the Veins 4 alpha 2 (latest version). What I know is that Veins 3.X was based on MiXiM, but at the same time INET and MiXiM can be compatible and installed together in OmNET, combining them or even with MixNET. I would really like to know if somebody has achieved them work al together

How to collect traffic data and macroscopic statistics in Veins?

旧时模样 提交于 2019-12-23 05:09:04
问题 Hello StackEx community. I am implementing certain scenarios in Veins 3.0 and I wish to collect certain traffic statistics such as the Average Waiting Time, the Average Energy consumption, etc from my simulation. Please help on how to generate and interpret these information. Thanks 回答1: TraCIMobility already records some statistics that you can directly use or build on. See, for example totalCO2Emission. Other statistics you might have to implement yourself, e.g., after detecting that a car

Wave Service Advertisement (WSA) implementation

人盡茶涼 提交于 2019-12-23 04:45:38
问题 I am working on the implementation of the following scenario using OMNET++ & VEINS simulators. Every RSU will broadcast WSA (Wave Service Advertisement) Beacon once per second. (i.e. I2V communication). Every passing vehicle would store these WSAs. (i.e. Caching) Vehicles interested in a WSA, would query nearby vehicles. (i.e. Searching for WSA) (i.e. V2V communication). Vehicles after receiving the query, would response to the query (if the required WSA is inside the vehicle cache). (i.e.

Calculate direction of a vehicle (Veins/Omnet++/Sumo)

可紊 提交于 2019-12-22 00:04:22
问题 Is it possible to calculate(get) direction of vehicle in Veins(via TraCIMobility)? I want to know if two vehicles are traveling in opposing directions or not. I think I can do that via getAngleRad() method (if they are moving in the same direction they fall in the same quadrant and if moving opposite they are in opposite quadrants), but I am not sure if its correct. (Sub-Question: Also, what are the exact values that getAngleRad() would return for each quadrant?) 回答1: You are correct:

Using a subset of a SUMO scenario for OMNeT++ network simulation (with VEINS)

对着背影说爱祢 提交于 2019-12-21 02:46:09
问题 I'm trying to evaluate an application that runs on a vehicular network using OMNeT++, Veins and SUMO. Because the application relies on realistic traffic behavior, so I decided to use the LuST Scenario, which seems to be the state of the art for such data. However, I'd like to use specific parts of this scenario instead of the entire scenario (e.g., a high and a low traffic load fragment, perhaps others). It'd be nice to keep the bidirectional functionality that VEINS offers, although I'm

How could nodes receive packets from sensors and on the other hand send them to Mobile Elements?

泪湿孤枕 提交于 2019-12-20 06:20:57
问题 I am using OMNet++ to simulate a wireless network. The scenario is : "sensor nodes send sensory data to some nodes (called RN)(send to the nearest RN). and some mobile elements collect data from these points." sensors distribute uniform in field and position of RNs are determined.also MEs follow BonnMobility with predefined path. I'm using omnet 5.4 with inet 3.6. numHost=500 ** numME=5 ** numRN=50 NED file: network MyNet { parameters: int numHost; int numME; int numRN; string hostType =

Allow a RSU receive messages in Veins

感情迁移 提交于 2019-12-20 04:23:37
问题 I'm trying to implement a very simple scenery on Veins (OMNeT++ + SUMO) with just three vehicles and one unique fixed RSU, but I'm new in Veins and I'm not able to move very well, despite the tons of documents, FAQs and tutorials I've already read! My start point is the default TraCI scenary demo, but here the vehicles send and receive, while the RSU just send in broadcast. I managed to fix manually my RSU (adding a MapName.add.xml file and import it from MapName.sumo.cfg , and later

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

How to change configuration of network during simulation in OMNeT++?

孤街浪徒 提交于 2019-12-19 10:52:25
问题 I want to modify some parameters of element's .ini file in OMNeT++, say a node's transmission rate, during the simulation run, e.g. when a node receives some control message. I found information saying that it's possible to somehow loop the configuration stated as: some_variable = ${ several values }, but there are no conditional clauses in .ini files and no way to pass to those files any data from C++ functions (as far as I'm concerned). I use INET, but maybe some other models' users already

Results Analysis in OMNET++

*爱你&永不变心* 提交于 2019-12-18 18:22:00
问题 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: