These examples and demos are for TI SimpleLink CC2640R2 SDK 1.50.00.58
This repository contains Bluetooth® 4.2 Low Energy sample applications for Texas Instruments' SimpleLink CC2640R2 SDK. These examples have not been validated as production-ready.
Do not use GitHub's bug tracking feature for support. For inquiries, see the Bluetooth® low energy Forum.
To use the examples and tools in this repository, please download and install the SimpleLink CC2640R2 SDK first, and if necessary buy an evaluation kit.
For other hardware and software resources, please visit our wiki. If you have any questions please refer to the FAQ page.
For extra examples for TI BLE-Stack 2.2.x SDK (CC26x0R1), see Branch: ble_examples-2.2.
The CC2640R2 SDK 1.50 is offered in two separate SDK installers, a Bluetooth 4.2 production certified installer (BLE-Stack), and a Bluetooth 5 (BLE5-Stack) SDK installer permitting evaluation of the Bluetooth 5 Long Range (LE Coded PHY) connections and Advertising Extension (AE) features. Both of these SDKs can be obtained on the SDK portal page: CC2640R2 SDK download page.
Note: Access to production Bluetooth 5 2Mbps stack (BLE5-Stack 1.0.1) in SDK
1.40 can be found at the above SDK portal page as well with related GitHub
examples on the simplelink_sdk-1.40 branch..
The Bluetooth 5 (BLE5-Stack 1.1.0) SDK for evaluating BLE5 Long Range features
is simplelink_cc2640r2_sdk_1_50_00_71, this SDK contains sample applications
for evaluating long range and is not supported by GitHub examples.
The production-certified Bluetooth 4.2 (BLE-Stack 3.1.1) component is included
in SDK installer version simplelink_cc2640r2_sdk_1_50_00_58.
This release is enabled with GitHub examples. Since this installer does not
support the BLE5-Stack component, the ble5apps/ has been removed.
The examples provided on this GitHub page serve as a plugin to a corresponding BLE-Stack SDK release. The master branch will always point to the latest release.
Older releases can be accessed by checking out/downloading their corresponding branch. For more information on supported examples please consult the readme.md of the desired branch/release.
For for more information about different SDK components, please consult the stack's User Guide.
Note: The version numbers below are related to GitHub ble_examples releases. The numbering scheme is in the form of M.mm.pp.bb. The fields pp.bb are incremented as GitHub examples are released, M.mm will map a GitHub release to a SimpleLink SDK release.
Initial offering of Simplelink CC2640R2 SDK 1.50.00.58 examples.
- BLE-Stack: Serial Port Profile (SPP) Server/Client
- BLE-Stack: Bidirectional Audio Demo (Central/Peripheral)
- BLE-Stack: Apple Notification Center Service (ANCS) Demo (Peripheral)
- Tools: voice.py script for Voice-over-HOGP
This repository can be cloned and tracked using Git. For instructions on how to clone a repository from Github please refer to this guide: Clone from Github
For users who are unfamiliar with Git, there is the option of downloading the contents of the repository as a zip file. See instructions below.
- Click the green "Clone or download" button
- Select "Download ZIP" option
- Zip folder will appear in your Downloads folder
This repository can be cloned/download anywhere on your computer. There is a dependency between this repository and the SimpleLink CC2640R2 SDK install location.
By default the SimpleLink CC2640R2 SDK will install to:
C:\ti\simplelink_cc2640r2_sdk_1_50_00_58
If the Simplelink CC2640R2 SDK must be installed to a different location, then see the FAQ page for IDE specific instructions for changing environment variables.
Similar to the Simplelink CC2640R2 SDK, the examples in this repository support the CCS and IAR toolchains. Please pay careful attention to versions of these tools, the supported version are listed below. Using a non supported version is untested and may result in unexpected behavior.
- CCS v7.3.0 with TI ARM Compiler v16.09.03 LTS
- IAR for ARM v8.11.2
For more information on toolchain setup, please refer to our FAQ page.
The FAQ page will try to address some of the common questions related to the ble_examples repo.
Encode and transmit a full duplex bidirectional audio stream over BLE using two CC2640R2 LaunchPads with CC3200AUDBOOST.
-
central_bidirectional_audio
-
peripheral_bidirectional_audio
This is a 2 part example where a spp_ble_client and spp_ble_server connect with one another and exchange data over UART.
The example also supports Bluetooth 4.2 demonstrating the BLE-Stack's Data Length Extension with OAD support:
- spp_ble_client
- spp_ble_server
This sample project is used to add observer role to a BLE peripheral device to show scanning functionality in a peripheral based project.
The example supports Bluetooth 4.2:
- simple_peripheral_observer
This is an example that demonstrates the use and functionality of the ANCS. ANCS is a GATT service present on iOS devices used to retrieve and interact with iOS notifications.
The example supports Bluetooth 4.2:
This is script allows developers to evaluate the Voice over
HID-over-GATT-Profile (HoGP) profile which is demonstrated as part of the
voice_hogp_remote example. The voie_hogp_remote is available as part of the
Simplelink CC2640R2 SDK BLE Example Pack.
The voice.py Python script is compatible with Python 2 or Python 3 and depends
on the Windows® only pywinusb python
module. The script has been tested to work on a Window 10 host with a BLE 4.0
compatible BLE controller. For help on how to use the voice.py script, simply
invoke its help menu voice.py --help.
The following reference pages may be helpful during general Bluetooth Low Energy development. Users developing Bluetooth 4.2 applications are encouraged to read the BLE-Stack for Bluetooth 4.2 User's Guide.
As an additional resource, users are encouraged to complete the SimpleLink Academy training.
Other resources can be found below: