ibeacons / beacons and presence use cases and examples (part 1)

19
Beacons and Presence use cases and examples (part 1) Markus van Kempen [email protected] @markusvankempen The Internet of Things 12/23/2015 1

Upload: markus-van-kempen

Post on 16-Apr-2017

1.156 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: iBeacons / Beacons and Presence use cases and examples (part 1)

Beacons and Presence use cases and examples (part 1)

Markus van Kempen – [email protected]

@markusvankempen

The Internet of Things

12/23/2015

1

Page 2: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Scenario’s

Collect data form all Bluetooth Devices and beacons around via node.js

using a Raspberry Pi or a notebook with Bluetooth Low Energy (BLE)

Send notification when Beacon is within a Range of the Raspberry Pi

(E.g. send sms when one is back from a run using fitbit for example)

Use Raspberry Pi by as a Beacon

Beacon Roaming between 2 gateways

12/23/2015

2

Page 3: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

(i)Beacon broadcast informationhttps://en.wikipedia.org/wiki/IBeacon

12/23/2015

3

"minor": 10159, "rssi": -73, "major": 8221, "proximity": "ProximityNear", "accuracy": 0.73, "uuid": "B9407F30-F5F8-466E-AFF9-25556B57FE6D"

uuid

advertised uuid

major

advertised major

minor

advertised minor

measuredPower

advertised measured RSSI at 1 meter away

rssi

current RSSI

accuracy

+/- meters, based on measuredPower and RSSI

proximity

current proximity ('unknown', 'immediate', 'near', or 'far')

Distance Info's

http://blog.sensoro.com/beacon-signal-performance-configuration-and-measure/

https://altbeacon.github.io/android-beacon-library/distance-calculations.html

http://blog.shinetech.com/2014/02/17/the-beacon-experiments-low-energy-bluetooth-devices-in-action/

Page 4: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

iBeacon / BLE device broadcast information

12/23/2015

4

Page 5: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Presence and Beacons

12/23/2015

5

App

App Server

x

Type

WIFI Grid Locationing Will provide actual (x,y) coordinate of phone Margin of error: 5-10 Meters + variables

WIFI Proximity Provides (x,y) coordinate of the SENSOR that detects you. Margin of error: 2-5 Meters + variables: Dependent on

proximity setting

Beacon/BLE Only provides beacon ID. Server maps that to beacon

location. Margin of error: 1-2 Meters depending on beacon used

and configuration

Small Cell Will provide actual (x,y) coordinate of phone Margin of error: 5-10 Meters + variables

Magnetic Resonance Require no specialized hardware & quite accurate Dependent on establishing a hard location & fingerprinting

of site

SLAM (simultaneous localization and mapping) No hardware required Leverages sensors on the device Used in conjunction w/other sensors

Page 6: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Beacon Gateway

12/23/2015

6

"minor": 10159, "rssi": -73, "major": 8221, "proximity": "ProximityNear", "accuracy": 0.73, "uuid": "B9407F30-F5F8-466E-AFF9-25556B57FE6D"“DeviceIP”

“Picture”….

Page 7: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Collect BLE device Data around you

12/23/2015

7

Ble Devices

& Beacon

Node-RED

DashboardBluemix & IoTF

MQTT

Node.js

Page 8: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Setup: Node.js -> IOTF -> NodeRED -> Dashboard

12/23/2015

8

Page 9: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Scenario’s

Collect data form all Bluetooth Devices and beacons around via node.js using a

Raspberry Pi or a notebook with Bluetooth Low Energy (BLE)

Send notification when Beacon is within a Range of the Raspberry Pi

(E.g. send sms when one is back from a run using fitbit for example)

Use Raspberry Pi by as a Beacon

Beacon Roaming between 2 gateways

12/23/2015

9

Page 10: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Use cases … Leaving my Keys or Coming back from a run

12/23/2015

10

Publish Data via MQTT to IoTF

Display Data

NR Sends Notification

Page 11: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Rssi > -60

12/23/2015

11

Page 12: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Scenario’s

Collect data form all Bluetooth Devices and beacons around you via node.js using

raspberry pi or a notebook with Bluetooth Low Energy (BLE)

Send notification when Beacon is within a Range of the Raspberry Pi

(E.g. send sms when one is back from a run using fitbit for example)

Use Raspberry Pi by as a Beacon

Roam between 2 gateways

12/23/2015

12

Page 13: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Use cases … You can use PI or your notebook / phone as a Beacon

12/23/2015

13

Publish Data via MQTT to IoTF

Display Data

NR Sends Notification

Page 14: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Scenario’s

Collect data form all Bluetooth Devices and beacons around via node.js using a

Raspberry Pi or a notebook with Bluetooth Low Energy (BLE)

Send notification when Beacon is within a Range of the Raspberry Pi

(E.g. send sms when one is back from a run using fitbit for example)

Use Raspberry Pi by as a Beacon

Beacon Roaming between 2 gateways

12/23/2015

14

Page 15: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Beacon Entering a new Zone

12/23/2015

15

Node-RED

MQTT

Node.js

Page 16: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Requirements

Raspberry PI with Wifi USB (network) and Bluethooth (Ble) usb

Install bluez Bluetooth for RasPi .. node.js ( bleno, noble, blecon ,phao )

Beacons or discoverable Bluetooth ble device like a fitbit or phone

Bluemix account and IoTF Setup with Device type and id.

12/23/2015

16

Page 17: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

Markus van KempenExecutive Architect & Venture CapitalistIBM Corporate Technical StrategyInnovating with People and Technology

email: mvk@ ca.ibm.comTwitter: @markusvankempenHashtag: #MVK

Page 18: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things

References IBM IoTF

https://internetofthings.ibmcloud.com/#/

Node.js Code

https://github.com/sandeepmistry/noble

https://github.com/sandeepmistry/bleno

RPi Bluetooth LE

http://www.elinux.org/RPi_Bluetooth_LE

Code-Mashup

https://github.com/markusvankempen/

Slides

http://www.slideshare.net/MarkusVanKempen

More blogs

https://markusvankempen.wordpress.com/

Mobile app like “Locate” to pickup or simulate beacons

12/23/2015

18

Page 19: iBeacons / Beacons and Presence use cases and examples (part 1)

IBM Internet of Things12/23/2015

19