AnsweredAssumed Answered

QN908x BLE application fails to pair and bond  with BLE version 4.0

Question asked by Kishan Saralaya on Jun 1, 2020
Latest reply on Jun 16, 2020 by Mario Ignacio Castaneda Lopez

Hello ,
Taken the FreeRTOS "wireless_example\Hid_device" example from the SDK example.
Configure the pairing parameters to 

 

.securityModeAndLevel = gSecurityMode_1_Level_2_c,
.maxEncryptionKeySize = mcEncryptionKeySize_c,
.localIoCapabilities = gIoNone_c,//gIoDisplayOnly_c,  and keeping the other fields as it is in the source\app_config.c file.

 

And configured gAppUsePairing_d, gAppUseBonding_d and gAppUseNvm_d variable to  1  in file app_preinclude.h, 
 The BLE Central Device with BLE stack version 4.0 is able to connect but fails to pair and bond. Which mean BLE 4.0 Central device is not able to communicate with Hid_device application loaded in QN908x. This example application works fine in a system which is loaded with BLE 4.2v

 

And configured gAppUsePairing_d, gAppUseBonding_d and gAppUseNvm_d variable to  0, 
 The BLE Central Device with BLE stack version 4.0 is able to connect and communicate with application attributes.  But when I tested this application on Windows 10 loaded Laptop (which is configured with BLE v4.2 ) - PC is able to connect and pair but right after this BLE connection gets disconnected and windows OS shows "Driver error" in front of the BLE friendly name "NXP_BLE_HID" in Settings page.

 

So would like to know what configuration needs to be followed in order to make the  BLE application work in both Legacy and current version. And we would like to have gSecurityMode_1_Level_2_c security level ( Unauthenticated and Encryption .

 

Note: Development setup  in my side had SDK v2.2.1 and MCUXpresso IDE v11.1.0 [Build 3209]

Outcomes