Pairing fails after changing device BD address

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
bojanpotocnik
Offline
Last seen: 1 year 1 month ago
Joined: 2019-11-26 11:41
Pairing fails after changing device BD address

Hi,

if BD device address is set in runtime using this code, the SMP won't be able to generate proper values for pairing procesure.

If USER_CFG_FEAT_SEC_REQ is set to GAP_SEC1_AUTH_PAIR_ENC, the pairing fails with:
> Authentication failed with status BLE_GAP_SEC_STATUS_CONFIRM_VALUE

If USER_CFG_FEAT_SEC_REQ is set to GAP_SEC1_SEC_PAIR_ENC, the pairing fails with:
> Authentication failed with status BLE_GAP_SEC_STATUS_DHKEY_FAILURE

How to properly set device address in runtime so that it would also be used by SMP? I feel like I'm missing some adittional call for applying new address in SMP.

Thank you,
Bojan

Device: 
PM_Dialog
Offline
Last seen: 6 months 3 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi Bojan,

Hi Bojan,

Thanks for your follow-up question. We have taken this offline from forum - an email has been sent in your registered address.

Thanks, PM_Dialog