Help with setting up packet broadcast mode in INET Wireless tutorial #1445
|
Hello, I'm working on a project using Omnest 5.6.2 and the INET 4.5.4 framework, starting from the INET Wireless tutorial example I want to modify and extend this to several nodes that all receive a UDP packet broadcast from a "transmit" node. It seems there are two key steps:
However, the setInterface method in UdpControlInfo only appears for setting Multicast, it is not a member of UdpControlInfo In my implementation, I have tried using the Ipv4Address::ALLONES_ADDRESS (as used in UdpBasicBurst.cc) as the destination address for the broadcast in my modified UpdBasicApp.cc and *.droneRP.app[0].destAddresses = "255.255.255.255" in my .ini file. It seems the messages get dropped somewhere in the sending node. I can trace the packet all the way to UdpSocket that sends the packet, but nothing seems to happen below that and I'm not sure what components handle the packets from there... In summary, I'm I have modified version of the INET Wireless tutorial that adds several nodes and I'm just trying to implement a packet broadcast from a designated transmit node (UpdBasicApp) to several receiving nodes (UpdSink). Thank you for any help or suggestions you can provide! |
Replies: 2 comments 1 reply
|
Hello, I’m facing the same issue with UDP broadcast (UdpBasicApp → UdpSink). Thanks, |
|
Take a look at: https://deepwiki.com/search/hello-im-working-on-a-project_f3959226-1170-477a-9f9e-453bd8cb544e?mode=fast Especially the |
Take a look at: https://deepwiki.com/search/hello-im-working-on-a-project_f3959226-1170-477a-9f9e-453bd8cb544e?mode=fast
Especially the
receiveBroadcastparameter is important. https://github.com/inet-framework/inet/blob/4a912bf7/src/inet/applications/udpapp/UdpBasicApp.ned#L49-L50