Can someone point me at a Cube test project that uses mDNS in LwIP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-10 3:03 PM
I'm having problems getting mDNS going on my board (Nucleo 767ZI). Can someone point me at a test/demo program using Cube that has a working example of getting mDNS going? Another service (echo even) would be a bonus.
I figure that I'm missing some LwIP parameter, and this one has me beat. It's not bringing up IGMP on my ethernet interface. DHCP works, but not much else.
Thanks,
Andrei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-22 7:50 AM
Hello @Andrei Chichak​ ,
There is no example that uses mDNS under CubeFW but LwIP provides an example mDNS under Middlewares\Third_Party\LwIP\src\apps\mdns
I hope this will help you.
BeST Regards,
Walid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-24 11:01 AM
Thanks for your response Walid.
The file that you pointed me to is the source code for the mDNS service. Unfortunately I was looking for an example of how to use that code.
Eventually I was able to get mDNS going in a test program without FreeRTOS (I'm still working on getting it working with an RTOS), but I needed to make some invasive alterations to the ethernet driver portion of LwIP to enable IGMP, this was after setting quite a few extra parameters in the Cube model for my program (enabling IGMP in Cube is not adequate to enable IGMP).
Thanks again,
Andrei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-24 12:56 PM
For lwIP setting NETIF_FLAG_IGMP is enough. For hardware the simplest option is to set ETH_MACFFR_PAM hardware bit. Just take a note that it will pass all multicast traffic. Another option, especially for performance critical applications, is to configure hardware filtering based on MAC addresses. :)
