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
nfc-starting
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
alt9800
January 26, 2022
Technology
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
nfc-starting
2022-01-26
Fukuoka G's Academy
alt9800
January 26, 2022
More Decks by alt9800
See All by alt9800
地図のスクショってどう取り扱ったらいいの? | マッパーズサミット2026
alt9800
0
200
Integrating MapLibre GL JS with deck.gl: A Review
alt9800
0
220
RoomPlan for iOSDCJapan2024
alt9800
0
280
raizyCLI
alt9800
0
42
Other Decks in Technology
See All in Technology
Execution in the Kingdom of Agents: Reflections on Abstraction and Complexity
bcantrill
0
720
AIは爆速なのに、私が詰まっていた話 ― 音声入力と鳴くマスコットでボトルネックを削る
yama3133
0
380
VS Code × GitHub Copilot での Fabric 開発
ryomaru0825
1
220
全社共通データ基盤をつくる。ソニーのDatabricks活用とデータガバナンス設計の裏側
sony
0
300
Claude起点の仕様駆動開発
tanakaseiya
0
300
LLM機能を自作して分かるSnowflake Cortex AIの強み
nayuts
0
200
1万名の社員が使う認証基盤で どう信頼性を担保するか?
kairim0
0
180
メルカリにおけるAI時代の高速プロトタイピング基盤「Arca」
ryotarai
18
14k
インバスケット試験対策アプリを 作って見えたAIエージェント構築 ナレッジ2選
shichijoyuhi
1
110
HacobuにおけるFDEとは/登壇資料(戸井田 裕貴)
hacobu
PRO
1
710
GitHub Agentic Workflows を触ってみる
htkym
2
920
2026-10-01_MagicPod_QAハーネスエンジニアリングとQA組織の未来像
ynisqa1988
1
420
Featured
See All Featured
Practical Orchestrator
shlominoach
192
12k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
58k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.2k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
We Have a Design System, Now What?
morganepeng
55
8.3k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
690
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Side Projects
sachag
456
43k
Building Adaptive Systems
keathley
44
3.2k
4 Signs Your Business is Dying
shpigford
187
23k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Transcript
ALT9800 20220126
TL;DR ( 長すぎて読まないよって 人向けまとめ ) NFC には様々な規格があり、我々は特に Felica(NFC-F) を使う機会が多い NFC
タグは身近な道具でRead とWrite ができる python3.x からnfcpy を使ってnfc への書き込みをす るのは難しそう iPhone やAndroid からのタグへの書き込みは容易 URL をハックして任意の遷移スクリプトを実行で きるページを持っておくと自由度が増す。
非接触 IC とは felica (NFC-F) NFC A/B/V 詳しくはISO 番号を検索してくれ
FELICA を読み書きするデバイス Sony のPaSoRi が買いやすくて使いやすい。 一番新しいS-400 はmac にも対応してるアプリがリ リースされていたり、マイナンバー関係にも使え て便利らしい
( 今回田中はS-380 を利用。こちらはラズパイなんか でも読み込みなど軽快。)
その他の RFID の例 UHF 帯のトランスポンダを紹介。 生き物のリモー トセンシングなどにも用いられる。 日立などがこ こらへんの技術はよくリリースしてる。
実践
INSTALL … とやってみたものの、python3 対応版のnfcpy だと 上手くDarwin では書き込みができない…? 読み込みはできた。 pip3 install
nfcpy brew install libusb git clone https://github.com/nfcpy/nfcpy.git python3 nfcpy/examples/tagtool.py
他の言語の実装例もある PHP で NFC リーダーを実装する 仕組み core 部分はHID としてPaSoRi を認識してシリアル通
信させるので、 この仕組みの上でタグの書き込み 番地を書き換えれることができれば 理論上はどの 言語でも実装できるかも https://zenn.dev/memory/articles/80e2cd6c063889
nfcpy に関してはclf とndef 周りの実装がかなり上手 くできてる模様 python のnfcpy の nfc.ContactlessFrontend() のメモ
- Qiita https://qiita.com/sukesuke/items/3a11849c0e757d37f34
読み込みデモ
書き込み python3 ndeftool.py make smartposter -t PPAP http://{書き込みたいuri} | python3
tagtool.py load - コマンドとして実行されるらしいけどなんや書き 込みできないぽい…
上手くいかないから IPHONE を使う nfc で検索すると読み書きできるアプリが出てくる
書き込み TypeA のタグ本体にURL を格納し、これをiPhone で 読み込む事ができるし、 あるいはタグのID を読み 込んだら特定のリンクに遷移するように ショート
カットアクションを仕込む。 ( 今回は後者を試す) ちなみにiPhone の場合センサーはカメラの横辺 り。
リンク構造 https://fukuoka-city- subway.jorudan.biz/pc/diagramdtl?mode=1&fr= 藤崎 &frkbn=4&frsk=R&tosk=&dt=202110150000&dgm= 藤 崎(福岡)%3A 福岡地下鉄空港線%3A 福岡空港%3A 西新%3A0&p=8%2C9
ローカル用テストページ http://192.168.a.bcd:8080
デプロイした https://alt9800.github.io/Redirect-test/index.html