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

LESC example with Android

I am having trouble getting the experimental ble_app_multirole_lesc example working with Android and nRF Connect. It is working fine in iOS. I am using v12.1.0 of the SDK and the nRF Connect app for both tests.

Does anyone know if LESC is yet supported in Android?

The log output looks as follows:

APP:INFO:LE Secure Connections Example
APP:INFO:Scanning
APP:INFO:Advertising
APP:INFO:PERIPHERAL: connected
APP:INFO:PERIPHERAL: BLE_GAP_EVT_SEC_PARAMS_REQUEST
APP:INFO:PERIPHERAL: BLE_GAP_EVT_LESC_DHKEY_REQUEST
APP:INFO:PERIPHERAL: BLE_GAP_EVT_PASSKEY_DISPLAY: passkey=154940 match_req=1
APP:INFO:Press Button 1 to confirm, Button 2 to reject
APP:INFO:Numeric Match
APP:INFO:PERIPHERAL: BLE_GAP_EVT_AUTH_STATUS: status=0x1 bond=0x1 lv4: 0 kdist_own:0x3a kdist_peer:0xb4
APP:INFO:PERIPHERAL: disconnected, reason 19
Parents
  • After further troubleshooting, I am now able to get it to work.

    It is not entirely reliable, but I can get it to work after removing bonding keys on both the phone and the DK board. I am also disabling/enabling BLE from Android settings between tests. I am then able to bond using the ... button in the upper right hand corner of the nRF Connect Android app.

    To complete the pairing process, I press button #1 on the DK board and accept the bonding prompt in the nRF Connect app. It sometimes immediately disconnects, but the bond is successful and I am able to immediately reconnect.

Reply
  • After further troubleshooting, I am now able to get it to work.

    It is not entirely reliable, but I can get it to work after removing bonding keys on both the phone and the DK board. I am also disabling/enabling BLE from Android settings between tests. I am then able to bond using the ... button in the upper right hand corner of the nRF Connect Android app.

    To complete the pairing process, I press button #1 on the DK board and accept the bonding prompt in the nRF Connect app. It sometimes immediately disconnects, but the bond is successful and I am able to immediately reconnect.

Children
No Data
Related