Different performance under different protocol
Posted: Fri Nov 25, 2016 1:46 am
Hi everyone in here,
I am experiencing a strange problem now
. When I sent "8060000004" command, the applet performed differently under T0 and T1 protocol.
T0 protocol: It threw"6F00" while running into this code line short le = apdu.setOutgoing();
T1 protocol: It can return test_out value without any problem.
My code:
Does anyone tell me where I made the mistake? Thanks very much.
I am experiencing a strange problem now

T0 protocol: It threw"6F00" while running into this code line short le = apdu.setOutgoing();
T1 protocol: It can return test_out value without any problem.
My code:
Code: Select all
private void Test(APDU apdu)
{
byte[] buffer = apdu.getBuffer();
short le = apdu.setOutgoing();
apdu.setOutgoingLength((byte)4);
apdu.sendBytesLong(test_out, (short)0, (short)4);
}
Does anyone tell me where I made the mistake? Thanks very much.