cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 + lwIP and multicast support

anis239955
Associate
Posted on January 03, 2012 at 17:08

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-+-multicast
2 REPLIES 2
wiesendanger2
Associate
Posted on January 06, 2012 at 15:08

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…

eleachen
Associate
Posted on March 18, 2014 at 17:12

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?