This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SD Bonding Example

Hello,

in the corse of implementing pairing / bonding on top of the softdevice, I was looking for examples. The only example I've found, that seemed to not use the peer_manager, was the ble_app_gzll. Can it be, that this example is not working (in regard to pairing) as intended? The variable s_sec_keyset is zero initialized and then the keys_own is never set. But it is check in the `BLE_GAP_EVT_SEC_INFO_REQUEST` event. There is one alias taken of s_sec_keyset in the call to `sd_ble_gap_sec_params_reply()`, but according to the documentation of sd_ble_gap_sec_params_reply, it's the callers duty to provide memory / buffers for the key.

best regards,

Torsten

Parents Reply
  • Hi Torsten,

    I can understand your point about the overhead. Much of it is of course comes from the fact that it needs to be a generic solution and support features that won't be needed for every application (concurrent GAP roles, Service changed, GATT caching, etc).

    Maybe it could be helpful to take a look at the old device manager implementation in SDK 11  as well, even though it's not supporting new features such as LESC. It has a simpler design.

Children
Related