SWRU581 March   2021 CC2564C , CC2564MODA , CC2564MODN , WL1831

 

  1.   Trademarks
  2. Introduction
  3. Bluetopia
  4. Bluetopia Platform Manager (BluetopiaPM)
  5. Hardware Requirements
  6. Software Requirements
  7. Stack Supported Features
  8. TI BluetopiaPM Stack Linux Architecture
  9. Installing Bluetopia Platform Manager
  10. BluetopiaPM Architecture
    1. 9.1 Installation Directory Structure
    2. 9.2 BluetopiaPM Structure
  11. 10The BluetopiaPM Server – Pairing Mode
  12. 11Platform Integration
    1. 11.1 Build BluetopiaPM
      1. 11.1.1 Modification of the PM Build Environment
  13. 12Adding BluetopiaPM to the SD Card
    1. 12.1 Sample Applications
    2. 12.2 Gstreamer Plugin
    3. 12.3 VNET Plugin
      1. 12.3.1 Voice Over BLE Python Script
    4. 12.4 Init-scripts
    5. 12.5 Bluetooth Hardware Configuration Script
  14. 13Terminal Connection
  15. 14Running a Sample Application
  16. 15BluetopiaPM Samples
  17.   A C256X EVM Modifications for COM8 Connector
  18.   B Bluetopia Build Log for Reference
  19.   C Sample Run
  20.   D Using the CC256x Service Pack With Linux (TI-BT-4-2-STACK-LINUX-ADDON)

Bluetooth Hardware Configuration Script

The bt-en.sh script described below creates a custom configuration file based on the board you're using.

Note: If using a Beaglebone, see the page on patching the device tree and skip the bt-en.sh setup script steps below:
  1. Unzip the file Downloaded file and then copy it to the target platform:
    sudo cp Downloads/bt-en.sh [target-root]/home/root/BluetopiaPM/
  2. Navigate to the correct directory on the target platform:
     cd /home/root/BluetopiaPM/
  3. Update the scripts permissions:
    chmod +x bt-en.sh
  4. Run the script:
    ./bt-en.sh

When using a custom platform, you'll need to create a similar script with your platform specific settings. As an example, you'll have to update the following variables:

  • tty

    and

  • gpio

Note, this includes the following statement at the start of the script. For example::

 echo gpio
  1. Create a new script file:
    vi bt-en.sh
  2. Copy the following into the empty file:
    echo 16 > /sys/class/gpio/export	
    echo out > /sys/class/gpio/gpio16/direction	
    echo 1 > /sys/class/gpio/gpio16/value	
    echo "Done enabling BT"
    	
    gpio="nshutdown_gpio=16"
    tty="tty=/dev/ttyS3"
    flow="flow_cntrl=1"
    baud_rate="baud_rate=3000000"
    mkdir /home/root/tibt	
    echo $gpio > /home/root/tibt/config
    echo $tty >> /home/root/tibt/config	
    echo $flow >> /home/root/tibt/config	
    echo $baud_rate >> /home/root/tibt/config
  3. Update the gpio and tty variables to match your platform, in this example we're using GPIO 16 and tty S3.
  4. Update the scripts permissions:
    chmod +x bt-en.sh
  5. Run the script:
    ./bt-en.sh