日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2023/12/10 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何使用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


總結

以上是生活随笔為你收集整理的如何使用NFC读卡器读取NFC卡片的UID?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。