Advertizing through mDNS

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Advertizing through mDNS

Postby kolban » Tue Jan 17, 2017 4:45 am

It seems that the latest ESP-IDF provides the first taste of mDNS support. I tried to study the docs on mDNS in order to setup my ESP32 as an mDNS advertizer but couldn't get my mDNS browsers to see it. So next I tried the sample that can be found here:

https://github.com/espressif/esp-idf/tr ... ns_example

This sample sets up the ESP32 as both an advertizer and a browser. The browser component seems to work, but still no obvious luck in having external mDNS browsers see it. I tried two distinct browsers ...

1) avahi-browse -all running on Linux
and
2) https://hobbyistsoftware.com/bonjourbrowser running on Windows 10

Both could see my other mDNS components in my network (Cloud drive, Chromecast etc) ... but neither see the ESP32.

Has anyone gotten their ESP32s visible to mDNS browsers yet?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Advertizing through mDNS

Postby WiFive » Tue Jan 17, 2017 6:02 am

Can see it in zeroconf browser for android under _arduino and http server and samba share.

MalteJ
Posts: 62
Joined: Wed Sep 21, 2016 10:26 pm

Re: Advertizing through mDNS

Postby MalteJ » Sun Feb 12, 2017 10:25 pm

It looks like the mdns library does not add a PTR to your service to _services._dns-sd._udp.local

see https://developer.apple.com/library/con ... index.html

Looks like a bug!

Malte

js1234
Posts: 18
Joined: Thu Jan 26, 2017 1:16 pm

Re: Advertizing through mDNS

Postby js1234 » Wed Mar 08, 2017 10:34 am

Any update on this? Should we create an issue about this?

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: Advertizing through mDNS

Postby ESP_Sprite » Wed Mar 08, 2017 11:51 am

If you don't mind, I'd appreciate it. We mostly try to keep track of what people on the forums report, but if you report it on Gitlab we can track it better.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Advertizing through mDNS

Postby kolban » Fri Mar 10, 2017 11:12 pm

It may be that Mr negativekelvin has already fixed the issue ... there appears to be an open Pull Request ... see:

https://github.com/espressif/esp-idf/pull/340

There isn't much commentary about it but it "seems" to talk about what Mr Maltej was discussing.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

MalteJ
Posts: 62
Joined: Wed Sep 21, 2016 10:26 pm

Re: Advertizing through mDNS

Postby MalteJ » Sun Mar 12, 2017 11:38 am

The mdns component from the esp-idf SDK is missing a lot to be RFC 6762 compliant.
E.g. different query types or probing and announcing as described in section 8:
https://tools.ietf.org/html/rfc6762#section-8

Probably it would be best to port Apple's mDNSResponder to ESP32:
https://opensource.apple.com/source/mDNSResponder/

Best,
Malte

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Advertizing through mDNS

Postby WiFive » Sun Mar 12, 2017 8:24 pm

Yes it is leaving a lot out. Sometimes you just want smallest code barely enough to be functional.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Advertizing through mDNS

Postby kolban » Sun Apr 02, 2017 4:55 pm

Malte,
I'm also trying to get my mind around mDNS on ESP32 and having a lot of problems. I'm trying to "locate" an ESP32 that I believe I have setup for mDNS but can't locate it via avahi nor Bonjour. I have the feeling that you are the resident expert in this area. Do you have a write up on your discoveries? If not, would you be willing to work with me to learn what you learned and I'll have a bash at writing up stories to make it more consumable (assuming you have it working in some fashion).

Available of #ESP32 IRC or medium of choice.

Neil
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Advertizing through mDNS

Postby WiFive » Sun Apr 02, 2017 4:56 pm

Do you have the latest IDF with the patch you linked above?

Who is online

Users browsing this forum: No registered users and 161 guests