omnet++

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

OMNET++: How to obtain wireless signal power?

邮差的信 提交于 2019-12-11 16:11:44
问题 I am using the newly released INET 4.0 framework for OMNET++ and I would like to obtain the received signal strength value in a wireless host (of type AdhocHost). How may I do that? 回答1: In INET 4.0.0 the packet received by a module contains several tags. Between others there is SignalPowerInd tag. According to SignalTag.msg: This indication specifies the average analog signal power that was detected during receiving the packet. It may be present on a packet from the phyiscal layer to the

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

<!> Error during startup: Cannot load library in OMNET++ project while using sqlite3

我怕爱的太早我们不能终老 提交于 2019-12-11 10:55:13
问题 I have an OMNET++ project, CSW , that references other OMNET++ projects via Project->Properties->Project References. The reference to the project CB_CSW_Vehicle works fine. I marked for this project Project->Properties->OMNET++->Makemake->Options->Target as shared library . So I have a libCB_CSW_Vehicle.dll , which is used by the main project CSW . Simulations from CSW run, using CB_CSW_Vehicle without problems. The reference to the other project CB_CSW_Cloud , doesn't work. I made the same

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:

Changing model parameters by cPar in other module

北城以北 提交于 2019-12-11 09:42:13
问题 I am using this module hierarchy : Node: {udpApp[0]<->udp<->networkLayer->wlan[0]} and wlan[0]: {CNPCBeacon<->mac<->radio} I have given some initial parameter in the ini file for udpApp as : **.host*.numUdpApps = 2 **.host*.udpApp[0].typename = "UDPBasicApp" **.host*.udpApp[0].chooseDestAddrMode = "perBurst" **.host*.udpApp[0].destAddresses = "gw1" **.host*.udpApp[0].startTime = 1.32s **.host*.udpApp[0].stopTime = 1.48s But at run time I want to change the startTime and stopTime for udpAPP[0]

How to Send a broadcast packet in application layer in INET

坚强是说给别人听的谎言 提交于 2019-12-11 06:30:10
问题 I use INET 3.6 in Omnet 5.1.1. I have done this structure which has been mentioned in bellow link successfully. https://stackoverflow.com/a/36647631/6640504 Then,I have made simple module in (inet --> application --> base) and added its NED file to node. But I could not send any packet to other nodes. Would you please guide me how to send or receive broadcast packets in Application layer without using udpapp or tcpapp? Thank you in advance. 回答1: To be able to send broadcast packets in omnet,

Try to create new project with INET reference, got : “unexpected NAME, expecting $end” in .msg file

一世执手 提交于 2019-12-11 06:15:15
问题 I created a project which contains my linklayer and simulation source code. This project has INET as the project reference. At build time, I got this error: Error: syntax error, unexpected NAME, expecting $end It comes from the message file (which contains types of messages): import inet.common.INETDefs; My message file is very similar to the Bmac message file (also tried with Bmac, got the same error). Any idea please? 回答1: INET 4.X uses a new version of message compiler. But OMNeT++ by

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