This project features the Texas Instruments SimpleLink Bluetooth Low Energy CC2640R2F Launchpad with SensorTag and Key Fob codes ported from BLE Stack 2.2.1..
Bluetooth Low Energy Services:
- Device Information Service.
- Link Loss Service.
- Immediate Alert Service.
- Tx Power Service.
- Accelerometer Service.
- Battery Service.
- Simple Keys Service.
- TI Sensortag 2.0 I/O Service.
- TI Sensortag 2.0 Register Service.
Note: Texas Instruments Sensors BoosterPack Plug-In Module will be later on added to this project to have full SensorTag Functionality.
Project Hardware Requirements:
- TI CC2640R2F Launchpad.
- TI Educational BoosterPack MKII.
- TI BLE USB Dongle or TI CC2650 Launchpad with Host Test Program.
Project Software Requirements.
- Simplelink CC2640R2 SDK: BLE-STACK V3.0.1 (Support for CC2640R2F)
- BLE-STACK V2.2.1 (Support for CC2640/CC2650/CC1350)
- TI Code Composer Studio 7.0.
- TI SmartRF Flash Programmer 2.
- TI BLE Device Monitor.
- SensorTag App.
Overall Pin Compatibility:
TI CC2640R2F Blogs:
Program: TI CC2640R2F SensorTag
Note: Using SmartRF Flash Programmer 2, you can program the app and stack hex files to your device setup. See, program link README.md for instructions.
The TI CC2640R2F SensorTag Program, are made up of SensorTag and Key Fob codes from BLE Stack 2.2.1 ported to CC2640R2F SDK simple peripheral.
See, CC2640R2 SDK Porting Guide, to learn how to port codes from BLE Stack 2.2.1 to CC2640R2 SDK simple peripheral example programs.
TI SensorTag App:
Note: As of this Blog Post Publishing , the SensorTag App crashes when going to Sensor View. However, the SensorTag App does not crash going to Services.
TI CC2640R2F SensorTag IO:
To activate TI CC2640R2F Launchpad IO, first set Config to “01”, to enable control by remote client. Then set Data to these below settings.
“00” – All IO’s set to OFF
“01” – Blue LED ON
“02” – Green LED ON
“03” – Both Blue and Green LED ON
“04” – Buzzer ON
TI CC2640R2F SensorTag SimpleKeys:
TI CC2640R2F Launchpad Button 1 and Button 2, presses are passed on the SimpleKeys BLE Service.
TI CC2640R2F SensorTag Immediate Alert:
Immediate Alert is triggered by setting Link Loss Alert Level to either “01” or “02”. Then set Immediate Alert to “01” for Low Alert or “02” for High Alert.
TI CC2640R2F SensorTag Link Loss Alert:
Set the Link Loss Alert Level to either “01” or “02”. Then remove link to Bluetooth Device. In this case, I removed the TI BLE USB Dongle. When connection timeout is reached, Link Loss Alert is triggered.