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.

CC2564C: CC2564 Two SCO links in parallel problem on headset auto connect

Part Number: CC2564C

Hello together,
I have a problem with two parallel SCO links on the CC2564C and hope that someone can help me further. Starting situation, I want to run two parallel SCO link's via one BT module, the audio packets are transferred from a STM32F413 via I2S (PCM) to the module.

The following problem occurs:

When I pair two headsets freshly, I hear audio on both headsets (left channel on headset 1 and right channel on headset 2), so far ok. When I initially pair, I store the LinkKey_t data in the uC's flash and when an Authentication_Request_Event occurs (headset switched off and on again), I load the corresponding data from the Flash into the LinkKey_t struct and then call HFRE_Open_Remote_HandsFree_Port(). whereupon both headsets reconnect automatically. Both headsets connect perfectly. 

From this point on I only have audio playback on one headset. The function HFRE_Setup_Audio_Connection() returns for both connections 0 but the corresponding event
HFRE_Audio_Connection_Indication returns Status: 0x0001 which means unknown error. When I turn off the working headset and restart the audio playback, I get the playbacks on the previously not working headset 

Thanks for your Help and BR

Log:

HFRE Command Result, ID: 0x0001, Type 0 Code 0.
atLinkKeyRequest: 0x0CE0E441C339
atLinkKeyRequest: Key found in local storage
GAP_Authentication_Response() Success.
Connecting to stack: 1, port 1
Bluetooth Device Address: 0x0CE0E441C339
Open Remote HandsFree Port = 0000
HFRE_Open_Remote_HandsFree_Port: Function Successful ID = 0002.
OpenRemoteHandsFreePort: HFRE_Update_Current_Control_Indicator_Status Function Status 0.
atLinkKeyRequest: 0x0CE0E441C339
atLinkKeyRequest: Key found in local storage
GAP_Authentication_Response() Success.
atAuthenticationStatus: 0 Board: 0x0CE0E441C339
Encryption_Change_Result status: 0.

HFRE Open Port Confirmation, ID: 0x0002, Status: 0x0000.

HFRE Open Service Level Connection Indication, ID: 0x0002
RemoteSupportedFeaturesValid: TRUE
RemoteSupportedFeatures: 0x00000019
RemoteCallHoldMultipartySupport: 0x00000000
HFRE_Enable Call Line Identification
Connection established happened

HFRE Disable Sound Enhancement Indication, ID: 0x0002.
HFRE Speaker Gain Indication, ID: 0x0002, Speaker Gain 0x0008.

HFRE Microphone Gain Indication, ID: 0x0002, Gain: 15
atLinkKeyRequest: 0xE422A57A32A8
atLinkKeyRequest: Key found in local storage
GAP_Authentication_Response() Success.
Connecting to stack: 1, port 0
Bluetooth Device Address: 0xE422A57A32A8
Open Remote HandsFree Port = 0000
HFRE_Open_Remote_HandsFree_Port: Function Successful ID = 0003.
OpenRemoteHandsFreePort: HFRE_Update_Current_Control_Indicator_Status Function Status 0.
atLinkKeyRequest: 0xE422A57A32A8
atLinkKeyRequest: Key found in local storage
GAP_Authentication_Response() Success.
ConnectionHandle 204
atAuthenticationStatus: 0 Board: 0xE422A57A32A8
Encryption_Change_Result status: 0.

HFRE Open Port Confirmation, ID: 0x0003, Status: 0x0000.

HFRE Open Service Level Connection Indication, ID: 0x0003
RemoteSupportedFeaturesValid: TRUE
RemoteSupportedFeatures: 0x00000019
RemoteCallHoldMultipartySupport: 0x00000000
HFRE_Enable Call Line Identification
Connection established happened

HFRE Disable Sound Enhancement Indication, ID: 0x0003.

HFRE Hold Status Indication, ID: 0x0002
HFRE Send Incoming Call State, Return Code: 0x0000.

HFRE Calls List Indication, ID: 0x0002
HFRE_Send_Current_Calls_List function: Succeeded, Returned Result 0
HFRE Speaker Gain Indication, ID: 0x0003, Speaker Gain 0x0008.

HFRE Microphone Gain Indication, ID: 0x0003, Gain: 15

HFRE Hold Status Indication, ID: 0x0003
HFRE Send Incoming Call State, Return Code: 0x0000.

HFRE Calls List Indication, ID: 0x0003
HFRE_Send_Current_Calls_List function: Succeeded, Returned Result 0
atLinkKeyRequest: 0xE422A57A32A8
GAP_Authentication_Response() Success.
HFRE Control Indicator Status Indication 1, ID: 0x0001, Description: CALLSETUP, Value: 1.
HFRE_Setup_Audio_Connection: Function Successful.
HFRE_Setup_Audio_Connection: Function Successful.

etHFRE_Codec_Select_Indication, ID: 0x0001 Codec ID: 2.
Warning: Always done for the first Device!

HFRE Command Result, ID: 0x0001, Type 0 Code 0.

etHFRE_Codec_Select_Indication, ID: 0x0001 Codec ID: 1.
Warning: Always done for the first Device!

HFRE Audio Connection Indication, ID: 0x0002, Status: 0x0001.

HFRE Command Result, ID: 0x0001, Type 0 Code 0.

HFRE Audio Connection Indication, ID: 0x0001, Status: 0x0000.