简体   繁体   English

通过Omnikey 5022读卡器读取Mifare Classic和Desfire卡

[英]Reading Mifare Classic & Desfire cards via Omnikey 5022 reader

I have an Android project for which I need to read 3 types of NFC cards namely Mifare Ultralight, Mifare Classic, and Desfire Cards via an Omnikey 5022 reader connected to the app through USB.我有一个Android项目,需要通过通过USB连接到应用程序的Omnikey 5022读取器读取3种类型的NFC卡,即Mifare Ultralight,Mifare Classic和Desfire卡。

I did some digging and was successfully able to read the Mifare Ultralight cards.我进行了一些挖掘,并成功读取了Mifare Ultralight卡。 The command I used for reading a specific page on the ultralight card was "FFB000 01 10" for page 1, where I was able to change the highlighted number to read whatever page was required.我用于读取Ultralight卡上特定页面的命令是页面1的“ FFB000 01 10”,在这里我可以更改突出显示的数字以读取所需的任何页面。

I am looking for similar commands to read Mifare classic and Desfire cards(certain blocks/application).我正在寻找类似的命令来读取Mifare经典卡和Desfire卡(某些模块/应用程序)。

For Mifare classic , we need to authenticate the sector 5 with key A and the default key "FFFFFFFFFFFF".对于Mifare classic,我们需要使用密钥A和默认密钥“ FFFFFFFFFFFF”对扇区5进行身份验证。 Similarly for Desfire cards I need to read the 0th application.同样,对于Desfire卡,我需要阅读第0个应用程序。

Can someone help me or point me in the right direction for these?有人可以帮助我或为我指出正确的方向吗?

Also even if I figure out commands to read data off of all 3 cards, can someone help me how can I distinguish between them and thus know which command to fire for which card.同样,即使我找出了从所有3张卡中读取数据的命令,也有人可以帮助我如何区分它们,从而知道为哪张卡触发哪个命令。 I have done this using the tag present in the intent when working with NFC reader present in the device, but not sure of how to do this with an external reader.当使用设备中的NFC阅读器时,我已经使用了意图中显示的标签,但是不确定如何使用外部阅读器进行此操作。

I have an Android project for which I need to read 3 types of NFC cards namely Mifare Ultralight, Mifare Classic, and Desfire Cards via an Omnikey 5022 reader connected to the app through USB.我有一个Android项目,需要通过通过USB连接到应用程序的Omnikey 5022读取器读取3种类型的NFC卡,即Mifare Ultralight,Mifare Classic和Desfire卡。

I did some digging and was successfully able to read the Mifare Ultralight cards.我进行了一些挖掘,并成功读取了Mifare Ultralight卡。 The command I used for reading a specific page on the ultralight card was "FFB000 01 10" for page 1, where I was able to change the highlighted number to read whatever page was required.我用于读取Ultralight卡上特定页面的命令是页面1的“ FFB000 01 10”,在这里我可以更改突出显示的数字以读取所需的任何页面。

I am looking for similar commands to read Mifare classic and Desfire cards(certain blocks/application).我正在寻找类似的命令来读取Mifare经典卡和Desfire卡(某些模块/应用程序)。

For Mifare classic , we need to authenticate the sector 5 with key A and the default key "FFFFFFFFFFFF".对于Mifare classic,我们需要使用密钥A和默认密钥“ FFFFFFFFFFFF”对扇区5进行身份验证。 Similarly for Desfire cards I need to read the 0th application.同样,对于Desfire卡,我需要阅读第0个应用程序。

Can someone help me or point me in the right direction for these?有人可以帮助我或为我指出正确的方向吗?

Also even if I figure out commands to read data off of all 3 cards, can someone help me how can I distinguish between them and thus know which command to fire for which card.同样,即使我找出了从所有3张卡中读取数据的命令,也有人可以帮助我如何区分它们,从而知道为哪张卡触发哪个命令。 I have done this using the tag present in the intent when working with NFC reader present in the device, but not sure of how to do this with an external reader.当使用设备中的NFC阅读器时,我已经使用了意图中显示的标签,但是不确定如何使用外部阅读器进行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM