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

how to generate passkey at BLE peripheral without LCD/Keyboard?

Hello,

I have just started working with BLE, and I am trying out trial examples in NRF SDK 12, on pca 10031 board

I am working with ble_app_uart (BLE peripheral)example, I wanted to explore what security options I could use with my application.

1)I want to implement a challenge response kind of mechanism, through which I can find if the android app and peripheral device are from the same manufacturer. However, I want to start this procedure only after the devices have paired (not bonded) after exchanging a static passkey.

  1. If the device does not match the passkey, no other communication should take place, it should just disconnect.

I have read that exchanging a static passkey is possible since S110, but I am not sure if

  1. I enable it at the peripheral, how bonding would initiate, do I need to set static passkey at the central device?

  2. For the requirement in point (2), I don't have a good understanding of communication procedures at GAP level, so please suggest how to go about it? and most importantly is it necessary that this communication procedure should be handled at central device (my device is BLE peripheral)?

Related