SlideShare a Scribd company logo
1 of 21
Introduction to NFC
Wei-Tsung Su (蘇維宗)
ellington.su@gmail.com
05/28/2014 (Ver. 1.0)
Page : 1Ubiquitous Computing and Ambient Networking Laboratory
Change Log
Date Ver. Authors Description
5/28/2014 1.0 Wei-Tsung Su Introduction to NFC; NFC Data Exchange Format
Ubiquitous Computing and Ambient Networking Laboratory Page : 2
Reference
• NFC Data Exchange Format (NDEF) Technical
Specification 1.0
• NFC Record Type Definition (RTD) Technical
Specification 1.0
• Text Record Type Definition 1.0
• URI Record Type Definition 1.0
• Smart Poster Record Type Definition 1.1
• http://developer.android.com/guide/topics/connect
ivity/nfc/index.html
• http://nfc-forum.org/
• http://www.nfc.cc/
Ubiquitous Computing and Ambient Networking Laboratory Page : 3
Near Field Communication (NFC)
Ubiquitous Computing and Ambient Networking Laboratory Page : 4
Introduction to NFC
Ubiquitous Computing and Ambient Networking Laboratory Page : 5
NFC
• NFC is a contactless communication
– In typical, the communication distance is less than 4 cm
– Operation frequency is 13.56MHz
– Killer applications: e-wallet, name card exchange, check-in, and so on
– Related standards
• NFCIP-1 (ISO 18092 or ECMA 340)
• NFCIP-2 (ISO 21481 or ECMA 352)
• NFC Operation Mode
– Peer-to-Peer
– Reader/Writer
– Card Emulation
• NFC Tag
– Simple: typically write-once
– Complex: provide mathematical operations, hardware encryption
– Sophisticated: provide computation environment
Ubiquitous Computing and Ambient Networking Laboratory Page : 6
NFC Operation Modes
Ubiquitous Computing and Ambient Networking Laboratory Page : 7
NFC Protocol Stack
Ubiquitous Computing and Ambient Networking Laboratory Page : 8
NFC Forum Tag Type
• Type 1 (based on ISO 14443-A)
– Re-writable / write-protection
– Memory size is between 96
bytes and 2 Kbytes
– Speed: 106 Kbps
– Vendor: Topaz (Broadcom)
• Type 2 (based on ISO 14443-A)
– Re-writable / write-protection
– Memory size is between 48
bytes and 2 Kbytes
– Speed: 106 Kbps
– Vendor: NXP
• Type 3 (based on JIS 6319-4,
as known as FeliCa)
– Pre-configured as re-writable or
read-only
– Memory size is limited to 1
Mbytes
– Speed: 212/424 Kbps
– Vendor: Sony
• Type 4 (compliant with ISO
14443-A/B series)
– Pre-configured as re-writable or
read-only
– Memory size is limited to 32
Kbytes
– Speed: 212/424 Kbps
– Vendor: NXP
Ubiquitous Computing and Ambient Networking Laboratory Page : 9
NFC Data Exchange Format (NDEF)
Ubiquitous Computing and Ambient Networking Laboratory Page : 10
NFC Data Exchange Format (NDEF)
• NDEF Message Format
• Description
– Each NDEF message is composed of multiple NDEF records (unbounded
but limited by memory size)
– Each NDEF record can carry the data with size of 232-1 bytes
• If there is multiple NDEF records, the flag of message begin (MB) must be set as 1
in the first NDEF record.
• If there is multiple NDEF records, the flag of message end (ME) must be set as 1 in
the last NDEG record.
• If there is only on NDEF records the flags of MB and ME must be set as 1 in the
NDEG record.
– NDEF does not provide error handling, QoS, and other additional
functionalities.
Ubiquitous Computing and Ambient Networking Laboratory Page : 11
NDEF Message
NDEF Record 1
(MB=1)
NDEF Record 2
…
NDEF Record n
(ME=1)
NDEF Record
Ubiquitous Computing and Ambient Networking Laboratory Page : 12
• Flags
– Message Begin (MB)
– Message End (ME)
– Chunk Flag (CF)
– Short Record (SR)
– ID Length (IL)
• Type Name Format (TNF)
– Indicates the data type
– Indicates how to read Type filed
• Type Length
• ID Length
• Payload Length
• Type
– Indicates payload type
• ID (not tag ID)
– Unique NDEF Message ID
• Payload
– Actual data
7 6 5 4 3 2 1 0
MB ME CF SR IL TNF
Type Length
Payload Length 3
Payload Length 2
Payload Length 1
Payload Length 0
ID Length
Type
ID
Payload
Short NDEF Record
Ubiquitous Computing and Ambient Networking Laboratory Page : 13
7 6 5 4 3 2 1 0
MB ME CF SR = 1 IL TNF
Type Length
Payload Length
ID Length
Type
ID
Payload
Type Name Format (TNF)
Ubiquitous Computing and Ambient Networking Laboratory Page : 14
• Record Type Definition (RTD) in NFC Forum well-known type
– Text
– URL
– Smart Post
Type Name Format Value
Empty 0x00
NFC Forum well-known type [NFC RTD; RFC 2141] 0x01
Media-type as defined in RFC 2046 [RFC 2046] 0x02
Absolute URI as defined in RFC 3968 [RFC 3968] 0x03
NFC Forum external type [NFC RTD] 0x04
Unknown 0x05
Unchanged 0x06
Reserved 0x07
• NDEF record example of Text RTD
Ubiquitous Computing and Ambient Networking Laboratory Page : 15
7 6 5 4 3 2 1 0
MB ME CF SR IL TNF = 0x01
Type Length = 0x01
Payload Length 3
Payload Length 2
Payload Length 1
Payload Length 0
ID Length
Type = “T”
ID
Payload
TNF: NFC Forum Well-known Type
Text RTD
TNF: NFC Forum Well-known Typecon’t
Text RTD
• Payload Structure
Ubiquitous Computing and Ambient Networking Laboratory Page : 16
RTD Text Payload
0 1 … n n+1 … m
Status
byte
IANA Language Code
(Encoded by US-ASCII)
Text
(Encoded by UTF-8 or UTF-16
depending on status bit)
Status byte
0 1 2 3 4 5 6 7
0: UTF-8
1: UTD16
0 The length of the IANA language code.
TNF: NFC Forum Well-known Type
URI Service RTD
• NDEF record example of URI service RTD
Ubiquitous Computing and Ambient Networking Laboratory Page : 17
7 6 5 4 3 2 1 0
MB ME CF SR IL TNF = 0x01
Type Length = 0x01
Payload Length 3
Payload Length 2
Payload Length 1
Payload Length 0
ID Length
Type = “U”
ID
Payload
TNF: NFC Forum Well-known Typecon’t
URI Service RTD
• Payload Structure
• ID Code
Ubiquitous Computing and Ambient Networking Laboratory Page : 18
RTD URI Payload
0 1 … n
URI
ID code
URI field encoded by UTF-8
(The rest of the URI, or the entire URI if ID code is 0x00)
Hex. URL Prefix Hex. URL Prefix Hex. URL Prefix Hex. URL Prefix
0x00 N/A 0x0A sftps:// 0x14 pop: 0x1E urn:epc:id:
0x01 http://www. 0x0B smb:// 0x15 sip: 0x1F urn:epc:tag:
0x02 https://www. 0x0C nfs:// 0x16 sips 0x20 urn:epc:pat
0x03 http:// 0x0D ftp:// 0x17 tftp: 0x21 urn:epc:raw
0x04 https:// 0x0E dav:// 0x18 btspp:// 0x22 urn:epc:
0x05 tel: 0x0F news:// 0x19 btl2cap:// 0x23 urn:nfc
0x06 mailto: 0x10 telnet:// 0x1A btgoep:// … Reserved
0x07 ftp://anonymous:anonymous@ 0x11 imap 0x1B tcpobex://
0x08 ftp://ftp. 0x12 rtsp:// 0x1C irdaobex://
0x09 ftps:// 0x13 urn:// 0x1D dile://
TNF: NFC Forum Well-known Type
Smart Post RTD – URL, SMS, Phone Number
Ubiquitous Computing and Ambient Networking Laboratory Page : 19
• NDEF record example of Smart Post RTD
7 6 5 4 3 2 1 0
MB ME CF SR IL TNF = 0x01
Type Length = 0x02
Payload Length 3
Payload Length 2
Payload Length 1
Payload Length 0
ID Length
Type = “Sp”
ID
Payload
TNF: NFC Forum Well-known Typecon’t
Smart Post RTD – URL, SMS, Phone Number
• The payload of Smart Post RTD is an NDEF message which is composed
of multiple following specific NDEF records
– URI record
• The core of Smart Poster.
• MUST have one and only one URI record
– Title record
• COULD have multiple title records with different languages
– Action record
• Used to provide the recommendation of processing this service
– Icon record
– Size record
• If URI record indicates a external entity, the size record which indicates the size of
external entity to make sure the device is capable of handling this external entity.
– Type record
• If URI record indicates a external entity, the type record is used to indicates the
MIME type of this external entity.
– Application-specific record
Ubiquitous Computing and Ambient Networking Laboratory Page : 20
Q & A
Ubiquitous Computing and Ambient Networking Laboratory Page : 21

