Questions tagged [omnet++]

OMNeT++ is an extensible, modular, component-based C++ simulation library and framework, primarily for building network simulators. "Network" is meant in a broader sense that includes wired and wireless communication networks, on-chip networks and queueing networks.

-2
votes
0answers
18 views

How to pack multiple packages together

using namespace omnetpp; class Txc10 : public cSimpleModule
0
votes
0answers
8 views

Omnet++ - Hierarchical Wireless Network

I'm trying to implement a hierarchical wireless network with modules and submodules, but when I run the simulation, I receive this message: Cannot create a medium visualization for FogNet....
0
votes
0answers
12 views

what versions do you agree with veins4a2?

in the VANET simulation,i installed (OMNeT ++ 4.6, Veins 4a2, Inet 2.3, MIXIM 2.3, and SUMO 0.22.0), while the simulators are running, the Qtenv appears but does not work, and show the following ...
0
votes
0answers
9 views

parkingArea.occupancy in Veins

I am using sumo-0.30.0, and veins-4.7.1. I need to get parking occupancy from sumo. How to add parkingArea.occupancy command in veins? Please help me. Thanks.
1
vote
0answers
31 views

how do you install Veins 5a1 on Windows 7? and connect it with Matlab

My Os is windows 7, and I am trying to connect veins with Matlab as described in the link https://github.com/veins/veins_matlab, but I face some issue. 1- I am trying to use same program versions in ...
0
votes
0answers
42 views

How to print correctly const char* struct member of a list?

I am trying to display struct members of a list in OMNeT++, all members are displayed correctly unless the member which is of type const char*. I am confused because after three push_back in the list, ...
-2
votes
0answers
14 views

running Go code inside simulation environment

how to run a blockchain code written in GO, inside a simulator(SUMO)./OMNET++ I have tried using ".so " file (shared object) but I want some other way.
1
vote
0answers
16 views

How to implement routing function between compound module vectors (including routers, hosts, mobile modules, etc.)?

How to implement routing function between compound module vectors (including routers, hosts, mobile modules, etc.)? For example, how do you connect internal and external compound module vectors? How ...
1
vote
1answer
47 views

omnet++ Error in broadcasting message from a node

Hello I am new to omnet++. I am trying to implement a simple broadcast service in omnet++ without using the inet. I have 6 nodes in ring topology. node[0] is the source and node[3] is the destination. ...
-1
votes
1answer
20 views

how can I start my project in veins or how can I use veins for my code?

I want to write my code in veins which is framework of omnet++ .where should I write my code? and how can I use veins codes for my simulation?
0
votes
1answer
26 views

Allow the RSU to receive a message from vehicles?

In my VANET simulation, I use (Veins 4.7.1, Inet4 and OMNeT++ 5.4.1) , when starting simulation, each vehicle broadcast a hello message, and while receiving the message from the RSU, during the ...
0
votes
1answer
25 views

How to assign an IP address to a dynamic node in OMNeT++?

I have created a dynamic node successfully, but the Ipv4Configurator did not assign an IP address to this new node. How can I assign an IP address to the wlan interface of this node? Thank you
0
votes
1answer
21 views

dynamic module : Ipv4 configurator does not assign address to the dynamic module omnet++

I have created a dynamic module using this code below. The module is created successfully but the ipv4configurator module did not assign an IP address to the created dynamic module. So when I run the ...
0
votes
1answer
34 views

How to create routing table with flood method in omnetpp

The goal is to create a routing table, so each node can send from wherever it is, a message to the node with the most neighbors. Let's say i have this network So every node's mission is to send a ...
0
votes
1answer
24 views

How to apply Ipv4NetworkConfigurator and UnitDiskRadioMedium of the network on dynamic module in omnet++?

I have a mobile sensor network, I need to simulate a clone attack on the network, so I create dynamically a node at runtime. The node is created successfully but it does not have all properties as ...
0
votes
1answer
29 views

Is there any example of dynamic module creation of type WirelessHost in omnet++?

I need to create a dynamic module in omnet++, I found some code in the OMNeT Guide, I adapt it to satisfy what I need, but I got a problem with the MediumCanvasVisualizer, When I run the simulation I ...
0
votes
1answer
18 views

Can I create two nodes with the same ID in omnet++?

I am simulating a clone attack in mobile sensor network, I want to generate at an instant t of the run-time a dynamic node which has the same type as other nodes and the same ID of an already existing ...
0
votes
0answers
14 views

Error building SIMULTE in OMNET++ -5.0 with INET 3.4

When building LTE project in omnet++, i'm getting the following error : warning: ../../inet/out/gcc-debug/src/libINET.a(FlatReceiverBase.o): local symbol `' has no section ../../inet/out/gcc-debug/...
0
votes
0answers
15 views

Defragmenting Tcp Packets

So here is what I am doing: I have a server app (similar to TcpGenericServerApp). It accepts messages (subscriptions) and does not answer immediately. The connection stays open. When some event ...
1
vote
1answer
41 views

Segmentation fault error in python embedded code in C++ code of Omnet++ simple module

I want to call a Python function from C++ code in OMNeT++ simple module. I debugged the code using gdb. It passes all lines fine, but at the end the segmentation fault occurs after Py_Finalize();. ...
0
votes
0answers
17 views

Undeclared signal “NF_NO_MATCH_FOUND” error in openflow 1.0

I am facing the below error when I to run a scenario similar to Scenario_small.ned with UDP packets. <!> Undeclared signal "NF_NO_MATCH_FOUND" emitted (@signal missing from NED file?) -- in ...
-1
votes
0answers
24 views

Inetmanet: Multiple interfaces - how to decide which to use

I'm on an adhoc network simulation (based on the project SAORS. I am using inetmanet 2.2) where I want the hosts to have 2 wireless interfaces with different proprieties. Taking into account the ...
0
votes
1answer
65 views

How to send one msg to next module after receiving all messages from previous module in OMNET++

Need your help. I have three modules Module A, Module B and Module C. Module A sends 20 messages to Module B. I want to send one packet to Module C after receiving all 20 messages from Module A. ...
-1
votes
1answer
39 views

How to use NetworKit as a library in OMNeT++?

I am trying to build the C++ Core of NetworKit and I would like to use it as a library in OMNeT++. I followed the instructions from the README file to build the code with cmake and make all. Then, I ...
0
votes
1answer
20 views

Error: NED type 'myApp' could not be fully resolved due to a missing base type or interface?

In my project, I implement a new class called myApp which inherits from ApplicationBase and UdpSocket classes. When I build my project I get no error, but when I debug C/C++ application with the IDE, ...
0
votes
1answer
28 views

Can't link INET library to omnet project correctly Ubuntu 18

I am on ubuntu 18, and I am trying to compile my project where I linked the INET library. It worked fine when I was on ubuntu 16. But now I got these errors on ubuntu 18: I already added inet ...
3
votes
1answer
50 views

write OMNET++ output to a text file

Greeting All, I have two questions regarding OMNET++ output results 1- I have a simulation that uses AODV routing protocol in VANET network, but when I record pcap for this simulation, it's shown as ...
0
votes
0answers
26 views

check_and_cast(): Cannot cast (inet::Indication*)ERROR to type 'inet::Packet *' in Omnet++?

I implement a new app which inherits from ApplicationBase and UdpSocket. In function handleSelfMessage(), I send a broadcast to get neighbors, this works fine. In function handleMessageWhenUp() I ...
-3
votes
0answers
22 views

How can we implement attackers in VEINS Omnet++?

-How can we implement attackers in VEINS Omnet++? I am using Omnet++ 5.4.1,
0
votes
0answers
31 views

How to calculate the free bandwidth scope and re-routing the packet in the network MPLS Using OMNET++ with an INET project?

Can you help me with this : How to calculate the free bandwidth scope in the MPLS network Using OMNET++ with an INET project? How to re-routing the packet in the MPLS network Using OMNET++ with an ...
0
votes
0answers
32 views

error: syntax error, unexpected NAME, expecting $end in OMNET++?

I need to add a .msg file to my project. The .msg code is : import inet.common.INETDefs; import inet.common.packet.chunk.Chunk; import inet.networklayer.contract.ipv4.Ipv4Address; namespace inet; ...
0
votes
0answers
21 views

Omnet++ /INET : How to import the PBC library in INET

I'm trying to import the pbc (Pairing-based cryptography) library in omnet++ in order to use it in INET. I'm using omnet++ on windows 10. Any help on how I should proceed?
0
votes
0answers
14 views

handleMessage(): Unknown protocol: id = 47, name = udp — in module (inet::MessageDispatcher) during network initialization

I am trying to broadcast a packet in order to discover neighborhood, when I run the simulation I got this erro : handleMessage(): Unknown protocol: id = 47, name = udp -- in module (inet::...
0
votes
1answer
26 views

How to change parameters Runtime in Omnet++ with setDoubleValue()

I am simulating a network with 2 wireless hosts and 1 Access point. During runtime a node sets the Access Point's transmit power to zero (to turn it off) by accessing the module and using ...
-1
votes
1answer
20 views

how to fix 'NETA build project problem on INET framework in omnet++'

first, I install the omnet++ then build the INET framework project and then if I build the project of NETA then 32 error in INET classes (ManetAddress.h( explicit ManetAddress(const IPvXAddress& ...
0
votes
0answers
35 views

How to register all IDs of neighbor in list?

In my code, each vehicle broadcasts a message the first time. I want to register all IDs of neighbor in a list for each vehicle, but my code allows only one ID to be registered on my list. How do I ...
0
votes
1answer
30 views

How to register a new class (new application) in Omnet++

I have the code below, but when I run the simulation I got this error : Class "myApp" not found -- perhaps its code was not linked in, or the class wasn't registered with Register_Class(). #ifndef ...
0
votes
1answer
14 views

Integrate omnet++4.6 with 5.1

I have a project run on the Omnet 5.1 and another in the omnet 4.6, this because it is mandatory for them to run in these versions. Have a way to integrate or communicate this projects ?
0
votes
1answer
25 views

Can't find UdpBasicApp.h file, fatal error: 'UdpBasicApp.h' file not found in omnet++

I am trying to extend UdpBasicApp, to implement my own UdpApp,when I compile I get this error : "./App.h:11:10: fatal error: 'UdpBasicApp.h' file not found". Here is my code : #include <...
0
votes
1answer
48 views

How to send parking information to server in veins?

I am using veins-4.7.1 and sumo-0.30.0. In my simulation i applied an algorithm to find the shortest path from vehicle current road to a parking area. Before applying the algorithm, vehicles need to ...
0
votes
0answers
29 views

How can I create a a thread with Veins functionalities?

I'm trying to create a new thread in my Veins simulation that can use the Veins::TraCICommandInterface::Vehicle*, however I'm not able to achieve this goal. I use a class EVData that should be able ...
0
votes
1answer
33 views

How to redirect the incoming traffic to a module to its simple submodule in Omnet++?

I have this code where a module which extends WirelessHost module is composed of a simple module called node : When I run the simulation, there's only mobility events, no communication events are ...
0
votes
1answer
37 views

Errors while building a project in omnet++

While building of an imported project, an errors occurs. I am using gcc Version 9. I have already built Inet 4.1 successfully. I also tried this with some other gcc Version between 5 and 8, but the ...
0
votes
0answers
19 views

Error getting IPv4 Adress in Openflow TestCases (INET)

I integrate the openflow project of INET in Omnet++ 5: https://github.com/inet-framework/openflow. I try to execute one of the exemples there, but i get this error: ASSERT: Condition '...
0
votes
1answer
62 views

Getting vehicle current edge ID

I am trying to get vehicle current edge id as follow: mobility = Veins::TraCIMobilityAccess().get(getParentModule()); assert(mobility); traci = mobility->getCommandInterface(); traciVehicle = ...
0
votes
1answer
35 views

How to get user defined field in message file INET

I would to send user data, so i added a field in the message file : class MpeiMacHeader extends MacHeaderBase { MPEIMacType type; uint32_t data; } This is what the received message looks ...
0
votes
1answer
55 views

How can I modify veins source code to build my first VANET simulation trigger by a RSU?

In a section of road (I exported a portion of map from osm), I have already placed a RSU and generate some random trips of some vehicles. I would like now simulate the exchanges of messages as ...
1
vote
1answer
50 views

How can I get cTopology in omnet++?

I want to get the list of neighbor addresses (nodes that are in transmission range). I found this code on omnet++ manual, but when I compile, I get the error of no member named 'extractByModuleType' ...
0
votes
0answers
13 views

Co -simulating Omnetpp with Veirlog(RTL)

I am trying to Co-simulate model written in Omnetpp with Verilog RTL (on cadence simulator) , if anyone has tried it can you pls share the steps communicating from Omnetpp to a Veilog simulator
0
votes
1answer
48 views

OMNET++: error in module cModule during network setup

I'm trying to run my first Castalia/WSN simulation (testRouting) in Omnet++ including folders with .ned and c++/h files (TestRouting.h , TestRouting.cc and TestRouting.ned) and the .ini file and I ...