omnet++

What exactly does handleParkingUpdate() do?

非 Y 不嫁゛ 提交于 2019-11-29 12:13:10
I am trying to implement a VANET model for smart parking simulations. Trying to fully understand the TraCIDemo11pp.cc and files relevant to it and its proving quite difficult to get my head around the general structure of each module and the communications between them despite understanding the TicToc tutorial. I understand how SUMO and OMNETPP are run in parallel, TraCIScenarioManager from OMNETPP communicates with the TraCI server in order to exchange information to SUMO etc. But I'm finding it hard to get my head around how the TraCIDemoApp is utilised. The question is quite specific, but

how to set the transmission range of a node under Veins 2.0?

ⅰ亾dé卋堺 提交于 2019-11-29 09:00:22
I am wondering how to correctly set the transmission range of a node under Veins 2.0, i thought that i was doing it right, but i am afraid to be wrong. So, i need some clarifications regarding parameters defined in *.ini file: *.connectionManager.pMax = 24.34mW # =>>> parameters to set the max interference distance by the global manager module *.connectionManager.sat = -80dBm # =>>> parameters to set the max interference distance by the global manager module *.**.nic.phy80211p.maxTXPower = 24.34mW # =>>> what is the role of this parameter ? is it affecting the transmission range or only

Veins Multiple Applications in multiples Vehicle types

那年仲夏 提交于 2019-11-29 08:48:15
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 ? Veins 4.6 allows you to set any or all of the moduleType , moduleName , and moduleDisplayString parameters not just to a string (which will set the OMNeT++ module type, module

Vehicles Receive Beacon Messages outside RSU Range

不问归期 提交于 2019-11-29 05:21:36
I am working on Veins framework, inside OMNET++. I set the property of RSU inside .ned file as follow: @display("p=150,140;b=10,10,oval;r=90"); The tkenv shows a circle around RSU, but the vehicles received beacons outside the range (circle). How can I adjust the transmission range of RSU to the Circle? Adding a display string tag of r is just adding a circle to the graphical output; it does not influence the simulation. If you define the "transmission range" as the point where the probability of reception is zero, you can calculate this point based on the transmission power at the antenna and

what policy is based vehicle rerouting in case of accident?

人走茶凉 提交于 2019-11-28 14:29:11
I'm doing a scenario where there is 1 route at the beginning and then it splits into 3, then merges into 1 again. I'm stopping the car in the first lane, the second car stops also, the third one reroutes in the middle lane, the fourth goes to the queue, the fifth reroutes, the sixth goes to the queue, the seventh reroutes.....why is it behaving like that? I can't understand where to change this "balancing" or "threshold". Any suggestion? The Veins 4.6 sample application behaves as follows: if a vehicle is stopped (and has been driving) and has not yet sent a warning message, it sends a message

Changing WSM(WAVE Short Message) packet size in Veins

做~自己de王妃 提交于 2019-11-28 12:43:26
Does setting length of WSM via setWsmLength or adding a large payload via setWsmData makes any difference during simulation? I am trying to simulate a heavily used network, but changing any of those two values doesn't seem to make any difference. I found this , but wanted to confirm this. And If I wanted to change the size of the WSM do I have to implement it? You can implement a packet for your application in a .msg file as follows: cplusplus {{ #include "veins/modules/messages/WaveShortMessage_m.h" }} class WaveShortMessage; message MyAppsPacket extends WaveShortMessage { string

how to get start to build a veins application

只谈情不闲聊 提交于 2019-11-28 06:29:41
问题 I am new to veins and would like to use it. I have taken my time to learn omnetpp and SUMO. now I can use both successfully. I also downloaded and installed veins and the example works well. now I need to build my own application using veins. simply, I need to simulate a straight road where vehicles are moving and send messages to a single RSU. I can't find any documentation for veins or its example. can anybody help me to know what steps should I follow to do this? for example, which ned

What exactly does handleParkingUpdate() do?

那年仲夏 提交于 2019-11-28 05:58:03
问题 I am trying to implement a VANET model for smart parking simulations. Trying to fully understand the TraCIDemo11pp.cc and files relevant to it and its proving quite difficult to get my head around the general structure of each module and the communications between them despite understanding the TicToc tutorial. I understand how SUMO and OMNETPP are run in parallel, TraCIScenarioManager from OMNETPP communicates with the TraCI server in order to exchange information to SUMO etc. But I'm

How to change a parameter value over time?

时光毁灭记忆、已成空白 提交于 2019-11-28 05:48:58
问题 I need to change the value of a volatile parameter over time in a simulation. I.e. in the first 30s of the simulation I need exp(400ms) after that, until 60s I need exp(800ms) and after 60s exp(2s) for interArrivalTime . 回答1: For volatile parameters there is a pretty easy trick. Use the ? : operator along with the simTime() NED function: **.interArrivalTime = simTime() < 30s ? exponetntial(400ms) : exponential(800ms) or you can even chain them as ?: operator is evaluated left to right: **

how to set the transmission range of a node under Veins 2.0?

自闭症网瘾萝莉.ら 提交于 2019-11-28 02:19:39
问题 I am wondering how to correctly set the transmission range of a node under Veins 2.0, i thought that i was doing it right, but i am afraid to be wrong. So, i need some clarifications regarding parameters defined in *.ini file: *.connectionManager.pMax = 24.34mW # =>>> parameters to set the max interference distance by the global manager module *.connectionManager.sat = -80dBm # =>>> parameters to set the max interference distance by the global manager module *.**.nic.phy80211p.maxTXPower = 24