问题
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