SCM20260D multicast

Hi,
I’m having trouble receiving Udp multicast packets on my SCM20260D board.I have tried everything.
Please help. My test code:

   m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
            var localEp = new IPEndPoint(IPAddress.Any, 3671);
            var multicastOption = new byte[] { 224, 0, 23, 12, 0, 0, 0, 0 };
            m_Socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, multicastOption);
            m_Socket.Bind(localEp);

            while (true)
            {
                  if (m_Socket.Poll(-1, SelectMode.SelectRead))
                 {
                     buffer = new byte[m_Socket.Available];
                     int bytesRead = m_Socket.ReceiveFrom(buffer, ref localEp);
                     Thread.Sleep(10);
                }
            }

We have found an issue and we are investigating

Super. Thanks :slight_smile:

1 Like

For ENC: No need to do, just work fine
For Ethernet: Change a bit as below after NetworkInterface.Enable(), it will work for now.

 var reg = (IntPtr)0x40028008;

 Marshal.WriteInt32(reg, 1 << 4);

For Wifi: Wait for next release;

2 Likes

Thanks. It works.

1 Like