gAttErrCodeInsufficientEncryption_c error in client mode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

gAttErrCodeInsufficientEncryption_c error in client mode

1,925件の閲覧回数
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

ラベル(2)
0 件の賞賛
返信
1 返信

1,838件の閲覧回数
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 件の賞賛
返信