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
Sent 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 host name via CDC/NCM connection On 2024-10-08 20:56:00, Tim Hardisty wrote:> My intention is to

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
esolve its host name via CDC/NCM connection On 2024-10-08 20:56:00, Tim Hardisty wrote:> My intention is to implement a simple web server on the device so as to be> able to plug in to it via usb, go to a browser, and go to “http://gadget”> rather than “http://10.0.0.10” (for example).>

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

2024-10-08 Thread David Alessio
> On Oct 8, 2024, at 12:56 PM, Tim Hardisty wrote: > > Not a NuttX question, as such, more a basic embedded device networking > question. But you’re all so helpful, and it’s NuttX things I need to do this > :-) > > I have just tried the recently added CDC/NCM USB networking and it works very

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

2024-10-08 Thread michal . lyszczek
On 2024-10-08 20:56:00, Tim Hardisty wrote: > My intention is to implement a simple web server on the device so as to be > able to plug in to it via usb, go to a browser, and go to “http://gadget” > rather than “http://10.0.0.10” (for example). > > This is DNS…but my embedded networking knowledge

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

2024-10-08 Thread Tim Hardisty
Not a NuttX question, as such, more a basic embedded device networking question. But you’re all so helpful, and it’s NuttX things I need to do this :-) I have just tried the recently added CDC/NCM USB networking and it works very nicely. Coupled with DHCPD, I can have a PC (Windows or Linux; not