This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Bonding fails

Part Number: CC2640R2F
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

  • Hey Harald,

    At first glance, it looks like the Android device is initiating the pairing request. If that's the case, then the behavior we're seeing is intended and you'll see the Android device disconnect if it fails to find a matching configuration during the feature exchange.

    Were you using a CC2640 in your previous project, or a CC2640R2? Did you use a similar Android application in the previous project? What were the security settings of the previous project?

    It may help to see some sniffer logs to understand what's happening on both ends. Can you provide them?
  • Hi,

    I haven’t heard from you so I’m assuming you were able to resolve your issue. If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information. If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.