Dave,
You don't need to instantiate the CardTerminal object. You must let the
GemplusCardTerminalFactory do that for you. Your 'opencard.properties' file
is good. So, the creation of the GemCoreCardTerminal object (GCR410 is a
GemCore-based reader) will automatically be initiated at the framework
intialization step.
To send an APDU command, you just need to write a piece of code like the
following one :
// Declaration of APDU command and response objects
CommandAPDU myCommand;
ResponseAPDU myResponse;
// Allocation of a CardChannel
allocateCardChannel();
// Building of your APDU command
myCommand=new CommandAPDU(...);
...etc...
// Sending of the APDU command
myResponse = getCardChannel().sendCommandAPDU(myCommand);
...etc...
So, as you can see, there's no need to handle the CardTerminal object.
That's why you can't create a GemCoreCardTerminal object (the constructor
is protected).
Sincerely,
Patrick Biget
Gemplus Research Lab.
____________________________ S�parateur R�ponse ________________________________
Objet : [OCF] Gemplus CoreCardTerminal
Auteur : "Davide" <[EMAIL PROTECTED]> � INTERNET
Date : 06/07/99 09:42
Hello everyone.
I'm developing an application with the smartcard reader GCR410. I downloaded the
Gemplus Terminal pure java implementation, but I can't initializate the reader.
It doesn't work nor with GCR410CardTerminal. I tried with
GemCoreCardTerminal cardTerminal = new GemCoreCardTerminal();
GemCoreCardTerminal cardTerminal = new GemCoreCardTerminal("myreader", "GCR410",
"COM2");
but it answer with
No constructor matching GemCoreCardTerminal() found in class
com.gemplus.opencard.terminal.GemCoreCardTerminal.
No construcotor matching GemCoreCardTerminal(java.lang.String, java.lang.String,
java.lang.String) found in class
com.gemplus.opencard.terminal.GemCoreCardTerminal.
Does anyone has idea how I could initializate the reader to work with it?
I wrote in the opencard.properties
OpenCard.services = opencard.opt.util.PassThruCardServiceFactory
OpenCard.terminals =
com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM2
OpenCard.trace = opencard:4 com.ibm:4 com.gemplus.opencard.terminal:8
Thanx in advance!
----------------------------------------------------------------
INFORMATION AUTOMATIC VIRUS CHECK (GEMPLUS) No virus known.
----------------------------------------------------------------
----------------------------------------------------------------
INFORMATION AUTOMATIC VIRUS CHECK (GEMPLUS) No virus known.
----------------------------------------------------------------
Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
access to documentation, code, presentations, and OCF announcements.
-----------------------------------------------------------------------------
To unsubscribe from the OCF Mailing list, send a mail to
"[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
message.