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

Below is a description on how to use the demo application to connect two configured boards and communicate over bluetoothLE. 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, place the device into server mode by typing: Server on the console. The SPP-LE Service can then be started by running RegisterSPPLE.
    GUID-20210311-CA0I-QH7Z-VV6X-ZPJVNHDFGJM4-low.png Figure 12-2 SPP Demo LE Terminal 2
  2. Next, the device acting as a server needs to advertise to other devices. This can be done by running AdvertiseLE 1.
Device 2 (Client) setup on the demo application
  1. Place the device into client mode by typing Client on the console.[Steps d and e are optional if you already know the Bluetooth address of the device that you want to connect to]
  2. The client LE device can try to find which LE devices are in the vicinity using the command: StartScanning.
  3. Once you have found the device, you can stop scanning by using the command: StopScanning.
    GUID-20210311-CA0I-CXP4-MMXQ-7GFSXXBLZ9HD-low.png Figure 12-3 SPPLE Demo LE Terminal 3
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 using the command: ConnectLE <Bluetooth Address>
    GUID-20210311-CA0I-VQK7-KD5M-DX3KLHRLBDG9-low.png Figure 12-4 SPPLE Demo LE Terminal 4
Identify supported services
  1. After Initialization, the device needs to find out if SPP services are supported. To do this run DiscoverSPPLE <Server BD-Address> on the client.
    GUID-20210311-CA0I-LFZW-R8XC-DXSTXFQKJ1GF-low.png Figure 12-5 SPPLE Demo LE Terminal 5
  2. After finding out support for SPP-LE, we need to configure SPP-LE. This is done by running ConfigureSPPLE <Server BD-Address> on the client.
    GUID-20210311-CA0I-DGKR-VWBJ-KR2TVNWS3B76-low.png Figure 12-6 SPPLE Demo LE Terminal 6
Data Transfer between Client and Server
  1. After configuring we can send data between client and server. To send data we use LESend <Remote Device BD-Address> <Number of bytes>.
    GUID-20210311-CA0I-4XVV-PCKX-Z8X5FTXQNMML-low.png Figure 12-7 SPPLE Demo LE Terminal 7
  2. Once the other device receives the data it receives a Data Indication event.
  3. The receiving device can then read the data that was sent using command: LERead <Remote Device BD-Address>.
    GUID-20210311-CA0I-81CN-BD48-JDCZWN53MWDG-low.png Figure 12-8 SPPLE Demo LE Terminal 8
  4. This will print out the data that was sent. This data was sent over BluetoothLE using a custom service of SPPLE in the sample application.
Multiple SPPLE Connections Guide
Two SPPLE Connections
  1. In This version, we test two simultaneous SPPLE connections to the MSP430. The remote devices are used as a peripheral device while the MSP430 acts as the central device.
  2. Connect to the first device, discover and configure services on the first device. When discovering services and configuring services we have to specify the remote BD_ADDR that we connected to.
  3. Similarly, Connect to the second device, discover and configure services on the second device.
  4. To send data to the first remote device data we use LeSend <BD-ADDR> <Number of Bytes to be sent>
  5. To send data to the second remote device data we use LeSend <BD-ADDR> <Number of Bytes to be sent>
  6. To read data from the first remote device data we use LeRead <BD-ADDR>
  7. To read data from the second remote device data we use LeRead <BD-ADDR>
  8. When we turn on Automaticreadmode, DisplayRawmodedata or Loopback it turns it on for both connections.
One SPP and One SPPLE Connection
  1. In this version, we test an SPP connection and SPPLE Connection at the same time to the MSP430. One of the remote devices is used as a peripheral LE device while the remote device as SPP Client.
  2. Connect to the first device, discover and configure services on the first device. When discovering services and configuring services we have to specify the remote BD_ADDR that we connected to.
  3. Open an SPP server and let the second remote device connect to it.
  4. To send data to the first remote device data we use LeSend <BD-ADDR> <Number of Bytes to be sent>
  5. To send data to the second remote data we use CBSend <Number of Bytes to be sent> <Serial Port ID>. If we want to write a small amount of data we use the command Write <Serial Port ID>
  6. To read data from the first remote device data we use LeRead <BD-ADDR>
  7. To read data from the second remote device data we use Read.
  8. When we turn on Automaticreadmode, DisplayRawmodedata or Loopback it turns it on for both connections.