wprowadzenie do corebluetooth

Post on 16-Feb-2017

40 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

_

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ć?

Agenda

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

2

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_Bluetooth LE

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

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_GAP

GAP

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

6

Roles

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

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

7

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

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_GATT

GATT

GATT - Generic Attribute Profile • Requires connection • Services

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

• Other services

10

11

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).

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_SensorTag

SensorTag

14

SensorTag 2

16

Nev

er s

ettle

. w

ww

.intiv

e.co

m

_Demo

Contact us _Never

settle.Piotr Tobolski Senior Software Engineer +48 513 779 117 piotr.tobolski@intive.com

top related