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

SDK15 pm_conn_secure() doesn't bond

Hi!

After connected and get log info "Connected." I start bonding:

// Initiate bonding.
err_code = pm_conn_secure(p_ble_evt->evt.common_evt.conn_handle, false);
if (err_code != NRF_ERROR_INVALID_STATE)
{
    APP_ERROR_CHECK(err_code);
}

but there is no any success message. 

 0> <info> app: Heart Rate collector example started.
 0> <info> app: Starting scan.
 0> <info> app: Connected.
 0> <info> app: Disconnected, reason 0x8.
 0> <info> app: Starting scan.
 0> <info> app: Connected.
 0> <info> app: Disconnected, reason 0x8.
 0> <info> app: Starting scan.
 0> <info> app: Connected.
 0> <info> app: Disconnected, reason 0x8.
 0> <info> app: Starting scan.
 0> <info> app: Connected.
 0> <info> app: Disconnected, reason 0x8.
 0> <info> app: Starting scan.

Therefore nRF52 SDK15 can't to made secure bond.

Why?

Parents
  • FormerMember
    0 FormerMember

    The SDKs do only provide a higher level abstraction, so different SDK version should not matter. In the application, for both central and peripheral, could you set the logging level to "debug"? And also enable logging for the "peer manager" module?

    With the above settings, could you do the following bonding tests:

    • SDK15 <--> SDK13: not working
    • SDK15 <--> SDK 15: working (for the peripheral, use a SDK example)
    • SDK13 <--> SDK 13: working (for the central, use a SDK example)

    And then upload the logs here.

Reply
  • FormerMember
    0 FormerMember

    The SDKs do only provide a higher level abstraction, so different SDK version should not matter. In the application, for both central and peripheral, could you set the logging level to "debug"? And also enable logging for the "peer manager" module?

    With the above settings, could you do the following bonding tests:

    • SDK15 <--> SDK13: not working
    • SDK15 <--> SDK 15: working (for the peripheral, use a SDK example)
    • SDK13 <--> SDK 13: working (for the central, use a SDK example)

    And then upload the logs here.

Children
Related