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.

CC2564: CC2564 connected to a blue tooth microphone. Not card to card.

Part Number: CC2564
Other Parts Discussed in Thread: , CC3200AUDBOOST, CC1310, CC256XSTBTBLESW

I am trying to get the CC2564 to function with a head set. I have the MSP-EXP432P401R and a BOOST-CC2564MODA set of cards. I only have one set. However, I am trying to use the CC256X TI Bluetooth Stack HSPDemp app to communicate with the head set.

In the HSP Demo it has an Example: Audio gateway with a commercial headset. I have get to the point where the procedure says to Respond with the command: PINCodeResponse. I input PINCodeResponse 0000 and it comes back with an error. If I put in Pair I get further, but it ends up with an error. Is there any step by step procedure about how to get the CC2564 to work with a headset?

Our application is to have a blue tooth headset or just a blue tooth microphone and a CC2564 as the receiver. The CC2564 needs to receive the voice from the microphone and output I2S data. That I2S is summed together in hardware to add a tone from a Metronome. The data is then transmitted via at CC1312 at 900mhz to a remote received.

  • larry , can you pls list the exact steps and share logs ?

    Thanks
    Saurabh
  • I wonder, if the headset simply needs a different PIN code for pairing.. Did, you check the headset manual..

    Thanks
  • OK, I will try. I was going to do that when i sent the message, but nothing worked.
  • This is the serried of commands I issued:

    AudioGateway

    AG>Inquiry
    Return Value is 0 GAP_Perform_Inquiry() SUCCESS.
    AG>
    GAP Inquiry Entry Result: 0x9AC2BA07680A.
    AG>
    GAP_Inquiry_Result: 1 Found.
    GAP Inquiry Result: 1, 0x9AC2BA07680A.

    AG>DisplayInquiryList
    Inquiry List: 1 Devices:
    Inquiry Result: 1, 0x9AC2BA07680A.

    AG>openclient 1 11
    HDSET_Open_Remote_Headset_Port() was successful.
    AG>
    HDSET Open Port Confirmation, HDSETID: 0x0001, Status 0x0002.

    At this point it should have given me a
    AG>
    atPINCodeRequest: 0xxxxxxxxxx
    It did not:

    I inputed this:
    AG>pair 1
    GAP_Initiate_Bonding (Dedicated): Function Successful.

    AG>
    atLinkKeyRequest: 0x9AC2BA07680A
    GAP_Authentication_Response() Success.

    AG>
    atPINCodeRequest: 0x9AC2BA07680A

    Respond with the command: PINCodeResponse

    AG>
    atAuthenticationStatus: 19 Board: 0x9AC2BA07680A

    AG>PINCodeResponse 0000
    Unable to issue PIN Code Authentication Response: Authentication is not currently in progress.
    Function Error.

    AG>

    It never paired with headset. The headset finally turned off.
    The head set works OK on my cell phone and tablet.
  • Humm.. I tried the sample demo with a head set i have and it seems to pair ok.. Let me check and play with the pairing parameter configurations and get back to you..

    Thanks
  • What were all your command inputs, or where the just like mine?
  • Here is the console output from mytest run with Motorola Sd-9 headset:

    OpenStack().
    Stack Initialization on Port 1 115200 (UART) Successful.
    Bluetooth Stack ID: 1
    Device Chipset: 4.1
    BTPS Version : 4.0.3.0
    Project Type : 6
    FW Version : 7.26
    App Name : HSPDemo
    App Version : 0.1
    LOCAL BD_ADDR: 0x0017E9E54F5F
    GAP_Set_Connectability_Mode(cmConnectable).
    GAP_Set_Discoverability_Mode(dmGeneralDiscoverable, 0).
    GAP_Set_Pairability_Mode(pmPairableMode).
    GAP_Register_Remote_Authentication() Success.

    ******************************************************************
    * Command Options: Headset, AudioGateway, Help *
    ******************************************************************

    Choose Mode>audiogateway

    ******************************************************************
    * Command Options: Inquiry, DisplayInquiryList, Pair, *
    * EndPairing, PINCodeResponse, PassKeyResponse, *
    * UserConfirmationResponse, *
    * SetDiscoverabilityMode, SetConnectabilityMode,*
    * SetPairabilityMode, *
    * ChangeSimplePairingParameters, *
    * GetLocalAddress, GetLocalName, SetLocalName, *
    * GetClassOfDevice, SetClassOfDevice, *
    * GetRemoteName, ServiceDiscovery, *
    * OpenClient, CloseClient, *
    * RingIndication, ChangeSpeakerGain, *
    * ChangeMicrophoneGain, *
    * ManageAudio, *
    * Help, Quit *
    ******************************************************************

    AG>
    atLinkKeyRequest: 0x000DFD34A600
    GAP_Authentication_Response() Success.

    AG>inquiry
    Return Value is 0 GAP_Perform_Inquiry() SUCCESS.

    AG>
    GAP Inquiry Entry Result: 0x000DFD34A600.

    AG>
    GAP_Inquiry_Result: 1 Found.
    GAP Inquiry Result: 1, 0x000DFD34A600.

    AG>servicediscovery 1 11
    SDP_Service_Search_Attribute_Request(Headset) Success.

    AG>
    atPINCodeRequest: 0x000DFD34A600

    Respond with the command: PINCodeResponse

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

    AG>
    atLinkKeyCreation: 0x000DFD34A600
    Link Key: 0xAEBD81E3F76D157928EFC767D5E07837
    Link Key Stored locally.

    AG>
    SDP Service Search Attribute Response Received (Size = 0x0010)
    Service Record: 1:
    Attribute ID 0x0000
    Type: Unsigned Int = 0x00010001
    Attribute ID 0x0001
    Type: Data Element Sequence
    Type: UUID_16 = 0x1108
    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 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 = 0x1108
    Type: Unsigned Int = 0x0100
    Attribute ID 0x0100
    Type: Text String = Headset
    Attribute ID 0x0302
    Type: Boolean = TRUE

    AG>openclient 1 2
    HDSET_Open_Remote_Headset_Port() was successful.

    AG>
    HDSET Open Port Confirmation, HDSETID: 0x0001, Status 0x0000.

    AG>ringindication
    HDSET_Ring_Indication() Success.

    AG>
  • After the audiogateway menu i do not get the:
    AG>
    atLinkKeyRequest: 0xxxxxxxx
    GAP Authentication_ Response() Sussess

    And after the :
    AG> servicediscovery 1 11
    i get
    AG>
    SDP Service Attribute Response ( Size = 0x0010)
    No SDP ServiceRecord Found

    and nothing else.
  • Humm.. Can, you take FW logs ( www.ti.com/.../swau058d ) ? You, are using the latest CC256x Stack SDK for MS432 from here right? www.ti.com/.../CC256XMS432BTBLESW

    Thanks
  • Ok, i will try tonight or tomorrow to get the a log.

    The person that we are designing this board fo, came up with another question that you may answer right off. He would like to use a cell phone instead of just a microphone. however, he wants to have an app on the phone that would give him tones like a Metronome. He also may want to have the CC2564 pair with more them one device. Is this possible?
  • Here is what i get inputting the same commands as you did.
    Choose Mode>
    OpenStack().
    Stack Initialization on Port 1 115200 (UART) Successful.
    Bluetooth Stack ID: 1
    Device Chipset: 4.1
    BTPS Version : 4.0.3.0
    Project Type : 6
    FW Version : 7.26
    App Name : HSPDemo
    App Version : 0.1
    LOCAL BD_ADDR: 0xB0B448F4AF3C
    GAP_Set_Connectability_Mode(cmConnectable).
    GAP_Set_Discoverability_Mode(dmGeneralDiscoverable, 0).
    GAP_Set_Pairability_Mode(pmPairableMode).
    GAP_Register_Remote_Authentication() Success.

    ******************************************************************
    * Command Options: Headset, AudioGateway, Help *
    ******************************************************************

    Choose Mode>AudioGateway

    ******************************************************************
    * Command Options: Inquiry, DisplayInquiryList, Pair, *
    * EndPairing, PINCodeResponse, PassKeyResponse, *
    * UserConfirmationResponse, *
    * SetDiscoverabilityMode, SetConnectabilityMode,*
    * SetPairabilityMode, *
    * ChangeSimplePairingParameters, *
    * GetLocalAddress, GetLocalName, SetLocalName, *
    * GetClassOfDevice, SetClassOfDevice, *
    * GetRemoteName, ServiceDiscovery, *
    * OpenClient, CloseClient, *
    * RingIndication, ChangeSpeakerGain, *
    * ChangeMicrophoneGain, *
    * ManageAudio, *
    * Help, Quit *
    ******************************************************************

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

    AG>
    GAP Inquiry Entry Result: 0x9AC2BA07680A.

    AG>
    GAP_Inquiry_Result: 1 Found.
    GAP Inquiry Result: 1, 0x9AC2BA07680A.

    AG>ServiceDiscovery 1 11\
    SDP_Service_Search_Attribute_Request(Headset) Success.

    AG>
    SDP Service Search Attribute Response Received (Size = 0x0010)
    No SDP Service Records Found.


    I stopped here, I did try a PINCodeResponse, and got this
    AG>
    AG>PINCodeResponse 0000
    Unable to issue PIN Code Authentication Response: Authentication is not currently in progress.
    Function Error.
  • Please try with openclient port set to 2 as below.. It worked with '2' for me all the time..

    AG>openclient 1 2

    Thanks
  • Here is what i get:
    ******************************************************************
    * Command Options: Headset, AudioGateway, Help *
    ******************************************************************

    Choose Mode>
    OpenStack().
    Stack Initialization on Port 1 115200 (UART) Successful.
    Bluetooth Stack ID: 1
    Device Chipset: 4.1
    BTPS Version : 4.0.3.0
    Project Type : 6
    FW Version : 7.26
    App Name : HSPDemo
    App Version : 0.1
    LOCAL BD_ADDR: 0xB0B448F4AF3C
    GAP_Set_Connectability_Mode(cmConnectable).
    GAP_Set_Discoverability_Mode(dmGeneralDiscoverable, 0).
    GAP_Set_Pairability_Mode(pmPairableMode).
    GAP_Register_Remote_Authentication() Success.

    ******************************************************************
    * Command Options: Headset, AudioGateway, Help *
    ******************************************************************

    Choose Mode>audiolog gateway

    ******************************************************************
    * Command Options: Inquiry, DisplayInquiryList, Pair, *
    * EndPairing, PINCodeResponse, PassKeyResponse, *
    * UserConfirmationResponse, *
    * SetDiscoverabilityMode, SetConnectabilityMode,*
    * SetPairabilityMode, *
    * ChangeSimplePairingParameters, *
    * GetLocalAddress, GetLocalName, SetLocalName, *
    * GetClassOfDevice, SetClassOfDevice, *
    * GetRemoteName, ServiceDiscovery, *
    * OpenClient, CloseClient, *
    * RingIndication, ChangeSpeakerGain, *
    * ChangeMicrophoneGain, *
    * ManageAudio, *
    * Help, Quit *
    ******************************************************************

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

    AG>
    GAP Inquiry Entry Result: 0x9AC2BA07680A.

    AG>
    GAP_Inquiry_Result: 1 Found.
    GAP Inquiry Result: 1, 0x9AC2BA07680A.

    AG>ServiceDiscovery 1 11
    SDP_Service_Search_Attribute_Request(Headset) Success.

    AG>
    SDP Service Search Attribute Response Received (Size = 0x0010)
    No SDP Service Records Found.

    AG>PINCodeResponse 0000
    Unable to issue PIN Code Authentication Response: Authentication is not currently in progress.
    Function Error.

    AG>
  • Today i tried running the HSPDemo Connected to mt phone. It paired up Ok, buit they the Launchpad LED stopped blinking and there was not terminal response. The log file is as follows:

    What can be the problem?
    I looked through the code to try to find out where the message" I2S Configuration Start f = 8000" should come from. I could not find that message in the code.

    OpenStack().
    Stack Initialization on Port 1 115200 (UART) Successful.
    Bluetooth Stack ID: 1
    Device Chipset: 4.1
    BTPS Version : 4.0.3.0
    Project Type : 6
    FW Version : 7.26
    App Name : HSPDemo
    App Version : 0.1
    LOCAL BD_ADDR: 0xB0B448F4AF3C
    GAP_Set_Connectability_Mode(cmConnectable).
    GAP_Set_Discoverability_Mode(dmGeneralDiscoverable, 0).
    GAP_Set_Pairability_Mode(pmPairableMode).
    GAP_Register_Remote_Authentication() Success.

    ******************************************************************
    * Command Options: Headset, AudioGateway, Help *
    ******************************************************************

    Choose Mode>headset

    ******************************************************************
    * Command Options: Inquiry, DisplayInquiryList, Pair, *
    * EndPairing, PINCodeResponse, PassKeyResponse, *
    * UserConfirmationResponse, *
    * SetDiscoverabilityMode, SetConnectabilityMode,*
    * SetPairabilityMode, *
    * ChangeSimplePairingParameters, *
    * GetLocalAddress, GetLocalName, SetLocalName, *
    * GetClassOfDevice, SetClassOfDevice, *
    * GetRemoteName, ServiceDiscovery, *
    * OpenServer, CloseServer, *
    * PressButton, ChangeSpeakerGain, *
    * ChangeMicrophoneGain, *
    * Help, Quit *
    ******************************************************************

    HS>se SetLocalName hspserver
    Local Device Name set to: hspserver.

    HS>Openserver
    Headset Server Opened (Channel = 1, ID = 1).

    HS>
    atLinkKeyRequest: 0xF05B7B5B1B6C
    GAP_Authentication_Response() Success.

    HS>
    atPINCodeRequest: 0xF05B7B5B1B6C

    Respond with the command: PINCodeResponse

    HS>PinCodeResponse 0000
    GAP_Authentication_Response(), Pin Code Response Success.

    HS>
    atLinkKeyCreation: 0xF05B7B5B1B6C
    Link Key: 0x3B05268852BD2C75093AFC542FB023F4
    Link Key Stored locally.

    HS>
    HDSET Open Port Indication, HDSETID: 0x0001
    BD_ADDR: 0xF05B7B5B1B6C

    HS>PressButton
    HDSET_Send_Button_Press() Success.

    HS>
    HDSET Audio Connection Indication, ID: 0x0001.

    LED not linking at this point and my phone lost pairing connection.
  • Are, you able to take FW logs? Reviewing the FW logs would be helpful...
  • Do i need to load a new TI Dual-Mode Bluetooth Service Packs for the CC256x Device?

    I am using HSPDemo from CC256xMSP432 bluetopia SDK/4.0.3.0

    I also tried the demo to connect to my cell phone. Its works up to the point where to first PressButton command is issued. Mt phone then makes a call but the board locked up and the LED stops blincking. I have to reset to recover.


    Thanks
  • Here is the log of the HSPDemo connected to my cell phone:
    Choose Mode>headset

    ******************************************************************
    * Command Options: Inquiry, DisplayInquiryList, Pair, *
    * EndPairing, PINCodeResponse, PassKeyResponse, *
    * UserConfirmationResponse, *
    * SetDiscoverabilityMode, SetConnectabilityMode,*
    * SetPairabilityMode, *
    * ChangeSimplePairingParameters, *
    * GetLocalAddress, GetLocalName, SetLocalName, *
    * GetClassOfDevice, SetClassOfDevice, *
    * GetRemoteName, ServiceDiscovery, *
    * OpenServer, CloseServer, *
    * PressButton, ChangeSpeakerGain, *
    * ChangeMicrophoneGain, *
    * Help, Quit *
    ******************************************************************

    HS>se SetLocalName hspserver
    Local Device Name set to: hspserver.

    HS>Openserver
    Headset Server Opened (Channel = 1, ID = 1).

    HS>
    atLinkKeyRequest: 0xF05B7B5B1B6C
    GAP_Authentication_Response() Success.

    HS>
    atPINCodeRequest: 0xF05B7B5B1B6C

    Respond with the command: PINCodeResponse

    HS>PinCodeResponse 0000
    GAP_Authentication_Response(), Pin Code Response Success.

    HS>
    atLinkKeyCreation: 0xF05B7B5B1B6C
    Link Key: 0x3B05268852BD2C75093AFC542FB023F4
    Link Key Stored locally.

    HS>
    HDSET Open Port Indication, HDSETID: 0x0001
    BD_ADDR: 0xF05B7B5B1B6C

    HS>PressButton
    HDSET_Send_Button_Press() Success.

    HS>
    HDSET Audio Connection Indication, ID: 0x0001.


    At this point the LED stopped blinking and had to reset to recover.
    My phone did make a call, but lost pairing due to lockup.
  • Hi Larry,

    Do you have the audio booster pack "3200 Audio BoosterPack (optional) for audio and voice sample applications
    – CC3200AUDBOOST" installed on the MSP432 Launchpad along with CC2564 booster pack?

    HSP needs the audio codec on the booster pack. If, not it is likely the MCU is trying to access the I2C to the codec and hanging..

    Thanks
  • No i do not have the CC3200AUDBOOST card, just the CC2564.

    Are there any other demo programs for the CC2564 with the 432?
    Trying to understand how to control the CC2564 is difficult.

    My application will have the CC1310 or an Cc1312 controller as the processor. The communication to the process or will be via the I2S bus.
  • This information really helped. I was able to get one of the demo programs to run. I'm still looking at the other ones.
    There needs to be more information on the demo programs. There is a flag, that i turned odd to prevent the audio from running.
  • Glad to hear you were able to run a demo. Thanks for the feedback. We will review the demo guides and will update to clarify the procedures..

    Thanks
  • That only solved one issue of my problem. Thanks for your help.
    The other issue is:
    I am still trying to using the HSPDemo; however, I find the programming technique and flow of the program very difficult to follow.
    You have told me that HSPDemp needs the Boost audio card for the headset . I found in the software where I could turn OFF the flag for the Boost Audio and was able to run more.
    However; I have not been successful at getting the Audiogateway function to work. The program does not respond as you have previously sent me, but stops after the “servicediscovery 1 11’ input. That command does give the correct return, but I do not get the “atPinCodeRequest: 0xxxxxxxx”. When I type in “PinCodeResponse 0000” I get” Unable to issue PIN Code Authentication Response: Authentication is not currently in progress.
    Function Error.”
    With that being said, the HSPDemo program is not really what I need.
    Is there a simple program that has the capabilities of the following:
    1. My host controller will be a CC1310 or CC1312.
    a. I will look at the SDK for other processors “CC256XSTBTBLESW”
    2. Automatic pairing. (not random, but a defined device)
    a. The pairing device may be:
    i. A microphone only for audio output
    ii. A cell phone which will have audio output mixed with audio tones
    iii. Potentially multiple paring devices
    3. After paired, set the CC2564 is a mode to pass all the audio received out the I2S port, continuously. The I2S will be received by the CC1310 and sent out over the wireless to a remote unit.
  • Hi Larry ,
    Can you pls open a separate thread for this other issue .

    Thanks
    Saurabh
  • Larry,

    As, such CC1310 is not one of the Host MCUs we recommend for porting the Bluetopia stack. Anycase, can you raise a separate e2e thread with CC1310 + CC2564 with your requirements? And, you may close this thread.

    Thanks