SlideShare a Scribd company logo
Bluetooth SIG Proprietary and Confidential 1Bluetooth SIG Proprietary and Confidential 1
Click to edit Master title style
Click to edit Master subtitle style
Appcessories
Bridging the Digital to the Physical
Bluetooth SIG Proprietary and Confidential 2Bluetooth SIG Proprietary and Confidential 2
What’s In It For Me?
• Understand the opportunity
– Great potential for growth and monetization with
appcessories
– Bluetooth technology‟s role
• What a sample Bluetooth implementation
looks like
– From „profiles‟ and use cases to code
• Where to find more resources
– Hint: developer.bluetooth.org
Bluetooth SIG Proprietary and Confidential 3Bluetooth SIG Proprietary and Confidential 3
Digital and Physical Worlds Collide!
Bluetooth SIG Proprietary and Confidential 4Bluetooth SIG Proprietary and Confidential 4
Appcessories = Application + Accessory
They are complementary devices that enable people
to interact with technology like never before by
creating physical experiences to strengthen the digital
experience
What Is An Appcessory?
MobiPlex - SwingTIP
What makes Bluetooth a good fit
for Appcessories?
 Performance
 THE Standard for device
connectivity
Bluetooth SIG Proprietary and Confidential 5Bluetooth SIG Proprietary and Confidential 5
1,000,000,000 Devices*
Why Should I Care?
1,000,000,000x Applications
* 2012 ANALYSIS OF THE BLUETOOTH MARKET AND INDUSTRY, ABI Research
Bluetooth SIG Proprietary and Confidential 6Bluetooth SIG Proprietary and Confidential 6
Let Me Share a Story…
Bluetooth SIG Proprietary and Confidential 7Bluetooth SIG Proprietary and Confidential 7
Bluetooth – Bridging the Gap
App for the
Phone
Sensor-based
device for the
Lock
For the
Connection
• Well defined specs and protocols
• Standard way to implement
solutions
Bluetooth SIG Proprietary and Confidential 8Bluetooth SIG Proprietary and Confidential 8
Smart Device Profiles – Defining the Use Cases
A Generic Attribute Profile
(GATT) is a description of how a
device functions for a given
scenario/use case
Generic Attribute Profile
Service
Value
Characteristic
Value
Value
Value
Characteristic
Value
Value
First thing we need to do is to define the
use cases…
Bluetooth SIG Proprietary and Confidential 9Bluetooth SIG Proprietary and Confidential 9
Profile for the Lock Mechanism
What is your use case? Let’s focus on the
Password-enabled scenario
Admin User Lock
Turn ‘on’ PWD
PWD ‘on’ AK
Change PWD
Send Admin PWD
Admin PWD
Send Good/Bad
New User PWD
Send User PWD
Change AK
In this flow, we will assume that the Admin PWD given is correct
Encrypted
Encrypted
• We want an admin to be able to turn passwords on/off
• We want an admin to be able to send an ‘admin’ password, which can then be used to set the
‘user’ password
Bluetooth SIG Proprietary and Confidential 10Bluetooth SIG Proprietary and Confidential 10
Service Definition for the Lock Mechanism
High-level sample profile
Lock Mechanism Profile
Lock Service
Yes
Locked
…
Code Service
ON
Status
12345
User Code
54321
Admin Code
• Use case scenarios are
important to define
– Design decisions are important to your
scenario(s)
– Lock Service – is it simply a toggle?
– Code Service – are we covering all of the
right use cases?
• Quick word on Adopted
Profiles…
– Proximity is an example
– Contains a „link loss‟, an „immediate alert
level‟, and a „transmit power‟ service
– Can easily add those services to your
„custom‟ profile‟.
Bluetooth SIG Proprietary and Confidential 11Bluetooth SIG Proprietary and Confidential 11
Attribute Tables for Lock Mechanism
Handle Type Value Permissions
1 «Primary Service» «Code Service» --
2 «Status» {r/w, 3, «Value for Status»} Read/Write
3 «Value for Status» “ON” --
4 «User Code» {r/w, 5, «Value for Code»} Read/Write
5 «Value for Code» “12345” --
6 «Admin Code» {r/w, 7, «Value for Code»} Read/Write
7 «Value for Code» “54321” --
• Smart Device stores Service data in
an Attribute Table
– Implemented on the actual Smart Device to
store data
• Structure defined by GATT
– Every entry in the table is considered an
attribute
– Service, Characteristic, Value, etc
Bluetooth SIG Proprietary and Confidential 12Bluetooth SIG Proprietary and Confidential 12
Smart Ready Platforms and Profiles
When creating apps for modern
smartphone platforms, many
Bluetooth details are abstracted away
by the underlying SDK
• In many cases, still requires
knowledge of the profile.
• Each platform has their own
SDK and are a bit different
– Microsoft, Apple, Blackberry, Google
• Refer to the SDK docs of the
platform you are targeting
Generic Attribute Profile
Service
Value
Characteristic
Value
Value
Value
Characteristic
Value
Value
Bluetooth SIG Proprietary and Confidential 13Bluetooth SIG Proprietary and Confidential 13
• Smart Device Discovery
Typical Bluetooth Application Flow
Smart Device Advertises Itself
Smart Ready Hub Scans for Advertisements
Smart Ready Hub requests a
Connection
Smart Device accepts Connection
request
• Smart Device Connection to Smart Ready Hub
Bluetooth SIG Proprietary and Confidential 14Bluetooth SIG Proprietary and Confidential 14
• Interacting with Services
Typical Bluetooth Application Flow
– Smart Ready Hub can look at
services and the values they contain
in Smart Devices
– Smart Ready Hub can send
commands to the Smart Device
services
– Smart Ready Hub can receive
commands and updates from the
Smart Device
• Requires the services to be configured
properly on the Smart Device
Bluetooth SIG Proprietary and Confidential 15Bluetooth SIG Proprietary and Confidential 15
Lockitron – Not Just a Story
• Turn your mobile phone into a
key.
• Send permanent or temporary
virtual keys to family, friends and
house guests.
• Your mobile phone can be better
than a key – keep it in your
pocket.
Keyless entry with your phone
– Bluetooth low energy – “…the only wireless technology we can keep on for extended
periods and is integrated directly into mobile phones.”
– “With Bluetooth low energy, we can carry out commands without the user tapping the
app.”
Cameron Robertson, Founder
Bluetooth SIG Proprietary and Confidential 16Bluetooth SIG Proprietary and Confidential 16
Bridging the Digital to the Physical
Internet
Connected
Native APIs
for
applications
®
Bluetooth SIG Proprietary and Confidential 17Bluetooth SIG Proprietary and Confidential 17
Implementation – Getting Started
• Texas Instruments CC2541
– Single-chip single-mode Bluetooth low energy
System-on-a-Chip
– Contains radio, MCU, stack, profiles, applications,
and on-chip peripherals – everything needed for
your product!
• CC2541 Sensor Tag Kit
– Fully working Bluetooth low energy peripheral
based on CC2541
– Contains sensors for temperature, humidity,
accelerometer, magnetometer
– Enables app developers to quickly develop
prototype Bluetooth low energy software
• CC2541 Mini Development Kit
– Includes CC2541 Keyfob, USB Dongle, and
Debugger
– Enables CC2541 embedded software development
Bluetooth SIG Proprietary and Confidential 18Bluetooth SIG Proprietary and Confidential 18
Implementation – TI iOS SensorTag App
• Targeting Smart Phone App Developers
• Limitless App Possibilities
– Health and fitness, medical, educational tools, toys,
remote controls, mobile phone accessories, and
proximity.
• The CC2541 SensorTag kit shortens the
design time for Bluetooth low energy
app development from months to hours
– No embedded software design knowledge required.
– The SensorTag includes all SW needed for App
development
– TI has a SensorTag App on the App Store providing
developers with easy access to the tools they need.
– iOS Example App Source Code available for
download at http://ti.com/sensortag
Bluetooth SIG Proprietary and Confidential 19Bluetooth SIG Proprietary and Confidential 19
Implementation – Developing for iOS
• Development done using Xcode
• Xcode runs on OSX [Mountain] Lion
• Xcode and simulator is free
– BLE requires physical iOS device
• Physical device download requires Apple Developer Account
– Costs 99$ per year at developer.apple.com/programs/ios
Bluetooth SIG Proprietary and Confidential 20Bluetooth SIG Proprietary and Confidential 20
Implementation – iOS Source Code
• The communication is asynchronous
between app and iOS’s CoreBluetooth API
• We issue commands to CBCentralManager
and CBPeripheral
– [BLEUtility writeCharacteristic ...] 
– [peripheral writeValue:data ... ];
• Then act as delegate for CBCentralManager
– centralManagerDidUpdateState
– didDiscoverPeripheral
– didConnectPeripheral
• And for CBPeripheral
– didDiscoverServices
– didUpdateValueForCharacteristic
– didWriteValueForCharacteristic
• Delegates implement callbacks according to
a protocol. A design pattern used in iOS.
Bluetooth SIG Proprietary and Confidential 21Bluetooth SIG Proprietary and Confidential 21
Implementation – Developing for CC2541
• TI provides license-free Bluetooth low energy qualified
protocol stack and profiles
• Application development using C using IAR Embedded
Workbench
• Operating system abstraction layer (OSAL) with
priorized event handler, memory management, task
messaging, and NV drivers
• Sample applications included with SDK
– Standard profile applications such as Proximity, Heart Rate Sensor,
Glucose Sensor, etc...
– Custom profile applications such as SensorTag, Generic Peripheral,
Generic Central
• Additional Features
– Over-the-Air Firmware Updates
– Boot Image Manager- run multiple firmware images on one chip
– Hardware Abstraction Layer (HAL) drivers for on-chip peripherals including
SPI, UART, I2C, ADC, Timers
Bluetooth SIG Proprietary and Confidential 22Bluetooth SIG Proprietary and Confidential 22
Resources on the Portal
• Knowledge Center
– White papers
– Training Videos
• Development Resources
– Quick Start Kit
– Platform availability for Smart and
Smart Ready
– Recorded webinars on
development topics
– Links to SIG tools (PTS, etc.)
• Forums
• GATT specifications
http://developer.bluetooth.org
Bluetooth SIG Proprietary and Confidential 23Bluetooth SIG Proprietary and Confidential 23
Coming Soon – New Developer Resources
• Bluetooth Quick Start Kit v2
– Fundamentals for device makers new to
Bluetooth Low Energy
• GATT, GAP, ATT, adopted profiles, etc.
– Sample application
• “Hello Bluetooth”
– iOS, Android, Windows 8
• Bluetooth Application
Accelerators v1
– Accelerator for application developers
– Educational content
• Setting up your environment
• Tutorial/code walkthrough
– Fully commented sample code
• iOS initially http://developer.bluetooth.org
Bluetooth SIG Proprietary and Confidential 24Bluetooth SIG Proprietary and Confidential 24
Appcessories – Join the Movement
• Appcessory market is mainstream
– Great potential for growth and monetization
• Bluetooth can help you bridge the digital to
the physical
– Bluetooth is the a defacto standard
• Grab a development kit and start today

