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.

I got 0x6985 and 0x611C from my java card in different scenario.

JavaCard Applet Development Related Questions and Answers.
nearsunshine
Posts: 8
Joined: Wed Aug 12, 2015 6:27 am
Points :21
Contact:

I got 0x6985 and 0x611C from my java card in different scenario.

Post by nearsunshine » Mon Jan 25, 2016 2:11 am

I have a written a java applet to send APDU command to my java card. When I am sending Init_Auth command(80500000...) to the card, it returns sw=0x6985.

But when I send the same command with pyApdutool, I get "611C".

It's odd. Could anyone give me a tip? Why does this happen?

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

Re: I got 0x6985 and 0x611C from my java card in different scenario.

Post by horse dream » Tue Jan 26, 2016 3:14 am

When it returns "61 1C" response, you need to send "Get response" APDU command.
>> 00 C0 00 00 1C

nearsunshine
Posts: 8
Joined: Wed Aug 12, 2015 6:27 am
Points :21
Contact:

Re: I got 0x6985 and 0x611C from my java card in different scenario.

Post by nearsunshine » Tue Jan 26, 2016 3:20 am

horse dream wrote:When it returns "61 1C" response, you need to send "Get response" APDU command.
>> 00 C0 00 00 1C


Hi @ horse dream. Thank your for your answer. But I know this. My main question is why I got different status word("6985", "611C") when I send the same command via my java code and APDUTool.

User avatar
mabel
Posts: 237
Joined: Mon May 18, 2015 3:09 am
Points :1705
Contact:

Re: I got 0x6985 and 0x611C from my java card in different scenario.

Post by mabel » Tue Jan 26, 2016 3:23 am

You may try to append 0x1C to APDU command, just like:
80 50 00 00 0X AID 1C
note: 0x is the AID's length.

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

Re: I got 0x6985 and 0x611C from my java card in different scenario.

Post by horse dream » Tue Jan 26, 2016 3:25 am

nearsunshine wrote:Hi @ horse dream. Thank your for your answer. But I know this. My main question is why I got different status word("6985", "611C") when I send the same command via my java code and APDUTool.


For java, there is a "feature" in a package javax.smartcardio when it is working with a card protocol T=0
The solution of problem is to update that package with the errorless release.
You may have a try.

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

Re: I got 0x6985 and 0x611C from my java card in different scenario.

Post by UNKNwYSHSA » Wed Jan 27, 2016 5:32 am

The pyApdu tool select Security Domain (SD) first, and the INITIALIZE UPDATE command get response succeeded.
Make sure that your offcard application select SD first. If not, and if your card has one applet had RESET privilege. The INITIALIZE UPDATE command will be sent to the applet.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 18 guests

JavaCard OS : Disclaimer