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

Only one device is getting paired with nrf51422

I have read the previous questions regarding the above subject, i found that changing the maximum bonding devices limit defined in device_manager_cnfg.h will work, but it did not worked for me. I have edited the ble_app_uart example code to support passkey pairing.

I also found the bounding info is stored in flash memory. So I erased the flash and reprogrammed it but still it is pairing with only that device which was paired before erasing flash. Kindly help to fix this

iam attaching my project file, kindly find the same.nRF_DK.rar

Thanks in advance, Sunil Kumar

Parents
  • static void ble_evt_dispatch(ble_evt_t * p_ble_evt) {

        dm_ble_evt_handler(p_ble_evt); 
        ble_conn_params_on_ble_evt(p_ble_evt);
        ble_bas_on_ble_evt(&m_bas, p_ble_evt);
        ble_nus_on_ble_evt(&m_nus, p_ble_evt);
        //bsp_btn_ble_on_ble_evt(p_ble_evt);
    
        #ifdef BLE_DFU_APP_SUPPORT
        /** @snippet [Propagating BLE Stack events to DFU Service] */
        ble_dfu_on_ble_evt(&m_dfus, p_ble_evt);
        /** @snippet [Propagating BLE Stack events to DFU Service] */
        #endif // BLE_DFU_APP_SUPPORT
        on_ble_evt(p_ble_evt);
        ble_advertising_on_ble_evt(p_ble_evt);
    }
    
Reply
  • static void ble_evt_dispatch(ble_evt_t * p_ble_evt) {

        dm_ble_evt_handler(p_ble_evt); 
        ble_conn_params_on_ble_evt(p_ble_evt);
        ble_bas_on_ble_evt(&m_bas, p_ble_evt);
        ble_nus_on_ble_evt(&m_nus, p_ble_evt);
        //bsp_btn_ble_on_ble_evt(p_ble_evt);
    
        #ifdef BLE_DFU_APP_SUPPORT
        /** @snippet [Propagating BLE Stack events to DFU Service] */
        ble_dfu_on_ble_evt(&m_dfus, p_ble_evt);
        /** @snippet [Propagating BLE Stack events to DFU Service] */
        #endif // BLE_DFU_APP_SUPPORT
        on_ble_evt(p_ble_evt);
        ble_advertising_on_ble_evt(p_ble_evt);
    }
    
Children
No Data
Related