NFC之间6A82 APDU通信问题使Android手机和ISO / IEC 14443-4智能卡 [英] 6A82 APDU communication issue between NFC enabled Android phone and ISO/IEC 14443-4 Smart Card

查看:2734
本文介绍了NFC之间6A82 APDU通信问题使Android手机和ISO / IEC 14443-4智能卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用NFC.For为此Android应用程序需要发送和接收APDU命令ISO / IEC 14443-4智能卡的Andr​​oid支付应用工作。

I'm currently working with an Android payment application using NFC.For this purpose Android application need to send and receive APDU commands to ISO/IEC 14443-4 Smart Card.

当我测试我使用的Galaxy S5(OS 4.4.2)银河S3(OS 4.1.2)我得到应用,或 6A82

When i test my application using Galaxy S5(OS 4.4.2) , or Galaxy s3(OS 4.1.2) I'm getting 6A82

我的code流量会象下面这样:

My Code flow is going like below:

第1步 - >

Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
 IsoDep iso = IsoDep.get(tag); 
 iso.connect();

第2步 - >
通过使用 iso.transceive()..
我送APDU命令 0084000008 从移动应用到Smard卡和
接收 F5BC9C9F3A2B7C179000 作为响应。

2nd step -> By using iso.transceive().. I'm sending APDU command 0084000008 from Mobile Application to Smard Card and receiving F5BC9C9F3A2B7C179000 as response.

3步 - >
使用 iso.isConnect()我检查的连接,
- >可用的连接

3rd Step -> using iso.isConnect() I'm checking the connection and -> Connection available

第四步 - >
通过使用 iso.transceive()..
发送APDU命令: 903203000A1403CF549C2B7520389C
接收: 6A82 所有时间

4th Step -> By using iso.transceive().. sending APDU command : 903203000A1403CF549C2B7520389C receiving : 6A82 All the time

我会很高兴,如果有人建议我,为什么我越来越不发现了奇怪的文件( 6A82 )该APDU命令。

I would be happy if anyone suggest me why I'm getting strange File not found (6A82) for this APDU command.

推荐答案

后调用 iso.connect()你应该先发选择APDU
00A40400 +
例如:

after calling iso.connect() you should send select apdu first 00A40400 + for example :

(U应该转换十六进制首先字节)

(u should convert hex to bytes first)

aid = AABBCCDD;

byte[] selectCmd = 00A4040004AABBCCDD

isoDep.transceive(command)

这篇关于NFC之间6A82 APDU通信问题使Android手机和ISO / IEC 14443-4智能卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