Vous êtes sur la page 1sur 30

TI Bluetooth low energy

Getting Started with the Technology, February 2013 Presenters Name

Agenda
What is Bluetooth low energy? Demo of CC2541DK-SENSOR Getting Started with TI Bluetooth low energy Evaluation of CC2541DK-MINI

What is Bluetooth low energy?

What is Bluetooth low energy


Part of Bluetooth 4.0 Wireless Personal Area Network technology Target Applications:
Low Power Low Latency Low Throughput Slave Slave Slave

Master

Spread Market and Application Areas


Entertainment, Sports & Fitness Home Automation, Security & Proximity Medical, Industrial & Automotive

Bluetooth Branding

Single Mode

Dual Mode

Classic
5

Bluetooth low energy vs WiFi/BT


BLE WiFi
Li-Ion

Smallest Power Source Required

AAA

WiFi
Coin Cell

BT BLE

6
[Mbps] 50

Technology

Maximum Throughput
(Symbol rate)

11
3 1

WiFi BT BLE
Technology
6

Connection Events
All communication between two connected devices occur during Connection Events
Occur even when one (or both) sides have no data to send Occurs periodically

Connection Events Current draw [mA]

time
Sleeping
Sleeping
7

Bluetooth low energy Device Roles


A Bluetooth low energy device can operate in four profile roles:
Peripheral An advertiser that is connectable Operates as a slave in a connection Example: Heart Rate Sensor Central Scans for advertisements and initiates connections Operates as a master in connections. Example: Smartphone Broadcaster An advertiser that is non-connectable Example: Temperature Sensor Observer Scans for advertisements, but cannot initiate connections Example: Temperature Display

Profiles and Services


A Profile defines and describes the use of Services necessary to implement a given Application Bluetooth SIG adopted examples:
Heart Rate Profile
Heart Rate Service (HRS) Device Information Service (DIS)

Profile Service
Characteristic Properties Value Descriptor

Heart Rate Profile HRS


Measurement Notify 98 User. Disc.

...

Proximity Profile
Link Loss Service Immediate Alert Service

DIS
System ID Read Only XX ... XX User. Disc.

Characteristic Properties Value Descriptor

Find Me Profile
Immidiate Alert Service

GATT = Generic Attribute Profile

GATT Architecture
GATT specifies the structure in which data is stored and exchanged. Servers have data, which are exposed using characteristics. Clients want to use this data
Server Client Requests or Commands
Service Characteristic Characteristic Service Characteristic Characteristic

Responses

10

Demo of CC2541DK-SENSOR
Apple iPad connected to Texas Instruments SensorTag

11

Demo: Bluetooth low energy SensorTag


Peripheral Device
Slave + Server (has data)
LEDs CC2541 Push Buttons

Central Device
Master + Client (wants data)

I2C

KTXJ9
Acceleration

IMU-3000
Rotation

Sensor Data Configuration

T5400
Pressure

SHT21
Humidity

MAG3110
Magnetic Field

TMP006
Temperature
12

Getting Started
With Texas Instruments Single Mode Bluetooth low energy

13

Order Kit and Download SDK


Visit ti.com/ble

Download

Order Kit

Order Kit

Download SW Stack

Evaluate and Learn Bluetooth low energy


14

TI Bluetooth low energy Hardware

CC2540 Flash SoC USB Higher Output Power

CC2541 Flash SoC I2C Power optimized Radio Proprietary Mode

Two ways of using TI Bluetooth low energy

One-Chip Solution

Two-Chip Solution
(Network Processor)

CC2540 CC2541 BLE Stack + Application + Profiles

Serial

MCU
Application + Profiles

CC2540 CC2541 BLE Stack


15

TI Bluetooth low energy Hardware

CC2540 Flash SoC USB Higher Output Power

CC2541 Flash SoC I2C Power optimized Radio Proprietary Mode

Development Kits

CC2540DK-MINI CC2541DK-MINI The easiest way of evaluating Bluetooth low energy

CC2540DK CC2541EMK Advanced kit with several peripheral interfaces and features

CC2541DK-SENSOR Targeting smartphone App developers. The SensorTag provides sensor data from six sensors

CC2541DK-RC The Remote operates as a mouse, keyboard and consumer remote using HOGP
16

TI Bluetooth low energy Software Solution


Full Protocol stack for single mode Bluetooth low energy solution available at ti.com/ble-stack (Royalty Free) Complete power optimized stack including controller and host
Device Roles: Central, Peripheral, Observer or Broadcaster GATT Client and Server Security Manager 128 bit AES Encryption and Decryption

