Other Parts Discussed in Thread: CC2640
Hi to everybody,
I have a strange behaviour of my application (based on TI multi_role examples) and I'm not able to understand why it happen. I hope you can give me an advice.
I'm working with CC2642 and simplelink_cc13x2_26x2_sdk_2_40_00_81. My "multi_role" application can accept a connection from one or more Master, through the passkey process. I'm using the following set up
--------------------------------------------------------
uint8_t pairMode = GAPBOND_PAIRING_MODE_INITIATE;
uint8_t mitm = TRUE;
uint8_t ioCap = GAPBOND_IO_CAP_DISPLAY_ONLY;
uint8_t bonding = TRUE;
GAPBondMgr_SetParameter(GAPBOND_PAIRING_MODE, sizeof(uint8_t), &pairMode);
GAPBondMgr_SetParameter(GAPBOND_MITM_PROTECTION, sizeof(uint8_t), &mitm);
GAPBondMgr_SetParameter(GAPBOND_IO_CAPABILITIES, sizeof(uint8_t), &ioCap);
GAPBondMgr_SetParameter(GAPBOND_BONDING_ENABLED, sizeof(uint8_t), &bonding);
--------------------------------------------------------
CASE1
Using a SPhone(huwawei Mate 20 Pro, but also other kind of SPhone brand) as Master, I have no issue to scan for the multi_role, to found it, to create a BT link, to send the required Password and make a succesfull Bonding. At the end of the bonding process, I can disconnect my SPhone, and at the next scan for my multi_role, i can found it again and make a link with it with no more password requested.
CASE2
Using BTOOL and CC2640R2 launchpad kit (replacing the BT chip with a CC2642) and Blestack/Host_test from SDK_1_35_00_ 33 I can succesfull use it as Master and I have no issue to scan for the multi_role, to found it, to create a BT link, to send the required Password and make a succesfull Bonding.
The problem in this case is that after the bonding process, If I disconnect the Launchpad and start again to scan for my multi_role, the multi_role itself doesn't reply anymore at any of my scan request. I can just receive the Mac Address from BTool but not the scan Response. If I try to make a link, this is not possible! I also can't see any connection_event in my multi_role side...
If I disable the Bonding, I can see the scan response reply from multi_role even after the first pairing with password, so I guess there is something wrong with the bonding process
Because my multi_role application in the future has to work not only with SPhone but also with telemathic units, I'm worry if this behaviour can happen in the second scenario: after a succesfull bonding, the telematics units will not be able to link it anymore...
I have two log from packet sniffer, were the link,pairing and bonding are made. One for CAS1 and one for CASE2. I hope you can give me some suggestion.CASE1 SPhone & multi_role.psdCASE2 LP & multi_role.psd
Thanks in advance for your support!
Federico