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

BLE_GAP_SEC_STATUS_UNSPECIFIED in bonding

Hi, I developed an application with Nrf51822 with some bonding need. No problem with android or using the dongle, but using iOs systems it happens that after a random attempt's number the bond with pin code fails, and there's no way to connect correctly with the device, unless you reset the phone or dissociate the device from the bluetooth settings in iOs.

Debugging the device manager from the SDK11.0 that I included in my project I found out that the auth_status in the ble_evt returns BLE_GAP_SEC_STATUS_UNSPECIFIED, so that the device reset

I set the device manager this way:

    m_application_table[0].sec_param.kdist_central.enc  = 0;
    m_application_table[0].sec_param.kdist_central.id   = 1;
    m_application_table[0].sec_param.kdist_central.sign = 0;
    m_application_table[0].sec_param.kdist_periph.enc   = 0; 
    m_application_table[0].sec_param.kdist_periph.id    = 1;
    m_application_table[0].sec_param.kdist_periph.sign  = 0;

this to not store bond data in flash memory, because i don't want the smartphone to remember pin code.

Is there a reason way I have this unspecified status back? I could ignore and go on with the connection, but it doesn't seems to be the right solution. Any advise?

Thanks

Related