JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

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

JavaCard Applet Development Related Questions and Answers.
AmigoJack
Posts: 17
Joined: Thu Nov 19, 2015 4:56 am
Points :87
Contact:

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

Post by AmigoJack » Fri Dec 25, 2015 3:48 am

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?

You do not have the required permissions to view the files attached to this post. Please login first.

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3055
Contact:

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

Post by UNKNwYSHSA » Sat Dec 26, 2015 9:55 pm

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.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 33 guests

JavaCard OS : Disclaimer