SWRU580 April   2021 CC2564C , CC2564MODA , CC2564MODN

 

  1.   Trademarks
  2. Introduction
  3. A2DP (AUD) Demo Guide
    1. 2.1 Demo Overview
    2. 2.2 Demo Application
    3. 2.3 Application Commands
  4. A3DP Sink Demo Guide
    1. 3.1 Demo Overview
    2. 3.2 Demo Application
    3. 3.3 Sink Reference Board Demo Application
    4. 3.4 Multiple Source Demo
    5. 3.5 Application Commands
  5. A3DP Source Demo Guide
    1. 4.1 Demo Overview
    2. 4.2 Demo Application
    3. 4.3 Application Commands
  6. HFP Demo Guide
    1. 5.1 Demo Overview
    2. 5.2 Demo Application
    3. 5.3 Application Commands
  7. HFP Audio Gateway Demo Guide
    1. 6.1 Demo Overview
    2. 6.2 Demo Application
    3. 6.3 Application Commands
  8. HID Demo Guide
    1. 7.1 Demo Overview
    2. 7.2 Demo Application
    3. 7.3 Application Commands
  9. HSP Demo Guide
    1. 8.1 Demo Overview
    2. 8.2 Demo Application
    3. 8.3 Application Command
  10. Map Demo Guide
    1. 9.1 Demo Overview
    2. 9.2 Demo Application
    3. 9.3 Application Command
  11. 10PBAP Demo Guide
    1. 10.1 Demo Overview
    2. 10.2 Demo Application
    3. 10.3 Application Commands
  12. 11SPP Demo Guide
    1. 11.1 Demo Overview
    2. 11.2 Demo Application
    3. 11.3 Application Commands
  13. 12SPPLE Demo Guide
    1. 12.1 Demo Overview
    2. 12.2 Demo Application
    3. 12.3 Demonstrating SPP LE on an iOS Device with the LightBlue App
    4. 12.4 Demonstrating SPP LE on an iOS Device with the SPPLE Transfer App - LEGACY
    5. 12.5 SPP Demo
    6. 12.6 Application Commands
  14. 13SPPDMMulti Demo Guide
    1. 13.1 Demo Overview
    2. 13.2 Demo Application
    3. 13.3 Application Commands
  15. 14ANP Demo Guide
    1. 14.1 Demo Overview
    2. 14.2 Demo Application
    3. 14.3 Application Commands
  16. 15HFP Demo Guide
    1. 15.1 Demo Overview
    2. 15.2 Demo Application
    3. 15.3 Application Commands
  17. 16HTP Demo Guide
    1. 16.1 Demo Overview
    2. 16.2 Demo Application
    3. 16.3 Application Commands
  18. 17PASP Demo Guide
    1. 17.1 Demo Overview
    2. 17.2 Demo Application
    3. 17.3 Application Commands
  19. 18HOGP Demo Guide
    1. 18.1 Demo Overview
    2. 18.2 Demo Application
    3. 18.3 Application Commands
  20. 19PXP Demo Guide
    1. 19.1 Demo Overview
    2. 19.2 Demo Application
    3. 19.3 Applications Commands
  21. 20FMP Demo Guide
    1. 20.1 Demo Overview
    2. 20.2 Demo Application
    3. 20.3 Application Commands
  22. 21CSCP Demo Guide
    1. 21.1 Demo Overview
    2. 21.2 Demo Application
    3. 21.3 Application Commands
  23. 22Revision History

Demo Application

This section provides a description of how to use the demo application to connect two configured board and communicate over Bluetooth. Bluetooth HFP is a simple Client-Server connection process with one side operating in the Audio-Gateway role and the other operating in the Handsfree role. We will setup one of the boards as a Handsfree server and use an android phone as Client. Once connected, we can transmit data between the two devices over Bluetooth

Server setup on the demo application
  1. Perform the steps mentioned earlier in Running the Bluetooth Code section to initialize the application.
    GUID-20210311-CA0I-9WWG-NTLF-S4NNMTFZXNHZ-low.png Figure 5-1 HFP Demo Start Terminal
  2. Give a name for the MSP430 using the SetLocalName. In our example we give it a name of hfpserver.
    GUID-20210311-CA0I-BBMQ-CH2F-B2BJRBRFJQRZ-low.png Figure 5-2 HFP Demo Set Local Name
  3. Open a HFPServer using the command, OpenHFServer <port number>. Here we use OpenHFServer 1 to open a port.
    GUID-20210311-CA0I-5BB6-5S1J-0KPN1MT6HJVQ-low.png Figure 5-3 HFP Demo Open Server
Client setup and device discovery
  1. Open the bluetooth settings menu on the android phone Settings->Bluetooth . We should get a menu like this.
  2. Hit on search for devices. The phone should begin looking for other bluetooth devices.
    GUID-20210311-CA0I-XZH5-3JDM-GVBMWW5SJXGN-low.png Figure 5-4 HFP Demo Discover Device
  3. A Tiva HFPDemo Demo should appear like shown below in the picture. Click on the device to begin pairing.
    GUID-20210311-CA0I-PCLP-PJWM-FXDV0R1LFGHR-low.png Figure 5-5 HFP Demo Pair
  4. After the devices are paired, the device should show connected on the phone side and on the Tiva.
    Figure 5-6 HFP Demo Connect
    GUID-20210311-CA0I-ZKWK-QS4N-KV27N4DLR9BZ-low.png Figure 5-7 HFP Demo Status Indication Terminal
HandsFree Options
  1. To Manage the audio connection to the headset. We use ManageAudio 0 to release the SCO connection and ManageAudio 1 to Setup the SCO connection.
    GUID-20210311-CA0I-X23F-QNNP-S1PPV4JWCN9J-low.png Figure 5-8 HFP Demo Manage Audio Connection Terminal
    GUID-20210311-CA0I-SWZK-RNGX-NBGDCMRF1NP7-low.png Figure 5-9 HFP Demo Manage Audio Connection Terminal 2
    GUID-20210311-CA0I-8PTZ-FGH2-902LL9P4CFBW-low.png Figure 5-10 HFP Demo Answer Call Terminal
    GUID-20210311-CA0I-XBNB-HFW5-GXC9DDDHN7NB-low.png Figure 5-11 HFP Demo Hang Up Terminal
  2. To Close the HFserver use the CloseHFServer command.
    GUID-20210311-CA0I-XFHV-LFM9-S373HB9ZXHJH-low.png Figure 5-12 HFP Demo Close Server Terminal