More Related Content

What's hot

Android vs Others Operating System
Android vs Others Operating SystemAndroid vs Others Operating System
Android vs Others Operating SystemShemul Hossain
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)udamale
 
Peer to peer data management
Peer to peer data managementPeer to peer data management
Peer to peer data managementJunaid Lodhi
 
WebRTC Real time media P2P, Server, Infrastructure, and Platform
WebRTC Real time media P2P, Server, Infrastructure, and PlatformWebRTC Real time media P2P, Server, Infrastructure, and Platform
WebRTC Real time media P2P, Server, Infrastructure, and PlatformRyan Jespersen
 
Freenome's Biological Machine Learning Platform
Freenome's Biological Machine Learning PlatformFreenome's Biological Machine Learning Platform
Freenome's Biological Machine Learning PlatformBrandon White
 
Getting started with YANG
Getting started with YANGGetting started with YANG
Getting started with YANGCoreStack
 
On Relaying NFC Payment Transactions using Android devices
On Relaying NFC Payment Transactions using Android devicesOn Relaying NFC Payment Transactions using Android devices
On Relaying NFC Payment Transactions using Android devicescgvwzq
 
Rpc Case Studies (Distributed computing)
Rpc Case Studies (Distributed computing)Rpc Case Studies (Distributed computing)
Rpc Case Studies (Distributed computing)Sri Prasanna
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidzeelpatel0504
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application DevelopmentBenny Skogberg
 
