Beacons and Presence use cases and examples (part 1)
Markus van Kempen – [email protected]
@markusvankempen
The Internet of Things
12/23/2015
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
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/
IBM Internet of Things
iBeacon / BLE device broadcast information
12/23/2015
4
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
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”….
IBM Internet of Things
Collect BLE device Data around you
12/23/2015
7
Ble Devices
& Beacon
Node-RED
DashboardBluemix & IoTF
MQTT
Node.js
IBM Internet of Things
Setup: Node.js -> IOTF -> NodeRED -> Dashboard
12/23/2015
8
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
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
IBM Internet of Things
Rssi > -60
12/23/2015
11
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
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
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
IBM Internet of Things
Beacon Entering a new Zone
12/23/2015
15
Node-RED
MQTT
Node.js
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
IBM Internet of Things
Markus van KempenExecutive Architect & Venture CapitalistIBM Corporate Technical StrategyInnovating with People and Technology
email: mvk@ ca.ibm.comTwitter: @markusvankempenHashtag: #MVK
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
IBM Internet of Things12/23/2015
19