Page 1 of 1

APDU generation

Posted: Mon Sep 25, 2017 11:41 pm
by colkif
Hi all. Here is a great java card forum that I have ever seen.
And I am a newbie is this field. Now I have a problem that need java card experts' help. Many thanks for any help.

If I send APDU as a Hex number through serial communication, will I get the desired result?

Re: APDU generation

Posted: Tue Sep 26, 2017 1:40 am
by Tarantino
Please refer to GP 2.1.1, chapter 8: Secure Communication

Re: APDU generation

Posted: Tue Sep 26, 2017 1:59 am
by colkif
I checked GP 2.1.1 specification as you suggested, but I still have a problem, if we don't use Secure Messaging Protocol (ext-auth plain), we should send APDU just like,

Code: Select all

00 A4 04 00 07 A0 00 00 00 03 00 00 00; // select card manager.

through serial communication to Java card.I tried to send this message but I got some other junk values. Is it normal?

Re: APDU generation

Posted: Thu Sep 28, 2017 12:01 am
by javacardx
Maybe you should notice the setting about the baud rate of serial communication. If you give more detail about your current test environment, it will more easily for others to help you.