veins

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

The necessity of handleSelfMsg in BaseWaveApplLayer

ぐ巨炮叔叔 提交于 2019-12-08 15:31:32
I thought the handleSelfMsg in BaseWaveApplLayeris is same to tictoc self message which means a node sends message to itself but it looks not. So what is the necessity of handleSelfMsg in BaseWaveApplLayer? As the name is indicating, the method handles any messages which a node sent to itself. Those "messages" are simple events in the sense of a DES and not of a networking message. Then a certain action is taken corresponding to the received self-message's type. Here, this is either sending of a simple beacon message ( BasicSafetyMessage ) or of a service advertisement (

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

Why I get an error code 139 if I run this code?

一个人想着一个人 提交于 2019-12-08 11:17:01
问题 I would like to know why I can build this project, but as soon as RSU receives the message I get an error 139. Even if I try to solve by removing the code inserted in onData function and run the project again, still doesn't work. TraCIDemoRSU11p.h TraCIScenarioManager* manager; TraCICommandInterface* traci; TraCIDemoRSU11p.cc void TraCIDemoRSU11p::initialize(int stage) { BaseWaveApplLayer::initialize(stage); if (stage == 0) { manager = TraCIScenarioManagerAccess().get(); traci = manager-

The necessity of handleSelfMsg in BaseWaveApplLayer

眉间皱痕 提交于 2019-12-08 09:19:43
问题 I thought the handleSelfMsg in BaseWaveApplLayeris is same to tictoc self message which means a node sends message to itself but it looks not. So what is the necessity of handleSelfMsg in BaseWaveApplLayer? 回答1: As the name is indicating, the method handles any messages which a node sent to itself. Those "messages" are simple events in the sense of a DES and not of a networking message. Then a certain action is taken corresponding to the received self-message's type. Here, this is either

How to get count of cars in specific range

时光总嘲笑我的痴心妄想 提交于 2019-12-08 06:09:02
问题 In veins i'm trying to simulate a VANET scenario in which if road is blocked then after specific time the car broadcast a message including blocked roadId and count of vehicles around it's 100 meter. In TraCIDemo11p application when the car is stopped for longer than 10 seconds it changes the node color to red (to show an accident) and sends a message out to other cars containing the blocked road id, all this is done in handlePositionUpdate mehtod: findHost()->getDisplayString().updateWith("r

Pedestrian Simulation in veins (omnet++/sumo)

痴心易碎 提交于 2019-12-08 05:09:58
问题 I'm trying to run a pedestrian simulation from sumo in omnet++. To keep it easy (i am a beginner) I decided to use the Erlangen example provided with veins and extend it with a couple of pedestrians. I added the pedestrians in sumo and ran it. It works perfectly fine: You can see the pedestrians and cars in this picture Next I was trying to run the whole thing in omnet++. I also managed to do that but the pedestrians were not shown. Just the cars. I read these two topics: Communication