Skip to main content
anis239955
Visitor II
January 3, 2012
Question

STM32 + lwIP and multicast support

  • January 3, 2012
  • 2 replies
  • 1911 views
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
    This topic has been closed for replies.

    2 replies

    wiesendanger2
    Associate
    January 6, 2012
    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
    Visitor II
    March 18, 2014
    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?