omnet++

Calculate power consumption to see if the node dies

戏子无情 提交于 2019-12-11 05:33:14
问题 I am using Omnet++ and Inet 3.4.0 and I am trying to simulate power consumption and make the node dead after it's energy gets over. I tried IdealEnergySource model and SimpleEnergyStorage. but I could not figure out where to keep the parameter of the energy source. I tried in SimpleEnergyStorage.cc but could not find. Than you in advance 回答1: The Wireless08 tutorial from INET uses IdealEnergyStorage which has an infinite amount of energy. Therefore in that case a node will never be dead. To

Veins can now “simulate cars without network cards” - Documentation?

感情迁移 提交于 2019-12-11 04:49:45
问题 Dear OMNET/Veins community, I noticed in the Changelog under Veins v4.3 that there is now capability for simulating vehicles without network cards. Would there be any documentation / or instructional material available to help the user take advantage of this new capability? Thanks so much, Van 回答1: You can take advantage of this insofar as you can now remove the module simulating a network card (the NIC module) from a car without the simulation complaining (it used to throw an error, noting

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

你说的曾经没有我的故事 提交于 2019-12-11 04:38:58
问题 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 model and run the model in Omnet but without any programming which means the transmission power and speed between 2 vehicles are all set in the .ini file. Now I want to implement an algorithm to adjust them dynamically. As a beginner I barely know

OMNET++ Tkenv/GUI doesn't appear anymore

喜夏-厌秋 提交于 2019-12-11 03:57:47
问题 I'm using OMNET++ since two weeks and everything was working pretty good until I run a simulation a couple of minutes ago and the simulation Tkenv window doesn't appear anymore ? Any idea about this bug ? Thank you 回答1: Tkenv stores the last used window layout in a file ".tkenvrc" in the directory containing your simulation. Maybe deleting this file (thus restoring the default layout) helps. 来源: https://stackoverflow.com/questions/29961937/omnet-tkenv-gui-doesnt-appear-anymore

How to invoke finish() individually on modules in omnet++

*爱你&永不变心* 提交于 2019-12-11 03:43:07
问题 I am using Omnet++ and creating a scenario where a sender keeps sending packets to a receiver (uni-directional communication from sender to receiver) and I have set a counter on both the simple modules of sender and receiver. Since the sender's counter counts down to zero first than the receiver, the simulation run well but it does not record statistics since all that is done at the receiver. after the counter is decreased to zero both the modules invoke a finish() function. sender::finish()

Reduce the coverage area between vehicles

隐身守侯 提交于 2019-12-10 12:14:53
问题 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 = -110dBm If not, which parameters can I modify please? 回答1: If by coverage area you mean communication range, the short answer is yes, you can modify these parameters to reduce the communication range (which I'd probably do by lowering the maximum

How to get Coordinates of each vehicle in VEINS?

拟墨画扇 提交于 2019-12-10 12:04:37
问题 I am using Veins 4.6, Sumo 0.25 and Omnet++ 5.2. I need to get the coordinates of two vehicles (nodes) at a given time, to calculate the distance between them. I have tried to modify the TraCIDemo11p.cc file in the function handlePositionUpdate(). The Problem is when the veh0 returns its coordinate at the same time there is coordinate sent by veh1 which is very small. How can I get the position of both the vehicles at the given time and find the distance between them? void TraCIDemo11p ::

Dynamical transmission range in the ieee802.11p module

会有一股神秘感。 提交于 2019-12-10 00:18:17
问题 I'm a MRs student , i use sumo 0.25.0 and veins 4.4 within omnet++ 5.0 .I'm working in the IEEE0802.11p module. Including my proposition i will use a formula that change the transmission range calculator into dynamical calculator which communicate with the simulation to get information from it like (mean speed, average distance from front-bumper to front-bumper between vehicles ...). here is the transmission range formula that I will use and the Article containing the formula my question is

Omnet++ , veins , the number of neighbors nodes for Car X in specific time

喜欢而已 提交于 2019-12-08 12:57:01
问题 My question: how can I compute/find the number of neighbors nodes for Car X in specific time (targeted nodes in range of car X), from the results or by updating the code ? In Beacon broadcasting, to compute the ratio of successfully received packet for a node X ,I think that I need to know the number of nodes(cars) that exist in the region of this car X. 来源: https://stackoverflow.com/questions/37150827/omnet-veins-the-number-of-neighbors-nodes-for-car-x-in-specific-time

speed of vechile in veins increases slowly

戏子无情 提交于 2019-12-08 12:45:29
问题 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 slowly till its time finish , so can i make it faster ??? 回答1: A vehicle in SuMO has the speedMode parameter which determines how it should behave for instance in terms of acceleration and deceleration. By default this parameters is set to consider