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

Connecting with nfc_ble_pair_lib

I am using the ble_app_hrs_nfc_pairing example (sdk 14.0.0) on my NRF52840 with the s140 soft device. I am able to bond with my phone (Android 8.0.0 Oreo) by tapping the sensor, and BLE_GAP_EVT_CONNECTED and BLE_GAP_EVT_CONN_SEC_UPDATE handlers are called on the device. However nRF Connect on the phone says bonded, not connected. I am thus unable to manipulate services from the app. Because the nfc library causes advertising to halt after the bonding, I am unable to manually connect. My only work around has been to reset the device to get advertising started again and then connect from the phone.

Is this a problem with the library or my phone?

Parents
  • Testing the example with SDK14.1.0, it does infact work correctly. However I am unable to get it to work in my personal project even after matching all relevant lines and config options.

    Using NFC_PAIRING_MODE_LESC_... gives me a "app: Authorization failed with code: 139!". Switching to NFC_PAIRING_MODE_... (no lesc) bonds but then creates the above problem where the board believes the connection is established but the phone does not.

    Any guidance would be appreciated. Perhaps I should make a new question for the authentication issue when using LESC modes in my code.

Reply
  • Testing the example with SDK14.1.0, it does infact work correctly. However I am unable to get it to work in my personal project even after matching all relevant lines and config options.

    Using NFC_PAIRING_MODE_LESC_... gives me a "app: Authorization failed with code: 139!". Switching to NFC_PAIRING_MODE_... (no lesc) bonds but then creates the above problem where the board believes the connection is established but the phone does not.

    Any guidance would be appreciated. Perhaps I should make a new question for the authentication issue when using LESC modes in my code.

Children
No Data
Related