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 MAP 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, enter Server.
  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 issuing the Help command at the Server> prompt.
  4. Now we are ready to open a Server. To open a Server, at the Server>prompt, issue the OpenServer 1 C:\Temp command. You can replace 1 with any number between 1 and 30, as long as there is no Server open on that port. The C:\Temp stands for the directory in which you store your received messages. Once you see the MAP_Open_Message_Access_Server() Successful notification, you have a MAP Server open on port 1.
    GUID-20210311-CA0I-D35R-SRMT-LHMR8T6MMQJK-low.png Figure 9-2 MAP Demo Server Setup
  5. 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.
  6. 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 command at the Client> prompt.
  7. 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.
  8. You can access this list any time by issuing the DisplayInquiryList command at the Client prompt.
    GUID-20210311-CA0I-HC8C-2T1D-QTMVQ9TGX5TQ-low.png Figure 9-3 MAP Demo Client Setup
    Initiating connection from the Client
  9. 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.]
  10. Issue a Open <index number> <Server port number> command at the command prompt.
  11. Wait for the Open Port confirmation.
  12. When a Client successfully connects to a Server, the Server will see the open port indication.
    GUID-20210311-CA0I-K9SJ-7DKG-GMBLPDHPTTDW-low.png Figure 9-4 MAP Demo Server Connection
  13. On the Client Side, open a notification Server issuing both the OpenNotification 1 and RequestNotification commands . We should see on the Server, a Notification Registration Indication and a MAP_Set_Notification_Registration_Response() Successful. On the Client Side you should see a Notification Registration Confirmation Result.
    GUID-20210311-CA0I-BCKC-XW9H-BF1Q4CXHQMNG-low.png Figure 9-5 MAP Demo Client Connection 1
    GUID-20210311-CA0I-SZ0B-FS6Q-BTDGFVZWQ2GT-low.png Figure 9-6 MAP Demo Client Connection 2
    Data Transfer between Client and Server
  14. Now we have a MAP connection established and both devices are ready to transmit data to each other. We can set and get folders. For example you can issue the SetFolder 1 telecom command.
  15. We can get a Message Listing and an individual message. For example you can issue the GetMessageListing 65535 0 command.
    GUID-20210311-CA0I-TZ7H-BJDM-J4WQRHZZKHR0-low.png Figure 9-7 MAP Demo Client Connection 3
  16. And we can set the message status, push messages and update the inbox. For example, you can issue the PushMessage 1 1 20000100004 0 1 command.
    GUID-20210311-CA0I-DJ74-5XNJ-VWWTG5Z7NFQX-low.png Figure 9-8 MAP Demo Client Connection 4