Bluetooth LE

NYU ITP Spring 2017

Week 1

Don Coleman

Based on Figure 3.1 from “Bluetooth Low Energy” by Robin Heydon

Lightbulb Service

  • Light Switch
  • Dimmer Setting
  • Power Consumption

Lightbulb Service - FF10

16 bit UUIDs

0000FF10-0000-1000-8000-00805F9B34FB

0000FF11-0000-1000-8000-00805F9B34FB

0000FF12-0000-1000-8000-00805F9B34FB

0000FF16-0000-1000-8000-00805F9B34FB

Lightbulb Service - FF10

Advertising

Advertising

  • MAC Address: AA:BB:CC:DD:EE:FF
  • Services: [ 0x180A, 0xFF10, 0XFF20, …]
  • Manufacturer Data: <00007465 6d70>
  • Connectable: True
  • TX Power Level: 4
  • RSSI: -80
  • Name: Smart Lightbulb

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

After Connecting...

  • 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

Lightbulb Service - FF10

Battery Service

0x180F

Heart Rate Service - 180d

org.bluetooth.service.heart_rate.xml
org.bluetooth.characteristic.heart_rate_measurement.xml

Notification

Indication

Peripheral

Provides services

Central

Uses services on a peripheral

Hardware

Arduino 101


https://www.arduino.cc/en/Main/ArduinoBoard101

RedBear BLE Nano Kit
RFduino

Adafruit Bluefruit LE nRF8001 Breakout

RedBearLab BLE Shield 2.1

Other RedBearLab boards

Compatible Hardware List

github.com/sandeepmistry/android-BLEPeripheral

Raspberry Pi 3

Raspberry Pi Zero with RedBear WiFi + BTLE pHAT

Bluetooth 4.0 USB Module

CC2541 & CC2650 SensorTag

CC2650 Sensors & Services

  • IR & Ambient Temperature Sensor
  • Ambient Light Sensor
  • Humidity Sensor
  • Barometric Pressure Sensor
  • 9-axis Motion Tracking
  • Magnet Sensor
  • OTA Download

http://bit.ly/sensortag-guide


makebluetooth.com

Next Week...

Arduino and Bluetooth LE

Use Arduino to build Bluetooth LE peripherals

 

Creative Commons License
NYU ITP Bluetooth Spring 2017 Week 1 by Don Coleman is licensed under a Creative Commons Attribution 4.0 International License.