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

[NRF51822] Encryption related

this time i have some encryption related questions to ask.

  1. I use the "BLE_GAP_CONN_SEC_MODE_SET_XXX" to enble link encryption, doese this correct? can i set the encryption key at the peripheral side?
  2. Can i emulate the MITM function between Master Control Panel(with PCA10000 dongle) and nrf51822 device(PCA10004)?
  • Hi Terry,

    1. You are correct, BLE_GAP_CONN_SEC_MODE_SET_? control the permission of the characteristic whether it is open or require security (the link must be encrypted). To encrypt the link, the security information must be exchanged including TK, STK and LTK. It's not possible to manually set STK and LTK it is generated randomly by the stack.

    Please refer to chapter 3, Part H Vol 3 in the Bluetooth Core Spec V4.0

    1. Both display and keyboard are supported on the Master Control Panel. On the nRF51822, you can connect the nRF6350 LCD board, to have display. We haven't got an example for keyboard, but should not be too hard to implement one.
Related