Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC2564: CC2564MODNEM: HFP-AG Connection to a car like a mobile phone

$
0
0

Part Number:CC2564

Hello,

we are currently working on a project where we want to connect the cc2564 to the car like a mobile phone. We would like to use the HFP AG interface to exchange audio. We also want to send phone book contacts to the car in vCard format.

We use the following hardware:
CC2564MODAEM Module Evaluation Board
CC256XEM-STADAPT Adapter board for the STM32F4
STM3240G-EVAL

On the other hand, a car with hands-free system (in this case a C4 picasso).

And the following software:
CC256x STM32 Bluetopia SDK v4.0.2.2 ---> NoOS ---> HFPAGDemo

for logiciel we use
Putty Program
Logger 5.0


I Follow tuto processors.wiki.ti.com/.../CC256x_TI’s_Bluetooth_Stack_Basic_HFGAGDemo_APP
all works up to the command OpenAudioGatewayClient, after 5 or 6 secondes the port close itself.


See putty log below:

-------------------------------------------------------------------------
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.5
LOCAL BD_ADDR: 0x0017E9E57AAA
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>
GAP Inquiry Entry Result: 0x2C5A059B2F09.

HFAGRE16>
GAP Inquiry Entry Result: 0x000780C4B723.

HFAGRE16>
GAP_Inquiry_Result: 2 Found.
GAP Inquiry Result: 1, 0x2C5A059B2F09.
GAP Inquiry Result: 2, 0x000780C4B723.

HFAGRE16>pair 2
GAP_Initiate_Bonding (Dedicated): Function Successful.

HFAGRE16>
atLinkKeyRequest: 0x000780C4B723
GAP_Authentication_Response() Success.

HFAGRE16>
atPINCodeRequest: 0x000780C4B723

Respond with the command: PINCodeResponse

HFAGRE16>ServiceDiscovery 2 12
SDP_Service_Search_Attribute_Request(Handsfree) Success.

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 = 0x02
Attribute ID 0x0009
Type: Data Element Sequence
Type: Data Element Sequence
Type: UUID_16 = 0x111E
Type: Unsigned Int = 0x0106
Attribute ID 0x0311
Type: Unsigned Int = 0x003E
Attribute ID 0x0005
Type: Data Element Sequence
Type: UUID_16 = 0x1002
Attribute ID 0x0006
Type: Data Element Sequence
Type: Unsigned Int = 0x656E
Type: Unsigned Int = 0x006A
Type: Unsigned Int = 0x0100
Attribute ID 0x0100
Type: Text String = Hands-Free

atAuthenticationStatus: 16 Board: 0x000780C4B723

HFRE16>OpenAudioGatewayClient 2 2
Bluetooth Device Address: 0x000780C4B723
Open Remote HandsFree Port = 0002
HFRE_Open_Remote_HandsFree_Port: Function Successful ID = 0001.
OpenRemoteHandsFreePort: HFRE_Update_Current_Control_Indicator_Status Function Status 0.

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

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

HFAGRE16>HFRE Network Operator Selection Format Indication, ID: 0x0001 Format: 3.

HFAGRE16>HFRE Network Operator Selection Indication, ID: 0x0001.

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

HFAGRE16>

-------------------------------------------------------

What are the possible causes?
I join you log via logger 5

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>