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
63
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
700
DangerでスムーズなPRレビューを
kz56cd
1
360
Other Decks in Technology
See All in Technology
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
3
550
【Forkwell】「正しく」失敗できるチームを作る──現場のリーダーのための恐怖と不安を乗り越える技術 - FL#83 / A team that can fail correctly by forkwell
i35_267
2
130
20250304_赤煉瓦倉庫_DeepSeek_Deep_Dive
hiouchiy
2
140
役員・マネージャー・著者・エンジニアそれぞれの立場から見たAWS認定資格
nrinetcom
PRO
5
6.9k
Platform Engineeringで クラウドの「楽しくない」を解消しよう
jacopen
4
230
Amazon Aurora のバージョンアップ手法について
smt7174
2
190
リクルートのエンジニア組織を下支えする 新卒の育成の仕組み
recruitengineers
PRO
2
190
「頑張る」を「楽しむ」に変換する技術
tomoyakitaura
1
250
User Story Mapping + Inclusive Team
kawaguti
PRO
3
540
ExaDB-XSで利用されているExadata Exascaleについて
oracle4engineer
PRO
3
310
Snowflakeの開発・運用コストをApache Icebergで効率化しよう!~機能と活用例のご紹介~
sagara
1
540
RaspberryPi CM4(CM5も)面白いぞ!
nonnoise
1
180
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
32
6.4k
Documentation Writing (for coders)
carmenintech
68
4.6k
Rebuilding a faster, lazier Slack
samanthasiow
80
8.9k
We Have a Design System, Now What?
morganepeng
51
7.4k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Fireside Chat
paigeccino
35
3.2k
Typedesign – Prime Four
hannesfritz
41
2.5k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Being A Developer After 40
akosma
89
590k
How GitHub (no longer) Works
holman
314
140k
Site-Speed That Sticks
csswizardry
4
420
Unsuck your backbone
ammeep
669
57k
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