如何使用NFC读卡器读取NFC卡片的UID

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

                方法1:

APDU命令FFCA000000 读取UID

ACR122U APDU Command
< FF CA 00 00 00
> 04 76 BF E1 BF 02 80 90 00


方法2:

因为Mifare UltraLight卡片的UID是在卡片的第一个page和第二个Page里面,所以我们可以直接读取page 1个page 2数据就好了。

ACR122U Read Page

< FF B0 00 00 04
> 04 76 BF 45 90 00
> Data Read at Start Page 00
> Number of Bytes Read: 04
>> Hex Mode: 04 76 BF 45

ACR122U Read Page
< FF B0 00 01 04
> E1 BF 02 80 90 00
> Data Read at Start Page 01
> Number of Bytes Read: 04
>> Hex Mode: E1 BF 02 80


参考1:

APDU "Read Binary Blocks command" 参考“ACR122U NFC Reader API.pdf”的5.3 Read Binary Blocks 章节
APDU "Get UID APDU"参考“ACR122U NFC Reader API.pdf”的4.1 PICC Commands for General Purposes章节


参考2:

What is a unique identifier number and what is it used for?
ISO/IEC 14443 Type A defines a Unique IDentifer to be used for card selection and activation. The standard defines single, double and triple size UIDs which correspondingly consist of 4, 7 and 10 Byte. In many contactless systems, the UID is not only used for card activation but also as a logical reference i.e. in a background system to the card itself

MIFARE Ultralight C
Unique 7 bytes serial number (UID)

MIFARE Plus
7 or 4 bytes UID. Optional supporting random UID


           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述

你可能感兴趣的:(如何使用NFC读卡器读取NFC卡片的UID)