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

peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 132

Hello everyone,

I'm trying to communicate ble_app_uart and my customized mobile app(central) with static passkey my code as below

i facing problem when i make connection bond with my customized app to peripheral it show error

00> <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 132

another problem open with nrf_connect it doen't shew paring request and also make bonding Peripheral same error like above i think bonding will make a proble.

please help how i solved this problem and make better connection with static passkey...???

Parents
  • Should I close this ticket, since it seems like it is related to this one?

    Try to execute the following steps:

    • Download this zipped file: ble_app_uart_bonding.zip
    • Extract it and put it in <..>\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral
    • Erase the content of the nRF52832 DK: nrfjprog --eraseall
    • Build and flash the project onto the nRF52832 DK
    • Open nRF Connect app for mobile, and if present, delete the bond information as shown in the image below

    • Connect to the advertising device and bond to it, as shown in image below:

    Best regards,

    Simon



  • Thanks for your replay simon,

    I download and compile your zip file program its show some library are missing as bellow

    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol pm_handler_flash_clean (referred from main.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol pm_handler_on_pm_evt (referred from main.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol pm_init (referred from main.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol pm_peers_delete (referred from main.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol pm_register (referred from main.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol pm_sec_params_set (referred from main.o).

    I added this library on your code compile the code without any error

    Errase my NRF52832 DK using this cmd : nrfjprog --eraseall

    upload and run code on my NRF52832 DK

    Its giving same error when i make connection with bonding

    00> app: Data len is set to 0xF4(244)
    00> <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 132
    00> <info> app: Disconnected

    I added your code as below

    ble_app_uart_bonding.rar

  • The error 132 (0x84=BLE_GAP_SEC_STATUS_CONFIRM_VALUE) will happen if you input the wrong passkey (see this thread). Are you sure you use the same passkey in your customized app as you have defined in the ble_app_uart_bonding example (The passkey passed into sd_ble_opt_set(..))?

    Best regards,

    Simon

  • I define both side its giving same error. and also i check nrf connect enter correct passkey in define on my code its show same error in 132

Reply
  • I define both side its giving same error. and also i check nrf connect enter correct passkey in define on my code its show same error in 132

Children