Page 1 of 1

APDU buf array can not receive all the APDU command, why?

Posted: Fri Dec 25, 2015 3:48 am
by AmigoJack
I need to send the following APDU command to my applet.
/send 80010000050102030405

But there is a strange thing. I add APDU buf array to my watch list and when I debug my applet step by step, the buf only contains
the first five bytes. It seems that APDU buf doesn't receive the remaining bytes. Why this happened? What's wrong with APDU command?


Re: APDU buf array can not receive all the APDU command, why?

Posted: Sat Dec 26, 2015 9:55 pm
by UNKNwYSHSA
It seems that the header of command bytes are received. You are using T0 protocol?
If your APDU command has DATA bytes(case3/case4), please invoke method APDU.setIncomingAndReceive() to receive the first DATA bytes block, and the method APDU.receiveBytes() for other DATA bytes blocks.