>>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");

You should not construct your terminal instance explicitly. Terminal
instances are implicitly instanatiated
by OCF when you invoke SmartCard.start().



>>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

Your opencard.properties file looks fine.

You can just invoke SmartCard.start(),

then
CardRequest cr = new CardRequest(0); // 0 is interpreted as 'no timeout'
cr.setWaitBehavior(CardRequest.
SmartCard card = SmartCard.waitForCard(cr);

Then you can obtain a pass thru card service from the SmartCard instance.

Please have a look at the OCF programming guide for some more samples and
then feel free
to come back with more questions.


Peter Bendel, IBM


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.

Reply via email to