Dear Sir,
I have established the SCO over HCI connection between CC2564 and BT headset, and I returned incoming audio sample back in to headset using fallowing codes.
case etSCO_Data_Indication:
if(SCO_Event_Data->SCO_Event_Data.SCO_Data_Indication_Event->SCO_Connection_ID == SCOConnectionID_Client)
{ SCO_Send_Data(BluetoothStackID, SCOConnectionID_Client, SCO_Event_Data->SCO_Event_Data.SCO_Data_Indication_Event->DataLength, SCO_Event_Data->SCO_Event_Data.SCO_Data_Indication_Event->DataBuffer);
}
Now I can hear my own voice over the headset but, beside the voice signal, there are another noise similar to the connecting sound of old 56k faxmodem, so it is not clear. And then, I perform the same experiment with HFRE_Open_HandsFree_Server_Port command but this time with smart phone, and established the audio connection using HFRE_Setup_Audio_Connection. Now I got a best result, voice is very clear. In both case, I created the audio connection over HCI transport layer, firing the HCI_VS_Write_SCO_Configuration and my question is, why SCO over HCI connection is not clear? I need to connect my hands free device with CC2564 and buffer the audio sample in to host CPU. I need your help.
Thank you.
Best Wishes