Utilizzo dei beacon con windows 10

24
Dan Ardelean Mahiz [email protected] Twitter: @danardelean Utilizzo dei Beacon con Windows 10

Transcript of Utilizzo dei beacon con windows 10

Page 1: Utilizzo dei beacon con windows 10

Dan Ardelean [email protected]: @danardelean

Utilizzo dei Beacon con Windows 10

Page 2: Utilizzo dei beacon con windows 10

Bluetooth

Page 3: Utilizzo dei beacon con windows 10

Bluetooth

Page 4: Utilizzo dei beacon con windows 10

Classic vs SmartTechnical Specification Classic Bluetooth technology Bluetooth Smart technology

Distance/Range (theoretical max.) 100 m (330 ft) >100 m (>330 ft)

Over the air data rate 1–3 Mbit/s 1 Mbit/sApplication throughput 0.7–2.1 Mbit/s 0.27 Mbit/s

Active slaves 7 Not defined; implementation dependent

Security 56/128-bit and application layer user defined

128-bit AES with Counter Mode CBC-MAC and

application layer user defined

Robustness Adaptive fast frequency hopping, FEC, fast ACK

Adaptive frequency hopping, Lazy Acknowledgement, 24-bit CRC, 32-

bit Message Integrity Check

Latency (from a non-connected state) Typically 100 ms 6 ms

Total time to send data (det.battery life) 100 ms 3 ms

Page 5: Utilizzo dei beacon con windows 10
Page 6: Utilizzo dei beacon con windows 10
Page 7: Utilizzo dei beacon con windows 10

BLE Connection Procedure

Page 8: Utilizzo dei beacon con windows 10

Demo Packet Sniffer

Page 9: Utilizzo dei beacon con windows 10

Advertising Package

https://www.bluetooth.org/en-us/specification/assigned-numbers/generic-access-profile

Page 10: Utilizzo dei beacon con windows 10

What is a Beacon Beacons are small devices that emit signals using Bluetooth Low Energy (BLE) aka Bluetooth 4.0.

Made by many companies and come in various shapes, sizes and prices.

Range: Up to 70 m | Battery life: Up to 3 years.

Beacons can be stuck on walls without any wiring.

Page 11: Utilizzo dei beacon con windows 10

Makers

Page 12: Utilizzo dei beacon con windows 10

• Apple iBeacon – released in June 2013

• Google Eddystone – released in July 2015

Beacon Standards

Page 13: Utilizzo dei beacon con windows 10

iBeacon vs EddyStone

• Android and iOS compatible, native only for iOS

• Broadcasts one advertising packet and a unique ID

• Proprietary• To receive messages, mobile app is

mandatory.

• Android and iOS compatible, expected to be native part of Android M

• Broadcasts three different advertising packets

• Open Source• To receive messages, mobile app is

optional.

Page 14: Utilizzo dei beacon con windows 10

iBeacon

Page 15: Utilizzo dei beacon con windows 10

iBeacon

Page 16: Utilizzo dei beacon con windows 10

• UUID – identifies the family

• Major – identifies a group [1 – 65 535 ]

• Minor –identifies beacon in the group [1 - 65 535]

iBeacon

Page 17: Utilizzo dei beacon con windows 10

• Eddystone-UID: 16 bytes long and split into two parts: 10 bytes for the namespace and 6 bytes for the instance

• Eddystone-URL: Compressed 17 byte URL instead of a numeric identifiero an app detecting the beacon can go directly to this URL

• Eddystone-TLM: Eddystone-TLM, as in ‘telemetry’. This packet contains beacon’s ‘health status’ (e.g., battery life).o mainly intended for fleet management o broadcast less frequently than ‘data’ packets

EddyStone

Page 18: Utilizzo dei beacon con windows 10

EddyStone https://github.com/google/eddystone

Page 19: Utilizzo dei beacon con windows 10

iBeacon vs EddySGoogle Eddystone Apple iBeacon

- Open source, available on GitHub - Proprietary software. under the Apache v2.0 license.

- Cross-platform software - Native only to iOS devices and beacons meeting iBeacon framework.

- Can send messages to all smartphones - Can send messages to all smartphones meeting the BLE (Bluetooth 4.0) standard. meeting the BLE (Bluetooth 4.0) standard.

- Sends messages/data via UUID, URLs and Telemetry. - Sends messages only through UUID.

- To receive messages, mobile app is optional. - To receive messages, mobile app is mandatory.

- Ephemeral Identifiers (EIDs) change frequently which - No EIDs only authorized clients can decode.

Page 20: Utilizzo dei beacon con windows 10

Windows 10

Page 21: Utilizzo dei beacon con windows 10

Universal Bluetooth Drivers and APIs

Windows Phone 7.5

Windows Phone 8Windows Phone 8.1

Windows on Devices – IoT to Surface Hub

Windows 8.1

Windows 10Converged radio driver

Partial Bluetooth API convergence

Complete Convergence

Windows 8

Page 22: Utilizzo dei beacon con windows 10

Windows.Devices.Bluetooth.AdvertisementSimple but powerful advertising functionality. Watcher – receive advertisements. Publisher – limited broadcast functionality.

Windows.Devices.Bluetooth.BackgroundFully converged. Trigger details classes.

Windows.ApplicationModel.BackgroundPower efficient watcher. Requires Hardware Offload.

APIs in Windows 10

Page 23: Utilizzo dei beacon con windows 10

Demo