当前位置:编程学习 > wap >>

nfc近场通信出问题,急求救

Tag取到之后建立链接 之后发送控制码
一直保存 
一直报错 

/**
 * 取得标签信息 
 */
private byte[] getInfoRmation() throws IOException{
byte[] cmd = new byte[10];
cmd[0] = (byte) 0x22; // flag
cmd[1] = (byte) 0x2B; // command
System.arraycopy(ID, 0, cmd, 2, ID.length); // UID
infoRmation = mNfcV.transceive(cmd);
blockNumber = infoRmation[12];
oneBlockSize = infoRmation[13];
AFI = printHexString(new byte[]{infoRmation[11]});
DSFID = printHexString(new byte[]{infoRmation[10]});
return infoRmation;
}
现在是取卡都报错 
cmd[0] = (byte) 0x22; // flag
cmd[1] = (byte) 0x2B // command
我觉得是这个东西不对
客户说她的卡
符合ISO 15693协议 


在线急求,QQ1015840277
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,