Back to All
Project

Bluetooth Application for Qualcomm® Robotics RB3 Platform

 

Skill Level Area of Focus Operating System Platform/Hardware
Beginner Embedded, Robotics Linux Artificial Intelligence

This project is intended to help you get familiar with the Qualcomm Robotics RB3 Bluetooth application and to verify the initial setup and working of the Bluetooth functionality.

Objective

Test the basic functionalities and features of Bluetooth settings on the Qualcomm Robotics RB3 Development Kit using Bluetooth application.

Materials Required / Parts List / Tools

  • Robotics DragonBoard™ 845c development board - Based on the Qualcomm® SDA845 processor
  • Power Adapter - 12 V with 2500 mA required by the 96Boards specification
  • USB to Micro USB cable - For serial console interface and ADB, Fast boot commands
  • USB to USB Type C cable - For connecting the USB3.0 Type C port and flashing images
  • Ubuntu 14.04 LTS Linux distribution for 64-bit architecture - Host PC OS for RB3 SDK build process

Source Code: BT Application

bt-app_test.tar

(found on the Thundercomm Qualcomm Robotics RB3 Development Kit web page, under the Technical Documents tab in the “Sample-apps-codes” section)

Technical Documents for Qualcomm® Robotics RB3 Development Kit

https://www.thundercomm.com/product/qualcomm-rb3-gen-2/

Build / Assembly Instructions

Prerequisites:

Complete the build instructions in the "Hello RB3" project, and make sure that the following steps are done before proceeding with running the application on device:

1. Setup the development environment

  • 1.1) Install Android SDK tools (ADB, Fastboot)
  • 1.2) Install and configure the USB driver
  • 1.3) Flash the firmware image on the board
  • 1.4) Setup serial port for debugging purpose
  • 1.5) Install the App Toolchain SDK,/li>

 

2. Bluetooth application:

  • 2.1. From the Thundercomm Qualcomm Robotics RB3 Development Kit web page, under the Technical Documents tab in the “Sample-apps-codes” section, download source code for the Bluetooth application : “bt-app_test.tar”

bt-app
  • 2.2. After decompressing the .tar file, the directory is as follows:


 $ cd “Path to downloaded source code”
 $ tree btapp-samplecode -L 2
directory

3. Build and transfer the application:

  • 3.1. Check the configuration script for running makefile by using ‘cat’ command. Compile and build the application using makefile.


 $ cd btapp-samplecode/bt/bt-app/
 $ cat configure.sh
Navigate
Command
  • 3.2. Build the application:

    Load the environment setup for arm7 using ‘source’ command


 $ source /usr/local/oecore-x86_64/environment-setup-armv7a-neonoemllib32-linux-gnueabi
 $ ./configure.sh
System

 $ make
Output
  • 3.3. Transfer the application:

    Connect the Qualcomm Robotics RB3 board to the host PC via Type C cable and ensure that the ADB port can be used (check using ‘adb devices’ and connect using ‘adb shell’)

    Transfer the application on to the Qualcomm Robotics RB3 board:


 $ adb push main/btapp /usr/bin/main/btapp
Push
  • 3.4. Once the application is pushed on the Qualcomm Robotics RB3, run

btproperty
in the background (only once at the beginning) before running
btapp

Command
  • 3.5. After executing the “btapp”, type “gap_menu” command and press Enter

btapp

Next, as a result of the "gap_menu" command, the below menu of options will display for activities to be done using Bluetooth, such as enable, disable, inquiry etc.

Expected

If the gap_menu command is successful in displaying the menu for Bluetooth settings, external devices can then be connected to the board to perform various Bluetooth operations.

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries ("Qualcomm"). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.

Project Authors
Rakesh SankarSr, System Architect
Akshay KulkarniTechnical Lead
Vihari SreeramSenior Software Engineer
Vengamamba PatchaSoftware Engineer

Sign up for the Developer Newsletter.

Get software and hardware tool resources to help optimize your development delivered to your inbox weekly.

Qualcomm relentlessly innovates to deliver intelligent computing everywhere, helping the world tackle some of its most important challenges. Our leading-edge AI, high performance, low-power computing, and unrivaled connectivity deliver proven solutions that transform major industries. At Qualcomm, we are engineering human progress.

Stay connected

Get the latest Qualcomm and industry information delivered to your inbox.

Subscribe
Manage your subscription

© Qualcomm Technologies, Inc. and/or its affiliated companies.

Snapdragon and Qualcomm branded products are products of Qualcomm Technologies, Inc. and/or its subsidiaries. Qualcomm patented technologies are licensed by Qualcomm Incorporated.

Note: Certain services and materials may require you to accept additional terms and conditions before accessing or using those items.

References to "Qualcomm" may mean Qualcomm Incorporated, or subsidiaries or business units within the Qualcomm corporate structure, as applicable.

Qualcomm Incorporated includes our licensing business, QTL, and the vast majority of our patent portfolio. Qualcomm Technologies, Inc., a subsidiary of Qualcomm Incorporated, operates, along with its subsidiaries, substantially all of our engineering, research and development functions, and substantially all of our products and services businesses, including our QCT semiconductor business.

Materials that are as of a specific date, including but not limited to press releases, presentations, blog posts and webcasts, may have been superseded by subsequent events or disclosures.

Nothing in these materials is an offer to sell or license any of the services or materials referenced herein.