SlideShare a Scribd company logo
1 of 17
Bluetooth LE
と
Beacon
の話
2016/04/24 でじぽろ #6
くまはちらぼ @kuma_hati
自己紹介
● プログラマ
● いわゆる組み込みの仕事を 16年
● ガラケーのポチポチゲームのサーバーサイドを2年
● ブラウザゲームのサーバーサイドを2年
● 現在 Android アプリ開発者を目指して自宅で修行中
自己紹介
Android でこんなアプリを作ってます
今日のお題
● Bluetooth LE とは?
● BLE 絡みの Beacon とは?
● Android と BLE Beacon
Bluetooth LE とは?
● Bluetooth 4.0 の呼称 (Bluetooth Low Energy)
● 3.0 までの仕様から独立していて、後方互換性はない
● 元々は Nokia の「Wibree」という仕様 (2006年に発表)
● 低消費電力が特徴
ボタン電池で年単位使える装置とか
● 意外と古い
4.0 = 2010年
  4.1 = 2013年
  4.2 = 2014年
Bluetooth LE とは?
● 名称について
 仕様 レベル
Bluetooth 4.0 = Bluetooth Low Energy = BLE
 実装レベル
  Bluetooth(Classic Bluetooth) →3.0 まで
  Bluetooth Smart → 4.0 だけ
  Bluetooth Smart Ready → 3.0 まで + 4.0
Bluetooth LE とは?
● 2.4GHz 帯を使用していて、Bluetooth 3.0 までのものとア
ンテナを共用できる
● 3.0 までと 4.0 の両方対応するチップセットもある
● 条件次第で 100mぐらい飛ぶ
– 規格上 0.01mW(-20dBm)-10mW(+10dBm)
– スマホでスペックとして記載されているのを見たことがない
– 現物で試さないとわからない ><
– Power Class というのは、Classic Bluetooth
Bluetooth LE とは?
● 規格はPDFで公開されている
– Bluetooth 全体で2302ページ・英文 ><
– BLE に関する部分は 138ページ
– 1Byte = 1octet に違和感がなければ結構いける
● 実質転送レートは 5k-50kbps??
– 物理層は 1Mbps だが、かなり遅い
http://qiita.com/shu223/items/352a84a60be75d656ae3
● コネクションがよく切れる
Bluetooth LE とは?
● 技適のほかに、Bluetooth SIG の認証が必要
– 技適は 30万円ぐらい??
– Bluetooth SIG は、諸々合わせて100万円以上?
 認証済みモジュールを使っても、最終製品に認証が必
要??
               https://www.bluetooth.org/en-us/test-qualification/qualification-overview
BLE 絡みの Beacon とは?
● そもそも Beacon とは?
– 原義は狼煙や篝火といった位置と情報を伴った伝達手
段のことであるが、21世紀初頭に於いては主に「無線
標識」を指す。(Wikipedia より)
● BLE 絡みの Beacon とは
– BLE には Advertise という、一定周期で信号を発信す
る機能があり、これに任意の情報を載せることをいう
● 用途はいろいろ
– ボタン型ビーコン   http://shopping-tribe.com/news/23259/
– シュキーンも?    https://www.shukiin.com/stamping-method/tootte/
BLE 絡みの Beacon とは?
● 何種類かある
– iBeacon
ご存じ、Apple の iBeacon、仕様は Close
– Eddystone
Google が提唱している規格。オープン
– AltBeacon
Radius Networks が提唱、オープン、詳細不明 ><
Android と BLE Becon
● ハードとソフト両方の対応が必要
● ソフト(OS)の対応
– Android 4.3 から BLE の Central に対応
● Beacon を受信できる
– Android 5.0 から BLE の Peripheral に対応
● Beacon の送信もできる
Android と BLE Becon
● ハードとソフト両方の対応が必要
● ソフト(OS)の対応
– Android 4.3 から BLE の Central に対応
● Beacon を受信できる
– Android 5.0 から BLE の Peripheral に対応
● Beacon の送信もできる
● 但し、OS が対応していてもハードが対応して
いるとは限らない
Android と BLE Becon
かなり地雷っぽい
Android と BLE Becon
かなり地雷っぽい(開発者個人の感想です)
Android と BLE Becon
● ハードウェアの対応状況
– やってみなくちゃわからない
● 手持ちの機種の BLE Beacon 対応状況
機種名 OS Ver. 受信 送信 発売時期
Yoga Tablet 8 4.4 × × 2013/10
CP-F03a 4.4 ○ × 2014/03
Nexus5 6.X ○ × 2013/11
SHL25 5.0 ○ × 2014/06
※ Yoga Tablet 8 Bluetooth 4.0 の PXP プロファイルにのみ
  対応、Beacon 受信はできない。
※ Nesux5 は Lollipop までは送信できたが、5.0 正式リリー
  スでは送信できなくなった (T T)
 古いバージョンにパッチを当てて、無理やり Beacon を
