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

Problems in using ble_app_multirole_lesc exemple from SDK 11.0

Hi, I am trying to implement Secure Connection for my application, because using PIN I noticed some problems with the bonding in iOs, in fact using the device manager from sdk 10.0 after a random number of connection with PIN code iOs says that the PIN is wrong (the Error i have in the firmware is BLE_GAP_SEC_STATUS_UNSPECIFIED), eventhough the PIN is right. Searching on the web I found that with the new realease iOs uses Secure connection. First of all I flashed the application lesc as it is, but using nrf MCP APP I cannot Bond the device. Is there any suggestion in using that fw for peripheral role only?

Moreover I was wondering if there is the possibility to not store bond data for the next connections between the device and the smartphone, Because I'd like the user to digit the PIN every connection.

Thank you

Parents
  • With SDK 10. Did you create a new bond every time you connected to the device?

    In iOS you need to read/write to a characteristic that requires encryption to trigger the bonding procedure, as iOS will start bonding when it receives an att error with insufficient authentication.

    Unfortunately iOS didn't support pairing the last time we checked, iOS 9.2.1. So you need to Bond. Once bonded it's not necessary (nor possible) to enter the pin again, as the pin is only used for MITM protection during the bonding procedure.

Reply
  • With SDK 10. Did you create a new bond every time you connected to the device?

    In iOS you need to read/write to a characteristic that requires encryption to trigger the bonding procedure, as iOS will start bonding when it receives an att error with insufficient authentication.

    Unfortunately iOS didn't support pairing the last time we checked, iOS 9.2.1. So you need to Bond. Once bonded it's not necessary (nor possible) to enter the pin again, as the pin is only used for MITM protection during the bonding procedure.

Children
No Data
Related