Sample applications and profiles


Generic applications for all GAP roles and supported profiles.

The latest adopted SIG Profiles and example Proprietary Profiles Over the Air Download (OAD)

Fully certified solution


TI BLE Controller Subsystem TI BLE Host Subsystem TI BLE Profile Subsystem

17

TI Bluetooth low energy Software Solution


Application HAL
GAP Role
GATT Service

Source

Apps

Library

...

Other Profiles

Generic Access Profile Generic Attribute Profile OSAL Attribute Protocol Security Manager Stack

Logical Link Control and Adaption Protocol HCI Link Layer Physical Layer

OSAL = Operating System Abstraction Layer (Prioritized task handling loop) HAL = Hardware Abstraction Layer (Drivers and API for LEDs, Buttons etc) Full API to access all stack functionality in the stack (Library) from the Application and Profiles

18

TI Bluetooth low energy Tools


BTool
Run and test all possible Bluetooth low energy functionality controlled from the PC tool.

BLE Device Monitor


Provides an intuitive and graphical way to explore Bluetooth low energy Services and Characteristics.

SmartRF Protocol Packet Sniffer


Capture Bluetooth low energy communication live with full overview.

SmartRF Flash Programmer


Program CC254x devices Read and write IEEE addresses
19

Evaluation of CC2541DK-MINI

20

CC2541DK-MINI Unboxing
Quick Start Guide
Keyfob Casing CC2541 Keyfob CC2540USB Dongle

CC Debugger

Both CC2541 Keyfob and CC2540USB Dongle are pre-programmed


21

Setup PC environment
1. Insert CC2540 USB Dongle 2. Install driver, located at \BLE-CC254x-1.3\Accessories\Drivers 3. Start BTool
1. 2. Choose Port (dependent on your machine) Press OK

22

Power up and connect the Keyfob


There are two ways of powering the CC2541 Keyfob
Using a CR2032 Coin Cell Battery Using CC Debugger

OR

Device LED is green for 1 second when powered up.

Make Keyfob discoverable


Press Right button to start advertisement Device LED should blink red during the advertisment mode.
23

Evaluate CC2541DK-MINI
Device information Message Log Device Control

Connect to CC2541 Keyfob

24

Subset of Keyfob GATT Server


Profile Service
Characteristic Properties Value Descriptor

Proprietary Simple Keys


Key Press Read+Notify 00 Noti.Enable 01:00 User Desc.

Proximity Immidiate Alert


Alert Level Read/Write 00

Accelerometer
Acc. Enable Read/Write 01 User Desc. X-Coordinate Read+Notify 09 Noti.Enable 01:00

Characteristic Properties Value Descriptor

...

Link Loss

TX Power

25

Interact with the Keyfob - Buttons


Button Notifications
In Btool: Enable notifications by writing 01:00 to handle 0x0048

On Keyfob: Press buttons to send notification

26

Interact with the Keyfob - Alert


Immediate Alert
In Btool: Trigger a buzzer alert by writing 01 to handle 0x0028

01 for Low Alert 02 for High Alert 00 to Turn Off

BEEP

27

Interact with the Keyfob - Accelerometer


Accelerometer
In Btool: Enable accelerometer by writing 01:00 to handle 0x0034 In Btool: Enable x-axis notifications by writing 01:00 to handle 0x003B

Move the Keyfob

28

TI Bluetooth low energy Software Examples


Profile Specific
Heart Rate Glucose HID Keyboard Etc.

Generic
SimpleBLEPeripheral SimpleBLECentral SimpleBLEBroadcaster SimpleBLEObserver

Bluetooth SIG adopted Profiles Cycling Speed and Cadence Running Speed and Cadence Blood Glucose HID over GATT Proximity Find me Health thermometer Heart rate sensor Time Alert Notification Battery Status (BLEv1.4) (BLEv1.4)
- Certified (pending) - Certified - Certified - Certified - Certified - Certified - Certified - Certified - Certified

(BLEv1.2, February 12) (BLEv1.2, February 12) (BLEv1.1, July 11) (BLEv1.1, July 11) (BLEv1.1, July 11) (BLEv1.1, July 11) (BLEv1.1, July 11) (BLEv1.1, July 11) (BLEv1.1, July 11)
29

TI Bluetooth low energy Solutions http://www.ti.com/ble TI Bluetooth low energy Wiki http://www.ti.com/ble-wiki TI Bluetooth low energy E2E Forum

http://www.ti.com/ble-forum
TI Bluetooth low energy SensorTag

http://www.ti.com/sensortag
30

Vous aimerez peut-être aussi