從App developer角度來介紹BLE
Upcoming SlideShare
Loading in...5
×
 

從App developer角度來介紹BLE

on

  • 569 views

在物聯網跟穿戴式裝置正夯的時代,身為App Developer不能不了解的BLE

在物聯網跟穿戴式裝置正夯的時代,身為App Developer不能不了解的BLE

Statistics

Views

Total Views
569
Views on SlideShare
422
Embed Views
147

Actions

Likes
6
Downloads
8
Comments
0

9 Embeds 147

http://joe-dev.blogspot.tw 80
http://cam11505blog.blogspot.tw 39
https://www.blogger.com 12
https://joe-dev.blogspot.com 5
http://feedly.com 4
http://cam11505blog.blogspot.com 4
http://cam11505blog.blogspot.jp 1
http://www.slideee.com 1
http://joe-dev.blogspot.hk 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

從App developer角度來介紹BLE 從App developer角度來介紹BLE Presentation Transcript

  • 在穿戴式裝置與物聯網正夯的時代 身為App Developer你不能不了解的BLE Sam Lee (misgod.tw@gmail.com)
  • lInternet
  • lBLE (Bluetooth Low Energy) lBluetooth Smart lBluetooth 4.0 (June 2010) lBluetooth 4.1 (Dec 2013) l低成本 (?) l範圍: ~ 100m l省電: 鈕扣電池可以撐1年以上 l速度: 理論上限(1Mbit/s), App (270Kbit/s)
  • Overview lBroadcast & connection lShort packets lClient/Server 架構 lEverything has STATE l非同步傳送資料
  • Device Classic Bluetooth BLE support Pre-4.0 Bluetooth Yes No 4.x Single-Mode No Yes 4.x Dual-Mode Yes Yes
  • 廣播
  • 連線
  • 如何省電
  • Protocol ?? Profile ?? lGATT Based Profiles
  • l2.4G Hz l40 channels l3 advertising channel lFixed rate: 1 Mbit/s l高斯頻移鍵控(GFSK) lFrequency Hopping (AFH)
  • lBluetooth Device Address l48-bit (Public/Random) l4 roles lAdvertiser & Scanner lMaster & Slave l1 format 2 types packets lAdvertising & Data lConnection (7.5ms~4s) l 27bytes, but ~20 bytes lAdvertising (20ms ~ 10.24s) l31 bytes data payload lActive/Passive scanning
  • l搭起友誼的橋樑
  • l協定多工器 l封包重組與分配 lData payload: 23 bytes lSimilar to TCP
  • lInitiator → Responder lCentral → Peripheral (GAP) lSecurity Procedures lPairing lBonding lEncryption Re-establishment lPairing Algorithms lJust Works lPasskey Display lOut Of Band
  • lClient->Server lRequest → Response lStrict Sequencing lServer Initiated lIndication/Confirmation lNotfiication l Handle lType l(UUID) lAttribute Value l Permissio ns l2B 2/4/16B l0~512B
  • lControl layer lRoles lBroascaster & Observer lCentral & Peripheral lGAP Service(GATT) lDevice name lApprearance lPPCP
  • lData Layer lRoles lClient & Server lBluetoothBaseUUID lxxxxxxxx-0000-1000-8000- 00805F9B34FB lShortened UUID(16 or 32 bit)
  • lFirst Release lJellyBean MR 4.3 (API 18) lPeripheral Mode lAndroid L (Coming Soon)
  • http://developer.android.com/guide/topics/connectivity/bluetooth-
  • 搭配: TI SensorTag CC2541 l 兩顆按鈕 l 陀螺儀 l 加速計 l 溫濕感測 l 氣壓計 l 磁力計 l IR溫度感測器
  • Coding Steps 1. Use BLE Permissions 2. Setup BLE 3. Scan LE device 4. Connect to GATT Server 5. Discovery Services 6. Read Data l Read Characteristic(Attrubutes) l Receiving notification
  • 簡易型簡報器
  • 實際的應用案例
  • http://shopping.pchome.com.tw/prod/CBAFJ0-
  • http://24h.pchome.com.tw/prod/DGBT4W-
  • Oral-B
  • August Smart Lock http://www.august.com/
  • iBeacon
  • Zuli https://www.kickstarter.com/projects/zuli/zuli-smartplugs
  • https://www.youtube.com/watch?v=g8h_i8qv1FY
  • Mimo Kimono http://mimobaby.com/