The document discusses using beacons and Bluetooth Low Energy (BLE) devices with a Raspberry Pi to collect nearby device data and send notifications. Specifically, it describes setting up a Raspberry Pi with BLE to detect beacons and other devices within range, sending notifications when a beacon is detected, using the Raspberry Pi as a beacon itself, and allowing beacons to roam between two gateways while still being detected.
Russian Call girls in Dubai +971563133746 Dubai Call girls
iBeacons / Beacons and Presence use cases and examples (part 1)
1. Beacons and Presence use cases and examples (part 1)
Markus van Kempen – mvk@ca.ibm.com
@markusvankempen
The Internet of Things
12/23/2015
1
2. 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
3. IBM Internet of Things
(i)Beacon broadcast information
https://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/
4. IBM Internet of Things
iBeacon / BLE device broadcast information
12/23/2015
4
5. 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
6. 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”….
7. IBM Internet of Things
Collect BLE device Data around you
12/23/2015
7
Ble Devices
& Beacon
Node-RED
DashboardBluemix & IoTF
MQTT
Node.js
8. IBM Internet of Things
Setup: Node.js -> IOTF -> NodeRED -> Dashboard
12/23/2015
8
9. 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
10. 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
12. 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
13. 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
14. 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
15. IBM Internet of Things
Beacon Entering a new Zone
12/23/2015
15
Node-RED
MQTT
Node.js
16. 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
17. IBM Internet of Things
Markus van Kempen
Executive Architect & Venture Capitalist
IBM Corporate Technical Strategy
Innovating with People and Technology
email: mvk@ ca.ibm.com
Twitter: @markusvankempen
Hashtag: #MVK
18. 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