Android : NFC APDU command response '6700' Wrong length'

*爱你&永不变心* 提交于 2019-12-22 01:02:45

问题


I am sending below APDU command to ISODep tag and I am getting '6700 wrong length'

byte[] command = new byte[]{ (byte)0x80,  (byte)0xD0, (byte)0x01, (byte)0x00, (byte)0x07,(byte)0x22 , (byte)0x22,(byte)0x12 , (byte)0x34 , (byte)0x56 , (byte)0x78 , (byte)0x90  };

Please suggest if something is wrong in above command.


回答1:


You are sending a case 4 APDU there, right? Your Lc indicates 0x07 bytes of data, and there's a Le of 0x90 trailing. Check with your specification whether this command is actually expecting a case 4 structure, or whether you just got the data length in the Lc field wrong (0x08 instead of 0x07).



来源:https://stackoverflow.com/questions/14850550/android-nfc-apdu-command-response-6700-wrong-length

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!