8. iBeacons e le novità di BLE
Bluetooth 4.0
•
•
•
•
Cos’è?!
Il solito bluetooth? NO!
Chi lo usa?!
Come lo uso nella mia app?
9. Bluetooth 4.0: cos’è?
❖
BLE: Blueooth Low Energy!
❖
Standard dal 2010!
❖
Chip diverso dal 3.0-!
❖
Dual Chip Device
10. Bluetooth 4.0: Le novità
❖
Completamente differente!!
❖
Niente abbinamenti, PIN etc.!
❖
Advertising continuo!
❖
❖
Low Power!
0.01-0.5 (BLE) vs 1 (classic)!
Peak di <15 mA vs <30mA di classic
11. Bluetooth 4.0: Le novità
❖
Range: 50m vs 100m!
❖
Throughput: 0.27 Mbit/s vs 2.1 Mbit/s!
❖
Latency: 6ms vs 100ms
12. Bluetooth 4.0: Le novità
❖
Niente auricolari Bluetooth 4.0!
❖
Niente scambio foto à la Symbian!
❖
Niente cuffie BLE!
❖
quindi? che ci faccio?
13. Bluetooth 4.0: Chi lo usa?
❖
Orologi!
❖
Sport e fitness devices!
❖
Healtcare devices!
❖
Security devices!
❖
Proxymity!
❖
Automation!
❖
…
14. Bluetooth 4.0: Profili disponibili
❖
GATT Profiles:!
❖
http://is.gd/blegatt!
❖
Rivolto a developer!
❖
Rivolto a hardware makers
15. Bluetooth 4.0 in iOS
❖
CoreBluetooth.framework!
❖
Disponibile su iOS e Mac OS!
❖
CBPeripheral (ogni BLE device)!
❖
CBCentralManager (iOS BLE)
16. Bluetooth 4.0 in iOS
❖
init CBCentralManage!
❖
ricercare e connettersi con i BLE device che trasmettono!
❖
esplorare le info del device BLE (CBPeripheral)!
❖
Ricevere e inviare richieste con data!
❖
Registrare notifiche per cambio valori
24. iBeacons e le novità di BLE
iBeacons
•
•
•
•
•
Cos’è?!
Come funziona?!
Come si costruisce?!
Quanto costa?!
Come lo uso nella mia app?
25. iBeacons
iBeacon, a new class of low-powered, low-cost
transmitters that can notify nearby iOS 7 devices of
their presence, provides apps a whole new level of
location awareness, such as trail markers in a park,
exhibits in a museum, or product displays in stores.
32. iBeacons: Quanto costa?
low-cost transmitters
Nome
Estimote
Costo
Tempi
99$ x 3 (33$ each) Late December
Affdabilità
*****
BLE Mini
30£ each
Weeks
****
Alibaba seller
10$-20$
Days/Week
***
39. iBeacons on Raspberry PI
❖
Compra un Raspberry PI. ORA!!
❖
Compra un adattatore BLE. 10€ on Amazon!
❖
Collegali ed esegui i comandi delle prossime slide..
40. iBeacons on Raspberry PI
apt-get update!
apt-get install libglib2.0-dev libdbus-1-dev libudev-dev libical-dev libreadline6-dev!
wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.9.tar.xz!
tar xvJf bluez-5.9.tar.xz!
cd bluez-5.9!
./configure --disable-systemd --enable-library!
make!
make install
hciconfig
hciconfig hci0 up!
hciconfig
41. iBeacons on Raspberry PI
git clone https://github.com/carsonmcdonald/bluez-ibeacon.git!
cd bluez-ibeacon/bluez-beacon/!
make
./ibeacon 200 e2c56db5dffb48d2b060d0f5a71096e0 1 1 -59
43. Di cosa abbiamo parlato?
❖
Bluetooth 4.0
cos’è, come funziona, come si implementa!
❖
iBeacons
cos’è, come funzionano, come si implementa!
❖
Raspberry PI
come diventa un iBeacon