More Related Content

What's hot (20)

PPTX
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Peter Gallagher
 
PDF
Architectural Patterns in IoT Cloud Platforms
Roshan Kulkarni
 
PPTX
Io t technologies
Umesh Bhat
 
PPTX
Azure Percept Home Automation - .NET Liverpool - 28-10-21
Peter Gallagher
 
PDF
CIS14: Securing the Internet of Things with Open Standards
CloudIDSummit
 
PPTX
Intel® Developer Zone
Intel Developer Zone Community
 
PDF
A Pragmatic Reference Architecture for The Internet of Things
Rick G. Garibay
 
PDF
Machine Learning and Analytics in the Cloud on IoT Data
Intel® Software
 
PPTX
The use case for Cassandra at Ping Identity
Ping Identity
 
PDF
Internet of Everything Development Using AllJoyn
AllSeen Alliance
 
PDF
Ibm_IoT_Architecture_and_Capabilities
IBM_Info_Management
 
PPTX
One Stop iBeacon Solution and Implementation
Avianto Tiyo
 
PPT
IoT testing and quality assurance indicthreads
IndicThreads
 
PDF
IoT Node-Red Presentation
The IOT Academy
 
PDF
Integrated social solutions, the power and pitfalls of mashups
Nordic APIs
 
PPTX
Designing For Interoperability in Mobile
AllSeen Alliance
 
