Simple 1-hop broadcast example in ad-hoc wireless network

47 views
Skip to first unread message

Angelo Trotta

unread,
Oct 10, 2019, 6:22:21 AM10/10/19
to omn...@googlegroups.com
Dear,
I'm trying to setup a simple example with OmNET++ v:5.5.1 and INET inet-4.1.1.
I'm using a network of AdhocHost with BasicUdpApp as udp application. I want to send the messages generated by the udp app to the 1-hop wireless nodes.
My omnetpp.ini is:
**.node[*].numApps = 1
**.node[*].app[*].typename = "BasicUdpApp"
**.node[*].app[*].destAddresses = "255.255.255.255"
**.node[*].app[*].destPort = 1000
**.node[*].app[*].localPort = 1000
**.node[*].app[*].messageLength = 100B
**.node[*].app[*].startTime = 1s
**.node[*].app[*].sendInterval = 0.5s
**.node[*].app[*].receiveBroadcast = true
**.node[*].app[*].timeToLive = 1

Unfortunately the packet don't pass the ip module and is dropped. How to enable the broadcast message to go out?

I tried with these 2 parameters but without success:
**.node[*].ipv4.ip.directBroadcastInterfaces = "wlan0"
**.node[*].ipv4.ip.limitedBroadcast = true

Thank you in advance.
Best,
   Angelo T.

Muhammad Bilal

unread,
Apr 8, 2020, 4:25:59 AM4/8/20
to OMNeT++ Users
I am facing same problem. If you have solved it please let us know how?
Reply all
Reply to author
Forward
0 new messages