二代身份证UID读取测试 二代证是应答标准的REQB指令的,但Attrib指令是非标的,
二代证的唯一UID可以通过下面的步骤简单读取,
1. PCD发送REQB命令: 0x05 0x00 0x00 二代证收到后会发送ATQB(12 bytes)应答。 例:50 00 00 00 00 d1 03 86 0c 00 80 80
2.PCD发送非标Attrib命令 1d 00 00 00 00 00 08 01 08 二代证返回应答:08 //这里返回08不能认为是错误的,ISO14443标准返回为00
3.PCD发送读取UID命令 00 36 00 00 08 二代证返回应答:xx xx xx xx xx xx xx xx 90 00
Sent bits: 05 00 00
Received bits: 50 00 00 00 00 d1 03 86 0c 00 80 80
Sent bits: 1d 00 00 00 00 00 08 01 08
Received bits: 08
Sent bits: 00 36 00 00 08
Received bits: xx xx xx xx xx xx xx xx 90 00
我大概找到思路了
应该是通过 InDataExchange 指令 与二代证直接进行数据交互
明天要出差 后天如果回来测试下
二代身份证UID读取测试 二代证是应答标准的REQB指令的,但Attrib指令是非标的,
二代证的唯一UID可以通过下面的步骤简单读取,
1. PCD发送REQB命令: 0x05 0x00 0x00 二代证收到后会发送ATQB(12 bytes)应答。 例:50 00 00 00 00 d1 03 86 0c 00 80 80
2.PCD发送非标Attrib命令 1d 00 00 00 00 00 08 01 08 二代证返回应答:08 //这里返回08不能认为是错误的,ISO14443标准返回为00
3.PCD发送读取UID命令 00 36 00 00 08 二代证返回应答:xx xx xx xx xx xx xx xx 90 00
Sent bits: 05 00 00
Received bits: 50 00 00 00 00 d1 03 86 0c 00 80 80
Sent bits: 1d 00 00 00 00 00 08 01 08
Received bits: 08
Sent bits: 00 36 00 00 08
Received bits: xx xx xx xx xx xx xx xx 90 00
一周热门 更多>