Christophe Muller wrote:
>
> Hello,
>
> Brian McGuiness wrote:
> > I'm having a problem in that the OCF card registry tells me that I
> > have four terminals available when I only have two connected to my
> > machine.
[snip]
Thanks for the info.
I solved my problem. I was using the following piece of code that I had
picked up from this very mailing list:
SmartCard.start();
Pcsc10CardTerminalFactory pcsc_ctr = new Pcsc10CardTerminalFactory();
ctr = CardTerminalRegistry.getRegistry();
String [] term = {"tr","PCSC",""};
pcsc_ctr.createCardTerminals(ctr,term);
After the line "ctr = CardTerminalRegistry.getRegistry();" my card
registry did only list two readers.
After the line "pcsc_ctr.createCardTerminals(ctr,term);" the number
increased to four.
Once I read the API documentation for the createCardTerminals method it
seems that the second parameter (term) should just be set to null. I
tried this but it made no difference.
I then removed the "pcsc_ctr.createCardTerminals(ctr,term);" line and it
works fine now.
I'm not sure why the extra stuff was there in the first place - maybe it
was needed in an earlier release of OCF.
cheers
Brian
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.