射频卡协议ISO14443- 全文中文 下载本文

内容发布更新时间 : 2024/12/27 18:37:37星期一 下面是文章的全部内容请认真阅读。

中国金融集成电路(IC)卡 与应用无关的非接触式规范

中国金融集成电路(IC)卡标准修订工作组

二零零四年九月

目 次

1 2 3

范围 ........................................................................................................................................... 1 参考资料 ................................................................................................................................... 2 定义 ........................................................................................................................................... 3 3.1 集成电路 Integrated circuit(s)(IC) ..................................................................... 3 3.2 无触点的 Contactless .............................................................................................. 3 3.3 无触点集成电路卡 Contactless integrated circuit(s) card ...................................... 3 3.4 接近式卡 Proximity card(PICC) ........................................................................ 3 3.5 接近式耦合设备 Proximity coupling device(PCD) ........................................... 3 3.6 位持续时间 Bit duration .......................................................................................... 3 3.7 二进制移相键控 Binary phase shift keying ............................................................ 3 3.8 调制指数 Modulation index .................................................................................... 3 3.9 不归零电平 NRZ-L ................................................................................................. 3 3.10 副载波 Subcarrier .................................................................................................... 3 3.11 防冲突环 anticollision loop ..................................................................................... 3 3.12 比特冲突检测协议 bit collision detection protocol ................................................ 3 3.13 字节 byte .................................................................................................................. 3 3.14 冲突 collision ........................................................................................................... 3 3.15 基本时间单元(etu) elementary time unit(etu) .............................................. 3 3.16 帧 frame ................................................................................................................... 3 3.17 高层 higher layer ...................................................................................................... 4 3.18 时间槽协议 time slot protocol ................................................................................. 4 3.19 唯一识别符 Unique identifier(UID) .................................................................. 4 3.20 块 block .................................................................................................................... 4 3.21 无效块 invalid block ................................................................................................ 4 缩略语和符号表示 ................................................................................................................... 5 物理特性 ................................................................................................................................... 8 5.1 一般特性 ................................................................................................................... 8 5.2 尺寸 ........................................................................................................................... 8 5.3 附加特性 ................................................................................................................... 8

5.3.1 紫外线 ............................................................................................................... 8 5.3.2 X-射线............................................................................................................... 8 5.3.3 动态弯曲应力 ................................................................................................... 8 5.3.4 动态扭曲应力 ................................................................................................... 8 5.3.5 交变磁场 ........................................................................................................... 8 5.3.6 交变电场 ........................................................................................................... 8 5.3.7 静电 ................................................................................................................... 8 5.3.8 静态磁场 ........................................................................................................... 8 5.3.9 工作温度 ........................................................................................................... 9 射频功率和信号接口 ............................................................................................................... 9 6.1 PICC的初始对话 ..................................................................................................... 9 6.2 功率传送 ................................................................................................................... 9

6.2.1 频率 ................................................................................................................... 9

I

4

5

6

7

8

6.2.2 工作场 ............................................................................................................... 9 6.3 信号接口 ................................................................................................................... 9 6.4 A类通信信号接口 ................................................................................................. 10

6.4.1 从PCD到PICC的通信 ................................................................................ 10 6.4.2 从PICC到PCD的通信 ................................................................................ 12 6.5 B类通信信号接口 ................................................................................................. 13

6.5.1 PCD到PICC的通信 ..................................................................................... 13 6.5.2 PICC到PCD的通信 ..................................................................................... 13 6.6 PICC最小耦合区 ................................................................................................... 14 初始化和防冲突 ..................................................................................................................... 15 7.1 轮询 ......................................................................................................................... 15 7.2 类型A-初始化和防冲突 ........................................................................................ 15

7.2.1 字节、帧、命令格式和定时 ......................................................................... 15 7.2.2 PICC状态 ....................................................................................................... 19 7.2.3 命令集 ............................................................................................................. 20 7.2.4 选择序列 ......................................................................................................... 21 7.3 类型B 初始化和防冲突 ..................................................................................... 26

7.3.1 比特、字节和帧的定时 ................................................................................. 26 7.3.2 CRC_B ............................................................................................................ 28 7.3.3 防冲突序列 ..................................................................................................... 28 7.3.4 PICC状态描述 ............................................................................................... 29 7.3.5 命令集合 ......................................................................................................... 31 7.3.6 ATQB和Slot-MARKER响应概率规则 ....................................................... 31 7.3.7 REQB命令 ..................................................................................................... 31 7.3.8 Slot-MARKER命令 ....................................................................................... 33 7.3.9 ATQB(请求应答-类型B)响应.................................................................. 33 7.3.10 ATTRIB命令 .................................................................................................. 34 7.3.11 对ATTRIB命令的应答 ................................................................................. 36 7.3.12 HALT命令及应答.......................................................................................... 36 传输协议 ................................................................................................................................. 38 8.1 类型A PICC的协议激活 ...................................................................................... 38

