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

Hey, I’m having some trouble receiving multicast packets on an SC20100. Did a fix for this ever get pushed, and did it affect the SC20100?

Thanks

We are not aware of any issues. Can you please provide steps to reproduce the issue on our end?

I don’t know, But i implemented what Dat_Tran wrote and it worked for me.

When use latest version, no need temporary fix above.

Confirmed, was a PEBCAK error on my part–now receiving packets without the code change above.

1 Like