WIZnet Developer Forum

MACraw & IGMP

Hi
I open Socket 0 in MACRAW mode & socket 1 in Multicast mode but i cant receive any packet on my Multicast socket

how can i do that???

Hi, reza.

W5200 supports multicast but needs setting some registers also.

I don’t know if you follow these steps or not.

To use multicast, you should assign the group you will communicate. Before opening a socket, Set Multi-group hardware address, Multi-group IP address, Multi-group port number, UDP and Multicast Enable with Sn_DHAR, Sn_DIPR, Sn_DPORT, Sn_PORT, Sn_MR.

You can find more details with W5200 datasheet.
wiznethome.cafe24.com/wp-content … _V130E.pdf

If it is not fix your problem, please upload your code or more details about it.

Thank you.

Lawrence

Hi, Lawrence.

I had configured my multicast socket (on Socket 1) and it worked perfectly.
but when i configured MACRAW mode on socket 0 , and open it,
i cant receive any data on multicast socket (my Sn_RX_RSR on socket 1 is always 0).

whats the problem !!!?
W5200 can not work with two socket on MACRAW & Multicast modes Simultaneously !!!???

thanks for your attention.

Hello, reza

First, It works to open Socket 0 as MACRAW and Socket 1 as Multicast Socket.
But the point is Sn_MR[7:0].

[quote]Sn_MR[5] set enable or disable Multicast Blocking (this bit works on only MACRAW mode [3:0]=‘0100’)
0: disable Multicast Blocking
1: enable Multicast Blocking
[/quote]
So, make sure if your S0_MR[5] is 0 or 1 then If it is set, Reset this bit and try again.

Thank you,

Lawrence

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.