Re: NuttX "gadget": resolve its host name via CDC/NCM connection

2024-10-09 Thread Tim Hardisty
Yes - my initial research suggests mDNS and Bonjour/Avahi are essentially- if not actually - the same. I’m sure there’s some code out there, hopefully good enough - and lacking license restrictions - so if I get it working I’ll submit a PR. I have my “gadget” acting as DHCP and web servers now,

Re: NuttX "gadget": resolve its host name via CDC/NCM connection

2024-10-09 Thread Nathan Hartman
Isn't there Bonjour/Avahi that can make something like this work on a local network, at least when accessed from a computer that supports Bonjour/Avahi? I think this is how printers are automatically discovered on a network. On Wed, Oct 9, 2024 at 9:02 AM Tim Hardisty wrote: > > Yes - I think mDN

Re: NuttX "gadget": resolve its host name via CDC/NCM connection

2024-10-09 Thread Tim Hardisty
Thanks for the suggestion - every day's a learning day so more bedtime reading :-) On 09/10/2024 13:39, Marco Casaroli wrote: Why not just write a DNS-SD daemon that will send some URP packets and then the peers can resolve the hostname? http://www.dns-sd.org On Wed, 9 Oct 2024 at 02:04, Tim

Re: NuttX "gadget": resolve its host name via CDC/NCM connection

2024-10-09 Thread Tim Hardisty
Yes - I think mDNS might be a good way so I am looking at this. If I get it working can work on a PR to add such a thing as a NETUTIL and/or example :-) “http://gadget.local " is fine and (probably) correct anyway. On 09/10/2024 07:34, David Alessio wrote: On Oct 8, 202

Re: NuttX "gadget": resolve its host name via CDC/NCM connection

2024-10-09 Thread Tim Hardisty
I am already using dhcpd and it successfully allocates an IP address to the Host PC connected over CDC/NCM - I can ping in both directions successfully. I should therefore be able to use (something like) the webserver example and server pages by using a URL such as http://10.0.0.2 - I am trying

Re: NuttX "gadget": resolve its host name via CDC/NCM connection

2024-10-09 Thread Marco Casaroli
Why not just write a DNS-SD daemon that will send some URP packets and then the peers can resolve the hostname? http://www.dns-sd.org On Wed, 9 Oct 2024 at 02:04, Tim Hardisty wrote: > Not a NuttX question, as such, more a basic embedded device networking > question. But you’re all so helpful,

Re: NuttX "gadget": resolve its host name via CDC/NCM connection

2024-10-09 Thread spudaneco
There is this that I wrotw many years ago:  https://github.com/apache/nuttx-apps/tree/master/netutils/dhcpdSent from my Galaxy Original message From: michal.lyszc...@bofc.pl Date: 10/8/24 11:01 PM (GMT-06:00) To: dev@nuttx.apache.org Subject: Re: NuttX "gadget": resolve its ho