Pairing fails after changing device BD address

Learn MoreFAQsTutorials

2 posts / 0 new
Last post
bojanpotocnik
Offline
Last seen:1 month 3 weeks ago
Joined:2019-11-26 11:41
Pairing fails after changing device BD address

Hi,

if BD device address is set in runtime usingthis 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:9 hours 51 min 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