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.

CC2564MODA: Classic BT pairing fails with atAuthenticationStatus: 4

Part Number: CC2564MODA

Hi,

We are using CC2564MODA  with our custom board  based on STM32L4 MCU.

Our device acts as a BLE peripheral for iOS phone and simultaneously connects to a classic BT headset (HSP profile) for audio playback.

Sometimes, when we try to pair the headset using GAP_Initiate_Bonding(), we get the following in GAP_Event_Callback.

atAuthenticationStatus: 4 Board: 0xFC58FAB984AC

Connection_Complete_Event: Type: 2, Addr: 0xFC58FAB984AC, ConnHandle: 1, Status:4

What does this mean? Once we get this error, its consistent and we have to reset the device/headset and start everything afresh to get a successful connection. 

What is the reason for this kind of error? Please help. 

Attached logs captured for Success and Failure cases.

Thanks,

Indu

 

BT_Connectivity.rar

  • Can, you explain the steps used? is there a particular pattern followed in failed cases? From the logs, in failed case, a BLE connection was established by the peer, when is a classic connection underway?

    Thanks
  • Hi Hari,

    Here is the steps we follow:

    1. BLE connection established between our device and iPhone.

    2. Get the details of headset to be connected, via BLE from iPhone to the device.

    3. Disconnect BLE temporarily and start inquiry for classic BT.

    4. When the desired headset is listed out in Inquiry and its name is verified by GAP_Query_Remote_Device_Name(), BLE is connected back.

    (step 3 and 4 are done as a work around as we were facing issues to list out the headset in Inquiry, while BLE connection was ongoing.)

    5. Pair headset device and store the link key info in NV memory.

    6. Open headset port and setup audio connection for play back.

    In the attached log of failed case, we were getting the LE connection complete callback only after the classic BT pairing was started. But even if it is the other way, sometimes pairing gets fail.

    Attached another log file for failure case.

    Thanks,

    Indu

    BT_Connectivity1.rar

  • Hi,

    Anyone pls help to solve this issue.

    This occurs when we connect an earpiece, disconnect it, and again try to connect the same earpiece.

    Once we get this error, it's consistent to get the same error n number of times, like we got into some loop.

    Thanks,

    Indu