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

Avoid "Bluetooth pairing request" alert on iOS

Hi.

I have an application that needs a low security encryption. Therefore I want to use "Just works" encryption. The pairing process is assumed to be in a "safe" place.

But iOS are prompting with the "Bluetooth pairing request" alert before every connection. And I thing that it is very annoying and irrelevant. I can accept the first alert, but not later.

I am using 7.2 softdevice on a nRF 51822.

Is it possible to suppress this message either from the BLE device (or perhaps in the iOS App).

Kasper

Parents
  • This page describes what parameters needs to be set in order for the peripheral to use Just Works.

    When this is used correctly you should not get a prompt from iOS regarding the pairing request.

  • @Kasper: If you pass NULL as the p_sec_keyset, then it will be only pairing with no bonding. No longterm keys will be exchanged and you will see the pairing request popup everytime. The p_sec_keyset is where you will have the keys after the bonding process is done (BLE_GAP_EVT_AUTH_STATUS event).

    I would suggest you to have a look at the ble_app_template example we have in SDK v8.0. In this example we handle the bonding without device manager and could be a good example to refer. Note that in that example, we don't store LTK in flash so if you reset the chip, the LTK will go missing. You will have to erase bond on the phone to reconnect and rebond.

Reply
  • @Kasper: If you pass NULL as the p_sec_keyset, then it will be only pairing with no bonding. No longterm keys will be exchanged and you will see the pairing request popup everytime. The p_sec_keyset is where you will have the keys after the bonding process is done (BLE_GAP_EVT_AUTH_STATUS event).

    I would suggest you to have a look at the ble_app_template example we have in SDK v8.0. In this example we handle the bonding without device manager and could be a good example to refer. Note that in that example, we don't store LTK in flash so if you reset the chip, the LTK will go missing. You will have to erase bond on the phone to reconnect and rebond.

Children
No Data
Related