-
Notifications
You must be signed in to change notification settings - Fork 110
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
Frequent "Decryption error/Connection lost." in Bridge example on iPhone 14 #104
Comments
@vishalkothari , do you see any error on the iPhone side? Can you add prints for |
Hello @shahpiyushv, below are the logs
I have tried enabling keep alive by CONFIG_HAP_SESSION_KEEP_ALIVE_ENABLE=y and that did not help |
Digging further into this, esp_hap_network_io.c > hap_decrypt_data > read_fn(frame->data, 2, context) returns zero which leads to the error. Any clues on why that may be happening for bridge example? |
@vishalkothari Decryption error also occurs when the iOS breaks the connection. From the logs it is not clear what the reason could be. However, just curious to know why your aid numbers have gone into 100s. I see them as 801, 802, and so on. |
I am not sure how the aid attribute is created. I added 3 accessories to the bridge. Below is the code.
|
This code itself looks fine to me. The HomeKit SDK assigns same aid if the accessory name is same. So, that going beyond 800 is strange. Meanwhile, what do you see on the phone apps when this error occurs? |
Homeapp shows device online and then when clicking on a device, it shows "Connecting" and performs no action. This action continues frequently in a loop. |
@vishalkothari , considering that you see the issue only on iPhone 14, but not on iPhone 11, it seems quite unlikely that there would be anything wrong on the firmware side. Have you tried updating to iOS 16.5? |
iphone13 16.6.1 use examples/bridge like ######## Starting Pair Verify ######## |
I don't have atv or homepod。 ipad 16.3.1 no problem, ios 12 no problem。 It’s no problem if it’s not a bridge device |
iPhone13, ios16.6, If the home hub is not connected, the bridge device notification will become invalid,but Aqara is normal |
iPhone 8, ios 16.7.1 any ideas or solution? |
Hello,
I am running bridge example with ESP32 WROOM. The code is without any modification except hardcoded wifi configuration.
The code works fine when adding to Home app on iPhone 11 and I dont see any errors.
But, I see frequent "Decryption error/Connection lost." errors after adding to Home app on iPhone 14, . These errors are on almost every click of the accessory.
Both devices are on same iOS version 16.4.1(a)
Below are the logs with iPhone 14 Home app.
Any inputs on this will be really appreciated.
The text was updated successfully, but these errors were encountered: