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
  • I just realized why you got that when testing with the example. It's simply because the phone automatically disconnect after it finish bonding if you are using Bluetooth setting to bond. It's normal behaviour of the phone. If you want to keep the connection after bonding, you should use an app, nRFConnect for example, to request to bond and then you can have the connection kept after that.

Reply
  • I just realized why you got that when testing with the example. It's simply because the phone automatically disconnect after it finish bonding if you are using Bluetooth setting to bond. It's normal behaviour of the phone. If you want to keep the connection after bonding, you should use an app, nRFConnect for example, to request to bond and then you can have the connection kept after that.

Children
No Data
Related