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?