omnet++

Omnet++ : Ad Hoc Network

我怕爱的太早我们不能终老 提交于 2019-12-06 12:55:44
问题 I am new to Omnet++. Although I have tried some basic examples such as Tic-Toc and Source-Sink, I cannot figure out how to implement more sophisticated networks. Problem : I want to implement Ad Hoc Network. I have tried examples given in INET but they only ping each other and reply. They do not exchange actual messages. I want my network to have actual information in form of messages and then communicate these messages through ad hoc network to different nodes. Please help!! 回答1: You should

How can I get a traffic light that exists in sumo and change its phase in veins?

…衆ロ難τιáo~ 提交于 2019-12-05 08:16:16
问题 In sumo, my simulation has a traffic light called 539320442 . I want that a RSU (that exists in veins) changes this traffic light's phase. So I created a Trafficlight variable in the TraCIDemoRSU11p.h as it follows: TraCICommandInterface::Trafficlight* RSU_traffic_light; Now I would like to get this traffic light that has id: 539320442 and change its phase by using: void TraCICommandInterface::Traffic_light::setPhase(string, integer) The problem is that in the TraCIDemoRSU11p.cc I couldn't

How can I combine my customize module with Omnet++INET's simple module

僤鯓⒐⒋嵵緔 提交于 2019-12-05 07:35:09
问题 As all the simple modules' behavior like 80211 mac layer has been defined in the INET module. If I want to add a customize layer between mac layer and network layer to handle network coding. How can I combine the customize module and INET's simple module ? 回答1: To add a new module between network layer and MAC layer I suggest creating a modified host in a new project. For OMNeT++ 4.6 and INET 3.2.4 do the following: Create a new OMNeT++ empty project with src and simulation directories. In

Dynamical transmission range in the ieee802.11p module

旧城冷巷雨未停 提交于 2019-12-04 21:13:45
I'm a MRs student , i use sumo 0.25.0 and veins 4.4 within omnet++ 5.0 .I'm working in the IEEE0802.11p module. Including my proposition i will use a formula that change the transmission range calculator into dynamical calculator which communicate with the simulation to get information from it like (mean speed, average distance from front-bumper to front-bumper between vehicles ...). here is the transmission range formula that I will use and the Article containing the formula my question is where can i find the transmission range calculator and where can I put my code in the application layer

Omnet++ : Ad Hoc Network

醉酒当歌 提交于 2019-12-04 21:02:57
I am new to Omnet++. Although I have tried some basic examples such as Tic-Toc and Source-Sink, I cannot figure out how to implement more sophisticated networks. Problem : I want to implement Ad Hoc Network. I have tried examples given in INET but they only ping each other and reply. They do not exchange actual messages. I want my network to have actual information in form of messages and then communicate these messages through ad hoc network to different nodes. Please help!! You should be fine with the examples in inet/examples/adhoc/ieee80211 and inet/examples/manetrouting. As for 'real'

Can I create omnet++ cc source file for INET module StandaredHost or any module

房东的猫 提交于 2019-12-04 20:47:48
I don't know how this question will sound like but I'm this is the best place to ask anything about science. I am trying to create a cc omnet++ source file for INET modues. Like we do in simple module, we simple inherit that class with cSimpleModule and then we give implementation of Initialize and handleMessage methods. I tried creating a cc source file and then inherit it by StandaredHost and declared the both methods initialize and handleMessge, but it is not working. I want to know the proper way of doing so. What I want to achieve is that I want to make a source file for each module when

Unable to use GMP with Omnet++

China☆狼群 提交于 2019-12-04 07:14:34
问题 I have installed GMP on ubuntu. I download GMP-6.1.2 from "https://gmplib.org".Then I extracted it in Home folder and installed like: 1. cd gmp-6.1.2 2../configure 3. make 4. sudo make install 5. make check I checked,gmp was installed in "/usr/local" and I opened omnet and I change these paths: I entered Properties project: 1. in (c/c++ build | environment | path ), I added : (/usr/local/include:/usr/local/lib) then I applied. 2. in (c/c++ General | paths and symbols | includes),I added (/usr

How can I get a traffic light that exists in sumo and change its phase in veins?

我的梦境 提交于 2019-12-03 21:59:53
In sumo, my simulation has a traffic light called 539320442 . I want that a RSU (that exists in veins) changes this traffic light's phase. So I created a Trafficlight variable in the TraCIDemoRSU11p.h as it follows: TraCICommandInterface::Trafficlight* RSU_traffic_light; Now I would like to get this traffic light that has id: 539320442 and change its phase by using: void TraCICommandInterface::Traffic_light::setPhase(string, integer) The problem is that in the TraCIDemoRSU11p.cc I couldn't get the traffic light and save it in: RSU_traffic_light; So I was wondering how can I get this traffic

Using a subset of a SUMO scenario for OMNeT++ network simulation (with VEINS)

守給你的承諾、 提交于 2019-12-03 08:34:11
I'm trying to evaluate an application that runs on a vehicular network using OMNeT++, Veins and SUMO. Because the application relies on realistic traffic behavior, so I decided to use the LuST Scenario , which seems to be the state of the art for such data. However, I'd like to use specific parts of this scenario instead of the entire scenario (e.g., a high and a low traffic load fragment, perhaps others). It'd be nice to keep the bidirectional functionality that VEINS offers, although I'm mostly interested in getting traffic data from SUMO into my simulation. One obvious way to implement this

finding a memory allocation error with omnet++

浪子不回头ぞ 提交于 2019-12-02 21:17:33
问题 I am doing networks simulations under omnet++ & veins(v2.0-rc1), for this purpose I experiment 4 scenarios with 20 repetitions for both one. I am getting some errors (i guess that is a memory allocation error) during the simulations of the 3rd & 4th scenarios wich share a common functionnality (ack). For the concerned simulations, it starts normally and executes a few repetition but failed after that (for example, it fails at the 5th repetition of the 4th scenario), here is the output : 0: **