NCS1.9.1 NRF52805 not bonding

Hello,

I'm working with a little project in NCS 1.9.1, chip is NRF52805 acting as central, connecting to a peripheral that requires passkey and L3 security. Everything works as expected, but I'm now trying to store the bond information so that it works quicker and the passkey is not sent every time.

I've managed to enable SETTINGS_FCB etc. and run bt_enable(NULL) followed by settings_load(). However, instead of using an existing bond , the `passkey_entry` method is called every time, and the bonds are not stored.

I see that there is some data being stored in the flash area of the FCB. There are two keys:

- bt/hash=XXXXX

- bt/keys/MAC_OF_PERIPHERAL1=..7

the key behind the mac address is only a couple of bytes, it seems too short for IRK.

I've also configured a pairing_complete auth callback, but this is never called. I'm not sure what is going on, but it seems that pairing is not working at all. In the NRF52-dk in 52832 mode I see the exact same behavior.

Any pointers? I'd be grateful! Thanks.

-- 

Jouke

Parents Reply Children
Related