wprowadzenie do corebluetooth

19
_ Never settle. www.intive.com Welcome CoreBluetooth introduction Piotr Tobolski meet.Mobile intive, 2016_09_29 Ten podkreślnik ma zostać?

Upload: intive

Post on 16-Feb-2017

40 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Wprowadzenie do CoreBluetooth

_

Nev

er s

ettle

. w

ww

.intiv

e.co

m

Welcome

CoreBluetooth introduction

Piotr Tobolski meet.Mobile

intive, 2016_09_29

Ten podkreślnik ma zostać?

Page 2: Wprowadzenie do CoreBluetooth

Agenda

1. Bluetooth LE 2. GAP 3. GATT 4. SensorTag 5. Demo

2

Page 3: Wprowadzenie do CoreBluetooth

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_Bluetooth LE

Page 4: Wprowadzenie do CoreBluetooth

Bluetooth LE

• Known as Bluetooth Smart, Wibree, Bluetooth ULP • Bluetooth Core Specification version 4.0 • Low power

• ~1 year for iBeacon with 900ms advertisement interval on a CR2032 battery

• No backward compatibility

4

Page 5: Wprowadzenie do CoreBluetooth

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_GAP

Page 6: Wprowadzenie do CoreBluetooth

GAP

GAP - Generic Access Profile • Device roles (Peripheral, Central)

6

Page 7: Wprowadzenie do CoreBluetooth

Roles

• Central (master, client) • Usually a phone, or computer

• Peripheral (slave, server) • Usually a small low power device such as iBeacon or sensor

7

Page 8: Wprowadzenie do CoreBluetooth

GAP

GAP - Generic Access Profile • Device roles (Peripheral, Central) • Peripheral advertisements

• Up to 31 bytes of payload • Multiple receivers

• Connections • Transfer much more data • GATT • Exclusive

8

Page 9: Wprowadzenie do CoreBluetooth

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_GATT

Page 10: Wprowadzenie do CoreBluetooth

GATT

GATT - Generic Attribute Profile • Requires connection • Services

• Characteristics • Properties (e.g. read, write, notify) • Value (max 512 bytes) • Descriptors

• Other services

10

Page 11: Wprowadzenie do CoreBluetooth

11

Page 12: Wprowadzenie do CoreBluetooth

GATT example

12Type UUID Access Size (bytes) Description

Data AA71* R/N 2 LightLSB:LightMSB

Notification 2902 R/W 2 Write 0x0001 to enable notifications, 0x0000 to disable

Configuration AA72* R/W 1 Write 0x01 to enable data collection, 0x00 to disable.

Period AA73* R/W 1 Resolution 10 ms. Range 100 ms (0x0A) to 2.55 sec (0xFF). Default is 800 milliseconds (0x50).

Page 13: Wprowadzenie do CoreBluetooth

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_SensorTag

Page 14: Wprowadzenie do CoreBluetooth

SensorTag

14

Page 15: Wprowadzenie do CoreBluetooth
Page 16: Wprowadzenie do CoreBluetooth

SensorTag 2

16

Page 17: Wprowadzenie do CoreBluetooth
Page 18: Wprowadzenie do CoreBluetooth

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_Demo

Page 19: Wprowadzenie do CoreBluetooth

Contact us _Never

settle.Piotr Tobolski Senior Software Engineer +48 513 779 117 [email protected]