We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, first at all, sorry if I ask a question that is solved here in the past. The search function in the forum seems to do not work…
My problem is to send a UDP-Multicast from a PC (10.1.2.3/255.255.0.0) to a STM32-Board with an IP away from its range. For Example 132.0.6.30/255.255.0.0.
If I use the same configured UDP-Socket, but with a remote IP of 132.0.6.20 it works. Also a remote configuration of 132.0.1.19 works.
At my knowledge, I expect that in case of UDP-Multicast the IP-Range of the Clients do not take care when both clients are in the same multicast-group. Are there any checks inside the netUDP_Send()-Function they returns “NetError” if the IP-Ranges of host and remote is too far away from each other?
An overview of my configuration: PC-side: 10.1.2.3(255.255.0.0)
STM32: MDK Network Component V 7.10.0 netIGMP_Join(0, sgroup); // sgroup = 224.0.5.128 netUDP_SetOption(socket, netUDP_OptionTTL, 2); // socket = 2 sendbuf = netUDP_GetBuffer(rply_len); netUDP_Send(socket, remoteAddr, sendbuf, rply_len); // remoteAddr = PC-IP-Address
Thanks a lot for all advice!
Thank you Franc for that short but efficient explanation!
It open my eyes. My understanding of multicast was completely wrong!
Thanks a lot!!!