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 LE. 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 running RegisterPASS.
  2. Next, the device acting as a Server needs to advertise to other devices. This can be done by issuing the AdvertiseLE 1 command.
    GUID-20210311-CA0I-W3Q7-64L5-HS8BQVGSPZMG-low.png Figure 17-2 PASP Demo Register PASS
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-XFNB-P1PK-HM3MM2F4PK7H-low.png Figure 17-3 PASP 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 issuing the ConnectLE <Bluetooth Address> command
    GUID-20210311-CA0I-WCFS-Z37D-X4VWLWS5HVN9-low.png Figure 17-4 PASP Connection Request Successful
  2. After initialization, the Client needs to find out whether PASS services are supported and what PASS features are available. For this, issue the DiscoverPASS command on the Client. After the service discovery operation is complete, the PASS Service Discovery Summary and list of supported features is shown.
    GUID-20210311-CA0I-R42L-CNPF-TJPHSQXTR7J4-low.png Figure 17-5 PASP Demo Discover PASS
  3. After getting the list of supported features, the next step is to configure the PASS on the Client. We can set the configuration for Alert Status Notify and Ringer Settings.
    GUID-20210311-CA0I-FTPD-X93M-WHKVDHBBMRTD-low.png Figure 17-6 PASP Demo Configure Remote PASS
  4. In this case, both Alert Status Notify and Ringer Setting Notify are enabled by issuing the ConfigureRemotePASS <Alert status notify> <Ringer Setting Notify>
    GUID-20210311-CA0I-BHKR-HXRM-TWMWJFWTDFJ7-low.png Figure 17-7 PASP Demo Configure Remote PASS Result 2
Alert Notification between Client and Server
  1. After configuring, The Phone Alert System is now active. We can get the status of the Alert and Ringer by issuing the NotifyAlertStatus and NotifyRingerSetting commands.
    GUID-20210311-CA0I-QSCN-QLT1-64QQDKHNDVP4-low.png Figure 17-8 PASP Server Run NotifyAlertStatus and NotifyRingerSetting

    After running NotifyAlertStatus and NotifyRingerSetting on the Server, we get the Alert Status and Ringer Setting on the Client.

    GUID-20210311-CA0I-6CFZ-2QMD-BD4JQCPL02WK-low.png Figure 17-9 PASP Demo Alert Status Notification
  2. We can set the Alert Status for each of the three options (Display, Vibrate and Ringer) by issuing the SetAlertStatus <Ringer> <Vibrate> <Display> command and setting each option either active or inactive.
    GUID-20210311-CA0I-HJWP-BWB7-MTV8KBFVZHD8-low.png Figure 17-10 PASP Demo Set Alert Status

    In this example, we set all of them to active and then issue the NotifyAlertStatus command.

    GUID-20210311-CA0I-QSCN-QLT1-64QQDKHNDVP4-low.png Figure 17-11 PASP Demo Set Alert Status Result

    The Client will then receive the updated alert status.

    GUID-20210311-CA0I-VJ1H-L0KS-VV5JLLWGNF8N-low.png Figure 17-12 PASP Client Receive Updated Alert Status
  3. Similarly, we can toggle the ringer setting between Silent and Normal through SetRingerSetting.
    GUID-20210311-CA0I-CX9N-DV8F-WJMHTR9NHBWL-low.png Figure 17-13 PASP Demo Set Ringer Setting Usage

    In our example, we set toggle between Normal and Silent settings and update the setting by issuing the NotifyRingerSetting command.

    GUID-20210311-CA0I-KMX5-MKZJ-9SLV3G9QPF6T-low.png Figure 17-14 PASP Demo Set Ringer Setting

    The Client sees the updated Ringer settings.

    GUID-20210311-CA0I-PTR1-GRWW-2787RVLSBH89-low.png Figure 17-15 PASP Demo Connection Server Notification

    We can also move the device into and out of silent mode by issuing the SetSilentMode and CancelSilentMode commands and Mute the device by issuing the MuteOnce command.