Part Number: CC2652R7
Other Parts Discussed in Thread: BLE-STACK, SYSCONFIG
Hi,
My project is based on simple_peripheral example and sdk I'm using is simplelink_cc13xx_cc26xx_sdk_5_40_00_40.
Some of my characteristics have GATT_PERMIT_ENCRYPT_READ permission. And my bond_mgr parameters are as below. So based on the below parameters I'm using justworks pairing method.
pair_param_cmd.pair_mode = GAPBOND_PAIRING_MODE_WAIT_FOR_REQ;
pair_param_cmd.mitm = false;
pair_param_cmd.io_cap = GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT;
pair_param_cmd.bond_mode = BLE_BONDING_ENABLED;
pair_param_cmd.secure_connection = GAPBOND_SECURE_CONNECTION_ONLY;
I'm able to read the characteristic with GATT_PERMIT_ENCRYPT_READ permission after pairing from the android app successfully.
The issue is while trying with the iOS app. The iOS app automatically initiates pairing after getting insufficient authentication for the read request. Got a pairing popup on iphone and its successful. Even after that when I try to read the characteristic I'm getting Error Domain=CBATTErrorDomain Code=5 "Authentication is insufficient." on the iphone. Help me on this.
Also I saw a similar issue fix in below release note. Does it have something to do with this ?
software-dl.ti.com/.../release_notes_ble3stack_3_02_00_49.html
| BLESTACK-2535 | GATT procedures that require encryption may incorrectly return Insufficient Authentication after LE Secure Connection Authentication Stage 2 completes |
Regards,
Madhusudhan