EasyManuals Logo

Texas Instruments CC2541EMK Application Guide

Texas Instruments CC2541EMK
36 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #15 background imageLoading...
Page #15 background image
TI CC2540 Bluetooth low energy Sample Applications Guide v1.4.1 SWRU297 Version 1.4.1
Page 15 of 36
Copyright © 2011-2015 Texas Instruments, Inc
Total distance
Multiple sensor locations
Sending a read request to the Sensor Location characteristic triggers a response packet
containing the set position of the sensor on the bicycle. This value may be set by writing to the
control point (see below), requesting a sensor location update.
5.2.7 Writing to the Sensor
The CSC service has one writeable characteristic: the Control Point. A write request can be set
with the following requests:
CSC_SET_CUMM_VAL: Set the total distance traveled field.
CSC_START_SENS_CALIB: Calibrate the sensor. Not supported under current
profile spec, but it is required.
CSC_UPDATE_SENS_LOC: Update the location of the sensor.
CSC_REQ_SUPP_SENS_LOC: Request the list of supported sensor locations.
A response will be sent as an indication to the peer device after a write response it received. The
indication includes the CSC_COMMAND_RSP code, the requested operation code, and a code
indicating success or failure. If the command was a request for a list of valid sensor locations,
then the indication will also include a byte array containing the valid sensor locations.
5.2.8 Neglect Timer
This device has a compile time option that allows the sensor to terminate a connection if it sees
no user input for 15 seconds. In the context of this application, this means that after the device
has connected and notifications are disabled, the application starts a timer. This timer is restarted
whenever a read or write request comes from the peer device, and is disabled while notifications
are enabled. If the value USING_NEGLECT_TIMEOUT is set to FALSE at compile, then this
timer is permanently disabled at runtime.
6 Running Speed and Cadence (RSC) Sensor
This sample project implements the Running Speed and Cadence (RSC) profile in a BLE
peripheral device to provide a sample application of sensor that would be placed on a bicycle,
using simulated measurement data. The application implements the “Sensor” role of the Running
Speed and Cadence Profile. This profile also makes use of the optional Device Info Service in
the same manner as the Cycling Sensor.
The project can be opened with the following IAR workspace file:
C:\Texas Instruments\BLE-CC254x-1.4.1\Projects\ble\RunningSensor\CC2541DB\RunningSensor.eww
6.1 Project Overview
The project is very similar to the Cycling Sensor project. The APP directory contains the
application source code and header files. The project contains two configurations:
CC2541DK-MINI Keyfob Slave: using the keyfob hardware platform.
CC2541: using the SmartRF platform.
6.1.1 User Interface
When not connected, the keyfob’s right button is used to toggle advertising on and off. When in a
connection, the keyfob’s left button cycles through different running speed and cadence sensor
data formats.
Holding both keys down for 5 seconds initiates a “soft reset.” This includes:
Terminate all current connections
Clearing all bond data
Clearing white list of all peer addresses

Table of Contents

Other manuals for Texas Instruments CC2541EMK

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments CC2541EMK and is the answer not in the manual?

Texas Instruments CC2541EMK Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2541EMK
CategoryMicrocontrollers
LanguageEnglish

Related product manuals