Understanding

Bluetooth Low Energy

O'Reilly SolidCon - May 21, 2014

Don Coleman

@doncoleman

Lightbulb Service

  • Light Switch
  • Dimmer Level
  • Power Consumption

Lightbulb Service

1DFB0A30-569D-4B38-A511-AA912168F7DD

Properties

Attributes

Permissions

Descriptors

Lightbulb Service

Advertising

Advertising

  • 5425B44A-024A-4D39-88D2-D9F016199B29
  • Services: [ 0x180A, 0xFF10, 0XFF20, …]
  • Manufacturer Data: <00007465 6d70>
  • Connectable: True
  • TX Power Level: 4
  • RSSI: -80
  • Name: Smart Lightbulb

Scan and Discover Peripherals

Connect

Explore

  • Get a list of services
  •   For each service, get a list of characteristics
  •     For each characteristic, get properties
  •       Save handle to read or write later
  •       Subscribe to be notified on changes

Read Value

Write Value

Write Command

Battery Service

0x180F

16bit UUIDs

0000180F-0000-1000-8000-00805F9B34FB

00002A19-0000-1000-8000-00805F9B34FB

Notification

Indication

Security

Bonding

Peripheral

Provides services

Central

  • Discover advertising peripherals
  • Connect using UUID
  • Explore the services and characteristics
  • Read and write characteristics
  • Subscribe to be notified of changes

Beacons

Image by Simple Icons

Thank You

Don Coleman

@doncoleman

don@chariotsolutions.com

http://don.github.io/slides/

 

 

Creative Commons License
Understanding Bluetooth Low Energy by Don Coleman
is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at https://github.com/don/.../2014-05-21-oreilly-solidcon-ble.