Part Number: CC2340R5
Other Parts Discussed in Thread: BLE-STACK
Hello TI Support Team,
I am using simplelink_lowpower_f3_sdk_8_40_00_61 on a CC23xx device.
I am currently working on Bluetooth PTS qualification and need the stack to PASS the following test case:
I have imported and tested with the qualification record Q344718 (Subset DN) for SimpleLinkTm CC2340R5x.(Qualification Workspace - Qualified Product Details)
I have made one modification in the default (certified) ICS:
TSPX_secure_connection was changed to TRUE. All other ICS settings remain as provided by TI.
Test Case:
GATT/SR/GAR/BI-05-C
(Read Characteristic Value – Insufficient Encryption Key Size)
Summary of the test:
This test requires the IUT (implementation under test) to accept a connection even if the encryption key size is smaller than required, and to respond to a GATT/ATT Read request with ATT Error 0x0C (Insufficient Encryption Key Size).
Expected behavior:
The IUT should permit establishing a BLE connection and allow a weak (smaller than required) encryption key size, but, when an attribute is accessed with insufficient key size, it should reply with ATT Error 0x0C as specified by the Bluetooth PTS test case.
Current Situation / Problem:
With SDK v8.40.00.61, the stack currently rejects connections (including L2CAP Credit Based Channels) at the connection or pairing stage when the encryption key size does not meet the required minimum, instead of allowing the connection and returning an ATT 0x0C error in response to a GATT/ATT request.
After reviewing the SDK (including gapbondmgr.c, app_l2cap_coc.c), it appears that minimum encryption key size requirements are enforced before a connection can be established, and I could not find a way to temporarily relax this check for certification purposes.
Request:
- Is there any official method, configuration option, or workaround to temporarily allow a BLE connection with a smaller-than-required encryption key size so that the stack will return ATT Error 0x0C at the attribute access stage?
- Are there any SDK updates, patches, or known workarounds that address the key size validation for PTS conformance in v8.40.00.61?
Thank you very much for your support. I would appreciate any guidance or information you can provide to help me resolve this BLE qualification issue.
Best regards,
Tsuchiya.
