![](/img/trans.png)
[英]Reading data from NFC Type B (ISO 14443-3B) in android nfc; getting NoClassDefFoundError
[英]Android NFC (ATQB from ISO-14443 Type B tag to phone)
我的目标是让Android手机(三星Galaxy Nexus)通过NFC以仿真模式(仿真ISO-14443 B型标签)与TI TRF7970A卡进行通信。
我了解PCD(Android手机)会发送给定AFI的“ REQB”,然后,具有匹配AFI的PICC(在我的情况下,只有PICC是TI TRF7970卡)都会向其发送“ ATQB” PCD。
在某些TRF7970A固件中,“ ATQB”响应的设置如下:
0x50; //
//PUPI
0x80; // PUPI_0
0x12; // PUPI_1
0x34; // PUPI_2
0x56; // PUPI_3
//Application DATA
0x40; // APP_0 AFI Telecommunication (Telephone,GSM) All Sub families 1-F
0xE2; // APP_1 CRC_B of the AID (multibyte application identifier code which identifies an application provider or issuer and indicates if the application provider is registered with ISO)
0xAF; // APP_2 CRC_B of the AID
0x11; // APP_3 # of applications (1)
//Protocol DATA
0x80; // Data rate capabilities (Same bit rate from PCD to PICC and from PICC to PCD compulsory)
0x71; // Max Frames (128 bytes) / Protocol Type (supports PICC ISO 14443-4)
0x85; // FWI (0b1000 - 8192 ETUs or 77328.6 us) / ADC (0b01 - determines what APP_0-3 are if 0b00 then App data can be anything) / FO (0b01 - CID Supported - used for identification of multiple cards in the Active state)
此“ ATQB”使PCD(Android手机)自动启动URL为“ http://www.Cisco Auth Complete”的Web浏览器。
题:
(1)哪个字段告诉电话自动启动Web浏览器? 如何更改该字段,以便可以手动选择要根据意图执行的应用程序?
我尝试过在线查找以了解如何操纵田野,但是没有运气。
我用Android手机读取了3个B型14443-4智能卡(MAXIM-MAX66020k-00AA +),“ ATQB”如下:
Card 1 Card 2 Card 3
0x50 0x50 0x50
//PUPI
0xd8 0x99 0x1a
0x60 0x5c 0x61
0x02 0x02 0x02
0x00 0x00 0x00
//Application Data
0x10 0x20 0x10
0x10 0x00 0x10
0x11 0x2b 0x11
0x11 0xe0 0x11
//Protocol Data
0x00 0x00 0x00 106Kbits/sec
0x00 0x00 0x00 16 bytes / Not type B -4 complient)
0x00 0x00 0x00 32 ETUs / Application is proprietary / Nad "nor" CID are supported
我尝试使用TI TRF7970A卡发送这些确切的ATQB消息,但Android手机仍然无法对“ ATQB”响应进行操作。
题:
(2)您能否指出为什么最后三个“ ATQB”中的任何一个都不被排除的原因?
(3)什么是合法的“ ATQB”,当它发送到我的Android手机时会产生意图吗?
(4)有没有我可以遵循的规则,以便我的Android手机始终在TI TRF7970A响应的“ ATQB”上创建意图?
如果您可以引导我到可以解释任何这些问题的资料来源,将不胜感激。
提前致谢!
-德里克
我认为您在找错地方了。 TRF7970A可能正在模拟包含NDEF消息的NFC论坛Type 4标签 。 在http://developer.android.com/guide/topics/nfc/nfc.html上解释了这如何导致意图
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.