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

The demo application provides a description on how to use the demo application to connect two configured boards and communicate over Bluetooth Low Energy (BLE). The included application registers a custom service on a board when the stack is initialized.

Device 1 (Server) setup on the demo application
  1. To start with one of the devices has to have the Phone Alert Status running on it. It can be started by issuing the RegisterHTP command.
  2. Next, the device acting as a Server needs to advertise to other devices. This can be done by issuing the AdvertiseLE 1.
    GUID-20210311-CA0I-D0WH-ZP8K-B9XK2NSLHSL4-low.png Figure 16-2 HTP Demo Register HTS
Device 2 (Client) setup on the demo application
Note: Steps c and d are optional if you already know the Bluetooth address of the device that you want to connect to.
  1. The Client LE device can try to find which LE devices are in the vicinity issuing the StartScanning command.
  2. Once you have found the device, you can stop scanning by issuing the StopScanning command.
    GUID-20210311-CA0I-5PMN-J0QS-P19DWL1LBG1L-low.png Figure 16-3 HTP Demo scanning
Initiating connection from device 2
  1. Once the application on the Client side knows the Bluetooth address of the device that is advertising, it can connect to that device issuing the ConnectLE <Bluetooth Address> command.
    GUID-20210311-CA0I-W8QX-CLNH-S7PCSH4MZ1JN-low.png Figure 16-4 HTP Demo Connect
Identify supported services
  1. After initialization, the Client needs to find out whether HTS services are supported and what HTS features are available. For this, the DiscoverHTS command is run on the Client. After the service discovery operation is complete, the HTS Service Discovery Summary is shown and list of supported features is shown.
    GUID-20210311-CA0I-B4JP-Z41F-BZBFFGLBJ9PX-low.png Figure 16-5 HTP Demo Discover HTS
  2. After getting the list of supported features, the next step is to configure HTS on the Client. We can enable support for various notifications by issuing the ConfigureRemoteHTS <Temperature Measurement Indicate> <measurement Interval Indicate> <Intermediate Termature Notify> command.
    GUID-20210311-CA0I-GWB4-ZDG0-XJ4HLNSXSF23-low.png Figure 16-6 HTP Demo Configure Remote HTS
  3. In our case we enable all 3.
    GUID-20210311-CA0I-XWJD-DCKN-G5TBC94TD5PD-low.png Figure 16-7 HTP Demo Configure Remote HTS Results
Temperature Measurement Indication
  1. After configuring, the Health Thermometer Service is now active. We can indicate the temperature with by issuing the IndicateTemperature <Exponent> <mantissa> <Units> <Temperature Type> command.
    GUID-20210311-CA0I-H85H-BN7H-GMVZWBTFML4P-low.png Figure 16-8 HTP Demo Indicate Temperature
    Note: To set a temperature of 100 F with a timestamp of 7/24/2012 9:50AM at the body we would give the command as IndicateTemperature 0 100 1 201207240950002
    GUID-20210311-CA0I-LTMJ-6JBN-HVDN0CNWVCPW-low.png Figure 16-9 HTP Demo Indicate Temperature Result
    The Client gets the temperature as follows:
    GUID-20210311-CA0I-FP3N-9DTL-CJDNTCNNXFJS-low.png Figure 16-10 HTP Demo Temperature Indication