-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[BUG] Commissioning over BLE often fails due to PBKDFResponse timeout #23438
Comments
@vivien-apple fyi |
@Damian-Nordic We currently return "5" from That said, if this is always a problem only with the first message sent on a BLE connection, then maybe raising the timeout in PASE is the right call. I assume that "establish a BLE connection" has not happened yet by the time "discover a BLE device with this discriminator" completes? |
@Damian-Nordic @bzbarsky-apple |
@bzbarsky-apple I'll check tomorrow when exactly the timer starts. |
Looks like the retransmission timer is kicked off before even discovering the device and the timeout is set to 2s exactly:
I guess the problem is that |
Well, that's clearly no good.... SecureSession does something nonzero. If we can be smart and only return a larger number here if we have no connection, that would be awesome. |
Hmm. Looking at the code it seems that the issue is that the I suspect this is fine in when the the BLE connection is initiated with a connection object, but that is definitively not fine when it is only started with a discriminator. |
@Damian-Nordic Can you confirm (or infirm) if #23638 helps ? |
@vivien-apple Thanks for the change! It seems it will work after fixing the dropped pincode issue I mentioned in the PR :) Note that I also added #23598 which fixes |
Reproduction steps
1. Build nRF Connect Lighting Example 2. Commission it using chip-tool pairing ble-thread command
Bug prevalence
~80% attempts
GitHub hash of the SDK that was being used
fac7aae
Platform
nrf
Platform Version(s)
No response
Anything else?
This is probably caused by https://github.com/project-chip/connectedhomeip/pull/23335/files. After increasing
kExpectedLowProcessingTime
to 10 seconds the problem is gone. I am not sure but the timeout may not take into account the time needed to establish a connection over BLE.The text was updated successfully, but these errors were encountered: