lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] mDNS example with an OS?


From: Erik Ekman
Subject: Re: [lwip-users] mDNS example with an OS?
Date: Fri, 26 Mar 2021 11:32:06 +0100

You are correct, there is not yet an API for mDNS to be used like this
(in RTOS across threads).

I am not sure how complicated it would be to add - maybe the netifapi
helpers can be used. I guess there might be issues with threading for
the TXT callbacks also.

/Erik

On Thu, 25 Mar 2021 at 02:45, <groups@chichak.ca> wrote:
>
> Hello,
>
> I’ve been trying to get my mind around getting the mDNS system working with 
> an RTOS. I’m working with an STM32F7 with ST’s 2018 version of LwIP and 
> FreeRTOS, but my final target is RTEMS.
>
> I’ve tried to go through the test code in contrib-2.1.0, and cribbed the 
> basic flow, but I haven’t been able to get mDNS working on an RTOS.
>
>
> What I’d like to do is get a service going under FreeRTOS and announce it 
> using mDNS.
>
> So far I’ve been able to get mDNS to announce a service using a big loop 
> model program, and I’ve been able to get a simple TCP echo server going with 
> FreeRTOS. But when I put them together, netconn_accept in the echo server 
> never returns when I connect to the port. Get rid of the mDNS calls and the 
> echo server works nicely.
>
> Simple? It sounds like it, but I haven’t found the appropriate programming 
> idiom to get it working.
>
> I think there’s a hint in the docs. In pitfalls, it says “But “raw” APIs 
> functions must ONLY be called from TCPIP thread.“  Okay, looking through the 
> mDNS code, it uses a lot of raw calls to UDP functions, so I must arrange for 
> the tcpip thread to do the calls for me, but I can’t figure out how.
>
> Can someone please point me at an example of using mDNS responder in an RTOS 
> environment so I can pull it apart and see what I’m doing wrong?
>
> Thank you very much for your help,
>
> Andrei (from The Great White North)
>
>
> _______________________________________________
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]