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 demo application page provides a description of how 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, one of the devices has to have the Link Loss Service (LLS), Immediate Alert Szervice (IAS) and Transmit Power Service (TPS) running on it. It can be started by issuing the RegisterLLS, RegisterIAS and RegisterTPS commands.
    GUID-20210311-CA0I-TZVW-LCXF-9ZV3QXJZLZPW-low.png Figure 19-2 PXP Demo Register Services
  2. Next, the device acting as a Server needs to advertise to other devices. This can be done by issuing the AdvertiseLE <Enable/Disable> <Address Type> command.
    GUID-20210311-CA0I-KB1C-NR1X-5CVDSVXJKGS9-low.png Figure 19-3 PXP Demo Register More Services
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.
    GUID-20210311-CA0I-CXVH-CPBW-THFJVJ6TXKHK-low.png Figure 19-4 PXP Demo Start 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 by issuing the ConnectLE <Bluetooth Address of Remote Device> <Remote Address Type> <Own Address Type>
    GUID-20210311-CA0I-NPML-VL8J-C7XKX5XRB6KX-low.png Figure 19-5 PXP Demo Connect BLE
Identify supported services
  1. After initialization, the Client needs to find out whether LLS, IAS and TPS services are supported. For this the DiscoverLLS, DiscoverIAS, DiscoverTPS commands are issued on the Client. After the service discovery operations are complete, the LLS, IAS and TPS Service Discovery Summary and list of supported features is shown.
    GUID-20210311-CA0I-HKPH-X1HK-SDJMJQS7LXRG-low.png Figure 19-6 PXP Demo Discover Services
Proximity Notification between Client and Server
  1. Change the Alert Level from the Client. To change the Alert Level from Client, the commands SetAlertLevel and GetAlertLevel are issued to change and view the updated alert level.
    GUID-20210311-CA0I-XTR2-DGQ0-BRWDKPBRG8ZW-low.png Figure 19-7 PXP Demo Set Alert Level
  2. Change Transmtheit power level (TxPower) from the Client. To change the TxPower Level, the SetTxPowerLevel command is issued from the Server while to obtain the TxPower Level the GetTxPowerLevel command is issued from the Client.
    GUID-20210311-CA0I-HBM6-GPL5-ZBX1TH2F7GHS-low.png Figure 19-8 PXP Demo Power Level
    GUID-20210311-CA0I-ZKCH-Z3ZN-0GRDG6RVFHRR-low.png Figure 19-9 PXP Demo Get Power Level