ble+beacon: the hows and the whats
TRANSCRIPT
![Page 1: BLE+Beacon: the hows and the whats](https://reader030.vdocuments.net/reader030/viewer/2022032504/55c41f92bb61eb6e398b45a1/html5/thumbnails/1.jpg)
BLE + Beacon
![Page 2: BLE+Beacon: the hows and the whats](https://reader030.vdocuments.net/reader030/viewer/2022032504/55c41f92bb61eb6e398b45a1/html5/thumbnails/2.jpg)
How BLE communication works?
Peripheral Devices● act like servers
Central Devices● act like clients
Publish & Subscribe● Peripheral publish ● Central subscribe, by reading or
letting peripheral notify when changes happen
![Page 3: BLE+Beacon: the hows and the whats](https://reader030.vdocuments.net/reader030/viewer/2022032504/55c41f92bb61eb6e398b45a1/html5/thumbnails/3.jpg)
BLE: Advertise and Connect
Advertising is one way: peripheral -> centralPackets can be up to 47 bytes
advertising communication channels the access address is always 0x8E89BED6
![Page 4: BLE+Beacon: the hows and the whats](https://reader030.vdocuments.net/reader030/viewer/2022032504/55c41f92bb61eb6e398b45a1/html5/thumbnails/4.jpg)
BLE: Advertise and Connect
After peripheral is discovered, connection can be established
Central can then read or write to peripheral(GATT)
get temp/humidity readingstemp: xhumidity: y
set desired temptemp: x
![Page 5: BLE+Beacon: the hows and the whats](https://reader030.vdocuments.net/reader030/viewer/2022032504/55c41f92bb61eb6e398b45a1/html5/thumbnails/5.jpg)
Beacons only advertise
Transmit packets of data in regular intervals, that gets picked up by devices like smartphones
Data coming from an Estimote beacon:
You can capture such data with PacketLogger(Download in Xcode/more developer tools
![Page 6: BLE+Beacon: the hows and the whats](https://reader030.vdocuments.net/reader030/viewer/2022032504/55c41f92bb61eb6e398b45a1/html5/thumbnails/6.jpg)
iBeacon advertisement format is fixed by AppleData coming from an Estimote beacon:
beacons in a chain of stores: same UUID
beacons in one of the stores:same Major #
in one store, every beacon has a different Minor #
TX power is strength of signal used to estimate distance
![Page 7: BLE+Beacon: the hows and the whats](https://reader030.vdocuments.net/reader030/viewer/2022032504/55c41f92bb61eb6e398b45a1/html5/thumbnails/7.jpg)
Beacon? iBeacon??Every iBeacon is a Beacon.
iBeacon is built into iOS 7 that let devices constantly scan for nearby bluetooth devices.
When iBeacon identifies a beacon, it can wake up an app even if app is closed.
For this to work:● bluetooth need to be on● app using iBeacon needs
to be downloaded● need to accept location
services in the app
![Page 8: BLE+Beacon: the hows and the whats](https://reader030.vdocuments.net/reader030/viewer/2022032504/55c41f92bb61eb6e398b45a1/html5/thumbnails/8.jpg)
Working with iBeacon
Building apps that are responsive to iBeacon:Use Apple’s Core Location API
iBeacon scanning apps:iOS: iB LocatorAndroid: iBeacon Scanner
These can be turned into iBeaconiPhone 4S+, Android 5.0, Bluetooth 4 laptops, Raspberry Pi
![Page 10: BLE+Beacon: the hows and the whats](https://reader030.vdocuments.net/reader030/viewer/2022032504/55c41f92bb61eb6e398b45a1/html5/thumbnails/10.jpg)
Beacon uses outside of marketing
Beacons in SpaceWayfindr