2012-01-03 08:08 AM
Hi All,
I starting to use the STM32 with lwIP stack and I will need to use the multicast. Is there any example or demo for this ??? Thank you in advance. With Best Regards #stm32-+-lwip-+-multicast2012-01-06 06:08 AM
If you already hav lwip working (following the example code provided by ST), setting up multicast is pretty straightforward. You need to:
Enable igmp: #define LWIP_IGMP 1 Set the netif igmp flag, e.g.: netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP | NETIF_FLAG_IGMP; make sure the MAC does not filter out your group address, e.g., by setting: ETH_InitStructure.ETH_MulticastFramesFilter = ETH_MulticastFramesFilter_None; Call: igmp_init(); and periodically igmp_tmr(); send out a join group request: igmp_joingroup(my_ip_address, group_ip_address); that’s about it, worked for me…2014-03-18 09:12 AM
Then what should I do if I have initialized the multicast?
I mean how could I get the data data that was transferred to me, and how could I sent the data out?