PDF
Cubeacon Smart Retail Industry with iBeacon Technology
Avianto Tiyo
 
PPTX
Softeq Development Corp.
Eugene Volkov
 
PPT
Iot secure connected devices indicthreads
IndicThreads
 
PDF
Creating an Internet of Everything
AllSeen Alliance
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Peter Gallagher
 
Architectural Patterns in IoT Cloud Platforms
Roshan Kulkarni
 
Io t technologies
Umesh Bhat
 
Azure Percept Home Automation - .NET Liverpool - 28-10-21
Peter Gallagher
 
CIS14: Securing the Internet of Things with Open Standards
CloudIDSummit
 
Intel® Developer Zone
Intel Developer Zone Community
 
A Pragmatic Reference Architecture for The Internet of Things
Rick G. Garibay
 
Machine Learning and Analytics in the Cloud on IoT Data
Intel® Software
 
The use case for Cassandra at Ping Identity
Ping Identity
 
Internet of Everything Development Using AllJoyn
AllSeen Alliance
 
Ibm_IoT_Architecture_and_Capabilities
IBM_Info_Management
 
One Stop iBeacon Solution and Implementation
Avianto Tiyo
 
IoT testing and quality assurance indicthreads
IndicThreads
 
IoT Node-Red Presentation
The IOT Academy
 