8.1.1 选择应答请求 ................................................................................................. 40 8.1.2 选择应答 ......................................................................................................... 40 8.1.3 协议和参数选择请求 ..................................................................................... 43 8.1.4 协议和参数选择响应 ..................................................................................... 45 8.1.5 激活帧等待时间 ............................................................................................. 45 8.1.6 差错检测和恢复 ............................................................................................. 45 8.2 类型B PICC的协议激活 ...................................................................................... 46 8.3 半双工块传输协议 ................................................................................................. 46

8.3.1 块格式 ............................................................................................................. 46 8.3.2 帧等待时间(FWT) .................................................................................... 49 8.3.3 帧等待时间扩展 ............................................................................................. 49 8.3.4 功率水平指示 ................................................................................................. 50 8.3.5 协议操作 ......................................................................................................... 50

II

类型A和类型B PICC的协议停活 ..................................................................... 52 8.4.1 停活帧等待时间 ............................................................................................. 53 8.4.2 差错检测和恢复 ............................................................................................. 53

9 数据元和命令 ......................................................................................................................... 54

9.1 关闭非接触通道命令 ............................................................................................. 54

9.1.1 定义和范围 ..................................................................................................... 54 9.1.2 命令报文 ......................................................................................................... 54 9.1.3 命令报文数据域 ............................................................................................. 54 9.1.4 响应报文数据域 ............................................................................................. 54 9.1.5 响应报文状态码 ............................................................................................. 54 9.2 激活非接触通道命令 ............................................................................................. 55

9.2.1 定义和范围 ..................................................................................................... 55 9.2.2 命令报文 ......................................................................................................... 55 9.2.3 命令报文数据域 ............................................................................................. 55 9.2.4 响应报文数据域 ............................................................................................. 55 9.2.5 响应报文状态码 ............................................................................................. 55

附 录 A: 标准兼容性和表面质量 ............................................................................................. 56

A.1. 标准兼容性 ............................................................................................................. 56 A.2. 印刷的表面质量 ..................................................................................................... 56 附 录 B: ISO/IEC其他卡标准参考目录 .................................................................................. 57 附 录 C: 类型A的通信举例 ..................................................................................................... 58 附 录 D: CRC_A和CRC_B的编码 .............................................................................................. 60

D.1. CRC_A编码 ........................................................................................................... 60

D.1.1. 通过标准帧发送的比特模式举例 ................................................................. 60 D.2. CRC_B编码 ........................................................................................................... 60

D.2.1. 通过标准帧传送的比特模式实例 ................................................................. 60 D.2.2. 用C语言写的CRC计算的代码例子 .......................................................... 61

附 录 E: 类型A_时间槽-初始化和防冲突 .............................................................................. 64

E.1. 术语和缩略语 ......................................................................................................... 64 E.2. 比特、字节和帧格式 ............................................................................................. 64

E.2.1. 定时定义 ......................................................................................................... 64 E.2.2. 帧格式 ............................................................................................................. 64 E.3. PICC状态 ............................................................................................................... 64

E.3.1. POWER-OFF状态 ......................................................................................... 64 E.3.2. IDLE状态 ....................................................................................................... 65 E.3.3. READY状态 .................................................................................................. 65 E.3.4. ACTIVE状态 ................................................................................................. 65 E.3.5. HALT状态 ..................................................................................................... 65 E.4. 命令/响应集合 ........................................................................................................ 65 E.5. 时间槽防冲突序列 ................................................................................................. 65 附 录 F: 详细的类型A PICC状态图 ....................................................................................... 67 附 录 G: 使用多激活的举例 ..................................................................................................... 69 附 录 H: 协议说明书 ................................................................................................................. 70

H.1. 记法 ......................................................................................................................... 70

III

8.4

无差错操作 ............................................................................................................. 70 H.2.1. 块的交换 ......................................................................................................... 70 H.2.2. 等待时间扩展请求 ......................................................................................... 70 H.2.3. DESELECT ..................................................................................................... 70 H.2.4. 链接 ................................................................................................................. 71 H.3. 差错处理 ................................................................................................................. 71

H.3.1. 块的交换 ......................................................................................................... 71 H.3.2. 等待时间扩展请求 ......................................................................................... 72 H.3.3. DESELECT ..................................................................................................... 74 H.3.4. 链接 ................................................................................................................. 74

附 录 I: 块和帧编码概览 ......................................................................................................... 77

H.2.

IV