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.

CC2564MODAEM: Audio gateway(HFPAG) with a commercial headset problem

Part Number: CC2564MODAEM
Other Parts Discussed in Thread: CC2564CSTBTBLESW, CC2564

hi,

I am testing HPFAG demo

Environments:

CC2564MODAEM

CC256XEM-STADAPT

STM32F4-Discovery

LG HBS-1100 ( commercial headset )

Source code:

CC2564CSTBTBLESW(IAR)

See :

CC256x TI’s Bluetooth Stack Basic HFGAGDemo APP

 2.2.1 Followed the item

My results are as follows:

OpenStack().
Bluetooth Stack ID: 1
WBS Support initialized.
Device Chipset: 4.1
BTPS Version  : 4.0.2.1
Project Type  : 6
FW Version    : 7.26
App Name      : HFPAGDemo
App Version   : 0.3
LOCAL BD_ADDR: 0x0017E9E57A4F
GAP_Set_Connectability_Mode(cmConnectable).
GAP_Set_Discoverability_Mode(dmGeneralDiscoverable, 0).
GAP_Set_Pairability_Mode(pmPairableMode).
GAP_Register_Remote_Authentication() Success.

******************************************************************
* Command Options: Inquiry, DisplayInquiryList, Pair,            *
*                  EndPairing, PINCodeResponse, PassKeyResponse, *
*                  UserConfirmationResponse,                     *
*                  SetDiscoverabilityMode, SetConnectabilityMode,*
*                  SetPairabilityMode,                           *
*                  ChangeSimplePairingParameters,                *
*                  GetLocalAddress, SetLocalName, GetLocalName,  *
*                  SetClassOfDevice, GetClassOfDevice,           *
*                  GetRemoteName, ManageAudio,                   *
*                  OpenAudioGatewayClient, CloseAgClient,        *
*                  ServiceDiscovery, UpdateControlIndicators,    *
*                  CallWaiting, SendCallerIdNotification,        *
*                  SetRingIndication, RingIndication,            *
*                  SetVoiceRecognitionActivation,                *
*                  SetSpeakerGain, SetMicroPhoneGain,            *
*                  DisableRemoteSoundEnhancement,                *
*                  SendOperatorInfo, SendIncomingCallState,      *
*                  SendSubNumber, SendCallList,                  *
*                  Help                                          *
******************************************************************

HFAGRE16>Inquiry
Return Value is 0 GAP_Perform_Inquiry() SUCCESS.

HFAGRE16>
HFAGRE16>
GAP Inquiry Entry Result: 0xB8AD3EE93353.

HFAGRE16>
GAP_Inquiry_Result: 1 Found.
GAP Inquiry Result: 1, 0xB8AD3EE93353.

HFAGRE16>ServiceDiscovery 1 12
SDP_Service_Search_Attribute_Request(Handsfree) Success.

HFAGRE16>
HFAGRE16>
SDP Service Search Attribute Response Received (Size = 0x0010)
Service Record: 1:
Attribute ID 0x0000
Type: Unsigned Int = 0x00010000
Attribute ID 0x0001
Type: Data Element Sequence
Type: UUID_16 = 0x111E
Type: UUID_16 = 0x1203
Attribute ID 0x0004
Type: Data Element Sequence
Type: Data Element Sequence
Type: UUID_16 = 0x0100
Type: Data Element Sequence
Type: UUID_16 = 0x0003
Type: Unsigned Int = 0x0A
Attribute ID 0x0006
Type: Data Element Sequence
Type: Unsigned Int = 0x656E
Type: Unsigned Int = 0x006A
Type: Unsigned Int = 0x0100
Attribute ID 0x0009
Type: Data Element Sequence
Type: Data Element Sequence
Type: UUID_16 = 0x111E
Type: Unsigned Int = 0x0106
Attribute ID 0x0100
Type: Text String = Hands-Free unit
Attribute ID 0x0311
Type: Unsigned Int = 0x003F

HFAGRE16>OpenAudioGatewayClient 1 10
Bluetooth Device Address: 0xB8AD3EE93353
Open Remote HandsFree Port = 000A
HFRE_Open_Remote_HandsFree_Port: Function Successful ID = 0001.
OpenRemoteHandsFreePort: HFRE_Update_Current_Control_Indicator_Status Function Status 0.

HFAGRE16>
HFAGRE16>
atLinkKeyRequest: 0xB8AD3EE93353
GAP_Authentication_Response() Success.

HFAGRE16>
atPINCodeRequest: 0xB8AD3EE93353

Respond with the command: PINCodeResponse

HFAGRE16>PINCodeResponse 0000
PINCodeResponse.
GAP_Authentication_Response(), Pin Code Response Success.

