测试下来,每种卡片只能正确响应一种连接类型。
测试结果如下:
==============================================================================
Mifare Ultralight(华虹)
BlackBerry API target.getUri(Target.ISO_14443_3)返回的结果:nfc:raw:33554556
能建立ISO14443Part3Connection连接,发送0x30读指令读到数据
Mifare 1K(华虹,淘宝),Mifare 4K(北京淘宝):
BlackBerry API target.getUri(Target.ISO_14443_3)返回的结果:nfc:raw:33554556
能建立ISO14443Part3Connection连接,但发送0x30读指令后报错Error exchaning ISO14443-3 data: UnExpected error
Desfire 4K(北京淘宝):
BlackBerry API target.getUri(Target.ISO_14443_4)返回的结果:
nfc:iso14443:33554473
能建立ISO14443Part4Connection连接,但发送0x30读指令或者0x60认证指令后返回结果总是两个byte -- 9700,看样子是Desfire不认这两种指令。
Mifare Ultralight空卡/有智能标签的卡:
BlackBerry API target.getUri(Target.NDEF_TAG)返回的结果:
nfc:ndef:33554502
无法建立连接(连接为空)
==============================================================================
参考:
Target类的说明:
Represents a card or tag that the NFC controller detected. Also identifies the type of contactless protocol that is used to connect to the card or tag. Contactless protocols are grouped into four categories (beginning with the lowest layer):
- ISO_14443_3 covers ISO 14443, A-3, B-3
- ISO_14443_4 covers ISO 14443, A-4, B-4
- NDEF_TAG covers NFC tags type 1, 2, 3, 4
本文测试了不同类型的卡片在连接ISO14443 Part3、Part4、NDEF_TAG时的表现,发现每种卡片只能正确响应一种连接类型。详细结果包括MifareUltralight、Mifare1K/Mifare4K、Desfire4K、MifareUltralight空卡/有智能标签卡的连接情况。

被折叠的 条评论
为什么被折叠?



