veins

initialize method in TraCIDemoRSU11p

南楼画角 提交于 2019-12-11 19:07:29
问题 I'm using omnetpp-5.4.1 , veins-4.7.1 , sumo-0.30.0 .I'm going to do fuzzy clustering by RSU in veins.I created a new module called FCM in veins/modules/application/traci and inherited the TraCIDemo11p and wrote the clustering code in it. Because I want to RSU start clustering,I used the initialize method in the TraCIDemoRSU11p to call the method inside the FMC at the start of work. void TraCIDemoRSU11p::initialize(int stage) { BaseWaveApplLayer::initialize(stage); std::cout<<"starting

opp_run error on omnetpp IDE

大兔子大兔子 提交于 2019-12-11 18:09:38
问题 I'm working on a veins project at the moment and everything went fine till today. I had the need to add a new module to the ' veins/src/veins/modules ' directory so I simply created a new folder and put some .ned files and relative header/source files in there. I got some errors after doing that but nothing special (I was probably doing something wrong and compiler didn't like it). I then decided to delete the folder and try again maybe the day after. After doing so I re-run the same exact

Mac_1609-4::setTxPower() to Set TXPOWER in Application

两盒软妹~` 提交于 2019-12-11 15:29:24
问题 How do I control Transmission Power based on certain parameters? Do I need to use Mixim? If so, is there any tutorials on it? OR Is the only appropriate place to do it is in the mac1609-4 file in the TXPOWER parameter? If that's the place to do it, then how can I get vehicle position to do it? For example I want the transmission power to be 10 at point X and Y on the road. Thanks in advance. 回答1: An application can set the transmission power for every message sent via the 1609.4 MAC layer by

Change the transmission signal strength for a specific set of vehicles during the run-time

我是研究僧i 提交于 2019-12-11 12:13:04
问题 I started (since about one week) using veins (4.4) under omnet++ (5.0). My current task is to let vehicles adjust their transmission range according to a specific context. I did read a lot of asked questions like these ones (and in other topics/forums): Dynamical transmission range in the ieee802.11p module Vehicles Receive Beacon Messages outside RSU Range How coverage distance and interference distance are affected by each other Maximum transmission range vs maximum interference distance

How coverage distance and interference distance are affected by each other

女生的网名这么多〃 提交于 2019-12-11 12:04:40
问题 I need to know the difference between the maximum coverage distance of a RSU and the maximum interference distance and how they are affected by each other. I know the coverage distance is calculated from the path loss and similar models but don't know how message reception is affected by interference distance and how its value is calculated (in veins example, it is set to 2600m) I am implementing a scenario including one rsu and one vehicle moves from far away towards the rsu. When i used the

On Veins, how to get some values from ini file?

百般思念 提交于 2019-12-11 10:13:28
问题 On Veins applications ( veins/src/modules/application/app_name.(cc, h ), how to get values like *.car[*].appl.numVehicles from the ini file? I can get values like sim-time-limit (see below) and anothers createad by me one, by I can't acess values on *.car[*].* or *.rsu[*].* from ini file. stringTmp = ev.getConfig()->getConfigValue("sim-time-limit"); I'd appreciate any help 回答1: I got the " numVehicles " parameter from the .ini file using the following codification: long numV = Veins:

What happens to vehicles when they end their route?

烈酒焚心 提交于 2019-12-11 06:05:19
问题 My project is to build a VANET-based smart parking simulation for a small-scale urban area. I dynamically define a route for vehicles to traverse to, then park for ' x ' amount of time. Implementation for that is complete, the next step was to define a new exit route for them to exit the simulation after the ' x ' amount of time is up. Reason being is that I want to simulate cars vacating parking spaces so that other vehicles may be able to avail of them (I don't want them to simply just 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

Communication between a car and a pedestrian in Veins

谁说胖子不能爱 提交于 2019-12-11 04:13:11
问题 I would like to know how could I create a wireless communication between a car and a pedestrian (V2P) in Veins? Thanks a for your attention. 回答1: Veins allows to specify a module for a vehicle type it gets from SuMO: Veins Multiple Applications in multiples Vehicle types You have to setup your network and pedestrians according to the SuMO wiki and then configure the corresponding module in Veins. 来源: https://stackoverflow.com/questions/51597697/communication-between-a-car-and-a-pedestrian-in