Integrated social solutions, the power and pitfalls of mashups
Nordic APIs
 
Designing For Interoperability in Mobile
AllSeen Alliance
 
Cubeacon Smart Retail Industry with iBeacon Technology
Avianto Tiyo
 
Softeq Development Corp.
Eugene Volkov
 
Iot secure connected devices indicthreads
IndicThreads
 
Creating an Internet of Everything
AllSeen Alliance
 

Viewers also liked (8)

PPTX
Reporters And Photogs
Columbia University
 
PPT
Social Media U
Columbia University
 
PPT
Fashion Europe Net Franchise Hungary Thomas Wilhelm
Thomas Wilhelm
 
PPT
Fashion Europe Net Fen Russian Thomas Wilhelm
Thomas Wilhelm
 
PDF
Proposta comunitat educativa (pla tic) edició
pereruiz
 
PPT
The Future Journalist
Columbia University
 
PPT
Fashion Europe Net Fen Russian Thomas Wilhelm
Thomas Wilhelm
 
PPT
Presentation Bab 8 (Sejarah, Untuk 6 7 2009)
ngmannrm
 
Reporters And Photogs
Columbia University
 
Social Media U
Columbia University
 
Fashion Europe Net Franchise Hungary Thomas Wilhelm
Thomas Wilhelm
 
Fashion Europe Net Fen Russian Thomas Wilhelm
Thomas Wilhelm
 
Proposta comunitat educativa (pla tic) edició
pereruiz
 
The Future Journalist
Columbia University
 
Fashion Europe Net Fen Russian Thomas Wilhelm
Thomas Wilhelm
 
Presentation Bab 8 (Sejarah, Untuk 6 7 2009)
ngmannrm
 
Ad

Similar to Bw13 session2 app_dev_presenter_final (20)

PPTX
How to use Bluetooth® Smart to control your embedded device with a mobile device
Anaren, Inc.
 
PDF
Real time sensing with bluetooth smart
Tue Haste Andersen
 
PDF
THAT_2023_BLE.pdf
Robin Schroeder
 
PPT
Ble boise codecamp
Chip Keyes
 
PPTX
BLE Talk
programmarchy
 
PPTX
Bluetooth low energy final version
Frederick Bousson
 
PPTX
Bluetooth Reinvented. Smart connectivity in consumer devices: Bluetooth Low ...
CSR
 
PPTX
Introduction to Bluetooth Low Energy
yeokm1
 
PDF
Bluetooth global-technology 170
manasanreddy
 
PDF
Bluetooth Technology In Wireless Communications
guestac67362
 
PDF
What Are The Advantages Of Bluetooth
Miles Priar
 
PDF
挖掘低耗電藍芽的寶藏
evan3rd
 
PDF
Desert Code Camp 2014.2 Intro to Bluetooth Low Energy
jjrosent
 
PDF
IntenetOfThingsWithBLEAndBeacons
Vivek Jain
 
PDF
A Brief Introduction to Bluetooth Low Energy (BLE) on iOS
Matt Whitlock
 
PDF
Intern_Report
Akanksha Kumari
 
PPTX
Bluetooth
Pankaj Nayak
 
PPTX
Ble overview and_implementation
Stanley Chang
 
PPTX
Handling BLE & Bluetooth in Mobile Apps development
Satyanarayana SVV
 
PDF
How Hot is My Coffee? Sensors, Core Bluetooth, and Swift!
Evan Stone
 
How to use Bluetooth® Smart to control your embedded device with a mobile device
Anaren, Inc.
 
Real time sensing with bluetooth smart
Tue Haste Andersen
 
THAT_2023_BLE.pdf
Robin Schroeder
 
Ble boise codecamp
Chip Keyes
 
BLE Talk
programmarchy
 
Bluetooth low energy final version
Frederick Bousson
 
Bluetooth Reinvented. Smart connectivity in consumer devices: Bluetooth Low ...
CSR
 
Introduction to Bluetooth Low Energy
yeokm1
 
Bluetooth global-technology 170
manasanreddy
 
Bluetooth Technology In Wireless Communications
guestac67362
 
What Are The Advantages Of Bluetooth
Miles Priar
 
挖掘低耗電藍芽的寶藏
evan3rd
 
Desert Code Camp 2014.2 Intro to Bluetooth Low Energy
jjrosent
 
IntenetOfThingsWithBLEAndBeacons
Vivek Jain
 
A Brief Introduction to Bluetooth Low Energy (BLE) on iOS
Matt Whitlock
 
Intern_Report
Akanksha Kumari
 
Bluetooth
Pankaj Nayak
 
Ble overview and_implementation
Stanley Chang
 
Handling BLE & Bluetooth in Mobile Apps development
Satyanarayana SVV
 
How Hot is My Coffee? Sensors, Core Bluetooth, and Swift!
Evan Stone
 
Ad

Recently uploaded (20)

PDF
July Patch Tuesday
Ivanti
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
July Patch Tuesday
Ivanti
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Python basic programing language for automation
DanialHabibi2
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 

