NFC学习【笔记】
目录
- 一、射频
- 二、通信协议
- 1.ISO/IEC 14443 Type A 和 Type B
- Standards Overview【标准概述】
- History 【历史】
- History - Modes of Operation 【历史 - 运作模式】
- Acronyms【缩略语】
- Standard Structure【标准结构】
- ISO/IEC14443-1 Physical Characteristics【物理特性】
- ISO/IEC1443-2 Power and Interface 【电源和接口】
- ISO/IEC14443-3 Initialization and Anticollision 【初始化和防碰撞】
- ISO/IEC14443-4 Transmission protocols 【传输协议】
- Complete Operation 【完整操作】
- 三、软件协议栈
- 四、解决方案
- 厂商
一、射频
【是德科技】近场通信NFC是啥?NFC和RFID的区别呢?
二、通信协议
1.ISO/IEC 14443 Type A 和 Type B
Standards Overview【标准概述】
History 【历史】
- The development of the standard was assigned to SC17/WG8 in 1994. A task force was established comprising several companies.The 1st task was to determine what the market wanted in a contactless card.
【1994年,该标准的制定工作被委托给SC17/WG8。一个由多家公司组成的工作组应运而生。首要任务是确定市场对非接触式卡的需求。】
The task force studied various applications, that were in use at the time and projected for the foreseeable future. - Compatibility with application layers of existing contact smart card (ISO/IEC 7816) standards was also taken into consideration for the ease of integration and deployment.
【工作组研究了当时正在使用以及可预见的未来的各种应用。为了便于集成和部署,还考虑了与现有接触式智能卡(ISO/IEC 7816)标准应用层的兼容性。】 - In the end, the task force defined four parts to the standard:
【最终,工作组为该标准定义了四个部分】- ISO/IEC14443-1 Physical characteristics【物理特性】
- ISO/IEC14443-2 Radio Frequency Power and Signal Interface【射频功率和信号接口】
- ISO/IEC14443-3 Initialization and anticollision【初始化和防冲突/防碰撞】
- ISO/IEC14443-4 Transmission Protocol【传输协议】
History - Modes of Operation 【历史 - 运作模式】
- The task force felt that a standard must also be capable of defining a card that uses a microprocessor as this offers the flexibility to easily update the application through software.
【工作组认为,标准还必须能够定义使用微处理器的卡,因为这样可以灵活地通过软件轻松更新应用程序。】 - After a year of debate a consensus was reached by defining two ‘modes of operation’ in ISO/IEC 14443-2 (the power and signal interface). These are referred to as ‘Type A’ and ‘Type B’.
【经过一年的辩论,最终达成共识,在 ISO/IEC 14443-2(电源和信号接口)中定义了两种“工作模式”。这些模式被称为“Type A”和“Type B”】 - In 1998 a third signal interface mode was proposed by Sony (Type C) but rejected as this did not add anything new to the standard.
【1998 年,索尼提出了第三种信号接口模式(C 型),但由于没有为标准增添任何新内容而被否决。】 - All four parts of the ISO/IEC14443 standards were completed by 2001.
【ISO/IEC14443 标准的所有四个部分均于 2001 年完成。】 - In mid 2001, a number of companies proposed an amendment that would add five additional modes to ISO/IEC14443-2. (Type C > G).
【2001 年中期,一些公司提出了一项修正案,将在 ISO/IEC14443-2 中增加五种模式(Type C > G 型)。】 - An SC17 ballot (ISO/IEC JTC1/SC17 N2051) on 11th Jan 2001 eventually concluded to keep only the two modes A and B.
【2001 年 1 月 11 日举行的 SC17 投票(ISO/IEC JTC1/SC17 N2051)最终决定仅保留 Type A 和Type B 两种模式。】
Acronyms【缩略语】
- There are a vast amount of acronyms used in the standard. These are summarized in the ‘Symbols and Abbreviated Terms’ section at the front of all parts 1 > 4 of the standard.
【该标准中使用了大量的首字母缩略词。这些缩略词在该标准第1部分至第4部分开头的“符号和缩写”部分进行了总结。】 - Primary acronyms are:【主要缩略词包括】
PICC – Proximity Integrated Circuit Card (Transponder) 【近接集成电路卡(应答器/卡)】
PCD – Proximity Coupling Device (Reader) 【近接耦合设备(读卡器)】 - Also, many of the commands referenced in Parts 3 and 4 are formatted XXXA or XXXB. This identifies them as a Type A or Type B command.
【此外,第3部分和第4部分中引用的许多命令的格式为XXXA或XXXB。这表示它们是Type A命令还是Type B命令。】
i.e. 【例如】
REQA - Request Type A PICC Command【请求A类PICC命令】
REQB - Request Type B PICC Command【请求B类PICC命令】
Standard Structure【标准结构】
ISO/IEC14443-1 Physical Characteristics【物理特性】
- This part of the standard specifies the physical size of the smart card.
【本标准部分规定了智能卡的物理尺寸。】 - The card is the following size: (85.6mm x 54.0mm x .76mm) referred to as ID-1 size.
【智能卡尺寸如下:(85.6 毫米 x 54.0 毫米 x 0.76 毫米),简称 ID-1 尺寸。】 - This is the size of a bank credit card.
【这是银行信用卡的尺寸。】
ISO/IEC1443-2 Power and Interface 【电源和接口】
- The ISO/IEC14443-2 standard has two modes with the following features:
Reader to Card (PCD > PICC) 读卡器到卡 | Type A | Type B |
---|---|---|
Frequency 频率 | 13.56 MHz | 13.56 MHz |
Modulation 调制方式 | 100% ASK | 10% ASK |
Bit coding 比特编码 | Modified Miller 改进型米勒 | NRZ |
Data rate 数据速率 | 106 kb/s | 106 kb/s |
Card to Reader (PICC > PCD)卡到读卡器 | Type A | Type B |
---|---|---|
Modulation 调制方式 | Load | Load |
Bit coding 比特编码 | OOK | BPSK |
Subcarrier 副载波 | 847kHz | 847kHZ |
Bit coding 比特编码 | Manchester 曼彻斯特 | NRZ |
Data rate 数据速率 | 106 kb/s | 106 kb/s |
- These features allow the reader to power and communicate with the card over a targeted range of operation of approximately 10 cm.
【这些功能允许读卡器在约 10 厘米的目标操作范围内为卡供电并与卡通信。】
改进米勒型如图存在信号完全消失的阶段,NRZ的信号始终存在。
ISO/IEC14443-3 Initialization and Anticollision 【初始化和防碰撞】
- Part three of the standard enables the reader to identify the cards in the magnetic field and establish communications with a specific card. It specifies the byte format, frames and timing used during the 2 initial phases of communication.
【该标准的第三部分使读卡器能够识别磁场中的卡片并与特定卡片建立通信。它规定了通信两个初始阶段使用的字节格式、帧和时序。】 - The initialization process includes the commands between the reader and the card that activates the card to the ‘READY’ state.
【初始化过程包括读卡器和卡片之间的命令,这些命令将卡片激活为“就绪”状态。】 - This anticollision process follows to identify all PICC’s in the PCD field .
【此防冲突过程随后用于识别 PCD 字段中的所有 PICC 卡。】 - Part 3 defines 2 anticollision processes for the 2 different modes
【第三部分为两种不同的模式定义了两种防冲突过程】:
Type A > Bit-collision detection protocol【位冲突检测协议】
Type B > Slotted ALOHA with dynamic slot adaptation.【具有动态时隙自适应的分槽 ALOHA】
ISO/IEC14443-4 Transmission protocols 【传输协议】
- Part four of the standard defines the half-duplex block transmission protocol. In particular, it defines the activation and deactivation sequences of the protocol.
【该标准的第四部分定义了半双工块传输协议。特别是,它定义了协议的激活和停用序列。】 - The activation sequence is concluded through the Protocol and Parameter Selection (PPS) process, upon which data can be exchanged.
【激活序列通过协议和参数选择 (PPS) 过程完成,在此基础上可以进行数据交换。】 - Upon completion of data exchange, the PICC can be disabled through the de-selection process.
【数据交换完成后,可以通过取消选择过程禁用 PICC。】 - This standard has been developed with functionality and flexibility in mind.
【该标准的制定充分考虑了功能性和灵活性。】
Complete Operation 【完整操作】
- 注意
- MIFARE is NOT the same as ‘Type A’.It is not compliant to ISO/IEC 14443-4, Type A illustrated.It uses it’s own transmission protocol.
【MIFARE 与“Type A”不同。它不符合 ISO/IEC 14443-【4】。它使用自己的传输协议。】
参考:
1.新手指南:ISO-14443 协议全面解析
2.Understanding the Requirements of ISO/IEC14443 for Type B Proximity Contactless Identification Cards.pdf
3.ISO/IEC 14443 Overview.ppt
JIS X 6319 – 4
ISO/IEC 15693
NFC Forum Type 1/2/3/4/5 tags
三、软件协议栈
NCI2.0 、 2.1
EMVCo 3.0 L1
Android、FreeRTOS、Linux
四、解决方案
NFC+eSE
厂商
NXP
ST