Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CoreNFCファーストインプレッション(仮)
Search
masakazu sano
November 29, 2017
Technology
0
62
CoreNFCファーストインプレッション(仮)
2017/10/19に社内勉強会にて公開した資料です。
記事内のソースは以下:
https://github.com/kz56cd/iOS_preCoreNFC
masakazu sano
November 29, 2017
Tweet
Share
More Decks by masakazu sano
See All by masakazu sano
Manual DI with ReactorKit
kz56cd
1
670
DangerでスムーズなPRレビューを
kz56cd
1
360
Other Decks in Technology
See All in Technology
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
390
アジャイルチームがらしさを発揮するための目標づくり / Making the goal and enabling the team
kakehashi
3
140
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
430
SSMRunbook作成の勘所_20241120
koichiotomo
3
160
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
Introduction to Works of ML Engineer in LY Corporation
lycorp_recruit_jp
0
140
rootlessコンテナのすゝめ - 研究室サーバーでもできる安全なコンテナ管理
kitsuya0828
3
390
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.5k
生成AIが変えるデータ分析の全体像
ishikawa_satoru
0
170
プロダクト活用度で見えた真実 ホリゾンタルSaaSでの顧客解像度の高め方
tadaken3
0
180
【Pycon mini 東海 2024】Google Colaboratoryで試すVLM
kazuhitotakahashi
2
540
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
RailsConf 2023
tenderlove
29
900
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
430
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
4 Signs Your Business is Dying
shpigford
180
21k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Transcript
CoreNFC ϑΝʔετΠϯϓϨο γϣϯ (Ծ) 2017/10/19 iOSࣾษڧձ @OHAKO.inc Masakazu Sano (@kz56cd)
ಋೖ
CoreNFCͬͯԿʁ
ʢͦͷલʹʣ NFCͬͯԿͰ͚ͨͬ͠ʁ
https://www.androidauthority.com/nfc-tags-explained-271872/
NFCͬͯԿͰ͚ͨͬ͠ʁ • NFC == Near field (radio) communication • 200312݄ʹISO/IEC
18092ʲNFCIP-1ʳͱͯ͠ࠃࡍඪ४ن ֨Խ͞Εͨ • androidͩͱҎલ͔ΒΘΕͯΔʢͬΆ͍ʣ • iBeacon(≒BLE device)Ͱͳ͍
NFCͬͯԿͰ͚ͨͬ͠ʁ • NFC == Near field (radio) communication • 200312݄ʹISO/IEC
18092ʲNFCIP-1ʳͱͯ͠ࠃࡍඪ४ن ֨Խ͞Εͨ • androidͩͱҎલ͔ΒΘΕͯΔʢͬΆ͍ʣ • iBeacon(≒BLE device)Ͱͳ͍ • ! ҧ͍ʁʁ
iBeacon (≒BLE device) ͱͷҧ͍ BLE device NFC େ͖͞ (༷ʑ͕ͩ)Ϛονശ͘Β͍ ࠷খ1cm2ɺ
γʔϧͷΑ͏ʹബ͍ ௨৴ൣғ m·Ͱ 10cmະຬɺλονલఏ Ґஔใ׆༻ ڑٴͼରҐஔऔಘՄೳ (NFCλάͷҐஔΛݻఆ͢Ε) ҐஔಛఆՄೳ όοςϦʔ ඞཁɺLEͳͷͰ2͘Β͍อͭ ෆཁ අ༻ (ԁ) 2 ~ 3Kఔ 10 ~ 100ఔɺ͍҆ • ৄࡉɿ http://blog.paygent.co.jp/ec/bid/345454/
͜͜·ͰΘ͔ͬͨ͜ͱ
iBeaconͱ৭ʑ͕ͪ͏ʂ (ར༻γʔϯ) େ͕͍ͪͦ͏ʂ
࣍
CoreNFCͱ
CoreNFCͱ • iOS11ʹͯൃද • iphone7 / 7sҎ߱Ͱ༻Ͱ͖Δ • ࠓ·Ͱ (NFCࣗମͷར༻Ͱ͖Δͷͷ)
API͕ developerʹະެ։ͩͬͨ • NFCͷશͯͷಈ࡞ϞʔυΛެ։ͨ͠Θ͚Ͱͳ͍ • ΞϓϦىಈͳͲͰ͖ͳ͍
CoreNFCͱ • iOS11ʹͯൃද • iphone7 / 7sҎ߱Ͱ༻Ͱ͖Δ • ࠓ·Ͱ (NFCࣗମͷར༻Ͱ͖Δͷͷ)
API͕ developerʹະެ։ͩͬͨ • NFCͷશͯͷಈ࡞ϞʔυΛެ։ͨ͠Θ͚Ͱͳ͍ • ΞϓϦىಈͳͲͰ͖ͳ͍
NFCͷಈ࡞Ϟʔυ • NFC Forumͷنఆ • Reader/WriterʢR/Wʣ • Card EmulationʢCEʣ •
Peer to PeerʢP2Pʣ CoreNFCReader/WriterͷΈରԠ
࣮ફ
CoreNFC࣮ɺ λάಡΈऔΓ·Ͱ
CoreNFC࣮ɺλάಡΈऔΓ·Ͱ 1. NFCλάͷߪೖ 2. NFCλάͷηοτΞοϓ 3. CoreNFCͷ࣮
NFCλάͷߪೖ
NFCλάͷߪೖ • ωοτ • ࣮ళฮ • Ѫࡾిػ(@ळ༿ݪ) • RFID/NFC Real
Touch Shop(@౦ژ ീॏऱ) ※ ωοτߪೖ͕͓קΊʢ࣮ళฮͰͷѻ͍͕গͳ͍..ʣ
NFCλάͷηοτΞοϓ
NFCλάͷηοτΞοϓ ߪೖ࣌ϒϥϯΫͳͷͰɺ λάใΛwrite͢Δඞཁ͕͋Δ ํ๏ • ʮNFCରԠͷandroid + NFC writeػೳͷΞϓϦʯΛ͏ •
ʮPasoriʯΛ͏ • ʮaruduinoʯͱ͔͏ (ະݕূ)
NFCλάͷηοτΞοϓ ʮNFCରԠͷandroid + NFC writeػೳͷΞϓ ϦʯΛ͏ • ָɺରԠ͕͋ΔͳΒ͓͢͢Ί • ʢࢲ࣋ͬͯ·ͤΜͰͨ͠...
ʣ
NFCλάͷηοτΞοϓ ʮPasoriʯΛ͏ writeͰ͋ΕRC-S380 PͳͲͰOK • Windows • ԿΒ͔ͰΔ • OSX
/ Linux • ඇରԠ • nfcpy ͳͲOSSΛར༻͢Εಈ࡞ ͢Δ
ʢwriteࡁͷλάΛpasoriͰಡΈࠐΜͩͱ͜Ζʣ
CoreNFCͷ࣮
CoreNFCͷ࣮ େ·͔ͳྲྀΕ 1. apple develop center 2. info.plist / ex
3. CoreNFC Λimport 4. ίʔυهड़
ʢৄࡉʣলུ
ӕͰ͢...
(ؒʹ߹Θͳ͔ͬͨͷͰ) ࣮ࡍͷը໘Ͱઆ໌͠·͢...
৭ʑ͋ͬͯ...
None
ৼΓฦΓ
՝ • Θ͔Βͳ͔ͬͨͱ͜Ζ • session.isReady • session.invalidate() • ະݕূ •
όοΫάϥϯυ࣌ͷಈ࡞ (ແཧͬΆ͍..)
ࡶͳ·ͱΊ • CoreNFCͷػೳ·ͩݶఆత • ࠓޙͷػೳ֦ு͋ΓಘΔͷͰ • NFC͕ಈ͘ͱָ͍͠ʂ
ࡶͳ·ͱΊ • CoreNFCͷػೳ·ͩݶఆత • ࠓޙͷػೳ֦ு͋ΓಘΔͷͰ • NFC͕ಈ͘ͱָ͍͠ʂ ! ॏཁ
! Ҏ্
ref (1/2) • http://www.toppan-tl.co.jp/sp/nfc.html • http://blog.paygent.co.jp/ec/bid/345454/ • https://www.demacmedia.com/apple-pay-ibeacon-nfc-ble- debate/ •
http://ascii.jp/elem/000/001/514/1514319/ • https://nfc-forum.org/our-work/specifications-and- application-documents/specifications/
ref (2/2) • https://qiita.com/shimosyan/items/ed21fb6984240baa7397 • https://www.appcoda.com/corenfc-introduction/ • https://ja.wikipedia.org/wiki/BluetoothLowEnergy • https://hiro99ma.blogspot.jp/2017/06/
iosnfcndefpayloadpayload.html