HFAGRE16>
atLinkKeyCreation: 0xB8AD3EE93353
Link Key: 0xFC0FED310BB979D5E5D6F50D2CC08254
Link Key Stored locally.

HFAGRE16>
HFRE Open Port Confirmation, ID: 0x0001, Status: 0x0000.

HFAGRE16>
HFAGRE16>
HFRE Open Service Level Connection Indication, ID: 0x0001
                     RemoteSupportedFeaturesValid: TRUE
                          RemoteSupportedFeatures: 0x0000009F
                  RemoteCallHoldMultipartySupport: 0x00000000
HFRE_Enable Call Line Identification

HFAGRE16>
Unknown HFRE Event Received: 11.

HFAGRE16>HFRE Speaker Gain Indication, ID: 0x0001, Speaker Gain 0x0009.

HFAGRE16>HFRE Call Waiting Notification Activation Indication, ID: 0x0001, Enabled: TRUE.

HFAGRE16>
Unknown HFRE Event Received: 38.

HFAGRE16>
HFRE Close Port Indication, ID: 0x0001, Status: 0x0001.

HFAGRE16>

Problem :

Unknown HFRE Event Received two lines occur.

In addition, the connection is immediately disconnected

Do you need to define an unknown HFRE event?

What should you do?

  • Hi Hyunwoo,

    Do you have access to a Bluetooth sniffer to capture the HFP profile level transactions? If not, you can capture similar logs with a custom sniffer as described in the following User's Guide.

    http://www.ti.com/lit/pdf/swpa234 (please refer to section 4.1.2 custom HCI sniffer of this document).

    Hyunwoo YANG said:

    HFAGRE16>
    HFRE Open Port Confirmation, ID: 0x0001, Status: 0x0000.

    HFAGRE16>
    HFAGRE16>
    HFRE Open Service Level Connection Indication, ID: 0x0001
                         RemoteSupportedFeaturesValid: TRUE
                              RemoteSupportedFeatures: 0x0000009F
                      RemoteCallHoldMultipartySupport: 0x00000000
    HFRE_Enable Call Line Identification

    HFAGRE16>
    Unknown HFRE Event Received: 11.

    HFAGRE16>HFRE Speaker Gain Indication, ID: 0x0001, Speaker Gain 0x0009.

    HFAGRE16>HFRE Call Waiting Notification Activation Indication, ID: 0x0001, Enabled: TRUE.

    These traces indicate that the HFP profile level connection was successful.

    Hyunwoo YANG said:

    HFAGRE16>
    HFRE Close Port Indication, ID: 0x0001, Status: 0x0001.

    HFAGRE16>

    This indicates the disconnection. 

  • Thank you for your interest.

    I don't know if this is right, but I've used a logic analyzer.

    This is the HCI output after the 'Unknown HFRE Event Received: 11' output of the console debug.

    (TX : STM32F4 - > CC2564)

    (RX : STM32F4 < - CC2564)

    RX : ACLDataLength=22
    TX : ACLDataLength=19
    Event code : 0x13050101000100
    RX : ACLDataLength=13
    RX : ACLDataLength=22
    TX : ACLDataLength=19
    Event code : 0x13050101000100
    RX : ACLDataLength=13
    RX : ACLDataLength=37
    TX : ACLDataLength=22
    Event code : 0x13050101000100
    RX : ACLDataLength=13
    RX : ACLDataLength=21
    TX : ACLDataLength=22
    Event code : 0x13050101000100
    RX : ACLDataLength=13
    RX : ACLDataLength=37
    TX : ACLDataLength=22
    Event code : 0x13050101000100
    RX : ACLDataLength=13
    RX : ACLDataLength=21


    After about 5 seconds


    RX : ACLDataLength=35
    TX : ACLDataLength=35
    CMD opcode : 0x06FD22000800401F0000010000000010000100001000010001001000110000100011000100
    Event code : 0x0E040106FD00
    CMD opcode : 0x260C026000
    Event code : 0x0E0401260C00
    CMD opcode : 0x79FD00
    Event code : 0x0E040179FD00
    Event code : 0x13050101000200
    RX : ACLDataLength=13
    RX : ACLDataLength=12
    TX : ACLDataLength=12
    Event code : 0x13050101000100
    RX : ACLDataLength=12
    TX : ACLDataLength=16
    RX : ACLDataLength=16
    TX : ACLDataLength=23
    Event code : 0x0F0400010604
    Event code : 0x050400010016

    I hope this is the information we need.

  • Hyunwoo,

    Please share the BTSnoop file generated by the tool when these console traces were captured? 

    Best regards,

    Vihang