Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
iOSxBLEで苦しまないために
Search
Kohei Tabata
July 26, 2016
Programming
1.5k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
iOSxBLEで苦しまないために
Kohei Tabata
July 26, 2016
Transcript
24 slides
iOSxBLEͰ ۤ͠·ͳ͍ͨΊʹ 2016/07/26 AKIBA.swift@Ϋϥεϝιουגࣜձࣾ
ࣗݾհ ɾKohei Tabata(@nerd0geek1) ɾiOS/MacOS/tvOS Developer ɾSaib Studio LLC ɾFastlaneେ͖ ɾ࠷ۙBLEͱྑ͠
Said Studio LLC Said Studio LLC
Next! Remote ɾLT/ϓϨθϯ༻iOSɾMacΞϓϦ ɾiOSΞϓϦ͔ΒMacͷεϥΠυΛૢ࡞Մೳ ɾศརͳλΠϚʔػೳ͖ʂ MacΞϓϦͪ͜Β͔Βɻ http://saib-stud.io/Next_Installer.pkg
BLEɺҊ݅Ͱͬͯ·͢ʁ
Ή͠ΖɺBLEͬͯ·͢ʁ
SoftBank͕ARMങऩ
࣍ ɾBluetooth͓͞Β͍ ɾBLEͱBeacon ɾBLEҊ݅ͷҙϙΠϯτ ɹɾڑΛଌΓ͍ͨʁ ɹɾPeripheral͕ݟ͔ͭΒͳ͍ʁ ɹɾσόοά(ཧ)
Bluetooth͓͞Β͍ ɾBluetoothͷ༷ͷมભ ɾBluetooth ClassicͱBluetooth Low Energy
Bluetoothͷ༷ͷมભ
Bluetooth ClassicͱLow Energy ɾBluetooth Classic ɹɾBluetooth3.0Ҏલͷ༷ʹର͢Δݺশ ɹɾϚεɺΩʔϘʔυɺϔουϑΥϯͳͲɻ ɹɾߴͳ௨৴ ɹɾMFiϓϩάϥϜՃೖඞཁɻ ɾBluetooth
Low Energy(BLE) ɹɾBluetooth4.0ͷݺশ ɹɾBluetooth Classicͱͷޙํޓੑͳ͠ ɹɾলిྗɾলίετʹओ؟
BLEͱBeacon ɾBLEͷଓϑϩʔ ɾBeaconͱ
BLEͷଓϑϩʔ
Beaconͱ ɾBeaconɺAdvertisingʹಛԽͨ͠Peripheralͷ͜ͱ ɾCentralͱPeripheralؒͷଓͳ͠ ɾPeripheralAdvertising DataʹσʔλΛࡌͤͯAdvertising ɾCentralͦΕΛಡΉ͚ͩ
BLEҊ݅ͷҙϙΠϯτ ɾڑΛଌΓ͍ͨʁ ɾPeripheral͕ݟ͔ͭΒͳ͍ʁ ɾσόοά(ཧ)
ڑΛଌΓ͍ͨʁ ɾडୗͰ͍͍͓ͨͩͨࣄ ɾBLEϞδϡʔϧ(Peripheral)ʹLED͕ͭͳ͕͍ͬͯΔ ɾεϚʔτϑΥϯ(Central)ͱBLEϞδϡʔϧͷڑ͕5mҎԼͷ࣌ʹ ɹLEDΛޫΒͤΔΑ͏ʹɺॻ͖ࠐΈΛߦ͏ɻ ɹ
None
ͦ͏͍͏ͷ͡Όͳ͍ ɾBLEڑଌఆͷͨΊͷٕज़Ͱͳ͍ɻ ɾCLBeaconɺCBPeripheral͔ΒRSSI(ిڧ)औಘՄೳ ɾ͕ͨͬͯ͠ɺRSSI͔Βٯࢉ͢Δ͜ͱͰਪఆՄೳɻ ɾ͔͠͠ɺ߹ʹΑͬͯి͕͔ͳΓݮਰ͢Δɻ ɾϦϦʔε͞ΕΔϓϩμΫτʹ͍ͭͯɺͦ͏͍ͬͨཁ݅Λ ɹ֎͓ͯ͘͜͠ͱ͕ॏཁɻ ɾͲ͏ͯ͠ඞཁͱ͍͏߹ɺproximityͰେຌͷஅ͢Δ͔ɺ ɹϢʔβʔମݧΛม͑ͯImmediateͷ߹ͷΈτϦΨʔ͢Δɺͱ͔
None
Peripheral͕ݟ͔ͭΒͳ͍ʁ ɾࣗࣾΞϓϦͷυοάϑʔσΟϯάͰLTͰNext!Λͬͨ࣌ͷ͜ͱ ɾCentralͰ͋ΔiPhone͔ΒPeripheralͰ͋ΔMacΛɺ5ඵҎʹ ɹݟ͚ͭΒΕͳ͍ͱ͍͏͜ͱ͕ɻɻɻ
దͳϑΟϧλϦϯάΛɻ ɾษڧձࣾͳͲɺMac/iPhone/Android͕͋;ΕۭͨؒͰɺ ɹͨ͘͞ΜͷBLE͕ଘࡏ͍ͯ͠Δɻ ɾదͳϑΟϧλϦϯάઃఆΛߦΘͣʹCentral͔ΒScan͍ͯ͠Δͱ ɹଓରΛݟ͚ͭΔ·Ͱʹ͕͔͔࣌ؒΓ͗ͯ͢͠·͏ɻ ɾServiceͷUUIDΛAdvertisement DataʹͤͯɺϑΟϧλϦϯά͕ ɹಇ͘Α͏ʹΛɻ
σόοά(ཧ) ɾ1ͭͷࣄྫͰɺσόοάͷͨΊʹ੮ͷपΓΛ͏ΖͪΐΖ͢Δ ɹඞཁ͕ ɾ2ͭͷࣄྫͰɺσόοάͷͨΊʹษڧձʹߦ͘ඞཁ͕ ɾͦͷଞʹɺiOSͷͱBLEϞδϡʔϧ͕ࣗવʹΕΔঢ়گͷ ɹςετͷͨΊʹ80mߦͬͯͬͯ
Φεεϝͷೖ(?)ॻ ɾॳ৺ऀ͕ͱ͖ͬͭʹ͍͘ɺGAPGATTɺ ɹCentral / PeripheralɺServiceɺ ɹCharacteristicͷ֓೦Λஸೡʹઆ໌ͯ͠ ɹ͍ΔͨΊɺશମ૾ͱͦΕͧΕͷׂͷ ɹཧղʹ࠷దɻ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ
ࢀߟ ɾARMΛങऩͨ͠ଙਖ਼ٛͷະདྷ༧ਤ (http://www.itmedia.co.jp/news/articles/1607/21/news136.html) ɾiOS7ͰͷBluetooth LE׆༻ (http://www.slideshare.net/reinforcelab/20131129-mosa) ɾIntroduction to Bluetooth Low
Energy (http://www.slideshare.net/yeokm1/introduction-to-bluetooth-low- energy)
More Decks by Kohei Tabata
See All by Kohei Tabata
AIと協業する開発の進め方
nerd0geek1
0
190
営業活動なしで継続的に案件を受注する方法 / how to get a contract without sales as a freelance
nerd0geek1
2
1k
生体データを取り扱うアプリ開発の勘所
nerd0geek1
1
170
動線改善とステータス可視化で家庭内のストレスを軽減した話
nerd0geek1
3
4.6k
家庭をプロジェクトとして運営した話
nerd0geek1
2
4.4k
fastlaneの勉強会を主催して学んだこと、得たこと、悩んだこと
nerd0geek1
1
1.3k
みんなで育てるprecheck
nerd0geek1
1
870
matchとは?match導入のメリット
nerd0geek1
4
660
Improve your workflow with Sketch plugin
nerd0geek1
3
1.7k
Other Decks in Programming
See All in Programming
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
860
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
440
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
110
Math.sumPreciseから学ぶ、ECMAScript仕様の数値の種類
syumai
0
150
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
140
Ruby から Emacs を操作したい
phigasui
0
390
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
240
エージェントの管理もエージェントに – herdr-core と自作バックログで作る司令塔 –
nearme_tech
PRO
2
140
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
6.3k
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
450
JavaScriptはシングルバイナリの夢を見るか / Does JavaScript Dream of a Single Binary?
ssssota
0
190
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
New Earth Scene 8
popppiees
5
2.9k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
370
Speed Design
sergeychernyshev
33
2.3k
Done Done
chrislema
187
17k
What's in a price? How to price your products and services
michaelherold
247
13k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Scaling GitHub
holman
464
140k
So, you think you're a good person
axbom
PRO
2
2.3k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
[SF Ruby Conf 2025] Rails X
palkan
3
1.6k