-
Notifications
You must be signed in to change notification settings - Fork 2k
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
back to back pairing attempt with iOS chiptool fails #15875
Comments
@kean-apple Are you in a position to possibly bisect this to figure out which commit caused the problem? |
Well, this is broken for me even on 3b83461 but basically the problem is that
which is broken, because it then starts advertising as commissionable (no fabrics, no arg) while we are not in fact commissionable. Then we reset the device, which puts it into commissionable mode, but over BLE, not IP. And the stale advertisement is still hanging around, so when CHIPTool tries to browse for the commissionable node over both BLE and IP it finds the bogus IP thing and can't talk to it. So:
|
Oh, and we could spot-fix this by calling |
Ah good catch, Boris. Yeah this seems to indicate that the commissioning logic needs to better handle this. But to be honest, all clusters app could also do a better job to cleaning up before killing itself. That's obviously not the right fix though. Seems like we have to prefer BLE if it's available. |
I have some ideas for fixing up the all-clusters-app bit here, actually. Will see if I can come up with a PR. But yes, we really need to fix the commissioning logic. |
We ended up advertising ourselves as commissionable even though we weren't. Remove the guessing about what we should advertise and add an explicit API for the DNS-SD server to be able to ask what commissioning mode we should be in if it's not told a specific mode. Removed some StartServer() calls in places where we did manual advertising right before or after opening a comissioning window (which already resets advertising). Fixes project-chip#15875
We ended up advertising ourselves as commissionable even though we weren't. Remove the guessing about what we should advertise and add an explicit API for the DNS-SD server to be able to ask what commissioning mode we should be in if it's not told a specific mode. Removed some StartServer() calls in places where we did manual advertising right before or after opening a comissioning window (which already resets advertising). Fixes #15875
Problem
Back to back pairing attempt with iOS chiptool fails
SHA: 8e8f419
2.Unpair M5 board using iOS chiptool (Unpair device option)
2022-03-04 10:26:52.732061-0800 localhost CHIPTool[402]: (CHIP) DevicePairingDelegate Pairing complete. Status ../../../../../../../../../../../connectedhomeip/src/controller/CHIPDeviceController.cpp:1365: CHIP Error 0x00000032: Timeout
Seen 100% of times
Other note:
Proposed Solution
<suggested fix, suggested enhancement>
pairing-2nd-attempt-failed-m5logs2.txt
2nd-pairing-attempts-fail-chiptool-log2.txt
The text was updated successfully, but these errors were encountered: