OMNeT++ is an extensible, modular, component-based C++ simulation library and framework, primarily for building network simulators.
CXX=clang++
CXXFLAGS=-std=c++17
to makefile, however it still not compile. I try make V=1
, it seems that the CXXFLAGS not working. Any ideas?
Hi Everyone,
I am trying to implement a clock synchronisation mechanism in Wireless networks. But I am not able to find a Clock module which I can use in a wireless sensor node!! Can anyone please direct me to some examples of clock models in wireless nodes to get started with??
Thanks in Advance
Hi, I am using OMNET++ INET for Ad hoc networks.
I want to broadcast my message to all my neighbours in UDP. I have tried all the possible solutions in UDPBasicApp. It broadcasts a message to one node at a time which it chooses randomly if the destination is not fixed (sink) . UDPBasicBurstApp also does not send message to all connected nodes.
Kindly help me in this regard.
Thanks.
Regards.
userpp@a176646f65eb (omnetpp-dev):~/omnetpp-6.0pre10$ omnetpp
Starting the OMNeT++ IDE...
The OMNeT++ IDE is not installed!
Hi Everyone, I am working on a TDMA based wireless network in Omnet++ using INET library and facing below problem.
I am using ‘WirelessHost' as my wireless nodes’ type and configured the internal clocks of these nodes to run at different speeds using ‘SettableClockModule’.
I have modified the ‘LMac’ MAC protocol to use the internal clocks of their respective nodes by adding clockModule parameter. All I am trying to do is, access the medium according to the internal clock of the node, instead of simulator clock!
The PROBLEM I am facing is as below,
Below are the steps I tried,
Copied the message before scheduling in scheduleClockEvent method to deal with the ownership. Then, the message could be scheduled, but the Radio module will ry to pick it up and throw Unknown self message error,
Unknown self message -- in module (inet::physicallayer::ApskRadio) wireless_network2.TestNodeB.wlan[0].radio
Modified the ‘ApskRadio' Module as well with parameter clockModule and updating scheduling functions. But the network behaved the same way!
Please let me know if anyone can help me to fix this.
Any suggestions or documents related to message ownership problems OR any example projects to which I can refer will also be very helpful.
Thanks & Regards,
Suheel S N
Hi All,
I am building a network topology with 12 nodes (all AodvRouter): 1 x Source, 9 x intermediate nodes and two destinations: Sink1 and Sink2. Please see the image for details: Network Topology.
At the moment all nodes are stationary (no mobility implemented yet). I am using UdpBasicApp at Source and UdpSink at destinations and trying to send UDP datagrams from source in multicast fashion to Sink1 and Sink2 nodes.
I have configured the Source and Sink1, Sink2 app in the ini file as follows:
# Source app configuration
*.Source.numApps = 1
*.Source.app[0].typename = "UdpBasicApp"
*.Source.app[0].destAddresses = "224.0.0.1"
*.Source.app[0].destPort = 1000
*.Source.app[0].messageLength = 1000Byte
*.Source.app[0].sendInterval = 100us
*.Source.app[0].startTime = intuniform(0ms,1ms)
# Sink1 app configuration
*.Sink1.numApps = 1
*.Sink1.app[0].typename = "UdpSink"
*.Sink1.app[0].localPort = 1000
*.Sink1.app[0].joinLocalMulticastGroups = true
# Sink2 app configuration
*.Sink2.numApps = 1
*.Sink2.app[0].typename = "UdpSink"
*.Sink2.app[0].localPort = 1000
*.Sink2.app[0].joinLocalMulticastGroups = true
But I am not sure whether configuring Source app with *.Source.app[0].destAddresses = "224.0.0.1"
and Sink with *.Sink1.app[0].joinLocalMulticastGroups = true
is the correct approach.
Could you please advise? Thank you very much in advance.
Hi there,
in the "Getting started" section there's an error, there's a code box that is supposed to show some code but instead shows "Loading..." which kinda breaks the tutorial.
Just for reference or in case anyone has an opinion on this:
omnetpp simulations might have issues with disabled memory overcommitment (vm.overcommit_memory = 2
on Linux) and are likely to allocate far more virtual memory than they actually use.
I don't have the time right now to investigate whether actually my own simulation code is the culprit here, or whether it's the omnet framework code, but thought to leave it here in case folks have ideas or comments on that.
At least quite often the SQlitefilewriter from onetpp is the thing throwing a std::bad_alloc
.
recordAs
only takes numerical values though.