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

方法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


相关推荐
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页