omnet++

Some Messages are lost in veins

﹥>﹥吖頭↗ 提交于 2021-02-20 01:50:42
问题 I'm using VEINS4.4, OMNeT++ 5.0 and SUMO 0.25 My project involves vehicles to exchange 5 types of messages and # of vehicles is more than 200 , and i some of messages not received by others and when i traced the problem , i discovered that they lost because 'A packet was not received due to biterrors or packet was not received correctly, sending it as control message to upper layer'. I have found solution in one of sites and i have applied in my code ,and it solved the problem little bit

Some Messages are lost in veins

吃可爱长大的小学妹 提交于 2021-02-20 01:48:45
问题 I'm using VEINS4.4, OMNeT++ 5.0 and SUMO 0.25 My project involves vehicles to exchange 5 types of messages and # of vehicles is more than 200 , and i some of messages not received by others and when i traced the problem , i discovered that they lost because 'A packet was not received due to biterrors or packet was not received correctly, sending it as control message to upper layer'. I have found solution in one of sites and i have applied in my code ,and it solved the problem little bit

Class “simpleModule” not found in omnetpp

删除回忆录丶 提交于 2021-02-19 03:37:05
问题 I am writing my own simple modules in omnet++. Inside the omnet IDE, I have created three simple modules. After that I have created a "network" using those modules. It is building successfully, but whenever I try to simulate it it shows Error in module (cModule) NetworkTopologyOnly (id=1) during network setup: Class "mySimplemodule2" 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

How to declare a matrix in .ned file

ⅰ亾dé卋堺 提交于 2021-02-11 14:41:10
问题 In OmNet++ 5.5.1, I want to initialize a matrix in .ned file. In each run, some element values of the matrix will be updated and the updated matrix needs to be used in the following run. For example: in .ned file, matrix table={ {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0} }; in mac.cc file, table[m][n] = table[m][n] + inc_rate; If m , n = 1, and inc_rate = 1, after the first run, the updated matrix will be matrix table={ {1, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0} } For the next

OMNet++ debugging on macOS 10.15 Catalina

时光总嘲笑我的痴心妄想 提交于 2021-02-11 12:15:47
问题 I am using macOS 10.15.2 Catalina and I followed the Installation Guide for macOS. I completely followed the Installation Guide and still I am unable to debug. Anyone encountered the same? or know how to fix it? Many thanks. Yasir $-$-$-$-$-$-$-$-$-$-$-$-$-$-$-$-$-$-$-$-$-$-$-$ Adding more details below for @Rudi When I try to install to install OMNet++ 6 pre 5 and do make , I am getting following error and it seems that OMNet++ 6 pre 5 is also not tested for macOS Catalina 10.15. =====

std::map find not working in C++ [duplicate]

青春壹個敷衍的年華 提交于 2021-02-07 19:26:15
问题 This question already has an answer here : Error trying to find const char* key from std::map (1 answer) Closed 4 years ago . I have created a hash map and an iterator using the below lines: std::map<const char*,vaLueClass *> myCache; std::map<const char*,vaLueClass *>::iterator myCacheIterator; Then I insert into this map using the below line: myCache[anotherObject->getStringKey()] = new vaLueClass(anotherObj1->getIntAttr(), anotherObj1-->getIntAttr()); Then whenever I tried to search if an

Omnet++ error when simulating multiple submodules

◇◆丶佛笑我妖孽 提交于 2021-01-29 09:00:19
问题 I am trying to simulate 10 submodules. But omnet++ gives an error when the number of submodules are greater than five. here is the error: (omnetpp::cMessage)sampleEvent: par(int): Has no parameter #4 -- in module (Sam1) Net.sampler1[4] (id=6), during network initialization My .ned file simple Sam1 { parameters: @display("i=block/routing"); gates: inout gate[]; // declare two way connections } simple Svr1 { parameters: @display("i=block/process"); gates: inout gate[]; // declare two way

omnet++: Configuring logging

孤者浪人 提交于 2021-01-29 03:54:22
问题 I would like to use the oment++ logging facility for debug logging. For example: EV_DEBUG << " SASSim::SASSim" << endl; However, I can't figure out how to set my log level and the logging file in the simulation manual. I thought omnetpp.ini would allow me to specify this. Any pointers on where to look? Thanks. 回答1: Direct from the manual (10.6.4): https://omnetpp.org/doc/omnetpp/manual/#sec:config-sim:configuring-cmdenv In Cmdenv , logging can be configured using omnetpp.ini configuration

omnet++: Configuring logging

百般思念 提交于 2021-01-29 03:52:48
问题 I would like to use the oment++ logging facility for debug logging. For example: EV_DEBUG << " SASSim::SASSim" << endl; However, I can't figure out how to set my log level and the logging file in the simulation manual. I thought omnetpp.ini would allow me to specify this. Any pointers on where to look? Thanks. 回答1: Direct from the manual (10.6.4): https://omnetpp.org/doc/omnetpp/manual/#sec:config-sim:configuring-cmdenv In Cmdenv , logging can be configured using omnetpp.ini configuration

OMNET++ how to access function or variables in another class

放肆的年华 提交于 2021-01-28 07:16:34
问题 I have modified inet NodeStatus.cc with a customized function that return the variable value as follows: int NodeStatus::getValueA() { return ValueA; } Then, I created another simple module called simpleNodeB.cc and I wanted to retrieve ValueA from NodeStatus.cc. I tried the following code in simpleNodeB.cc but didn't work: if(getParentModule()->getSubModule(NodeStatus).getValueA()==test1) bubble("Value is the same"); The error message I got -> error: expected expected primary-expression