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.

CC256XCQFN-EM: BT Call

Part Number: CC256XCQFN-EM
Other Parts Discussed in Thread: CC3200

Hello,

I try to connect a CC256xCQFN-EM stacked on an MSP432 and extended with a CC3200 AUDIO BOSTERPACK with a car-unit. I use the "HFP Demo Ag" code and my boards are connected like in "Copyright © 2016, Texas Instruments Incorporatedwww.ti.com Hardware Setup 7SWRU497A–November 2016–Revised August 20" page 7.

I can pair the bt-stack with my car-unit and I can open an audiogateway client. I can use manageaudio 1 to setup audio. I try to open a bluetooth call via the bluetooth stack, but all other commands like ringIndication sendCallWaiting,  give me the error (-1005) and close the audioAgClient. Also the client closes when I push the call button on my car-unit.
Here are my HCI commands:

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

HFP AG>pair 3
GAP_Initiate_Bonding (Dedicated): Function Successful.

HFP AG>
atLinkKeyRequest: 0x009D6B211CF7
GAP_Authentication_Response() Success.

HFP AG>
atPINCodeRequest: 0x009D6B211CF7

Respond with the command: PINCodeResponse

HFP AG>pincoderesponse 12345
PINCodeResponse.
GAP_Authentication_Response(), Pin Code Response Success.

HFP AG>
atLinkKeyCreation: 0x009D6B211CF7
Link Key: 0xD253DD228E8CBB88EE2D6040C160EF0D
Link Key Stored locally.

HFP AG>
atAuthenticationStatus: 0 Board: 0x009D6B211CF7

HFP AG>servicediscovery 3 12
SDP_Service_Search_Attribute_Request(Handsfree) Success.

HFP AG>
SDP Service Search Attribute Response Received (Size = 0x0010)
Service Record: 1:
Attribute ID 0x0000
Type: Unsigned Int = 0x00010002
Attribute ID 0x0001
Type: Data Element Sequence
Type: UUID_16 = 0x111E
Type: UUID_16 = 0x1203
Attribute ID 0x0002
Type: Unsigned Int = 0x00000832
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 = 0x01
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 0x0009
Type: Data Element Sequence
Type: Data Element Sequence
Type: UUID_16 = 0x111E
Type: Unsigned Int = 0x0107
Attribute ID 0x0100
Type: Text String = Hands-Free unit
Attribute ID 0x0311
Type: Unsigned Int = 0x003F

HFP AG>openaudiogatewayclient 3 1
Bluetooth Device Address: 0x009D6B211CF7
Open Remote HandsFree Port = 0001
HFRE_Open_Remote_HandsFree_Port: Function Successful ID = 0001.
OpenRemoteHandsFreePort: HFRE_Update_Current_Control_Indicator_Status Function Status 0.

HFP AG>
atLinkKeyRequest: 0x009D6B211CF7
GAP_Authentication_Response() Success.

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

HFP AG>
HFRE Available Codec List Indiocation, ID: 0x0001 NumCodecs: 2 [ 1 2 ]

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

HFP AG>
HFRE Disable Sound_Enhancement Indication, ID: 0x0001
HFRE_Send_Terminating_Response (erOK) :: Res = 0

HFP AG>
HFRE_Current_Calls_List_Indication

HFRE_Send_Terminating_Response (erOK) :: Res = 0

HFP AG>HFRE Call Line Identification Notification Activation Indication, ID: 0x0001, Enabled: TRUE.

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

HFP AG>
HFRE_Extended_Error_Result_Activation_Indication_Data ENable: 1

HFRE_Send_Terminating_Response (erOK) :: Res = 0

HFP AG>
HFRE_Current_Calls_List_Indication

HFRE_Send_Terminating_Response (erOK) :: Res = 0

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

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

HFP AG>manageaudio 1
HFRE_Send_Select_Codec:: Codec = 2, Res = 0

HFP AG>
HFRE Codec Select Confirmation, ID: 0x0001 AcceptedCodec=2
Setup WBS with Audio for ACL handle 0x0001
HFRE_Setup_Audio_Connection: Function Successful.
HFRE_Setup_Audio_Connection:: Res = 0

HFP AG>
HFRE Audio Connection Indication, ID: 0x0001, BDADDR=0x009D6B211CF7, Status: 0x0000.

HFP AG>callwaiting 01732123
HFRE_Send_Call_Waiting_Notification() Failure: -1005.
Function Error.

HFP AG>callindication
HFRE Close Port Indication, ID: 0x0001, Status: 0x0001.

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

Maybe you can help my with my problem.

