Other Parts Discussed in Thread: CC2564MODN, , TLV320AIC3101, CC2564
Hi Rogelio,
If you didn't read the other post in the other thread already, happy new year!
I'm using the CC2564MODN with the 5.1.1.1 sdk, I didn't find the older sdk on this page: https://www.ti.com/tool/CC2564CSTBTBLESW. I don't know if I can use this newer sdk on the older chipset without qonsequences?
We already ordered the BDE-BD2564CN with the newer CC2564C chipset. It will arrive soon. In the meantime I try to get everything working with the headset. However there are a couple of challenges.
When I pair and try to open an audio connection with the headset, like explained in your document: "CC256x TI’s Bluetooth Stack Basic HFGAGDemo APP", it always works till the "OpenAudioGatewayClient" command. When this command works the output is this:
HFP AG>openaudiogatewayclient 2 3
Bluetooth Device Address: 0x886B0FC8C0CC
Open Remote HandsFree Port = 0003
HFRE_Open_Remote_HandsFree_Port: Function Successful ID = 0002.
OpenRemoteHandsFreePort: HFRE_Update_Current_Control_Indicator_Status Function S
tatus 0.
HFP AG>
HFP AG>
atLinkKeyRequest: 0x886B0FC8C0CC
GAP_Authentication_Response() Success.
HFP AG>
HFRE Open Port Confirmation, ID: 0x0002, Status: 0x0000.
HFP AG>
HFRE Open Service Level Connection Indication, ID: 0x0002
RemoteSupportedFeaturesValid: TRUE
RemoteSupportedFeatures: 0x0000009E
RemoteCallHoldMultipartySupport: 0x00000000
HFRE_Enable Call Line Identification
HFP AG>HFRE Network Operator Selection Format Indication, ID: 0x0002 Format: 3.
HFP AG>HFRE Network Operator Selection Indication, ID: 0x0002.
HFP AG>
HFRE Audio Connection Indication, ID: 0x0002, Status: 0x0000.
HFP AG>HFRE Call Line Identification Notification Activation Indication, ID: 0x0
002, Enabled: TRUE.
HFP AG>HFRE Speaker Gain Indication, ID: 0x0002, Speaker Gain 0x000A.
When it not works the output is this:
openaudiogatewayclient 3 3
Bluetooth Device Address: 0x886B0FC8C0CC
Open Remote HandsFree Port = 0003
HFRE_Open_Remote_HandsFree_Port: Function Successful ID = 0001.
OpenRemoteHandsFreePort: HFRE_Update_Current_Control_Indicator_Status Function S
tatus 0.
HFP AG>
HFP AG>
atPINCodeRequest: 0x886B0FC8C0CC
Respond with the command: PINCodeResponse
HFP AG>pincoderesponse 0000
PINCodeResponse.
GAP_Authentication_Response(), Pin Code Response Success.
HFP AG>
atLinkKeyCreation: 0x886B0FC8C0CC
Link Key: 0x8FED9B58A34A43B9CEDA797BBC2A3C45
Link Key Stored locally.
HFP AG>
HFP AG>
HFRE Open Port Confirmation, ID: 0x0001, Status: 0x0000.
HFP AG>
HFRE Open Service Level Connection Indication, ID: 0x0001
RemoteSupportedFeaturesValid: TRUE
RemoteSupportedFeatures: 0x0000009E
RemoteCallHoldMultipartySupport: 0x00000000
HFRE_Enable Call Line Identification
HFP AG>HFRE Network Operator Selection Format Indication, ID: 0x0001 Format: 3.
HFP AG>HFRE Network Operator Selection Indication, ID: 0x0001.
HFP AG>
HFRE Close Port Indication, ID: 0x0001, Status: 0x0000.
HFP AG>openaudiogatewayclient 3 3
Bluetooth Device Address: 0x886B0FC8C0CC
Open Remote HandsFree Port = 0003
HFRE_Open_Remote_HandsFree_Port: Function Successful ID = 0002.
OpenRemoteHandsFreePort: HFRE_Update_Current_Control_Indicator_Status Function S
tatus 0.
HFP AG>
HFP AG>
HFRE Open Port Confirmation, ID: 0x0002, Status: 0x0001.
When it not works, I also don't get it to work. I tried the manageaudio command, but that fails. Why the result is often so different? Also I'm wondering how to get a connection with a device where I previously paired with? When this headset is not in pairing mode, it's not showing up in the inquiry list. However it should be possible to connect with it when it was once paired. Do you know how to do this?
When the "openaudiogatewayclient" command works, the audio is opened. I added a call to the function "vs_pcm_codec_config_slave_i2s" and changed some parameters in the function to get the right settings for the audio bus. I coupled a tlv320aic3101 on the same bus. Now I have some audio from the headset but it's very crackling sound. So I think there's something wrong with the audio bus settings. Is this the right way to set up the pcm-bus on the bluetooth module side? Is it even possible to configure the audio bus the same on these two devices? As far as I know they both support I2s with 16bit per channel.
Furthermore this headset is provided with a ptt-button. The previously used bluetooth module was receiving commands when buttons where pushed on the headset. Do you know what I have to do to receive these commands?
Last one, I don't quite understand the meaning of the "service pack" you mentioned earlier. Could you explain if I need it and if I need it with the newer module that will arrive soon?
Looking forward to hear from you.
Best regards,
Robin
