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.

Get "6E 00" APDU response

JavaCard Applet Development Related Questions and Answers.
Eaonm
Posts: 3
Joined: Sat Dec 05, 2015 3:08 am
Points :8
Contact:

Get "6E 00" APDU response

Post by Eaonm » Sat Dec 05, 2015 3:32 am

I am testing an EMV card. After a successful selection of the EMV application, when I send the APDU command--Get Processing Options with class value 0x80, it threw SW=6E 00 (CLA value not supported).
Here is my command.
Send: 0x80 0xA8 0x00 0x00 0x02 0x83 0x00 0x00
Recv: 0x6E 0x00
Part of my code:

Code: Select all

byte[] myPDOLData={ (byte) 0x83, 0x00}; 
CommandAPDU myComm = new CommandAPDU((byte)0x80, (byte)0xA8, 0x00, 0x00, myPDOLData, 0x00);
myChannel.transmit(myCom);


I don't have any clues about this issue. Why did I get the response 6E 00?

Eaonm
Posts: 3
Joined: Sat Dec 05, 2015 3:08 am
Points :8
Contact:

Re: Get "6E 00" APDU response

Post by Eaonm » Mon Dec 14, 2015 10:21 pm

I investigate further. The problem is due to the Get Response command. When sending the get processing option (80A80000028300) the card respond 6114. But, instead of sending the following APDU (00 C0 00 00 14) it sends (80 C0 00 00 14) which is a Class error, then the card respond 6E00.
Does anyone has an idea how to fix this problem?

User avatar
horse dream
Posts: 76
Joined: Thu May 21, 2015 11:48 pm
Points :138
Contact:

Re: Get "6E 00" APDU response

Post by horse dream » Mon Dec 14, 2015 10:22 pm

Eaonm wrote:I investigate further. The problem is due to the Get Response command. When sending the get processing option (80A80000028300) the card respond 6114. But, instead of sending the following APDU (00 C0 00 00 14) it sends (80 C0 00 00 14) which is a Class error, then the card respond 6E00.
Does anyone has an idea how to fix this problem?


This is because sun.security.smartcardio.CardImpl in smartcardio attempts to handle response chaining for you. To solve this issue, do as follow:

Modify the applet to return 6100 regardless of how many more bytes are being returned when T=0.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 82 guests

JavaCard OS : Disclaimer