-
Notifications
You must be signed in to change notification settings - Fork 171
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
Pairing fails with iOS 15 public beta #193
Comments
We have the same problem |
I've tried using iOS 15 beta in my iPhone with this results:
and right after failing, tried with the iPad on iOS14:
in my case, it was the example: https://github.com/maximkulkin/esp-homekit-demo/blob/master/examples/garage/garage.c anyone got an answer? |
@AramVartanyan what beta version are you running? |
@renandw Actually my initial test was with an iPad having the first public beta that Apple released. The situation is unchanged with the current version 19A5307g. |
Some tracing done on a working device and one using the esp-homekit repo shows that apple has decided to enforce a 10s timeout on each of the Pair-Setup transactions. This timeout is not part of the R1 spec (HomeKit Accessory Protocol Specification (Non-Commercial Version) Release R1) nor R2 spec (HomeKit Accessory Protocol
This is the only reference to this concept, and it applies only to the bluetooth chapter and even then the Pair-Setup is excluded. Having found this, can those that are doing beta testing Meanwhile we will see if we can accelerate the critical step, but that might not be easy at all... |
Hi, esp8266 with current wolfssl version will cross 10s border for sure on pair setup :( it takes 25 seconds approx |
No. 10s timeout is for each pair stage There are 3 stages, but 2 firsts are the critical. wolfSSL takes 14s for each one, and mbedtls takes about 5s. |
This could help to migrate to MbedTLS: |
Me too interested you @maximkulkin update library! |
Highly appreciated if you can solve the problem. Thanks in advance Maxim 👍 |
Please, take a look on this topic. Your library is our salvation for many DIY projects. |
+1☝️ |
Today I've successfully paired 3 examples (garage, sonoff basic and led) in the latest iOS 15 public beta. |
Issue seems to be solved, but... IMO, migrating to MbedTLS library is a better solution to avoid those issues. Apple uses MbedTLS in Homekit accessory examples instead wolfSSL. If esp-homekit library uses MbedTLS, it will solve any future issue with Apple. And MbedTLS has better performance than wolfSSL. |
Dear Maxim,
I have faced an issue with pairing to Apple Home under iOS 15.
It turns out that they have changed something in the pairing process with the new version.
I have noticed that right after attempt to send the payload the following error appears:
!!! HomeKit: [Client 1] Failed to write response (errno 104)
It could be a bug related to the unfinished beta, but it could be just another HAP version update.
The full log is bellow.
Regards
This is an example code, similar to the one running above:
https://github.com/AramVartanyan/esp-homekit-demo/blob/master/examples/shelly1/shelly1.c
I have also tested it with a Setup ID and the result is the same.
The text was updated successfully, but these errors were encountered: