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 PBAP is a simple Client-Server connection process. We will setup one of the boards as a Server and the other board as a Client. We will then initiate a connection from the Client to the Server. Once connected, we can transmit data between the two devices over Bluetooth.


Server setup on the demo application
  1. We will setup the first board as a Server. Perform the steps mentioned earlier in Running the Bluetooth Code section to initialize the application. Once initialized, note the Bluetooth address of the Server. We will later use this to initiate a connection from the Client.
  2. On the Choose mode> prompt, issue the Server command.
  3. You will see a list of all possible commands at this time for a Server. You can see this list at any time by entering Help at the Server> prompt.
  4. Now we are ready to open a Server. To open a Server, at the Server> prompt, issue the Open 1. You can replace 1 with any number between 1 and 30, as long as there is no Server open on that port. Once you see PBAP_Register_Server_SDP_Record() success, you have a PBAP Server open on port 1.
    GUID-20210311-CA0I-3BMF-VPCN-S9RBGGT2JSFH-low.png Figure 10-2 PBAP Demo Server Setup
Client setup and device discovery on the demo application
  1. We will setup the second board as a Client. Perform the steps mentioned earlier in "Running the Bluetooth Code" section to initialize the application. On the Choose mode> prompt, enter Client.
  2. You will see a list of all possible commands at this time for a Client. You can see this list at any time by issuing the Help at the Client> prompt.
  3. At the Client> prompt, issue the Inquiry command. This will initiate the Inquiry process. Once it is complete, you will get a list of all discovered devices.
  4. You can access this list any time by issuing the DisplayInquiryList at the Client prompt.
    GUID-20210311-CA0I-PKDX-RQS0-BP43QGPZZLKJ-low.png Figure 10-3 PBAP Client Setup
Initiating connection from the Client
  1. Note the index number of the first board that was configured as a Server. [If the list is not on the screen, issue DisplayInquiryList command on the Client to display the list of discovered devices again.]
  2. Issue a Open <index number> <Server port number> command at the command prompt.
    Note: Port 19 must be used when connecting to Android phones and port 13 for IPhones.
  3. Wait for the PBAP Open confirmation.
  4. When a Client successfully connects to a Server, the Server will see the open indication.
    GUID-20210311-CA0I-CM5Z-0NHH-ZLS3PTLTSD4J-low.png Figure 10-4 PBAP Demo Client Connection
    GUID-20210311-CA0I-SJFD-BNQS-SCX3GXJZKHSB-low.png Figure 10-5 PBAP Demo Server Connection
Data Transfer between Client and Server
  1. Now we have a PBAP connection established and both devices are ready to transmit data to each other.
  2. We can Set Directories and Pull Phonebooks from Client by issuing the SetPhonebook <Path Change> <Path Name> and PullPhonebook <Max List Count> <List Start Offset> <Phonebook Path> commands.
    GUID-20210311-CA0I-2FDB-CWHQ-R8GNRBDFT4BD-low.png Figure 10-6 PBAP Demo Client Connection 2
  3. We can also get vCardListings and individual vCard Entries by issuing the PullvCardList <Max List Count> <List Start Offset> <Phonebook Path> and PullvCardEntry <vCard Name>
    GUID-20210311-CA0I-RPB8-CCDD-1DHF738DD1PG-low.png Figure 10-7 PBAP Demo Client Connection 3
    GUID-20210311-CA0I-39TS-DWSZ-GJBQJJSRHJFJ-low.png Figure 10-8 PBAP Demo Client Connection 4