More Related Content
PDF
PDF
BONXを支える技術:Bluetooth編 ~Bluetoothを120%使い倒す方法~ PDF
やはりお前らのAndroidのBLEが不安定だという認識は間違っている PDF
PPTX
Bluetoothデュアルモジュールを使ってみた話 @IoTLT vol.50 PDF
Bluetoothl-Low-Energy入門講座-part1 PDF
PDF
Featured
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing PDF
Storytelling For The Web: Integrate Storytelling in your Design Process PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis... PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR... PDF
2024 State of Marketing Report – by Hubspot PDF
Everything You Need To Know About ChatGPT PDF
Product Design Trends in 2024 | Teenage Engineerings PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf PDF
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024 PDF
Content Methodology: A Best Practices Report (Webinar) PPTX
How to Prepare For a Successful Job Search for 2024 PDF
Social Media Marketing Trends 2024 // The Global Indie Insights PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024 PDF
5 Public speaking tips from TED - Visualized summary PDF
ChatGPT and the Future of Work - Clark Boyd PDF
Getting into the tech field. what next PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent PDF
How to have difficult conversations Androidとi beacon(ble)
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
アプセサリーをめぐる環境
• Bluetooth 4.0(BLE)
→Apple iPhone4S以降で採用 (Androidは4.3から)
*NFCはAndroid系のみ
• 通信チップの低価格化
• スマートフォン、タブレットの浸透
• ハードウェアのオープンソース化 → Makersの流行
Startup系クラウドファンディング→ 資金集め、制作バックアップ
個人やベンチャー系企業がアプセサリーを作る時代
Webサービスのベンチャーがサービスの一環で作成
- 7.
Bluetooth Low Energy(BLE)
シングルモード(BluetoothClassicとの互換性無し)
低消費電力(ボタン電池で駆動)
高速接続(3チャンネルでアドバタイジング 6ms)
データは37チャンネルで送信(周波数ホッピング)
小型化(1チップの無線モジュール+センサ)
少ないデータを低速で
低速(305kbps) 短いパケット47オクテット(データ部 37オクテット)
・ 新規格Bluetooth4.1への移行も簡単(ファーム書換のみ 技適は?)
•
•
•
•
•
•
Profile
Service
Service
Characteristic
Characteristic
Characteristic
Characteristic
Application
Profile
GAP
GATT
ATT
SM
L2CAP
技適領域
- 8.
BLEプロファイル
•
•
•
•
•
•
•
•
•
•
•
•
•
•
アラート通知 (Alert Notification)。
血圧計(Blood Pressure)。
自転車のパワーメータ (Cycling Power)。
自転車の速度とペダル回転数 (Cycling Speed and Cadence)。
デバイスの発見 (Find Me)
血糖値 (Glucose)
体温計 (Health Thermometer)
心拍 (Heart Rate)
入力装置 (HID OVER GATT)
位置と経路誘導 (Location and Navigation)
電話の警告(Phone Alert Status)
近接 (Proximity)
ランナーの速度とペース (Running Speed and Cadence)
時刻 (Time)
Bluetooth SIGに申請すれば採用される → 早いもの勝ち!
- 9.
- 10.
BLEの仕組み
• セントラル -ペリフェラル
Central
Peripheral
Advertise
Connect
Connected
Data Transfer
AdvertiseでService UUID通知
• 低速(305kbps) 短いパケット47オクテット(データ部 37オクテット)
• アドバタイザパケット(チャンネル37,38,39) MFi不要(iPhone)
• プロトコルサービス(プロファイル) Bluetooth SIGに企業が提出→承認
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
AndroidとBLE
4.3から対応 KitKat(4.4) (それまでメーカーが独自で実装)
対応機種Nexus7(2013)、Nexsus4、Nexus5(2013/11現在)
→今後の機種で増えていくと予想されます
Centralのみ(発信できない為Android端末間通信は出来ない)
API仕様
http://developer.android.com/guide/topics/connectivity/bluetooth-le.html
サンプルプログラム(SDKのダウンロードで取得)
¥samples¥android-18¥legacy¥BluetoothLeGatt)
- 18.
- 19.
iBeaconデータ判定
iBeacon アドバタイズメント・パケット(コールバックの戻り値より判定)
02 011A フラグ
1A FF
AD Type
ここまでは固定
4C 00
会社ID(Apple)
02 15
??
ID
UUID(16バイト) Major(4バイト) Minor(4バイト)
RSSI
電波強度(dB)
*Estimoteの場合UUID= B9407F30-F5F8-466E-AFF9-25556B57FE6D
距離の近似計算(ほんとうにざっくりとした…)
1m離れたときの電波強度-59dB(基準----本当はキャリブレーション必要)
10m離れると-20dB減衰
距離 = 1 - (RSSI+59)*10/20
- 20.
- 21.
- 22.
- 23.