Other Parts Discussed in Thread: CC2640
Tool/software: TI-RTOS
Hi,
I am using project_zero / multi_role hybrid from 1.50.0.58 sdk.
passkey = 123456; pairMode =GAPBOND_PAIRING_MODE_INITIATE; mitm = TRUE; iocap = GAPBOND_IO_CAP_DISPLAY_ONLY bonding = FALSE;
I am able to connect two android(7.0, Huawei and 7.1.2, Xiaomi) centrals to one cc2640 peripheral and pair them both, but those actions have to be done separately, one after another.
1) QUESTION
Is it possible to pair two devices at the same time (within a few seconds)? When I try to do it I get like this:
ANDROID1 | ANDROID2 |
connection established | connection established |
pairing request from slave | pairing request from slave |
press ok | press ok |
code request, Loginfo says "needed 123456" | popup in the LightBlue app says "pairing failed", Loginfo says "pairing failed: code 0x08", sometimes also "FC Violated: 16" |
type in 123456 | |
waiting for Loginfo to say "paired" but get "Disconnected!" instead |
Is it a Bluetooth specification thing or TI implementation of BLE that it is impossible to pair more devices simultaneously? Or maybe it is possible but I can't do it.
2) QUESTION
When cc2640 sends pairing request and I accept popup notification on Android side, then click pair BUT NOT TYPE CODE IN I get disconnected after like 30~ seconds and Loginfo says "pairing failed, code 23".
Is there any place in code I can change the timeout value? Or is it a matter of Android version or vendor specific implementation and I can do nothing about it?
Thanks,
Paul