What's the difference between APDU and TPDU?

JavaCard Applet Development Related Questions and Answers.
BirdKing
Posts: 73
Joined: Wed Nov 04, 2015 7:23 am
Points :532
Contact:

Re: What's the difference between APDU and TPDU?

Post by BirdKing » Mon Mar 04, 2019 8:15 am

Hello, I have a new question about T0 ATR. When I send chained blocks, a mismake happened. The commands are:
OUT 63 00 00 00 00 00 69 00 00 00
IN 81 00 00 00 00 00 69 01 00 00
OUT 62 00 00 00 00 00 6a 00 00 00
IN 80 13 00 00 00 00 6a 00 00 00 3b 9c 95 80 1f 03 90 67 46 4a 01 01 38 06 00 00 00 00 50
OUT 61 05 00 00 00 00 6b 00 00 00 95 00 00 0a 00
IN 82 07 00 00 00 00 6b 00 00 00 95 00 00 0a 00
OUT 6f 05 00 00 00 00 6c 00 00 01 00 a4 04 00 00
IN 80 16 00 00 00 00 6c 00 00 01 00 00 a5 50 73 4a 06 07 2a 86 48 86 fc 6b 01 60 0c 06 0a 2a 86 48
OUT 6f 05 00 00 00 00 6d 00 10 00 00 00 00 00 00
IN 80 16 00 00 00 00 6d 00 00 03 00 00 00 00 00 86 fc 6b 02 02 01 01 63 09 06 07 2a 86 48 86 fc 6b
OUT 63 00 00 00 00 00 6e 00 00 00
IN 81 00 00 00 00 00 6e 01 00 00
The 8st byte is 0x10, that's means this abData field of the out block should be empty. Where the 5 bytes '00' are come form? And how to process them?

BirdKing
Posts: 73
Joined: Wed Nov 04, 2015 7:23 am
Points :532
Contact:

Re: What's the difference between APDU and TPDU?

Post by BirdKing » Fri Mar 15, 2019 5:58 am

The response command to '61' was wrong. When I corrected this error, this phenomenon did not recur.

BirdKing
Posts: 73
Joined: Wed Nov 04, 2015 7:23 am
Points :532
Contact:

Re: What's the difference between APDU and TPDU?

Post by BirdKing » Fri Mar 15, 2019 6:05 am

There are two variables: IFSC and maxCCIDmessageLength in In CCID class descripter. Which factor plays a decisive role in determining the length of CCID subcontracting?

BirdKing
Posts: 73
Joined: Wed Nov 04, 2015 7:23 am
Points :532
Contact:

Re: What's the difference between APDU and TPDU?

Post by BirdKing » Tue Mar 19, 2019 11:05 pm

The IFSC is dedicated to T=1. For APDU level, maxCCIDMessageLenth decided fsc length. In fact,we can send any length by only need to take care of this length smaller than maxCCIDmessageLength.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: Google [Bot] and 6 guests

JavaCard OS : Disclaimer