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
  • I can't see anything wrong with your code. See this for how static passkey is implemented.

    Have you registered a handler for system events in ble_stack_init()?

    // Register with the SoftDevice handler module for BLE events.
    err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
    APP_ERROR_CHECK(err_code);
    

    Have you defined the function?

    static void sys_evt_dispatch(uint32_t sys_evt)
    {
        pstorage_sys_event_handler(sys_evt);
        on_sys_evt(sys_evt);
    }
    

    Please try again to attach your complete project. Zip it, edit your question by clicking edit below it, and click the papir clip symbol.

Reply
  • I can't see anything wrong with your code. See this for how static passkey is implemented.

    Have you registered a handler for system events in ble_stack_init()?

    // Register with the SoftDevice handler module for BLE events.
    err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
    APP_ERROR_CHECK(err_code);
    

    Have you defined the function?

    static void sys_evt_dispatch(uint32_t sys_evt)
    {
        pstorage_sys_event_handler(sys_evt);
        on_sys_evt(sys_evt);
    }
    

    Please try again to attach your complete project. Zip it, edit your question by clicking edit below it, and click the papir clip symbol.

Children
No Data
Related