Open ht-hieu opened 4 years ago
@gochit, could you please try to browse and see if bonjour is working or not on your iPhone when this happens? With this tool: https://itunes.apple.com/us/app/discovery-dns-sd-browser/id305441017?mt=8
Hi @hao-gao, when this happens, the Discovery app stuck in scanning (I waited for more than 30 minutes). I tried with an Android equivalent, but I got the same result.
I also tried scanning without the lightbulb application, but it stuck in the scanning process too. It only works normally if I run an instance of the lightbulb app.
Hi all,
I am having exactly the same problem using Espressif ESP32-S2-Saola-1 Dev Board. I got with the same logs telling me that the input is closed, shutting down the session.
Instead of using the app mentioned above, I was able to debug service discovery by running the following:
dns-sd -B _hap._tcp
with the following output:
Timestamp A/R Flags if Domain Service Type Instance Name
23:40:06.700 Add 3 5 local. _hap._tcp. Acme Light Bulb
Please note the accessory still advertises itself without any problem even after it becomes irresponsive to the homekit on the iPhone or macbook.
Ok, actually it stops advertising after about 10 minutes of the session end and while the accessory is still powered.
Hey @danilvpetrov , I'm seeing the exact same issue. Did you make any progress diagnosing the issue?
Hi, can’t say anything about Linux platform in this case, but with esp32 platform I managed to same problem with my code based on lightbulb example.
The problem is how esp32 platform handle wifi connection. WiFi session require to update encryption keys from time to time. This process on esp32 platform is not seamless, it will raise disconnect event with reason deauth (https://docs.espressif.com/projects/esp-idf/en/stable/api-guides/wifi.html#wifi-event-sta-disconnected) and you should connect to wifi again.
Hi everyone,
I am having an issue with the sample LightBulb application. The HomeKit app is disconnected from the accessory server after idling a few minutes. After that, the HomeKit app cannot connect to the accessory server again. I tried to restart the app but it still not working (I tried to restart the Iphone too). If I restart the accessory server, it can work again.
Here is my log:
I am running Ubuntu 18.04 in a virtual machine (VirtualBox). Could you please help me with this problem? Thank you in advance.