Best regards
J.Vetter

  • Hi Jens,

    The -1005 error you see refers to an BTHFRE_ERROR_INVALID_OPERATION error. Does your car unit support ring tone and have the Call Waiting notification enabled? I believe it is also required to call the SetRingIndication API before using the RingIndication API.

    Here are the APIs for reference.

    CallWaiting:

    RingIndication

      

    Thanks,
    Jacob

  • okay, maybe I´m trying the wrong thing.
    So what I´m trying with my stack is to copy this log:

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

    69 09:29:09 << SSP CONFIRM 00:9d:6b:21:1c:f7 445705 ?
    70 09:29:09 >> SSP CONFIRM 00:9d:6b:21:1c:f7 OK
    71 09:29:18 << PAIR 00:9d:6b:21:1c:f7 5 65c8962651976808dd27c5a46c967b14
    72 09:29:18 << RING 0 00:9d:6b:21:1c:f7 2 RFCOMM
    73 09:29:18 >> NAME 00:9d:6b:21:1c:f7
    74 09:29:18 << AT+BRSF=255
    75 09:29:19 << NAME 00:9d:6b:21:1c:f7 "My VWY"
    76 09:29:19 >> +BRSF: 583
    77 09:29:19 >> OK
    78 09:29:19 << AT+BAC=1,2
    79 09:29:19 >> OK
    80 09:29:19 << AT+CIND=?
    81 09:29:19 >> +CIND: ("call",(0,1)),("service",(0,1)),("callsetup",(0-3)),("signal",(0-5))
    82 09:29:19 >> OK
    83 09:29:19 << AT+CIND?
    84 09:29:19 >> +CIND: 0,1,0,3
    85 09:29:19 >> OK
    86 09:29:19 << AT+CMER=3,0,0,1
    87 09:29:19 >> OK
    88 09:29:19 << AT+CHLD=?
    89 09:29:19 >> +CHLD: (0,1,1x,2,2x,3,4)
    90 09:29:19 >> OK
    91 09:29:19 << AT+NREC=0
    92 09:29:19 >> OK
    93 09:29:19 << AT+CREG?
    94 09:29:19 >> OK
    95 09:29:19 << AT+CLIP=1
    96 09:29:19 >> OK
    97 09:29:20 << AT+CCWA=1
    98 09:29:20 >> OK
    99 09:29:20 << AT+CMEE=1
    100 09:29:20 >> OK
    101 09:29:20 << AT+COPS=3,0
    102 09:29:20 >> OK
    103 09:29:20 << AT+CLCC
    104 09:29:20 >> OK
    105 09:29:20 << AT+COPS?
    106 09:29:20 >> +COPS: 0,0,"MFE XI"
    107 09:29:20 >> OK
    108 09:29:21 << AT+CSCS=?
    109 09:29:21 >> ERROR
    110 09:29:21 << AT+CLCC
    111 09:29:21 >> OK
    112 09:29:45 >> +CIEV: 3,1
    113 09:29:45 << AT+CLCC
    114 09:29:45 >> +BCS:2
    115 09:29:45 >> OK
    116 09:29:45 << AT+BCS=2
    117 09:29:45 >> OK
    118 09:29:46 >> WBS ON
    119 09:29:46 >> sco open 0
    120 09:29:46 << CONNECT 1 SCO 00:9d:6b:21:1c:f7
    121 09:29:46 >> RING
    122 09:29:46 << SCO pkt=00ff type=eSCO interval=0c wesco=06 rxlen=003c txlen=003c mode=data
    123 09:29:47 << AUDIO ROUTE 1 SCO LEFT RIGHT
    124 09:29:47 << AT+CLCC
    125 09:29:49 >> OK
    126 09:29:49 >> RING
    127 09:29:49 << AT+CLCC
    128 09:29:52 >> OK
    129 09:29:52 >> RING
    130 09:29:52 << AT+CLCC
    131 09:29:55 >> OK
    132 09:29:55 >> RING
    133 09:29:55 << AT+CLCC
    134 09:29:58 >> OK
    135 09:29:58 >> +CIEV: 1,1
    136 09:29:58 << AT+CLCC
    137 09:29:58 >> +CIEV: 3,0
    138 09:29:59 >> +CLCC: 1,1,0,0,0
    139 09:29:59 >> OK

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

    This log is from another BT device which I´m able to pair with my car perfectly. It uses the HFP-AG profile, I can send an ringindication to my car and get a call between this device an my car. I think the ringindication is th "AT+CLIP=1" and "AT+CIEV" has something to do with the call.
    So the steps are:
    choose profile HFP-AG
    inquiry
    pair with dut
    ring at the dut
    answer the call at the dut

    The problem is, the software of this device has a nice GUI and I just have to push 3 buttons and all the magic works in the backround. The log is not provided on HCI lvl just on service lvl.

    And now I´m trying the same steps with my bt-stack:
    with HFP-AG profile on the stack:
    inquiry works
    pair woks
    openaudiogatewayclient works
    manageaudio I think it work
    and now I try to ring and to call /answer the call  <------that is were it stucks

    Is there a way to get this workig with HCI or is there another way?

  • Hi Jens,

    I'm attaching our HFP Audio Gateway Demo instructions. After ensuring the car unit is up and running, can you try the commands from the HFP AG demo in this order:

    1. Inquiry 

    2. ServiceDiscovery [Inquiry Table Index of Car Unit] 12

    3. OpenAudioGatewayClient [Inquiry Table Index of Car Unit] [Handsfree Port Result from Previous Command]

    4. RingIndication

    5. ManageAudio 1

    6. ManageAudio 0

    7. CloseAgClient

    Can you post the application logs of these commands?

    2664.CC256x TI’s Bluetooth Stack Basic HFGAGDemo APP - Texas Instruments Wiki.pdf

    4382.CC256x TI Bluetooth Stack HFPDemo App - Texas Instruments Wiki.pdf

    Thanks,
    Jacob