Upload
joey-agyeduah
View
132
Download
4
Tags:
Embed Size (px)
Citation preview
TI Bluetooth® low energy
Getting Started with the Technology, February 2013
Presenter’s Name
1
Agenda
What is Bluetooth low energy?
Demo of CC2541DK-SENSOR
Getting Started with TI Bluetooth low energy
Evaluation of CC2541DK-MINI
2
What is Bluetooth low energy?
3
What is Bluetooth low energy
• Part of Bluetooth 4.0
• Wireless Personal Area Network technology
• Target Applications:– Low Power – Low Latency– Low Throughput
• Spread Market and Application Areas– Entertainment, Sports & Fitness – Home Automation, Security & Proximity– Medical, Industrial & Automotive
4
Slave
Master
Slave
Slave
Bluetooth Branding
5
ClassicDual ModeSingle Mode
[Mbps]50
3
1
11
6
1
Bluetooth low energy vs WiFi/BT
6
WiFi
BLEBT
BLE WiFiLi-Ion
AAA
CoinCell
Smallest Power Source Required
Technology
WiFi
BLEBT
Maximum Throughput(Symbol rate)
Technology
Connection Events
• All communication between two connected devices occur duringConnection Events – Occur even when one (or both) sides have no data to send– Occurs periodically
7Sleeping
Connection Events
time
Current draw[mA]
Sleeping
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
8
Heart Rate Profile
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)
– Proximity Profile• Link Loss Service• Immediate Alert Service
– Find Me Profile• Immidiate Alert Service
9
Profile
Service
Characteristic
Properties
Value
Descriptor
Characteristic
Properties
Value
Descriptor
...
HRS
Measurement
Notify
98
User. Disc.
GATT = Generic Attribute Profile
DIS
System ID
Read Only
XX ... XX
User. Disc.
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
10
Server
Client Requests or Commands
Responses
Service
Characteristic
Characteristic
…
Service
Characteristic
Characteristic
…
Demo of CC2541DK-SENSOR
Apple iPad connected to Texas Instruments SensorTag
11
Demo: Bluetooth low energy SensorTag
12
CC2541
IMU-3000Rotation
KTXJ9Acceleration
MAG3110Magnetic Field
SHT21Humidity
T5400Pressure
TMP006Temperature
Push Buttons
LEDs
I2C
Central Device– Master + Client (wants data)
Peripheral Device– Slave + Server (has data)
Sensor Data
Configuration
Getting Started
With Texas Instruments Single Mode Bluetooth low energy
13
Order Kit and Download SDK
14
Order Kit
Download SW Stack
Evaluate and LearnBluetooth low energy
Order Kit
Download
• Visit ti.com/ble
Two-Chip Solution(Network Processor)
One-Chip Solution
TI Bluetooth low energy Hardware
15
CC2540Flash SoC
USBHigher Output Power
CC2541Flash SoC
I2CPower optimized
RadioProprietary Mode
MCUSerial
Application + Profiles BLE StackBLE Stack + Application + Profiles
CC2540CC2541
CC2540CC2541
Two ways of using TI Bluetooth low energy
TI Bluetooth low energy Hardware
16
CC2540DK-MINICC2541DK-MINI
The easiest way of evaluating
Bluetooth low energy
CC2540DKCC2541EMK
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
Development Kits
CC2540Flash SoC
USBHigher Output Power
CC2541Flash SoC
I2CPower optimized
RadioProprietary Mode
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
18
Apps
Stack
Application
Generic Access Profile
Generic Attribute Profile
Attribute Protocol Security Manager
Logical Link Control and Adaption Protocol
Link Layer
Physical Layer
HCI
Other ProfilesGAP Role GATT Service ...
OSAL
HAL
Source
Library
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
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
Both CC2541 Keyfob and CC2540USB Dongle are pre-programmed
21
CC Debugger
CC2540USB DongleQuick Start Guide Keyfob Casing CC2541 Keyfob
Setup PC environment
1. Insert CC2540 USB Dongle
2. Install driver, located at \BLE-CC254x-1.3\Accessories\Drivers
3. Start BTool1. Choose Port (dependent on your machine)
2. Press OK
22
Power up and connect the Keyfob
23
• There are two ways of powering the CC2541 Keyfob– Using a CR2032 Coin Cell Battery– Using CC Debugger
– 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.
OR
Evaluate CC2541DK-MINI
24
Device information Message Log Device Control
• Connect to CC2541 Keyfob
Profile Proprietary
Subset of Keyfob GATT Server
25
Proximity
Accelerometer
Acc. Enable
Read/Write
01
User Desc.
X-Coordinate
Read+Notify
09
Immidiate Alert
Alert Level
Read/Write
00
Simple Keys
Key Press
Read+Notify
00
Noti.Enable01:00
Service
Characteristic
Properties
Value
Descriptor
Characteristic
Properties
Value
Descriptor
...
Link Loss
TX Power
User Desc.
Noti.Enable01:00
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
BEEP
Interact with the Keyfob - Alert
• Immediate Alert– In Btool: Trigger a buzzer alert by writing 01 to handle 0x0028
27
01 for Low Alert02 for High Alert00 to Turn Off
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
29
Bluetooth SIG adopted Profiles
Cycling Speed and Cadence (BLEv1.4)Running Speed and Cadence (BLEv1.4)Blood Glucose - Certified (pending) (BLEv1.2, February ‘12)HID over GATT - Certified (BLEv1.2, February ‘12)Proximity - Certified (BLEv1.1, July ‘11)Find me - Certified (BLEv1.1, July ‘11)Health thermometer - Certified (BLEv1.1, July ‘11)Heart rate sensor - Certified (BLEv1.1, July ‘11)Time - Certified (BLEv1.1, July ‘11)Alert Notification - Certified (BLEv1.1, July ‘11)Battery Status - Certified (BLEv1.1, July ‘11)
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/sensortag30