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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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.6k
Other Decks in Programming
See All in Programming
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
190
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
140
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
210
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
270
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
190
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
350
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
330
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
240
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
180
Будущее локальных LLM – Алексей Голобурдин, PythoNN
sobolevn
0
120
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
580
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
670
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
310
Docker and Python
trallard
47
4.3k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
280
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
300
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
4
1.3k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
980
Color Theory Basics | Prateek | Gurzu
gurzu
1
520