Other Parts Discussed in Thread: CC2640,
Hy,
I am still struggling with the authentication/bonding. For the moment I do not want to pair/bond nor authenticate. In a previous project with the CC2640 this was no problem, I can connect to the device without entering any bonding information.
Now with the CC2640R2F and sdk_2_30_00_28 I face some issues: Whenever I want to connect from Android to the device it gets disconnected after some 10s with a "GATT CONN TERMINATE LOCAL HOST"
Good device:
None functioning device:
I try to switch off all bonding in my code:
// Setup the GAP Bond Manager { uint8_t pairMode = GAPBOND_PAIRING_MODE_NO_PAIRING; uint8_t mitm = FALSE; uint8_t ioCap = GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT; uint8_t bonding = FALSE; uint8_t scMode = GAPBOND_SECURE_CONNECTION_NONE; uint8_t replaceBonds = FALSE; 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); GAPBondMgr_SetParameter(GAPBOND_SECURE_CONNECTION, sizeof(uint8_t), &scMode); GAPBondMgr_SetParameter(GAPBOND_LRU_BOND_REPLACEMENT, sizeof(uint8_t), &replaceBonds); }
What do I need to change in my CC2640R2F project (based on simple peripheral) to get the old behaviour?
Best regards
Harald