Android Synopsis
Android SynopsisAndroid Synopsis
Android SynopsisNiraj Rahi
 
Linux Native, HTTP Aware Network Security
Linux Native, HTTP Aware Network SecurityLinux Native, HTTP Aware Network Security
Linux Native, HTTP Aware Network SecurityThomas Graf
 

What's hot (20)

Android vs Others Operating System
Android vs Others Operating SystemAndroid vs Others Operating System
Android vs Others Operating System
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
 
Peer to peer data management
Peer to peer data managementPeer to peer data management
Peer to peer data management
 
WebRTC Real time media P2P, Server, Infrastructure, and Platform
WebRTC Real time media P2P, Server, Infrastructure, and PlatformWebRTC Real time media P2P, Server, Infrastructure, and Platform
WebRTC Real time media P2P, Server, Infrastructure, and Platform
 
Diamond chip
Diamond chipDiamond chip
Diamond chip
 
Freenome's Biological Machine Learning Platform
Freenome's Biological Machine Learning PlatformFreenome's Biological Machine Learning Platform
Freenome's Biological Machine Learning Platform
 
Lec04 gpu architecture
Lec04 gpu architectureLec04 gpu architecture
Lec04 gpu architecture
 
Android seminar ppt
Android seminar pptAndroid seminar ppt
Android seminar ppt
 
Getting started with YANG
Getting started with YANGGetting started with YANG
Getting started with YANG
 
Using Netconf/Yang with OpenDalight
Using Netconf/Yang with OpenDalightUsing Netconf/Yang with OpenDalight
Using Netconf/Yang with OpenDalight
 
Thread
ThreadThread
Thread
 
On Relaying NFC Payment Transactions using Android devices
On Relaying NFC Payment Transactions using Android devicesOn Relaying NFC Payment Transactions using Android devices
On Relaying NFC Payment Transactions using Android devices
 
Rpc Case Studies (Distributed computing)
Rpc Case Studies (Distributed computing)Rpc Case Studies (Distributed computing)
Rpc Case Studies (Distributed computing)
 
Android Mp3 Player
Android Mp3 PlayerAndroid Mp3 Player
Android Mp3 Player
 
H263.ppt
H263.pptH263.ppt
H263.ppt
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
wireless sensor network
wireless sensor networkwireless sensor network
wireless sensor network
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Android Synopsis
Android SynopsisAndroid Synopsis
Android Synopsis
 
Linux Native, HTTP Aware Network Security
Linux Native, HTTP Aware Network SecurityLinux Native, HTTP Aware Network Security
Linux Native, HTTP Aware Network Security
 

Viewers also liked

VISIONFC Automotive Summit
VISIONFC Automotive SummitVISIONFC Automotive Summit
VISIONFC Automotive SummitNFC Forum
 
Smart Phone in 2013
Smart Phone in 2013Smart Phone in 2013
Smart Phone in 2013JJ Wu
 
NFC And HCE 2016 - What’s Next?
NFC And HCE 2016 - What’s Next?NFC And HCE 2016 - What’s Next?
NFC And HCE 2016 - What’s Next?NFC Forum
 
