Utilizzo dei beacon con windows 10
-
Upload
dan-ardelean -
Category
Technology
-
view
488 -
download
1
Transcript of Utilizzo dei beacon con windows 10
Dan Ardelean [email protected]: @danardelean
Utilizzo dei Beacon con Windows 10
Bluetooth
Bluetooth
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
BLE Connection Procedure
Demo Packet Sniffer
Advertising Package
https://www.bluetooth.org/en-us/specification/assigned-numbers/generic-access-profile
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.
Makers
• Apple iBeacon – released in June 2013
• Google Eddystone – released in July 2015
Beacon Standards
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.
iBeacon
iBeacon
• UUID – identifies the family
• Major – identifies a group [1 – 65 535 ]
• Minor –identifies beacon in the group [1 - 65 535]
iBeacon
• 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
EddyStone https://github.com/google/eddystone
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.
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
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
Demo
• Sample on Github – Bluetooth Advertisement
• MSDN - Docs• Azure Mobile Services - Docs
Additional Resources