Other Parts Discussed in Thread: CC2642R
Tool/software:
My customer has met a problem using CC2642R as central device, when using GapInit_connect() to initialize a connection the API returns 0x18(bleInvalidRange).
SDK: simplelink_cc13xx_cc26xx_sdk_7_41_00_17
This issue only happens under a certain circumstance, the CC2642 is running a firmware based on the multirole example, it connects to 4 devices, including 3 phones and a keyfob. The CC2642 acts as peripheral connecting to the phones and as central connecting to the keyfob. This issue only happens when it establishes the connection with 3 phones first and tries to establish the connection with the keyfob.
If connecting with other orders, the issue does not appear:
1. Connecting to the keyfob first, then connecting to the phones -- OK
2. Connecting to 1 or 2 phones first, then connecting to the keyfob -- OK
The implementation of GapInit_connect() has been reviewed and it seems fine:
status = GapInit_connect(addr_type & MASK_ADDRTYPE_ID, adv_addr, 0x01, 0);
Please kindly help to suggest how to locate the root cause of this issue, thanks.
Best regards,
Shuyang