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

set static passkey between two nrf52840 and nrf52832

nrf52840 is ble central ,nrf52832 is ble peripheral,

nrf52832 is modify finish.

but i do not know how assign ble central .

now i use the example(ble_app_uart_c) to implete my project , please tell me how to modify it to set static passkey

i can not get BLE_GAP_EVT_AUTH_KEY_REQUEST vent!

please help me!

thanks for everyone answers!

Parents
  • Hi Syc, 

    Before testing with static passkey, it's better to verify that passkey works first. 

    I would suggest you to try ble_app_gls example where we have passkey implemented. 

    Note that to be able to get passkey working, you would need to configure the SEC_PARAM_IO_CAPABILITIES to have at least BLE_GAP_IO_CAPS_DISPLAY_ONLY (when you want to display the passkey) and BLE_GAP_IO_CAPS_KEYBOARD_ONLY on the other side where the passkey to be entered. 

    And SEC_PARAM_MITM should be set to 1. 

Reply
  • Hi Syc, 

    Before testing with static passkey, it's better to verify that passkey works first. 

    I would suggest you to try ble_app_gls example where we have passkey implemented. 

    Note that to be able to get passkey working, you would need to configure the SEC_PARAM_IO_CAPABILITIES to have at least BLE_GAP_IO_CAPS_DISPLAY_ONLY (when you want to display the passkey) and BLE_GAP_IO_CAPS_KEYBOARD_ONLY on the other side where the passkey to be entered. 

    And SEC_PARAM_MITM should be set to 1. 

Children
Related