TI CC2540 Bluetooth low energy Sample Applications Guide v1.4.1 SWRU297 Version 1.4.1
Page 29 of 36
Copyright © 2011-2015 Texas Instruments, Inc
Left and Right Buttons: The Simple Keys service on the SensorTag allows the device to
send notifications of key presses and releases to a central device.
14 SimpleBLECentral
The SimpleBLECentral project implements a very simple BLE central device with GATT client
functionality. It makes use of the SmartRF05 + CC2540EM hardware platform. This project can be
used as a framework for developing many different central-role applications. More information on
the SimpleBLECentral project can be found in [1].
15 SimpleBLEPeripheral
The SimpleBLEPeripheral project implements a very simple BLE peripheral device with GATT
services, including configurations for the CC2540DK-MINI keyfob as well as the SmartRF05 +
CC2540EM hardware platforms. This project can be used as a framework for developing many
different peripheral-role applications. More information on the SimpleBLEPeripheral project can
be found in [1].
16 TimeApp- BLE Watch
This sample project implements time and alert-related profiles in a BLE peripheral device to
provide an example of how Bluetooth LE profiles are used in a product like a watch. The project is
based on adopted profile specifications for Time ([19]), Alert Notification ([20]), and Phone Alert
Status ([21]). All profiles are implemented in the Client role. In addition, the following Network
Availability Profile, Network Monitor role has been implemented, based on Network Availability
Draft Specification d05r04 (UCRDD).
The project can be opened with the following IAR workspace file:
C:\Texas Instruments\BLE-CC254x-1.4.1\Projects\ble\TimeApp\CC2540\TimeApp.eww
16.1 Project Overview
The TimeApp project structure is very similar to that of the SimpleBLEPeripheral project. The APP
directory contains the application source code and header files. The project contains one
configuration, CC2540EM Slave, using the SmartRF05EB + CC2540EM hardware platform.
16.1.1 User Interface
The SmartRF05EB joystick and display provide a user interface for the application. The joystick
and buttons are used as follows:
Joystick Up: Start or stop advertising.
Joystick Left: If connected, send a command to the Alert Notification control point.
Joystick Center: If connected, disconnect. If held down on power-up, erase all bonds.
Joystick Right: If connected, initiates a Reference Time update.
Joystick Down: If connected, initiates a Ringer Control Point update
The LCD display is used to display the following information:
Device BD address.
Connection state.
Pairing and bonding status.
Passcode display.
Time and date.
Network availability.
Battery state of peer device.
Alert notification messages.
Unread message alerts.
Ringer status.