Techpubs_NFC-TI100-R
Techpubs_NFC-TI100-RTechpubs_NFC-TI100-R
Techpubs_NFC-TI100-RJames Dickson
 
NFC近場通訊-twMVC#9
NFC近場通訊-twMVC#9NFC近場通訊-twMVC#9
NFC近場通訊-twMVC#9twMVC
 
Embedded Systems Security News 2011/06
Embedded Systems Security News 2011/06Embedded Systems Security News 2011/06
Embedded Systems Security News 2011/06AurMiana
 
Wireless Patents for Standards & Applications 1Q 2015
Wireless Patents for Standards & Applications 1Q 2015Wireless Patents for Standards & Applications 1Q 2015
Wireless Patents for Standards & Applications 1Q 2015Alex G. Lee, Ph.D. Esq. CLP
 
NFC Standard Essential Patent Candidates Data 4Q 2014
NFC Standard Essential Patent Candidates Data 4Q 2014NFC Standard Essential Patent Candidates Data 4Q 2014
NFC Standard Essential Patent Candidates Data 4Q 2014Alex G. Lee, Ph.D. Esq. CLP
 
Tap into NFC Showcase - Shanghai
Tap into NFC Showcase - ShanghaiTap into NFC Showcase - Shanghai
Tap into NFC Showcase - ShanghaiNFC Forum
 
Introduction to nfc_v1_1_en
Introduction to nfc_v1_1_enIntroduction to nfc_v1_1_en
Introduction to nfc_v1_1_enopen-src
 
Product manager for dynamic nfc id 11949
Product manager for dynamic nfc  id 11949Product manager for dynamic nfc  id 11949
Product manager for dynamic nfc id 11949Raoul Brouns
 
Embedded systems security news 2011/04
Embedded systems security news 2011/04Embedded systems security news 2011/04
Embedded systems security news 2011/04AurMiana
 
Embedded Systems Security News 2011/01
Embedded Systems Security News 2011/01Embedded Systems Security News 2011/01
Embedded Systems Security News 2011/01AurMiana
 
Nfc reader writer_mode
Nfc reader writer_modeNfc reader writer_mode
Nfc reader writer_modeChun-Kai Wang
 
Android Application Development of NFC Reader-Writer Mode
Android Application Development of NFC Reader-Writer ModeAndroid Application Development of NFC Reader-Writer Mode
Android Application Development of NFC Reader-Writer ModeChun-Kai Wang
 
Smartrac webinar tap and play December 2013
Smartrac webinar tap and play December 2013Smartrac webinar tap and play December 2013
Smartrac webinar tap and play December 2013Mikko Nikkanen
 
Embedded Systems Security News 2011/05
Embedded Systems Security News 2011/05Embedded Systems Security News 2011/05
Embedded Systems Security News 2011/05AurMiana
 
NFC (Windows 8/ Windows Phone 8 )
NFC (Windows 8/ Windows Phone 8 )NFC (Windows 8/ Windows Phone 8 )
NFC (Windows 8/ Windows Phone 8 )Bill Chung
 

Viewers also liked (20)

VISIONFC Automotive Summit
VISIONFC Automotive SummitVISIONFC Automotive Summit
VISIONFC Automotive Summit
 
Smart Phone in 2013
Smart Phone in 2013Smart Phone in 2013
Smart Phone in 2013
 
NFC And HCE 2016 - What’s Next?
NFC And HCE 2016 - What’s Next?NFC And HCE 2016 - What’s Next?
NFC And HCE 2016 - What’s Next?
 
Techpubs_NFC-TI100-R
Techpubs_NFC-TI100-RTechpubs_NFC-TI100-R
Techpubs_NFC-TI100-R
 
Mister softee
Mister softeeMister softee
Mister softee
 
NFC近場通訊-twMVC#9
NFC近場通訊-twMVC#9NFC近場通訊-twMVC#9
NFC近場通訊-twMVC#9
 
Embedded Systems Security News 2011/06
Embedded Systems Security News 2011/06Embedded Systems Security News 2011/06
Embedded Systems Security News 2011/06
 
Wireless Patents for Standards & Applications 1Q 2015
Wireless Patents for Standards & Applications 1Q 2015Wireless Patents for Standards & Applications 1Q 2015
Wireless Patents for Standards & Applications 1Q 2015
 
Ganesh
GaneshGanesh
Ganesh
 
NFC Standard Essential Patent Candidates Data 4Q 2014
NFC Standard Essential Patent Candidates Data 4Q 2014NFC Standard Essential Patent Candidates Data 4Q 2014
NFC Standard Essential Patent Candidates Data 4Q 2014
 
Tap into NFC Showcase - Shanghai
Tap into NFC Showcase - ShanghaiTap into NFC Showcase - Shanghai
Tap into NFC Showcase - Shanghai
 
Introduction to nfc_v1_1_en
Introduction to nfc_v1_1_enIntroduction to nfc_v1_1_en
Introduction to nfc_v1_1_en
 
Product manager for dynamic nfc id 11949
Product manager for dynamic nfc  id 11949Product manager for dynamic nfc  id 11949
Product manager for dynamic nfc id 11949
 
Embedded systems security news 2011/04
Embedded systems security news 2011/04Embedded systems security news 2011/04
Embedded systems security news 2011/04
 
Embedded Systems Security News 2011/01
Embedded Systems Security News 2011/01Embedded Systems Security News 2011/01
Embedded Systems Security News 2011/01
 
Nfc reader writer_mode
Nfc reader writer_modeNfc reader writer_mode
Nfc reader writer_mode
 
Android Application Development of NFC Reader-Writer Mode
Android Application Development of NFC Reader-Writer ModeAndroid Application Development of NFC Reader-Writer Mode
Android Application Development of NFC Reader-Writer Mode
 
Smartrac webinar tap and play December 2013
Smartrac webinar tap and play December 2013Smartrac webinar tap and play December 2013
Smartrac webinar tap and play December 2013
 
Embedded Systems Security News 2011/05
Embedded Systems Security News 2011/05Embedded Systems Security News 2011/05
Embedded Systems Security News 2011/05
 
NFC (Windows 8/ Windows Phone 8 )
NFC (Windows 8/ Windows Phone 8 )NFC (Windows 8/ Windows Phone 8 )
NFC (Windows 8/ Windows Phone 8 )
 

Similar to Introduction to NFC

Bluetooth Secure Simple Pairing Using NFC Part 2
Bluetooth Secure Simple Pairing Using NFC Part 2Bluetooth Secure Simple Pairing Using NFC Part 2
Bluetooth Secure Simple Pairing Using NFC Part 2NFC Forum
 
NFC Bootcamp Seattle Day 2
NFC Bootcamp Seattle Day 2 NFC Bootcamp Seattle Day 2
NFC Bootcamp Seattle Day 2 traceebeebe
 
Introduction to nfc
Introduction to nfcIntroduction to nfc
Introduction to nfcRay Cheng
 
Small office Home office , network setup in details
Small office Home office , network setup in detailsSmall office Home office , network setup in details
Small office Home office , network setup in detailsapel7
 
SOHO Network Setup Tutorial
SOHO Network Setup Tutorial SOHO Network Setup Tutorial
SOHO Network Setup Tutorial junaidahmedsaba
 
networking and computer security prasantation
networking  and computer  security  prasantationnetworking  and computer  security  prasantation
networking and computer security prasantationDasharathChaudhary3
 
Chapter 5 introduction to computer communication networks
Chapter 5   introduction to computer communication networksChapter 5   introduction to computer communication networks
Chapter 5 introduction to computer communication networksN. A. Sutisna
 
Tftp client server communication
Tftp client server communicationTftp client server communication
Tftp client server communicationUday Sharma
 
An Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecAn Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecShortestPathFirst
 
Multi protocol label switching (mpls)
Multi protocol label switching (mpls)Multi protocol label switching (mpls)
Multi protocol label switching (mpls)Online
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Naruin
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Kyle
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2ekul
 
Data Communication & Computer Networks
Data Communication & Computer NetworksData Communication & Computer Networks
Data Communication & Computer NetworksSreedhar Chowdam
 
ETE405-lec7.pdf
ETE405-lec7.pdfETE405-lec7.pdf
ETE405-lec7.pdfmashiur
 
Near field communication (NFC)
Near field communication (NFC)Near field communication (NFC)
Near field communication (NFC)Bharat Kachhwaha
 

Similar to Introduction to NFC (20)

Bluetooth Secure Simple Pairing Using NFC Part 2
Bluetooth Secure Simple Pairing Using NFC Part 2Bluetooth Secure Simple Pairing Using NFC Part 2
Bluetooth Secure Simple Pairing Using NFC Part 2
 
NFC Bootcamp Seattle Day 2
NFC Bootcamp Seattle Day 2 NFC Bootcamp Seattle Day 2
NFC Bootcamp Seattle Day 2
 
Introduction to nfc
Introduction to nfcIntroduction to nfc
Introduction to nfc
 
NETWORKING
NETWORKINGNETWORKING
NETWORKING
 
Web Presen
Web PresenWeb Presen
Web Presen
 
