gAttErrCodeInsufficientEncryption_c error in client mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gAttErrCodeInsufficientEncryption_c error in client mode

917 Views
rahul_singh
Contributor II

Hello members,

I have 2 boards in my architecture one in client central and one in the server peripheral configuration.

These are my pairing parameters of both side

gapPairingParameters_t gPairingParameters = {
.withBonding = gAppUseBonding_d,
.securityModeAndLevel = gSecurityMode_1_Level_3_c,
.maxEncryptionKeySize = mcEncryptionKeySize_c,
.localIoCapabilities = gIoNone_c,//gIoKeyboardDisplay_c
.oobAvailable = FALSE,
.centralKeys = gIrk_c,
.peripheralKeys = (gapSmpKeyFlags_t)(gLtk_c | gIrk_c),
.leSecureConnectionSupported = TRUE,
.useKeypressNotifications = FALSE,
};

when I run the code the client-side callback BleApp_GattClientCallback throws an error gAttErrCodeInsufficientEncryption_c .

The same architecture works fine with pairing and bonding disabled.

I'm guessing that the problem is with the pairing process but I couldn't find the reason.

Any help would be appreciated.

Thanks

Labels (2)
0 Kudos
1 Reply

830 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

How are you enabling/disabling the bonding and pairing process? Could you please confirm that you are changing the definitions in the app_preinclude.h

/*! Enable/disable use of bonding capability */
#define gAppUseBonding_d   1

/*! Enable/disable use of pairing procedure */
#define gAppUsePairing_d   1

Those need to be also defined in that way

Regards,

Estephania

0 Kudos