-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not Responding on ESP32 - mDNS Sends Remove Command after ~2 Minutes #112
Comments
Can you do packet capture with Wireshark and make sure it actually sends MDNS packet or it just somehow expires. Usually mDNS is set up with 4500 seconds to expire and with same period it will reannounce itself. Can you uncomment this line and see more log on what is happening inside mDNS. |
Okay, so I now have it running on two different devices. I did a pcap w/ WireShark and found that neither are sending packets. However, both drop off at the exact same time.
After uncommenting that line, I received no additional output from mdns. :/ |
@AidanLovelace did you find solution? |
It seems the mDNS remove issue faced not only me! Probably the library issue |
I ended up switching to an ESP-8266 which does not have this issue. |
@AidanLovelace @maximkulkin I have very similar issue on ESP8266MOD 4mb (if that matters).
If we focus only the device
We can see that time interval between the last two events In addition. I have macbook paired with my iPhone setup according to the home configuration. What I also observed is that sometimes one of the devices is available on macbook but not on the iPhone. After some time both devices might be not available on macbook and iPhone, then again both available on iPhone and macbook. I even encounter a case when I had opened the home app on macbook and iPhone, both devices were accessible from the macbook, but only one on iPhone. After killing the home app on the macbook previously unavailable device on iPhone became instantly available. |
I'm having the same trouble using my shelly 1 v3 (esp8266ex). Adding and removing all the time. Was using RavenSystem HAA, then compiled and flashed esp-homekit alone, same issue as on HAA. Very strange. |
I'm not familiar that much with mDNS machinery but it seems like somehow the issue is only related to // #define qDebugLog // Log activity generally
// #define qLogIncoming // Log all arriving multicast packets
// #define qLogAllTraffic // Log and decode all mDNS packets and cross-reference with |
It depends on network load (by mdns?) It may work ok for wifi router network, but fail for real life home network. I was tried 3 mdns implementations so far: lwip native, mdnsresponer ported to RTOS SDK and mdns SDK component. Always the same :( service discovery interrupts somehow (even wothout pairing to start) |
In my case it was due to wifi ap. Stupid Apple Express Wifi looks having trouble with mdns. I now tried a fritzbox & linksys without any issues. |
IMO this could be lwip and/or mdns implementation issue. In my network open and rtos-sdk gives same result |
I tried on TP-Link and Linksys and the same issue. |
Found mdns implementation that keeps pairing process ok. But now in logs there is paired successfully, but home app still pairing (sends pair setup step 1 again) |
This might be a good learning about mDNS with proper HAP support esp8266/Arduino#5442 |
@nonameplum can u test the PR #123 ? |
Sure, but I'm away from home and I don't have access to devices. I will check later this week. |
@d4rkmen I checked on three devices the PR and there's not much difference in my case. Still I see |
@nonameplum sorry to hear that. it seems esp32 build has other flows |
@d4rkmen All three devices on ESP8266. |
Ah, you mean WiFi network connect / disconnect? |
I mean records from |
@d4rkmen I exchanged the |
@d4rkmen I made a fork with exchanged |
I can turn the device (a lamp accessory on an esp32) on and off for anywhere from 20s to 5min after the esp32 restarts, then iOS says No Response, so I checked the mDNS advertisement as I've seen in other issues. Here is the log from the mdns command
I am on the latest master commit of esp-homekit. And this commit of the esp-idf.
Chip Information from the flash log:
My C code
Log from
make monitor
: HereThe text was updated successfully, but these errors were encountered: