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.

CC2564CMSP432BTBLESW: 5.1 Stack for CC2564C (MSP432) Tonal indications + HFP arbitary command

Part Number: CC2564CMSP432BTBLESW
Other Parts Discussed in Thread: CC256XCQFN-EM, MSP432P401R, BOOST-CCEMADAPTER, CC3200

My setup:
CC256XCQFN-EM
MSP432P401R launchpad
BOOST-CCEMADAPTER
CC3200 AudBoost

Code Composer Studio  Version: 10.4.0.00006 

BT Stack: CC2564CMSP432BTBLESW-v5.1.1

My Questions: follows my previous thread here (All in HFP profile only, sometimes I can use HSP(if no choice on HFP))
1) Can I have a tonal indication functionality (beep sound played locally on the device side) upon BT connect / disconnect, Volume + or Vol -? if possible how? can I add the custom sound files to it? 

2) One of my previous questions is in continuation to the previous thread is to send the command "AT+XEVENT=TALK,1\r"  or "AT+XEVENT=TALK,0\r" under HFP profile only (HSP if HFP not possible)

Mr Jacob responded to my previous question to use the API below 

BTPSAPI_DECLARATION int BTPSAPI SPP_Data_Write(unsigned int BluetoothStackID, unsigned int SerialPortID, Word_t DataLength, Byte_t *DataBuffer);


if I understand well in order to use the above API to send the custom AT command under HFP I need to merge the examples of HFP & SPP profiles? & then use this above API rite? let me know



I'm just a bit confused can I also use the API "HFRE_Send_Arbitrary_Command();" ? function to achieve the same result  (from Device ->AG )?  or any other possibilities under HSP?

Thanks for your time.

  • Hi Gokulnath,

    I'll follow up next week.

    Thanks,
    Jacob

  • Hi Gokulnath,

    1) Can I have a tonal indication functionality (beep sound played locally on the device side) upon BT connect / disconnect, Volume + or Vol -? if possible how? can I add the custom sound files to it? 

    To achieve sound playing functionality, you would need to store the audio files on the host MCU. Then, you would call a function to play the audio. We do not offer an API on any of our current stacks, but you can review the PlayTone API in the M4 stack for reference.

    2) One of my previous questions is in continuation to the previous thread is to send the command "AT+XEVENT=TALK,1\r"  or "AT+XEVENT=TALK,0\r" under HFP profile only (HSP if HFP not possible)

    I believe you can use the HFRE_Send_Arbitrary_Command() to acheive the same result, which may mean you do not need SPP for your application. This function only accepts strings beginning with "AT" and ending with the carriage return '\r', which seems to be the format you need. I think this function will be better suited for your use case.

    Thanks,
    Jacob