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.

CC2564C: Questions about phone control, music control, message notification

Part Number: CC2564C

Hello TI experts:

I am using CC2564C to do dual-mode function development, and there are several requirements in the routine without a few questions to consult you:

1. Phone control: I want to use Bluetooth to control the phone to answer, hang up and make specified calls, but do not transmit audio. I tried to close the content related to audio in HFP, but finally the audio was still transmitted. Specific configuration places to help point out. Or need to use the way of LE+ mobile APP to achieve?

2. Music control: Bluetooth is also used to control the pausing of music playback, previous and next music, volume addition and subtraction, etc. At the same time, the current music information can be displayed, but the audio is not transmitted. There is no routine for this, but can you implement it with AVRCP? Or use HID to do it, but how does HID do it to get the details of the music currently playing?

3. Information acquisition, such as SMS, wechat, email, etc. When detailed, corresponding notifications can be obtained and details can be read. IPhone can be obtained by ANS, but can Android phone be obtained by MAP? Or need to use LE to make a mobile APP to achieve?

4. Note that the above audio is transmitted, but it is not excluded that the mobile phone will connect to other separate Bluetooth headsets, which need to exist at the same time. In this way, whether HFP and AVRCP without audio frequency can connect to the mobile phone and use other Bluetooth headsets at the same time?

thank!!

  • Hello Cheng,

    Im looking into your questions, Ill get back to you when I have proper responses.

    Kind Regards,

    Rogelio

  • Hello Cheng,

    1.) I would use the function HFREReleaseAudioConnection() to stop the audio transmission.

       /* The following function is responsible for releasing an existing   */
       /* audio connection.  This function returns zero on successful       */
       /* execution and a negative value on all errors.                     */
    static int HFREReleaseAudioConnection(unsigned int ServerPortInfoIndex)
    {
       int ret_val;
    
       /* The Port ID appears to be a semi-valid value.  Now submit the     */
       /* command.                                                          */
       ret_val = HFRE_Release_Audio_Connection(BluetoothStackID, HFServerPortDATA[ServerPortInfoIndex].HFServerPortID);
    
       /* Now check to see if the command was submitted successfully.       */
       if(!ret_val)
       {
          /* The function was submitted successfully.                       */
          Display(("HFRE_Release_Audio_Connection: Function Successful.\r\n"));
    
          /* Use the audio disconnection indication function to clean up the*/
          /* audio connection.                                              */
          AudioDisconnectionIndication(ServerPortInfoIndex);
       }
       else
       {
          /* There was an error submitting the function.                    */
          Display(("HFRE_Release_Audio_Connection() Failure: %d.\r\n", ret_val));
       }
    
       return(ret_val);

    2.) There is an old E2E that I will recommend you to check out it.

    https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/467438/how-to-implement-avrcp-profile-for-control-playing-music-on-the-phone

    3.) I dont fully understand your question here but, The ANS profile is to receive notifications while the MAP profile is used for messaging.

    4.) The Stonestreet One implementation of AVRCP/AVCTP supports multiple, concurrent connections to multiple devices.  These connections are multiplexed and can be differentiated via specifying the correct Bluetooth Address of the device that is of interest.  This means that you could have two (or more) phones connect to AVCTP/AVRCP and both phones could send and receive messages to your AVRCP entity.  The application would logically differentiate  the connections and group them (and take the required action).  Neither phone would be aware of the other phones connection and both phones would work normally thinking they are in complete control. 

    Kind Regards,

    Rogelio