you are trying to use GemPC Twin with comm pure Java driver that does not support it! The good thing to do is to use it through PC/SC. Change your opencard.properties terminal configuration with following lines:
OpenCard.terminals = \
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|Autodetect|*|SHARED
Check that OCFPCSC1.DLL, that came with OCF1.2 package, is in your path (the better is to install it in Windows/system32 on windows platform).
Add pcsc-wrapper-2.0.jar in your classpath.
Remove comm.jar, not needed any more.
it should now work with almost all PC/SC compliant readers.
You can find reader's driver at: http://www.gemplus.com/products/gempctwin/resources/reader_driver.html
Your can find pcsc wrapper at:http://www.gemplus.com/techno/opencard/cardterminals/pcsc/download.html
Hope it will help you,
C.HUET
[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.
---
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.
