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

Device manager bond timeout

Hi, I am porting my project from nrf51822_5.2.0 to nrf51822_6.0.0.

I want to change bond manager to device manager.

I refer to the heart rate service in sdk 6.0.0 and modify my project.

Below is these change: (@ keil C)

  1. Remove ble_bondmngr.c and all related include files

  2. Add device_manager_peripheral.c and include device_manager.h

  3. Copy device_manager_cnfg.h from heart rate service to my project.

  4. Remove bond_manager_init(), adding device_manager_init() (copy from heart rate service)

  5. disable sec_params_init().

  6. adding dm_ble_evt_handler(...) to ble_evt_dispatch(...)

  7. Slightly change ble_stack_init(...) -> using ble_enable_params_t & sd_ble_enable(&ble_enable_params);

  8. adding device_manager_evt_handler()

For my previous project, some ble characteristic uses BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&cccd_md.write_perm); Only bonding can starting notify.

In the nrf51822_6.0.0, when I press bond from MCP, then the link timeout. Any suggestion? Thanks.

Parents Reply Children
No Data
Related