是否可以使用 Broadcom NFC 芯片通过 android phone 获取 Mifare Classic 或 Desfire 卡的 UID?

Is it possible to get UID of a Mifare Classic or Desfire card by android phone with the Broadcom NFC chip?

我只需要通过getId() 函数获取Mifare classic 或Desfire 卡的UID。我不需要任何其他读写操作。

带有broadcom NFC 芯片的智能手机可以读取Mifare 或Desfire 卡的UID 吗? 我查看了 Nexus 4 read Mifare Classic card UID and What mobile phones with NFC have full support of Mifare Classic (1K & 4K) cards? 个话题,但没有明确的答案。

有人试过吗?使用 Mifare 或 Desfire 的三星 Galaxy Young 2 或三星 Galaxy S3 Neo?

谢谢 :)

是的,这是可能的。您只需要使用 android.nfc.Tag (http://developer.android.com/reference/android/nfc/Tag.html#getId()) 中的方法 getId(),无论您的 phone 上有什么 NFC 芯片组,您都将获得 UID。 UID 不是 Mifare 特定的标识符,而是 ISO 14443-3 中定义的标识符,因此所有非接触式卡都应以相同的方式提供它。好的,TypeA 和 TypeB 是有区别的,但你明白我的意思。

我已经在 Nexus 5 上测试过它,我相信它也有 Broadcom 芯片组。请在其他终端上测试时分享您的结果!