Upload
rikitake-oohashi
View
40.160
Download
3
Embed Size (px)
Citation preview
Copyright ©Classmethod.inc All Right Reserved. 1
Date
http://classmethod.jp/
Title
Sub
Author
iBeacon の基本のキiBeacon でできること - Developers.IO Meetup 02
おおはし りきたけ
2013/12/12
Copyright ©Classmethod.inc All Right Reserved. 2
自己紹介
氏名:大橋力丈 ( おおはしりきたけ )
所属:クラスメソッド株式会社 iPhone アプリサービス事業部
仕事:営業、管理
Copyright ©Classmethod.inc All Right Reserved. 3
はじめに
9 月 18 日に Apple から iOS 7 が発表され、iBeacon が話題になっています。
本勉強会では、 iBeacon って実際なんなの?という方を対象者にしています。
Copyright ©Classmethod.inc All Right Reserved. 4
アジェンダ
・ iBeacon とは ・ iBeacon を利用したサービス ・ MLB の iBeacon サービス事例 ・よくある質問 ・ iBeacon でよく使われる用語 ・ Beacon 端末 ・まとめ
Copyright ©Classmethod.inc All Right Reserved. 5
iBeacon とは
Copyright ©Classmethod.inc All Right Reserved. 6
iBeacon とは?
読み方は「あいびーこん」
Copyright ©Classmethod.inc All Right Reserved. 7
iBeacon とは?
Apple が提供している技術商標は Apple
Copyright ©Classmethod.inc All Right Reserved. 8
iBeacon とは?
location and proximity detection technology
直訳すると位置と近接検出技術
Copyright ©Classmethod.inc All Right Reserved. 9
iBeacon とは?
Bluetooth Low Energy を利用
Copyright ©Classmethod.inc All Right Reserved. 10
iBeacon とは?
Bluetooth 「オン」が必須
Copyright ©Classmethod.inc All Right Reserved. 11
iBeacon とは?
CoreLocation.framework を利用
Copyright ©Classmethod.inc All Right Reserved. 12
iBeacon とは?
iOS 7 から利用可能
Copyright ©Classmethod.inc All Right Reserved. 13
種類 端末 iOS 7 BLE
iPhone
iPhone 3GS × ×iPhone 4 ○ ×iPhone 4s ○ ○iPhone 5 ○ ○iPhone 5c ○ ○iPhone 5s ○ ○
iPad
iPad ( 第 1 世代 ) × ×iPad 2 ○ ×iPad ( 第 3 世代 ) ○ ○iPad ( 第 4 世代 ) ○ ○iPad Air ○ ○iPad mini( 第 1 世代 ) ○ ○iPad mini( 第 2 世代 ) ○ ○
iPod touch第 3 世代 × ×第 4 世代 × ×第 5 世代 ○ ○
iOS 7 利用可能端末一覧
Copyright ©Classmethod.inc All Right Reserved. 14
iBeacon とは?
・読み方は「あいびーこん」
・ Apple が提供している技術なので、商標は Apple
・ iBeacon の説明は、「 location and proximity detection technology 」で直訳すると位置と近接検出技術
・ Bluetooth Low Energy を利用
・ CoreLocation.framework を利用
・ iOS 7 から利用可能
Copyright ©Classmethod.inc All Right Reserved. 15
簡潔にまとめると・・・
BLE を利用したApple の
距離と領域観測のサービス
Copyright ©Classmethod.inc All Right Reserved. 16
iBeacon を利用したサービス
Copyright ©Classmethod.inc All Right Reserved. 17
iBeacon を利用したサービス
・ AppleStore
・ Macy’s(shopkick)
・スマポ
・ MLB
Copyright ©Classmethod.inc All Right Reserved. 18
AppleStore
概要 iPhone のテーブルに近づくと、端末の画面に新 iPhone の紹介 や、下取りサービス情報が表示される。
対応アプリ 「 AppleStore 」
対応場所 米国の AppleStore(254 店舗 )
Copyright ©Classmethod.inc All Right Reserved. 19
Macy’s(shopkick)
概要 Macy’s はニューヨークに本部がある百貨店。入店検知をして クーポンの取得、オススメ商品情報などを提供
対応アプリ 「 shopkick 」
対応場所 Macy’s
イメージ動画 http://www.youtube.com/watch?v=c3h0eKGfUfI#t=22
Copyright ©Classmethod.inc All Right Reserved. 20
スマポ
概要 特定の店舗に近づくと来店ポイントがたまる。
対応アプリ 「スマポ」 https://itunes.apple.com/jp/app/sumapo-lai-dianpointodeo-de!/id463189824?mt=8
対応場所 ビックカメラ有楽町店
Copyright ©Classmethod.inc All Right Reserved. 21
MLB の iBeacon サービス事例
Copyright ©Classmethod.inc All Right Reserved. 22
MLB
・ 2013 年 2 月から Apple と協力し進めていた
・ MLB.com で試験的に導入
・ 2014 年中に実用化を目指している
・テストしているのは主に情報の配信 ・入場用のバーコード ・ポイント ・クーポン
・将来的にモバイル決済なども実現すると考えている 可能性がある byMLB 関係者
Copyright ©Classmethod.inc All Right Reserved. 23
MLB
・スタジアムに近づくと、スタジアムでの今日の対戦などの 情報をポップアップで教えてくれる。
対戦情報を教えてくれる
Copyright ©Classmethod.inc All Right Reserved. 24
MLB
・スタジアムのゲートに来ると、入場用のバーコードをディスプ レイに表示してくれて、さらに座席の場所まで教えてくれる。
座席の場所を教えてくれる
Copyright ©Classmethod.inc All Right Reserved. 25
MLB
・スタジアム内のお店のそばに来たら、クーポンがプッシュ送信 される。
クーポンが送信される
Copyright ©Classmethod.inc All Right Reserved. 26
MLB
・スタジアムに近づくと、スタジアムでの今日の対戦などの 情報をポップアップで教えてくれる。
・スタジアムのゲートに来ると、入場用のバーコードをディス プレイに表示してくれて、さらに座席の場所まで教えてくれる。
・スタジアム内のお店のそばに来たら、クーポンがプッシュ 送信される。
Copyright ©Classmethod.inc All Right Reserved. 27
iBeacon って何でしたっけ?
BLE を利用したApple の
距離と領域観測のサービス
Copyright ©Classmethod.inc All Right Reserved. 28
MLB
・スタジアムに近づくと、 Beacon から発信されている BLE の 電波をキャッチして、スタジアムでの今日の対戦などの情報を ポップアップで教えてくれる。 ・スタジアムのゲートに来ると、 Beacon から発信されているBLE の電波をキャッチして、入場用のバーコードをディスプレイに 表示してくれて、さらに座席の場所まで教えてくれる。
・スタジアム内のお店のそばに来たら、 Beacon から発信されて いる BLE の電波をキャッチして、クーポンがプッシュ送信され る。
iBeacon の領域は赤文字黒太字はアプリの領域
Copyright ©Classmethod.inc All Right Reserved. 29
よくある質問
Copyright ©Classmethod.inc All Right Reserved. 30
よくある質問
QiBeacon って?
・ O2O のパッケージソリューション?
・クーポン配布サービス?
・自動決済サービス?
Copyright ©Classmethod.inc All Right Reserved. 31
よくある質問
AiBeacon とは
BLE を利用した Apple の距離と領域観測のサービス。
O2O は関係ない。クーポン配布、決済 などはアプリ側で対応する必要がある。
Copyright ©Classmethod.inc All Right Reserved. 32
iBeacon でよく使われる用語
Copyright ©Classmethod.inc All Right Reserved. 33
iBeacon でよく使われる用語
・ Beacon
・ BluetoothLowEnergy
・ Advertise (アドバタイズ)
・リージョン監視
・ Ranging (レンジング)
Copyright ©Classmethod.inc All Right Reserved. 34
Beacon とは?
標識、灯台、のろし、かがり火、無線標識、航空標識などの意味を持つ英単語。
一般的には、光や電波などを発する固定された装置などのことで、その光を見た人や信号を受信した電子機
器などが現在地を知るのに使われる。e-Words参照 : http://e-words.jp/w/E38393E383BCE382B3E383B3.html
Copyright ©Classmethod.inc All Right Reserved. 35
BluetoothLowEnergy とは?
・低消費電力版 Bluetooth で以下のように表記される ・ BluetoothLE ・ BLE
・ 2.4GHz(2.400-2.4835) を利用
・ボタン電池 1つで数年稼働が可能
・最大 1Mbps の通信が可能
・データパケットサイズが 8-27 オクテットと非常に小さい
・チャネルは 3 チャンネル
Copyright ©Classmethod.inc All Right Reserved. 36
Advertise( アドバタイズ )
iBeacon では、 Beacon は個々の Beacon を識別するための情報をアドバタイズする。
○proximity UUID128 bit の UUID で表現される識別子。組織単位の識別子として用いられることを想定。Beacon がアドバタイズするデータには、必ずこの値が含まれている必要がある。
○major16 bit unsigned interger の値。同一 proximity UUID を持つ Beacon の識別子として利用。例えば、ショッピングモールなどの単位で同一の値を割り当てて、グルーピングするといったような用途が想定される。 Beacon がアドバタイズするデータに、この値を含めるかどうかは任意。
○minor16 bit unsigned interger の値。同一 proximity UUID および major を持つ Beacon の識別子として利用。例えば、ショッピングモールの各店舗などの単位で値を割り当てて、店舗を識別するといったような用途が想定されています。 Beacon がアドバタイズするデータに、この値を含めるかどうかは任意。
アドバタイズ:ある機器が別の機器に管理情報などを伝達すること
Copyright ©Classmethod.inc All Right Reserved. 37
アドバタイズする情報
IDs 型 必須 /任意 設定単位
proximity UUID※1
128-bit UUID 必須 企業
major uint16 任意 建物
minor uint16 任意 フロア、店舗
※1UUID ( Universally Unique Identifier )とは、 Distributed Computing Environment (DCE) の一部として Open Software Foundation (OSF) が標準化した、ソフトウェアを一意に識別するための識別子である。 UUID は、分散システム上でどこかが統制を取らずとも、一意に特定可能な識別子の作成を目的としており、 UUID は重複や偶然の一致が起こりえないと確信して用いることができる。
UUID は 16 進数の数値で表され、「 550e8400-e29b-41d4-a716-446655440000 」のように表現する。
Wikipedia参照: http://ja.wikipedia.org/wiki/UUID
Copyright ©Classmethod.inc All Right Reserved. 38
リージョン監視
・ Beacon 領域の入出をチェック ( 領域観測 ) ・リージョン= UUID
・ 1つのアプリで 20個のリージョンの登録が可能 ※ 21個目からはエラーが通知される
・「出る」イベントは 20秒 (公式ドキュメント )後に通知 ⇒実測値だと 30秒以上かかる
Copyright ©Classmethod.inc All Right Reserved. 39
リージョン監視イメージ図
Beacon
Copyright ©Classmethod.inc All Right Reserved. 40
リージョン監視イメージ図
Beacon
Copyright ©Classmethod.inc All Right Reserved. 41
リージョン監視イメージ図
Beacon
( ゚ д ゚ )ハッ !
Copyright ©Classmethod.inc All Right Reserved. 42
リージョン監視イメージ図
Beacon
( ゚ д ゚ )ハッ !
コレ
Copyright ©Classmethod.inc All Right Reserved. 43
リージョン監視イメージ図
Beacon
Copyright ©Classmethod.inc All Right Reserved. 44
リージョン監視イメージ図
Beacon
Copyright ©Classmethod.inc All Right Reserved. 45
リージョン監視イメージ図
Beacon30秒後…
Copyright ©Classmethod.inc All Right Reserved. 46
リージョン監視イメージ図
Beacon
( ゚ д ゚ )ハッ !
Copyright ©Classmethod.inc All Right Reserved. 47
リージョン監視イメージ図
Beacon
( ゚ д ゚ )ハッ !
コレ
Copyright ©Classmethod.inc All Right Reserved. 48
Ranging (レンジング)
エリア内の Beacon の情報を取得 ( 距離推定 )
○proximity UUIDBeacon の proximity UUID を格納するプロパティ。
○majorBeacon の major を格納するプロパティ。
○minorBeacon の minor を格納するプロパティ。
○proximityBeacon の相対距離の情報を格納するプロパティ。このプロパティは CLProximity 列挙型の値。
■Beacon 情報
■Beacon 距離
○accuracyBeacon のメーター (m) で測られた距離情報を格納するプロパティ。
○rssiBeacon の電波強度を格納するプロパティ
Copyright ©Classmethod.inc All Right Reserved. 49
proximity
相対距離 意味 距離※1
CLProximityImmediate 至近距離 約 0.5cm
CLProximityNear 近距離 約 3m
CLProximityFar 遠距離 約 15m
CLProximityUnknown 不明 -
※1 Beacon は iPodTouch をデフォルトで利用した弊社内で試した参考値になります。
電波強度や建物によって変わります。
Copyright ©Classmethod.inc All Right Reserved. 50
proximity は相対的に変わる
強 ★Immediate
中
弱
★Near
★Far
★Unknown
Copyright ©Classmethod.inc All Right Reserved. 51
proximity は相対的に変わる
20m 10m
Far
Near
Immediate
Copyright ©Classmethod.inc All Right Reserved. 52
Beacon 端末
Copyright ©Classmethod.inc All Right Reserved. 53
Beacon 端末
「 iBeacon 」を利用するのに必要な BLE の Beacon 端末
・ estimote
・ shopBeacon
・ BM1
・その他
・番外編: PaypalBeacon
Copyright ©Classmethod.inc All Right Reserved. 54
estimote
メーカー: Estimote, Inc
URL : http://estimote.com/
大きさ(だいたい) ・縦: 5.5cm ・横: 3.5cm ・高: 2cm
値段 3個で 99$
電池寿命 2 年
Copyright ©Classmethod.inc All Right Reserved. 55
shopbeacon
メーカー: shopkick, Inc
URL : http://www.shopkick.com/
大きさ(だいたい) ・石鹸くらい
値段 不明
電池寿命 5 年
Copyright ©Classmethod.inc All Right Reserved. 56
BM1
メーカー:株式会社アプリックス
URL : http://www.aplix.co.jp/?page_id=7593
大きさ(だいたい) ・縦: 22mm ・横: 13mm ・高: 2.8mm
値段 Beacon モジュール :300円 Beacon モジュール ( ケース付き ) :500円~ 試作開発キット 10個セット :10,000円
※日本電波法技術基準適合証明有り
Copyright ©Classmethod.inc All Right Reserved. 57
その他
○ROXIMITY IBEACON URL : http://buyibeacons.com/ 値段: $10/ 月
○Radius iBeacon Services URL : http://www.radiusnetworks.com/ibeacon.html 値段: $99.99
○bluecats URL : http://www.bluecats.com/
○GeLo URL : http://www.gelosite.com/
Copyright ©Classmethod.inc All Right Reserved. 58
PayPalBeacon
注意 PayPalBeacon は BLE を使っているが、 iBeacon ではない。 BLEベースの非接触の決済技術。
URL : https://www.paypal.com/webapps/mpp/beacon
Copyright ©Classmethod.inc All Right Reserved. 59
電波法
技適マークがついていない無線機は、電波法違反
Copyright ©Classmethod.inc All Right Reserved. 60
まとめ
Copyright ©Classmethod.inc All Right Reserved. 61
まとめ
・ BLE を利用した Apple の距離と領域観測のサービス。
・ GPS が使えない屋内で位置情報を使ったサービスが可能 ・リージョン= UUID=企業単位
・距離判定は、 4 種類のみ
・距離推定は、可能だが、 Beacon の方向は分からない
・ Beacon は、日本電波法技術基準適合証明が必要
Copyright ©Classmethod.inc All Right Reserved. 62
参考
Copyright ©Classmethod.inc All Right Reserved. 63
iBeacon 概要
Apple公式 位置情報とマッププログラミングガイドhttps://developer.apple.com/jp/devcenter/ios/library/documentation/LocationAwarenessPG.pdf
Reinforce-Lab.'s Blog iBeacon の解説http://reinforce-lab.github.io/blog/2013/10/21/ibeacon/
Developer.IO [iOS 7] 新たな領域観測サービス iBeacon を使ってみるhttp://dev.classmethod.jp/references/ios7-ibeacon-api/
5分でわかる iBeacon - SlideSharehttp://www.slideshare.net/himaratsu/potatotips-ibeacon
Copyright ©Classmethod.inc All Right Reserved. 64
Bluetooth Low Energy
Reinforce-Lab.'s Blog BLE の通信仕様http://reinforce-lab.github.io/blog/2013/08/13/blebook-ch2-ble-spec/
エンジニアの備忘録 BLE-通信の基礎https://sites.google.com/site/bluexeyexcrow/bluetooth/ble_basic
ケータイ Watch 第 511回: Bluetooth Low Energy とはhttp://k-tai.impress.co.jp/docs/column/keyword/20110412_438953.html
Copyright ©Classmethod.inc All Right Reserved. 65
MLB の事例
「 NFC キラー」となるか? MLB 、注目の iBeacon 技術を各球場に導入へhttp://www.atmarkit.co.jp/ait/articles/1310/01/news018.html
アップルの位置情報サービス「 iBeacon 」 --MLB の試験導入に見る可能性http://japan.cnet.com/news/commentary/35037818/
Apple Feature to Turn MLB Stadiums Into Interactive Playgroundshttp://mashable.com/2013/09/26/mlb-at-the-ballpark-app/
Copyright ©Classmethod.inc All Right Reserved. 66
ご清聴ありがとうございました