Small office Home office , network setup in details
Small office Home office , network setup in detailsSmall office Home office , network setup in details
Small office Home office , network setup in details
 
SOHO Network Setup Tutorial
SOHO Network Setup Tutorial SOHO Network Setup Tutorial
SOHO Network Setup Tutorial
 
Introduction to socket programming nbv
Introduction to socket programming nbvIntroduction to socket programming nbv
Introduction to socket programming nbv
 
networking and computer security prasantation
networking  and computer  security  prasantationnetworking  and computer  security  prasantation
networking and computer security prasantation
 
San 2
San 2San 2
San 2
 
Chapter 5 introduction to computer communication networks
Chapter 5   introduction to computer communication networksChapter 5   introduction to computer communication networks
Chapter 5 introduction to computer communication networks
 
Tftp client server communication
Tftp client server communicationTftp client server communication
Tftp client server communication
 
An Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecAn Introduction to BGP Flow Spec
An Introduction to BGP Flow Spec
 
Multi protocol label switching (mpls)
Multi protocol label switching (mpls)Multi protocol label switching (mpls)
Multi protocol label switching (mpls)
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2
 
Data Communication & Computer Networks
Data Communication & Computer NetworksData Communication & Computer Networks
Data Communication & Computer Networks
 
ETE405-lec7.pdf
ETE405-lec7.pdfETE405-lec7.pdf
ETE405-lec7.pdf
 
Near field communication (NFC)
Near field communication (NFC)Near field communication (NFC)
Near field communication (NFC)
 

More from Wei-Tsung Su

軟體系統測試簡介
軟體系統測試簡介軟體系統測試簡介
軟體系統測試簡介Wei-Tsung Su
 
MQTT簡介與使用開放原始碼
MQTT簡介與使用開放原始碼MQTT簡介與使用開放原始碼
MQTT簡介與使用開放原始碼Wei-Tsung Su
 
LinkIt Smart 7688程式開發
LinkIt Smart 7688程式開發LinkIt Smart 7688程式開發
LinkIt Smart 7688程式開發Wei-Tsung Su
 
Arduino Yun Mini - 使用SQLite
Arduino Yun Mini - 使用SQLiteArduino Yun Mini - 使用SQLite
Arduino Yun Mini - 使用SQLiteWei-Tsung Su
 
Arduino Yun Mini簡介
Arduino Yun Mini簡介Arduino Yun Mini簡介
Arduino Yun Mini簡介Wei-Tsung Su
 
Google Glass - Unit01: Design
Google Glass - Unit01: DesignGoogle Glass - Unit01: Design
Google Glass - Unit01: DesignWei-Tsung Su
 
Google App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: BasicGoogle App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: BasicWei-Tsung Su
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version ControlWei-Tsung Su
 
Introduction to Wi-Fi Direct
Introduction to Wi-Fi DirectIntroduction to Wi-Fi Direct
Introduction to Wi-Fi DirectWei-Tsung Su
 
Introduction to OAuth
Introduction to OAuthIntroduction to OAuth
Introduction to OAuthWei-Tsung Su
 

More from Wei-Tsung Su (12)

Git Branch
Git BranchGit Branch
Git Branch
 
軟體系統測試簡介
軟體系統測試簡介軟體系統測試簡介
軟體系統測試簡介
 
MQTT簡介與使用開放原始碼
MQTT簡介與使用開放原始碼MQTT簡介與使用開放原始碼
MQTT簡介與使用開放原始碼
 
LinkIt Smart 7688程式開發
LinkIt Smart 7688程式開發LinkIt Smart 7688程式開發
LinkIt Smart 7688程式開發
 
Arduino Yun Mini - 使用SQLite
Arduino Yun Mini - 使用SQLiteArduino Yun Mini - 使用SQLite
Arduino Yun Mini - 使用SQLite
 
Arduino Yun Mini簡介
Arduino Yun Mini簡介Arduino Yun Mini簡介
Arduino Yun Mini簡介
 
Google Glass - Unit01: Design
Google Glass - Unit01: DesignGoogle Glass - Unit01: Design
Google Glass - Unit01: Design
 
Google App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: BasicGoogle App Engine for Python - Unit01: Basic
Google App Engine for Python - Unit01: Basic
 
創業的藝術
創業的藝術創業的藝術
創業的藝術
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version Control
 
Introduction to Wi-Fi Direct
Introduction to Wi-Fi DirectIntroduction to Wi-Fi Direct
Introduction to Wi-Fi Direct
 
Introduction to OAuth
Introduction to OAuthIntroduction to OAuth
Introduction to OAuth
 

