AndroidとiOSのBLEな事情 3

16,594 views
16,723 views

Published on

iOSとAndoridのBLEとPheripheraとかCentralとかiBeaconあたりの話をつめこみました。Android 5.0 LollipopでのPeripheralサポートされた話まで対応。

Published in: Technology, Business

AndroidとiOSのBLEな事情 3

  1. 1. AndroidとiOSのBLEな事情 3 2014/01/28 created 2014/03/23 2014/12/23 updated @youten_redo
  2. 2. Bluetooth Low Energy http://www.bluetooth.com/Pages/Bluetooth- Brand.aspx
  3. 3. Central and Peripheral PP P C
  4. 4. Scan P CC
  5. 5. Advertise P Ad Ad
  6. 6. P discovered! CC Ad Ad Ad
  7. 7. Connect P C
  8. 8. connected! P C
  9. 9. Service discover P C Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic
  10. 10. Profile Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic Profile Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic Profile
  11. 11. Find Me Profile (FMP) Profile Immediate Alert Service Alert Level Char. - Write without Response Proximity Profile (PXP) Immediate Alert Service Alert Level Char. - Write without Response Link Loss Service Alert Level Char. - Read/Write Tx Power Service Tx Power Level Char. - Read M M O O M M M M
  12. 12. UUID Profile Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic Profile Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic Service Characte ristic Characte ristic Characte ristic Characte ristic UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID UUID
  13. 13. Characteristic - Broadcast, Read, Write without Response, Write, Notify, Indicate, Signed Write, Reliable Write, Writable Auxiliaries P C Characte ristic Value Value
  14. 14. Read, Write, Notify P C P C Characte ristic P C Characte ristic Value Value Value Characte ristic
  15. 15. Write without Response, Indicate P C Characte ristic P C Value Value Characte ristic
  16. 16. Example Try
  17. 17. iOS 5 can be Central.
  18. 18. iPhone - StickNFind P C
  19. 19. StickNFind P LightBlue
  20. 20. Device Information Service P C Device Information Service Manufacturer Name Char. - Read Model Number Char. - Read Serial Number Char. - Read Hardware Revision Char. - Read Software Revision Char. - Read
  21. 21. Read - Manufacturer Name P C Device Information Service Manufacturer Name Char. - Read “StickNfind”
  22. 22. Immediate Alert Service P C Immediate Alert Service Alert Level Char. - Write without Response ※StickNFindは2014.04ごろのアップデー トによりIAS等を標準UUIDで公開せず、独 自UUIDでの動作となってしまいましたた め、現状は試行できません。
  23. 23. Write - Alert Level P C Immediate Alert Service Alert Level Char. - Write without Response 0x03 LED Flash and Beep!
  24. 24. Android 4.3 can be Central.
  25. 25. Android - StickNFind P C
  26. 26. Read - Manufacturer Name P C Device Information Service Manufacturer Name Char. - Read “StickNfind”
  27. 27. Write - Alert Level P C Immediate Alert Service Alert Level Char. - Write without Response 0x03 LED Flash and Beep! ※StickNFindは2014.04ごろのアップデー トによりIAS等を標準UUIDで公開せず、独 自UUIDでの動作となってしまいましたた め、現状は試行できません。
  28. 28. BLERW Characteristic Read/Write Example for Android https://github.com/ youten/BLERW for Android 4.3 or Later Recommend Nexus 5 with Android 4.4 KitKat
  29. 29. iOS 6 can be Peripheral.
  30. 30. Android - iPhone P C
  31. 31. ImmPeri Peripheral (as Immediate Alert Service Device) Example for iOS https://github.com/ youten/ImmPeri for iOS 7
  32. 32. iBeacon
  33. 33. A particular format Advertisement. P iBeacon Ad iBeacon Ad
  34. 34. Include UUID and 2 number. P iBeacon Ad iBeacon Ad fixed proximity UUID major minor Tx Power Unique 128-bit value like “6E15D0C4-01F3-4507-84F4-D4BC26C363E0” 16-bit unsigned int
  35. 35. Can detect on both iOS and Android. P iBeacon Ad CC CC iBeacon! iBeacon! iBeacon Ad
  36. 36. iBeacon Detector scan BLE device and detect iBeacon App. https://github.com/ youten/iBeaconDetector for Android 4.3 or later
  37. 37. Mavericks can be Central and Peripheral.
  38. 38. Mavericks is Strong! P iBeacon Ad CC CC iBeacon! iBeacon! iBeacon Ad
  39. 39. XBeacon OS X iBeacon App. running on Status Bar. https://github.com/ youten/XBeacon for Mavericks Mac being available BLE. But Yosemite can’t adv as iBeacon.
  40. 40. Android 5.0 Lollipop can be Peripheral.
  41. 41. Android - Android P C
  42. 42. But, Available only Nexus 6 and 9. https://code.google.com/p/android-developer-preview/ issues/detail?id=1570#c52 Status:WontFix "Due to hardware chipset dependency, older Nexus devices (4/5/7) will not have access to the feature on Lollipop.”
  43. 43. aBeacon (1) Peripheral that Advertise iBeacon compatible. (2) Find Me Profile Peripheral, include Device Information Service and Immediate Alert Service. https://github.com/youten/aBeacon For Android 5.0 Lollipop, I’ve tried with Nexus 9.

×