omnet++

Class “Veins::ObstacleControl” not found

陌路散爱 提交于 2019-12-13 05:37:17
问题 I have followed step by step the tutorial to install Veins, but when I tried running the example scenario (final step) I ended up with the above error. The whole error was: Error in module (cModule) RSUExampleScenario (id=1) during network setup: Class "Veins::ObstacleControl" not found -- perhaps its code was not linked in, or the class wasn't registered with Register_Class(), or in the case of modules and channels, with Define_Module()/Define_Channel(). TRAPPING on the exception above, due

send messages from all nodes at the same time

喜你入骨 提交于 2019-12-13 03:36:40
问题 following is the .ned file simple computer { parameters: gates: input in1; output out1; input in2; output out2; } // // TODO documentation // network Network { @display("bgb=538,302"); submodules: A: computer { @display("p=30,88"); } B: computer { @display("p=344,96"); } C: computer { @display("p=209,199"); } connections: A.out1 --> B.in1; B.out1 --> A.in1; A.out2 --> C.in1; C.out1 --> A.in2; C.out2 --> B.in2; B.out2 --> C.in2; } following is .cc source file #include <string.h> #include

Getting the location of two different modules

元气小坏坏 提交于 2019-12-13 02:09:02
问题 I have 2 types of submodules in my network. AdhocHost which is standard definition in INET framework. module of type IMobility with its mobility type of type RandomWPMobility , both are standard INET modules. I can get the location of modules of type AdhocHost by this code: module = simulation.getModuleByPath("Mynet.host[1]"); c = MobilityAccess().get(module)->getCurrentPosition(); host[*] being of type AdhocHost . But when I replace host[1] with blockage[1] (blockage is of type IMobility ),

g++ and gcc is not found in path in omnet++

笑着哭i 提交于 2019-12-12 10:04:57
问题 I am new in omnet++ and found some difficulty. My code is ok but the problem is g++ and gcc is not found in PATH . I have no idea why this problem is going on. Thanks in advance. 回答1: Start mingwenv.cmd from main OMNeT++ directory, type omnetpp and don't close console. All needed paths will be correctly set (path to gcc and g++ too). 回答2: Since I do not have enough reps to comment, I will reply here. First (obvious) things first, are you sure that gcc/g++ compiler suite are installed on your

Veins - Unexpected behavior with lost packets in certain vehicles

☆樱花仙子☆ 提交于 2019-12-12 08:17:06
问题 I'm working with the Veins framework over the OMNeT++ simulator and I'm facing a weird situation where certain few nodes lose all received packets. To put everybody in context, I'm simulating 100 nodes (4 flows of 25 nodes), all under coverage (apparently), and sending 10 packets per second each. Depending on the moment the nodes enter the network (i.e: are created by SUMO), some of them (usually just 1 but can be 2, 3, 4...) enter in a mode where all packets are marked as lost

Omnet Tkenv run config for multiple parameters: executing only the first value of parameter

雨燕双飞 提交于 2019-12-12 06:14:49
问题 My ini code for the config is as: [Config BR54MBPS1MS] description = "at 54MBPS with SI 1ms for 1250 Bytes with all time interval" repeat = 2 sim-time-limit = 1 min **.scalar-recording = true **.vector-recording = false **.host1.udpApp[0].messageLength = 1250B **.wlan*.bitrate = 54Mbps **.host1.udpApp[*].sendInterval = ${interval = 100..1200 step 100} us **.vector-recording = false output-scalar-file = 54Mbps/${configname}54Mbps${interval}us.sca and I want to run it for all given intervals

How to use LEDA graph library on Omnet++ projects?

早过忘川 提交于 2019-12-12 05:16:50
问题 I am trying to use LEDA-6.3 library in Omnet++ 4.2.2. I installed LEDA and ran a simple program using it without problem from Ubuntu terminal. However, when I port the code to Omnet++, it fails. Below is my simple code. #include <LEDA/graph/graph.h> #include <omnetpp.h> class cLeda : public cSimpleModule { protected: virtual void initialize(); }; Define_Module(cLeda); void cLeda::initialize() { EV << "TestLEDA"; graph g; g.read("nsfnet.txt"); EV << "No. nodes = " <<g.number_of_nodes() << endl

omnet++ crashes while creatng objects

亡梦爱人 提交于 2019-12-12 01:36:58
问题 I have this piece of code. tempIPARPReply = new IPv4ARP("IPv4ARPReply"); tempIPARPReply->setSourceIP(tempIPARP->getDestinationIP()); tempIPARPReply->setDestinationIP(tempIPARP->getSourceIP()); I have this in my header file. IPv4ARP *tempIPARP; Here IPv4ARP is my own created message in omnet. It works perfectly fine. But after I have project referenced the inet and Core4Inet projects to this working project on runtime the omnet++ simulation kernel simply crashes and ends with a simulation

How to extend different Modules of Inet with custom messages?

谁都会走 提交于 2019-12-11 20:33:59
问题 I have all the examples up and running for the INET (AODV) simulation. My network comprises of number of AODV Router hosts. My next task is to exchange some custom massages regarding each host's current position (which will be updated after a certain time through Mobility). All the examples I found (normally) are of tictoc which is asking me to build a simpleModule in a .cc file and then use that module in the .ned file. I want to use the AODVRouter module to exchange these messages (as it

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