EasyManuals Logo
Home>Texas Instruments>Microcontrollers>CC2540DK-MINI

Texas Instruments CC2540DK-MINI Application Guide

Texas Instruments CC2540DK-MINI
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 #9 background imageLoading...
Page #9 background image
TI CC2540 Bluetooth low energy Sample Applications Guide v1.4.1 SWRU297 Version 1.4.1
Page 9 of 36
Copyright © 2011-2015 Texas Instruments, Inc
When in a connection or configured to take measurements, this increases the temperature by 1
degree Celsius. After 3 degrees in temperature rise, the interval will be set to 30 seconds and if
configured, this will indicate to the peer an interval change initiated at the thermometer.
KeyFob Left | SmartRF Joystick Up
This button cycle through different measurement formats.
3.1.2 Basic Operation
Power up the device and press the right button to enable advertising. From a thermometer
collector peer device, initiate a device discovery and connection procedure to discover and
connect to the thermometer sensor. The peer device should discover the thermometer service
and configure it to enable indication or notifications of the thermometer measurement. The peer
device may also discover the device information service for more information such as mfg and
serial number.
Once thermometer measurements have been enabled the application will begin sending data to
the peer containing simulated measurement values. Pressing the left button cycles through
different data formats as follows:
CELCIUS | TIMESTAMP | TYPE
CELCIUS | TIMESTAMP
CELCIUS
FARENHEIT
FARENHEIT | TIMESTAMP
FARENHEIT | TIMESTAMP | TYPE
If the peer device initiates pairing, the HT will request a passcode. The passcode is “000000”.
The HT operates in the following states:
Idle In this state, the thermometer will wait for the right button to be pressed to start
advertising.
Idle Configured The thermometer waits the interval before taking a measurement and
proceeding to Idle Measurement Ready state.
Idle Measurement Ready The thermometer has a measurement ready and will
advertise to allow connection. The thermometer will periodically advertise in this state.
Connected Not Configured - The thermometer may be configured to enable
measurement reports. The thermometer will not send stored measurements until the
CCC is enabled. Once connection is established, the thermometer sets a timer to
disconnect in 20 seconds.
Connected Configured - The thermometer will send any stored measurements if CCC is
set to send measurement indications.
Connected Bonded - The thermometer will send any stored measurements if CCC was
previously set to send measurement indications.
The peer device may also query the thermometers read only device information. Examples are
model number, serial number, etc.
3.2 Software Description
The application is implemented in the file thermometer.c.
3.2.1 Initialization
The initialization of the application occurs in two phases: first, the Thermometer_Init function is
called by the OSAL. This function configures parameters in the peripheral profile, GAP, and GAP
bond manager. It also sets up the thermometer service along with standard GATT and GAP
services in the attribute server. Then it sets an OSAL START_DEVICE_EVT event. This triggers
the second phase of the initialization, which can be found within the
Thermometer_ProcessEvent function. During this phase, the GAPRole_StartDevice function is

Table of Contents

Other manuals for Texas Instruments CC2540DK-MINI

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments CC2540DK-MINI Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2540DK-MINI
CategoryMicrocontrollers
LanguageEnglish

Related product manuals