送出させて使っている
ご清聴ありがとうございました

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Bluetooth LE と Beacon の話

  • 2. 自己紹介 ● プログラマ ● いわゆる組み込みの仕事を 16年 ● ガラケーのポチポチゲームのサーバーサイドを2年 ● ブラウザゲームのサーバーサイドを2年 ● 現在 Android アプリ開発者を目指して自宅で修行中
  • 4. 今日のお題 ● Bluetooth LE とは? ● BLE 絡みの Beacon とは? ● Android と BLE Beacon
  • 5. Bluetooth LE とは? ● Bluetooth 4.0 の呼称 (Bluetooth Low Energy) ● 3.0 までの仕様から独立していて、後方互換性はない ● 元々は Nokia の「Wibree」という仕様 (2006年に発表) ● 低消費電力が特徴 ボタン電池で年単位使える装置とか ● 意外と古い 4.0 = 2010年   4.1 = 2013年   4.2 = 2014年
  • 6. Bluetooth LE とは? ● 名称について  仕様 レベル Bluetooth 4.0 = Bluetooth Low Energy = BLE  実装レベル   Bluetooth(Classic Bluetooth) →3.0 まで   Bluetooth Smart → 4.0 だけ   Bluetooth Smart Ready → 3.0 まで + 4.0
  • 7. Bluetooth LE とは? ● 2.4GHz 帯を使用していて、Bluetooth 3.0 までのものとア ンテナを共用できる ● 3.0 までと 4.0 の両方対応するチップセットもある ● 条件次第で 100mぐらい飛ぶ – 規格上 0.01mW(-20dBm)-10mW(+10dBm) – スマホでスペックとして記載されているのを見たことがない – 現物で試さないとわからない >< – Power Class というのは、Classic Bluetooth
  • 8. Bluetooth LE とは? ● 規格はPDFで公開されている – Bluetooth 全体で2302ページ・英文 >< – BLE に関する部分は 138ページ – 1Byte = 1octet に違和感がなければ結構いける ● 実質転送レートは 5k-50kbps?? – 物理層は 1Mbps だが、かなり遅い http://qiita.com/shu223/items/352a84a60be75d656ae3 ● コネクションがよく切れる
  • 9. Bluetooth LE とは? ● 技適のほかに、Bluetooth SIG の認証が必要 – 技適は 30万円ぐらい?? – Bluetooth SIG は、諸々合わせて100万円以上?  認証済みモジュールを使っても、最終製品に認証が必 要??                https://www.bluetooth.org/en-us/test-qualification/qualification-overview
  • 10. BLE 絡みの Beacon とは? ● そもそも Beacon とは? – 原義は狼煙や篝火といった位置と情報を伴った伝達手 段のことであるが、21世紀初頭に於いては主に「無線 標識」を指す。(Wikipedia より) ● BLE 絡みの Beacon とは – BLE には Advertise という、一定周期で信号を発信す る機能があり、これに任意の情報を載せることをいう ● 用途はいろいろ – ボタン型ビーコン   http://shopping-tribe.com/news/23259/ – シュキーンも?    https://www.shukiin.com/stamping-method/tootte/
  • 11. BLE 絡みの Beacon とは? ● 何種類かある – iBeacon ご存じ、Apple の iBeacon、仕様は Close – Eddystone Google が提唱している規格。オープン – AltBeacon Radius Networks が提唱、オープン、詳細不明 ><
  • 12. Android と BLE Becon ● ハードとソフト両方の対応が必要 ● ソフト(OS)の対応 – Android 4.3 から BLE の Central に対応 ● Beacon を受信できる – Android 5.0 から BLE の Peripheral に対応 ● Beacon の送信もできる
  • 13. Android と BLE Becon ● ハードとソフト両方の対応が必要 ● ソフト(OS)の対応 – Android 4.3 から BLE の Central に対応 ● Beacon を受信できる – Android 5.0 から BLE の Peripheral に対応 ● Beacon の送信もできる ● 但し、OS が対応していてもハードが対応して いるとは限らない
  • 14. Android と BLE Becon かなり地雷っぽい
  • 15. Android と BLE Becon かなり地雷っぽい(開発者個人の感想です)
  • 16. Android と BLE Becon ● ハードウェアの対応状況 – やってみなくちゃわからない ● 手持ちの機種の BLE Beacon 対応状況 機種名 OS Ver. 受信 送信 発売時期 Yoga Tablet 8 4.4 × × 2013/10 CP-F03a 4.4 ○ × 2014/03 Nexus5 6.X ○ × 2013/11 SHL25 5.0 ○ × 2014/06 ※ Yoga Tablet 8 Bluetooth 4.0 の PXP プロファイルにのみ   対応、Beacon 受信はできない。 ※ Nesux5 は Lollipop までは送信できたが、5.0 正式リリー   スでは送信できなくなった (T T)  古いバージョンにパッチを当てて、無理やり Beacon を 送出させて使っている