omnet++

Exchange data between nodes in OMNeT++

半腔热情 提交于 2020-02-06 09:58:27
问题 I'm using OMNeT++ to simulate a network. The messages exchanged between nodes are type integer and complex number. How can I exchange the type of data between different nodes, because cMessage cannot accept integer and complex data. 回答1: You can easily define custom messages with any content using .msg files. Take a look at the corresponding chapter in the Simulation Manual. This way you can define your "complex" type message, by adding two fields of type double , named for example re and im

Veins: Get Tripinfo and emissions in output

爱⌒轻易说出口 提交于 2020-02-06 03:32:23
问题 I'm using veins 4.6 with omnetpp 5.1.1 and trying to output tripinfo of vehicles using following configurations in .sumocfg file: <input> <net-file value="erlangen.net.xml"/> <route-files value="erlangen.rou.xml"/> <additional-files value="erlangen.poly.xml"/> </input> <time> <begin value="0"/> <end value="300"/> <step-length value="0.1"/> </time> <report> <no-step-log value="true"/> </report> <gui_only> <start value="true"/> </gui_only> <emissions> <device.emissions.probability value="1"/> <

Import data to OMNET++

瘦欲@ 提交于 2020-01-25 11:53:07
问题 I am trying to model a network in OMNET++. What I have is a text file (can be in an Excel file format) with nodes' names, list of interfaces, and interface connections. What I like to do is to write a program (perhaps a plug-in) to feed this file to OMNET++ and (automatically) create .ned and .cc based on this file. The rationale is that there is a long list of nodes/interfaces, that makes it difficult to do it manually, and possibly a change in the connections makes it difficult to recreate

Import data to OMNET++

白昼怎懂夜的黑 提交于 2020-01-25 11:53:07
问题 I am trying to model a network in OMNET++. What I have is a text file (can be in an Excel file format) with nodes' names, list of interfaces, and interface connections. What I like to do is to write a program (perhaps a plug-in) to feed this file to OMNET++ and (automatically) create .ned and .cc based on this file. The rationale is that there is a long list of nodes/interfaces, that makes it difficult to do it manually, and possibly a change in the connections makes it difficult to recreate

Error while running example of the veins in the last step of the installation

女生的网名这么多〃 提交于 2020-01-20 09:33:22
问题 did the installation of the veins according to the tutorial of the site (http://veins.car2x.org/tutorial/) using the operating system windows 10, but in the last step, when executing the omnetpp.ini of the example of the veins the code compiles but the execution in qtnev gives the following error: Help me please Cannot evaluate parameter ‘headerLength’: (omnetpp::cDoubleParlmpl)headerLength: Cannot cast from type double to integer – in module (Mac1609_4) RSUExampleScenario.rsu[0].nic.mac1609

Error while running example of the veins in the last step of the installation

試著忘記壹切 提交于 2020-01-20 09:32:30
问题 did the installation of the veins according to the tutorial of the site (http://veins.car2x.org/tutorial/) using the operating system windows 10, but in the last step, when executing the omnetpp.ini of the example of the veins the code compiles but the execution in qtnev gives the following error: Help me please Cannot evaluate parameter ‘headerLength’: (omnetpp::cDoubleParlmpl)headerLength: Cannot cast from type double to integer – in module (Mac1609_4) RSUExampleScenario.rsu[0].nic.mac1609

How to use lpsolve in omnet++ simple modules

帅比萌擦擦* 提交于 2020-01-07 06:16:15
问题 lpsolve can be called from a c++ program with main() but I am unable to use it in handlemesage() or any other user-defined method in omnet++ simulation. Any help in this regard is appreciated. Thanks 回答1: Go to project properties --> omnet++ --> select SRC --> Options --> link --> Additional libraries to link with: ( -l option) and insert lpsolve55 and ok Screenshot of the step1 Screenshot of the step2 来源: https://stackoverflow.com/questions/43424829/how-to-use-lpsolve-in-omnet-simple-modules

OMNET++ How to retain all functions in AODVRouting class but override sendAODVPacket function only?

蹲街弑〆低调 提交于 2020-01-07 04:13:27
问题 I'm writting a simple module to simulate a misbehaved node that inherits all functions from AODRouting, and overriding sendAODVPacket function by dropping the AODV packet once it has received it. The .h file as follows: #ifndef __PROJECT1_SELFISHBASENODE_H_ #define __PROJECT1_SELFISHBASENODE_H_ #include <omnetpp.h> #include "AODVRouting.h" using namespace inet; class SelfishBaseNode : public AODVRouting { protected: virtual void initialize(); virtual void sendAODVPacket(AODVControlPacket

OMNET++ 4.6 recurrent error appeared: libgcc_s_dw2-1.dll?

我们两清 提交于 2020-01-07 03:00:18
问题 How to solve this error? The only way I solve is by reinstalling the omnet again and again then after few days the same error appears. I find everywhere in the internet but can not find the exact solution. Thank you. 回答1: You have to start the simulations and the IDE also from the MINGwEnv prompt otherwise the PATH is nit set properly and your simulations will not find the mentioned DLL. 来源: https://stackoverflow.com/questions/34070104/omnet-4-6-recurrent-error-appeared-libgcc-s-dw2-1-dll

Cannot create executable

你离开我真会死。 提交于 2020-01-07 01:24:26
问题 I had a project running pretty neat until I had to add a few features. The features was a few lines of code and a new .msg definition file. After the additions when build the program shows this message: make MODE=debug CONFIGNAME=gcc-debug all /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh: -c: line 0: `mkdir -p "out/gcc-debug/" && echo "-g -Wall -I/usr/include -fno-stack-protector -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER -I"C:/Program Files (x86)