Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Extended APDUs on JC10M128C

Card Products

Moderator: horse dream

tommihasi
Posts: 2
Joined: Wed Jul 26, 2017 5:20 am
Points :34
Contact:

Extended APDUs on JC10M128C

Post by tommihasi » Tue Aug 01, 2017 5:32 am

Hi,

I use the JC10M128C card with JCIDE 2.0.1.70.

I have implemented an applet, which shall support extended APDUs with T=1. In general it works
for transmit and receive, I can see, that the APDU is divided in chunks to transfer data sizes above
of IFSD/IFSC.

But I see a problem during transmit from card (card->reader), if the response data is larger then 256 bytes.
In this case I get an exception during execution of command:

apdu.setOutgoingLength(outlength); // outlength is 257 -> exception
apdu.setOutgoingLength(outlength); // outlength is 256 -> no problem

The exception tells me the reason: BAD_LENGTH.

Is there any known limitation with this card ?

I use the "import javacardx.apdu.ExtendedLength;", and in general it works, but to a size of 256 bytes only.
I use the extended Le and Lc, as specified in ISO7816.

Regards,

Torsten

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

Re: Extended APDUs on JC10M128C

Post by UNKNwYSHSA » Sat Aug 05, 2017 1:24 pm

Your applet shall extends ExtendedLength interface.
Please refer to this example: https://javacardos.com/wiki/javacard-ap ... munication
sense and simplicity

tommihasi
Posts: 2
Joined: Wed Jul 26, 2017 5:20 am
Points :34
Contact:

Re: Extended APDUs on JC10M128C

Post by tommihasi » Mon Aug 07, 2017 3:56 am

Hi,

thanks a lot, this hint solved the issue. I forgot to append the "implements ExtendedLength" to the "public class" line.

Regards,

Torsten

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 18 guests

JavaCard OS : Disclaimer