Recently uploaded

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 

Recently uploaded (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Introduction to NFC

  • 1. Introduction to NFC Wei-Tsung Su (蘇維宗) ellington.su@gmail.com 05/28/2014 (Ver. 1.0) Page : 1Ubiquitous Computing and Ambient Networking Laboratory
  • 2. Change Log Date Ver. Authors Description 5/28/2014 1.0 Wei-Tsung Su Introduction to NFC; NFC Data Exchange Format Ubiquitous Computing and Ambient Networking Laboratory Page : 2
  • 3. Reference • NFC Data Exchange Format (NDEF) Technical Specification 1.0 • NFC Record Type Definition (RTD) Technical Specification 1.0 • Text Record Type Definition 1.0 • URI Record Type Definition 1.0 • Smart Poster Record Type Definition 1.1 • http://developer.android.com/guide/topics/connect ivity/nfc/index.html • http://nfc-forum.org/ • http://www.nfc.cc/ Ubiquitous Computing and Ambient Networking Laboratory Page : 3
  • 4. Near Field Communication (NFC) Ubiquitous Computing and Ambient Networking Laboratory Page : 4
  • 5. Introduction to NFC Ubiquitous Computing and Ambient Networking Laboratory Page : 5
  • 6. NFC • NFC is a contactless communication – In typical, the communication distance is less than 4 cm – Operation frequency is 13.56MHz – Killer applications: e-wallet, name card exchange, check-in, and so on – Related standards • NFCIP-1 (ISO 18092 or ECMA 340) • NFCIP-2 (ISO 21481 or ECMA 352) • NFC Operation Mode – Peer-to-Peer – Reader/Writer – Card Emulation • NFC Tag – Simple: typically write-once – Complex: provide mathematical operations, hardware encryption – Sophisticated: provide computation environment Ubiquitous Computing and Ambient Networking Laboratory Page : 6
  • 7. NFC Operation Modes Ubiquitous Computing and Ambient Networking Laboratory Page : 7
  • 8. NFC Protocol Stack Ubiquitous Computing and Ambient Networking Laboratory Page : 8
  • 9. NFC Forum Tag Type • Type 1 (based on ISO 14443-A) – Re-writable / write-protection – Memory size is between 96 bytes and 2 Kbytes – Speed: 106 Kbps – Vendor: Topaz (Broadcom) • Type 2 (based on ISO 14443-A) – Re-writable / write-protection – Memory size is between 48 bytes and 2 Kbytes – Speed: 106 Kbps – Vendor: NXP • Type 3 (based on JIS 6319-4, as known as FeliCa) – Pre-configured as re-writable or read-only – Memory size is limited to 1 Mbytes – Speed: 212/424 Kbps – Vendor: Sony • Type 4 (compliant with ISO 14443-A/B series) – Pre-configured as re-writable or read-only – Memory size is limited to 32 Kbytes – Speed: 212/424 Kbps – Vendor: NXP Ubiquitous Computing and Ambient Networking Laboratory Page : 9
  • 10. NFC Data Exchange Format (NDEF) Ubiquitous Computing and Ambient Networking Laboratory Page : 10
  • 11. NFC Data Exchange Format (NDEF) • NDEF Message Format • Description – Each NDEF message is composed of multiple NDEF records (unbounded but limited by memory size) – Each NDEF record can carry the data with size of 232-1 bytes • If there is multiple NDEF records, the flag of message begin (MB) must be set as 1 in the first NDEF record. • If there is multiple NDEF records, the flag of message end (ME) must be set as 1 in the last NDEG record. • If there is only on NDEF records the flags of MB and ME must be set as 1 in the NDEG record. – NDEF does not provide error handling, QoS, and other additional functionalities. Ubiquitous Computing and Ambient Networking Laboratory Page : 11 NDEF Message NDEF Record 1 (MB=1) NDEF Record 2 … NDEF Record n (ME=1)
  • 12. NDEF Record Ubiquitous Computing and Ambient Networking Laboratory Page : 12 • Flags – Message Begin (MB) – Message End (ME) – Chunk Flag (CF) – Short Record (SR) – ID Length (IL) • Type Name Format (TNF) – Indicates the data type – Indicates how to read Type filed • Type Length • ID Length • Payload Length • Type – Indicates payload type • ID (not tag ID) – Unique NDEF Message ID • Payload – Actual data 7 6 5 4 3 2 1 0 MB ME CF SR IL TNF Type Length Payload Length 3 Payload Length 2 Payload Length 1 Payload Length 0 ID Length Type ID Payload
  • 13. Short NDEF Record Ubiquitous Computing and Ambient Networking Laboratory Page : 13 7 6 5 4 3 2 1 0 MB ME CF SR = 1 IL TNF Type Length Payload Length ID Length Type ID Payload
  • 14. Type Name Format (TNF) Ubiquitous Computing and Ambient Networking Laboratory Page : 14 • Record Type Definition (RTD) in NFC Forum well-known type – Text – URL – Smart Post Type Name Format Value Empty 0x00 NFC Forum well-known type [NFC RTD; RFC 2141] 0x01 Media-type as defined in RFC 2046 [RFC 2046] 0x02 Absolute URI as defined in RFC 3968 [RFC 3968] 0x03 NFC Forum external type [NFC RTD] 0x04 Unknown 0x05 Unchanged 0x06 Reserved 0x07
  • 15. • NDEF record example of Text RTD Ubiquitous Computing and Ambient Networking Laboratory Page : 15 7 6 5 4 3 2 1 0 MB ME CF SR IL TNF = 0x01 Type Length = 0x01 Payload Length 3 Payload Length 2 Payload Length 1 Payload Length 0 ID Length Type = “T” ID Payload TNF: NFC Forum Well-known Type Text RTD
  • 16. TNF: NFC Forum Well-known Typecon’t Text RTD • Payload Structure Ubiquitous Computing and Ambient Networking Laboratory Page : 16 RTD Text Payload 0 1 … n n+1 … m Status byte IANA Language Code (Encoded by US-ASCII) Text (Encoded by UTF-8 or UTF-16 depending on status bit) Status byte 0 1 2 3 4 5 6 7 0: UTF-8 1: UTD16 0 The length of the IANA language code.
  • 17. TNF: NFC Forum Well-known Type URI Service RTD • NDEF record example of URI service RTD Ubiquitous Computing and Ambient Networking Laboratory Page : 17 7 6 5 4 3 2 1 0 MB ME CF SR IL TNF = 0x01 Type Length = 0x01 Payload Length 3 Payload Length 2 Payload Length 1 Payload Length 0 ID Length Type = “U” ID Payload
  • 18. TNF: NFC Forum Well-known Typecon’t URI Service RTD • Payload Structure • ID Code Ubiquitous Computing and Ambient Networking Laboratory Page : 18 RTD URI Payload 0 1 … n URI ID code URI field encoded by UTF-8 (The rest of the URI, or the entire URI if ID code is 0x00) Hex. URL Prefix Hex. URL Prefix Hex. URL Prefix Hex. URL Prefix 0x00 N/A 0x0A sftps:// 0x14 pop: 0x1E urn:epc:id: 0x01 http://www. 0x0B smb:// 0x15 sip: 0x1F urn:epc:tag: 0x02 https://www. 0x0C nfs:// 0x16 sips 0x20 urn:epc:pat 0x03 http:// 0x0D ftp:// 0x17 tftp: 0x21 urn:epc:raw 0x04 https:// 0x0E dav:// 0x18 btspp:// 0x22 urn:epc: 0x05 tel: 0x0F news:// 0x19 btl2cap:// 0x23 urn:nfc 0x06 mailto: 0x10 telnet:// 0x1A btgoep:// … Reserved 0x07 ftp://anonymous:anonymous@ 0x11 imap 0x1B tcpobex:// 0x08 ftp://ftp. 0x12 rtsp:// 0x1C irdaobex:// 0x09 ftps:// 0x13 urn:// 0x1D dile://
  • 19. TNF: NFC Forum Well-known Type Smart Post RTD – URL, SMS, Phone Number Ubiquitous Computing and Ambient Networking Laboratory Page : 19 • NDEF record example of Smart Post RTD 7 6 5 4 3 2 1 0 MB ME CF SR IL TNF = 0x01 Type Length = 0x02 Payload Length 3 Payload Length 2 Payload Length 1 Payload Length 0 ID Length Type = “Sp” ID Payload
  • 20. TNF: NFC Forum Well-known Typecon’t Smart Post RTD – URL, SMS, Phone Number • The payload of Smart Post RTD is an NDEF message which is composed of multiple following specific NDEF records – URI record • The core of Smart Poster. • MUST have one and only one URI record – Title record • COULD have multiple title records with different languages – Action record • Used to provide the recommendation of processing this service – Icon record – Size record • If URI record indicates a external entity, the size record which indicates the size of external entity to make sure the device is capable of handling this external entity. – Type record • If URI record indicates a external entity, the type record is used to indicates the MIME type of this external entity. – Application-specific record Ubiquitous Computing and Ambient Networking Laboratory Page : 20
  • 21. Q & A Ubiquitous Computing and Ambient Networking Laboratory Page : 21