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
  • You are correct, adding uECC.c was my mistake as I found out in my last reply. Using the library .a file only works correctly. I did also add the PM_EVT_CONN_SEC_PARAMS_REQ event as mentioned in the changes when looking over the example's code. Everything seems to work fine on my phone now. I have had other issues with other friends phones but for now I will not worry about that and will write it off as them having older firmware. Thanks for the help.

Reply
  • You are correct, adding uECC.c was my mistake as I found out in my last reply. Using the library .a file only works correctly. I did also add the PM_EVT_CONN_SEC_PARAMS_REQ event as mentioned in the changes when looking over the example's code. Everything seems to work fine on my phone now. I have had other issues with other friends phones but for now I will not worry about that and will write it off as them having older firmware. Thanks for the help.

Children
No Data
Related