The smart card service is built into windows 2000 and so is the reader driver for the GemPC smart card reader. The result is that the smart card service grabbed the reader as soon as it was connected to the PC.

The sample you are trying to use must be using the gemplus block protocol to talk to the reader whereas the smart card service expects you to use PC/SC.

To remove your reader from the smart card service you need to go into control panel->system->hardware->device manager, find the reader in the list of smart card readers, right click and select disable. This will remove it from the smart card service but still enable you to talk to it directly via the com port.

cheers

[EMAIL PROTECTED] wrote:


Hi,


I'm new in smart card and smart card reader, and I encountered some problem I am not able to solve
My environment:
windows 2000 SP4
a GemPC Twin smart card reader
OCF1.2 and comm.jar


I'm just trying tu use the samples provided by OCF but no one runs. Here are the tracks obtain with the GetCardID program:

------------------------------------------------------------

start use case: get a card ID

[DEBUG ] opencard.core.service.SmartCard.getRegistryEntry
--- message tag OpenCard.terminals = com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM1
--- thread Thread[main,5,main]
--- source class opencard.core.service.SmartCard


[DEBUG    ] opencard.core.terminal.CardTerminal.<init>
--- message   (mygcr, GCR410, COM1)
--- thread    Thread[main,5,main]
--- source    class opencard.core.terminal.CardTerminal

[INFO     ] com.gemplus.opencard.terminal.GemplusSerialCardTerminal.open
--- message   open terminal: mygcr
--- thread    Thread[main,5,main]
--- source    class com.gemplus.opencard.terminal.GemplusSerialCardTerminal

[DEBUG    ] com.gemplus.opencard.terminal.GemplusSerialCardTerminal.open
--- message   opening serial port COM1
--- thread    Thread[main,5,main]
--- source    class com.gemplus.opencard.terminal.GemplusSerialCardTerminal

CardTerminalException:

javax.comm.PortInUseException: Port currently owned by Unknown Windows Application

finished use case: get a card ID

------------------------------------------------------------

I seen that in this case I had to disable the smart card resource manager or something like that.
I don't know exactly wath it is but I stop the smart card service in control panel/admin tool/services and
the result is the same.


So I don't know what i can do.............
Does anybody have the same smart card reader, is my opencard.properties file well configured because I don't know
if the type of the GemPC Twin reader is GCR410 or another one:


#OpenCard.property = new_value
#OpenCard.property.override = true

###############################
# Card service configuration  #
###############################

#OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory
#OpenCard.services = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
OpenCard.services = opencard.opt.util.PassThruCardServiceFactory


###############################
# Card terminal configuration #
###############################

OpenCard.terminals = com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM1

polling = usesthread

###############################
# Trace configuration         #
###############################

#OpenCard.trace = opencard:8
OpenCard.trace = opencard:8 com.ibm:8 com.gemplus.opencard.terminal:8

Any suggestion will be very appreciated

Thanks

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


--
------------------------------------------------------------------
 Brian McGuiness                          Phone: +44(0)1355 272911
 Senior Software Engineer                   Fax: +44(0)1355 272993
 Ecebs Limited
 The James Watt Building,
 Scottish Enterprise Technology Park,
 East Kilbride
 G75 0QD                           Email: [EMAIL PROTECTED]
 United Kingdom                    Internet:  http://www.Ecebs.com

 This email is only for the use of the addressee.  It may contain
 information which is legally privileged, confidential and exempt
 from disclosure.  If you are not the intended recipient you are
 hereby notified that any dissemination, distribution, or copying
 of this communication and its attachments is strictly prohibited.
------------------------------------------------------------------


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




Reply via email to