AnsweredAssumed Answered

KW36 Pairing&Bond with Link Encryption issue

Question asked by Ziv Wang on Aug 22, 2019
Latest reply on Sep 12, 2019 by Mario Ignacio Castaneda Lopez

Hi someone,

 

the problem is: while the Pairing and bonding are succeed, but if set the Char & Char value ACCESS level to gPermissionFlagReadWithEncryption_c or gPermissionFlagWriteWithEncryption_c , the mobile app cannot read or write successfully from/to these values.

 

my working environment:

IDE: MCUXpresso 

SDK:

Demo project:

frdmkw36_wireless_examples_bluetooth_hid_device_freertos 

 

code changes:

changed the security level to gPermissionFlagReadWithEncryption_c , should be security mode 1 level 2

 

others are never changed, the default security mode setting in project is mode 1 level 3. this should not be the problem.

 

the problem :

the NRF connect or lightblue can successfully Pairing and bond with the device, but cannot READ the value_battery_level. the error code is GATT READ NOT PERMIT 

the original source code set the permission to lowest level, will not have this issue, please check this issue.

 

Thanks.

Ziv

Outcomes