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

本文详细介绍了使用ACR122U读取Mifare Ultra Light卡片UID的过程,包括两种方法:通过APDU命令FFCA000000读取UID,以及直接读取卡片第一个和第二个page的数据来获取UID。同时解释了UID的作用及Mifare Ultra Light C和Mifare Plus卡片的UID特性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值