Bw13 session2 app_dev_presenter_final

  • 1. Bluetooth SIG Proprietary and Confidential 1Bluetooth SIG Proprietary and Confidential 1 Click to edit Master title style Click to edit Master subtitle style Appcessories Bridging the Digital to the Physical
  • 2. Bluetooth SIG Proprietary and Confidential 2Bluetooth SIG Proprietary and Confidential 2 What’s In It For Me? • Understand the opportunity – Great potential for growth and monetization with appcessories – Bluetooth technology‟s role • What a sample Bluetooth implementation looks like – From „profiles‟ and use cases to code • Where to find more resources – Hint: developer.bluetooth.org
  • 3. Bluetooth SIG Proprietary and Confidential 3Bluetooth SIG Proprietary and Confidential 3 Digital and Physical Worlds Collide!
  • 4. Bluetooth SIG Proprietary and Confidential 4Bluetooth SIG Proprietary and Confidential 4 Appcessories = Application + Accessory They are complementary devices that enable people to interact with technology like never before by creating physical experiences to strengthen the digital experience What Is An Appcessory? MobiPlex - SwingTIP What makes Bluetooth a good fit for Appcessories?  Performance  THE Standard for device connectivity
  • 5. Bluetooth SIG Proprietary and Confidential 5Bluetooth SIG Proprietary and Confidential 5 1,000,000,000 Devices* Why Should I Care? 1,000,000,000x Applications * 2012 ANALYSIS OF THE BLUETOOTH MARKET AND INDUSTRY, ABI Research
  • 6. Bluetooth SIG Proprietary and Confidential 6Bluetooth SIG Proprietary and Confidential 6 Let Me Share a Story…
  • 7. Bluetooth SIG Proprietary and Confidential 7Bluetooth SIG Proprietary and Confidential 7 Bluetooth – Bridging the Gap App for the Phone Sensor-based device for the Lock For the Connection • Well defined specs and protocols • Standard way to implement solutions
  • 8. Bluetooth SIG Proprietary and Confidential 8Bluetooth SIG Proprietary and Confidential 8 Smart Device Profiles – Defining the Use Cases A Generic Attribute Profile (GATT) is a description of how a device functions for a given scenario/use case Generic Attribute Profile Service Value Characteristic Value Value Value Characteristic Value Value First thing we need to do is to define the use cases…
  • 9. Bluetooth SIG Proprietary and Confidential 9Bluetooth SIG Proprietary and Confidential 9 Profile for the Lock Mechanism What is your use case? Let’s focus on the Password-enabled scenario Admin User Lock Turn ‘on’ PWD PWD ‘on’ AK Change PWD Send Admin PWD Admin PWD Send Good/Bad New User PWD Send User PWD Change AK In this flow, we will assume that the Admin PWD given is correct Encrypted Encrypted • We want an admin to be able to turn passwords on/off • We want an admin to be able to send an ‘admin’ password, which can then be used to set the ‘user’ password
  • 10. Bluetooth SIG Proprietary and Confidential 10Bluetooth SIG Proprietary and Confidential 10 Service Definition for the Lock Mechanism High-level sample profile Lock Mechanism Profile Lock Service Yes Locked … Code Service ON Status 12345 User Code 54321 Admin Code • Use case scenarios are important to define – Design decisions are important to your scenario(s) – Lock Service – is it simply a toggle? – Code Service – are we covering all of the right use cases? • Quick word on Adopted Profiles… – Proximity is an example – Contains a „link loss‟, an „immediate alert level‟, and a „transmit power‟ service – Can easily add those services to your „custom‟ profile‟.
  • 11. Bluetooth SIG Proprietary and Confidential 11Bluetooth SIG Proprietary and Confidential 11 Attribute Tables for Lock Mechanism Handle Type Value Permissions 1 «Primary Service» «Code Service» -- 2 «Status» {r/w, 3, «Value for Status»} Read/Write 3 «Value for Status» “ON” -- 4 «User Code» {r/w, 5, «Value for Code»} Read/Write 5 «Value for Code» “12345” -- 6 «Admin Code» {r/w, 7, «Value for Code»} Read/Write 7 «Value for Code» “54321” -- • Smart Device stores Service data in an Attribute Table – Implemented on the actual Smart Device to store data • Structure defined by GATT – Every entry in the table is considered an attribute – Service, Characteristic, Value, etc
  • 12. Bluetooth SIG Proprietary and Confidential 12Bluetooth SIG Proprietary and Confidential 12 Smart Ready Platforms and Profiles When creating apps for modern smartphone platforms, many Bluetooth details are abstracted away by the underlying SDK • In many cases, still requires knowledge of the profile. • Each platform has their own SDK and are a bit different – Microsoft, Apple, Blackberry, Google • Refer to the SDK docs of the platform you are targeting Generic Attribute Profile Service Value Characteristic Value Value Value Characteristic Value Value
  • 13. Bluetooth SIG Proprietary and Confidential 13Bluetooth SIG Proprietary and Confidential 13 • Smart Device Discovery Typical Bluetooth Application Flow Smart Device Advertises Itself Smart Ready Hub Scans for Advertisements Smart Ready Hub requests a Connection Smart Device accepts Connection request • Smart Device Connection to Smart Ready Hub
  • 14. Bluetooth SIG Proprietary and Confidential 14Bluetooth SIG Proprietary and Confidential 14 • Interacting with Services Typical Bluetooth Application Flow – Smart Ready Hub can look at services and the values they contain in Smart Devices – Smart Ready Hub can send commands to the Smart Device services – Smart Ready Hub can receive commands and updates from the Smart Device • Requires the services to be configured properly on the Smart Device
  • 15. Bluetooth SIG Proprietary and Confidential 15Bluetooth SIG Proprietary and Confidential 15 Lockitron – Not Just a Story • Turn your mobile phone into a key. • Send permanent or temporary virtual keys to family, friends and house guests. • Your mobile phone can be better than a key – keep it in your pocket. Keyless entry with your phone – Bluetooth low energy – “…the only wireless technology we can keep on for extended periods and is integrated directly into mobile phones.” – “With Bluetooth low energy, we can carry out commands without the user tapping the app.” Cameron Robertson, Founder
  • 16. Bluetooth SIG Proprietary and Confidential 16Bluetooth SIG Proprietary and Confidential 16 Bridging the Digital to the Physical Internet Connected Native APIs for applications ®
  • 17. Bluetooth SIG Proprietary and Confidential 17Bluetooth SIG Proprietary and Confidential 17 Implementation – Getting Started • Texas Instruments CC2541 – Single-chip single-mode Bluetooth low energy System-on-a-Chip – Contains radio, MCU, stack, profiles, applications, and on-chip peripherals – everything needed for your product! • CC2541 Sensor Tag Kit – Fully working Bluetooth low energy peripheral based on CC2541 – Contains sensors for temperature, humidity, accelerometer, magnetometer – Enables app developers to quickly develop prototype Bluetooth low energy software • CC2541 Mini Development Kit – Includes CC2541 Keyfob, USB Dongle, and Debugger – Enables CC2541 embedded software development
  • 18. Bluetooth SIG Proprietary and Confidential 18Bluetooth SIG Proprietary and Confidential 18 Implementation – TI iOS SensorTag App • Targeting Smart Phone App Developers • Limitless App Possibilities – Health and fitness, medical, educational tools, toys, remote controls, mobile phone accessories, and proximity. • The CC2541 SensorTag kit shortens the design time for Bluetooth low energy app development from months to hours – No embedded software design knowledge required. – The SensorTag includes all SW needed for App development – TI has a SensorTag App on the App Store providing developers with easy access to the tools they need. – iOS Example App Source Code available for download at http://ti.com/sensortag
  • 19. Bluetooth SIG Proprietary and Confidential 19Bluetooth SIG Proprietary and Confidential 19 Implementation – Developing for iOS • Development done using Xcode • Xcode runs on OSX [Mountain] Lion • Xcode and simulator is free – BLE requires physical iOS device • Physical device download requires Apple Developer Account – Costs 99$ per year at developer.apple.com/programs/ios
  • 20. Bluetooth SIG Proprietary and Confidential 20Bluetooth SIG Proprietary and Confidential 20 Implementation – iOS Source Code • The communication is asynchronous between app and iOS’s CoreBluetooth API • We issue commands to CBCentralManager and CBPeripheral – [BLEUtility writeCharacteristic ...]  – [peripheral writeValue:data ... ]; • Then act as delegate for CBCentralManager – centralManagerDidUpdateState – didDiscoverPeripheral – didConnectPeripheral • And for CBPeripheral – didDiscoverServices – didUpdateValueForCharacteristic – didWriteValueForCharacteristic • Delegates implement callbacks according to a protocol. A design pattern used in iOS.
  • 21. Bluetooth SIG Proprietary and Confidential 21Bluetooth SIG Proprietary and Confidential 21 Implementation – Developing for CC2541 • TI provides license-free Bluetooth low energy qualified protocol stack and profiles • Application development using C using IAR Embedded Workbench • Operating system abstraction layer (OSAL) with priorized event handler, memory management, task messaging, and NV drivers • Sample applications included with SDK – Standard profile applications such as Proximity, Heart Rate Sensor, Glucose Sensor, etc... – Custom profile applications such as SensorTag, Generic Peripheral, Generic Central • Additional Features – Over-the-Air Firmware Updates – Boot Image Manager- run multiple firmware images on one chip – Hardware Abstraction Layer (HAL) drivers for on-chip peripherals including SPI, UART, I2C, ADC, Timers
  • 22. Bluetooth SIG Proprietary and Confidential 22Bluetooth SIG Proprietary and Confidential 22 Resources on the Portal • Knowledge Center – White papers – Training Videos • Development Resources – Quick Start Kit – Platform availability for Smart and Smart Ready – Recorded webinars on development topics – Links to SIG tools (PTS, etc.) • Forums • GATT specifications http://developer.bluetooth.org
  • 23. Bluetooth SIG Proprietary and Confidential 23Bluetooth SIG Proprietary and Confidential 23 Coming Soon – New Developer Resources • Bluetooth Quick Start Kit v2 – Fundamentals for device makers new to Bluetooth Low Energy • GATT, GAP, ATT, adopted profiles, etc. – Sample application • “Hello Bluetooth” – iOS, Android, Windows 8 • Bluetooth Application Accelerators v1 – Accelerator for application developers – Educational content • Setting up your environment • Tutorial/code walkthrough – Fully commented sample code • iOS initially http://developer.bluetooth.org
  • 24. Bluetooth SIG Proprietary and Confidential 24Bluetooth SIG Proprietary and Confidential 24 Appcessories – Join the Movement • Appcessory market is mainstream – Great potential for growth and monetization • Bluetooth can help you bridge the digital to the physical – Bluetooth is the a defacto standard • Grab a development kit and start today