I've installed latest IFD drivers (0.9.0) for Gemplus GemPC430 USB reader and the latest pcsclite library (1.2.0).
When I try to work with a Cryptoflex e-gate 32k card using this reader the SCardTransmit fails with SCARD_E_NOT_TRANSACTED.
When I try a G&D Starcos SPK 2.3 card it works perfectly.
The Cryptoflex e-gate card works perfectly with this reader on Windows (2000).
Here is cut&pasted some parts of the debug output of pcscd - it seems that it fails on various places - sometimes it is able to transmit two or three Select APDUs but ReadBinary always fails, sometimes it fails even earlier:
..........
ifdhandler.c:320:IFDHPowerICC (GemPC43x) lun: 0
GCCmds.c:242:GCCmdPowerUp (GemPC43x)
eventhandler.c:467 EHSpawnEventHandler: Card inserted into GemPC430 0 0
EHSpawnEventHandler: Card ATR: 3B 95 18 40 FF 62 01 02 01 04
winscard_msg.c:250 SHMProcessEvents: Common channel packet arrival
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:81 SCardEstablishContext: Establishing Context: 17017816
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:149 SCardConnect: Attempting Connect to GemPC430 0 0
winscard.c:245 SCardConnect: Active Protocol: 1
winscard.c:252 SCardConnect: hCard Identity: 2c5c2
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:1293 SCardTransmit: Send Protocol: 0
APDU: C0 A4 00 00 02 3F 00
ifdhandler.c:415:IFDHTransmitToICC (GemPC43x) lun: 0
GCUtils.c:144:gemcore_ISO_INPUT_processing (GemPC43x)
GCUtils.c:313:gemcore_status_processing (GemPC43x)
GCCmds.c:525:GCGemCoreError (GemPC43x) "Error" returned by the card (SW is not 9000)
SW: 61 FE
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:1293 SCardTransmit: Send Protocol: 0
APDU: C0 A4 00 00 02 50 15
ifdhandler.c:415:IFDHTransmitToICC (GemPC43x) lun: 0
GCUtils.c:144:gemcore_ISO_INPUT_processing (GemPC43x)
GCUtils.c:313:gemcore_status_processing (GemPC43x)
GCCmds.c:525:GCGemCoreError (GemPC43x) "Error" returned by the card (SW is not 9000)
SW: 61 17
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:1293 SCardTransmit: Send Protocol: 0
APDU: C0 A4 00 00 02 50 32
ifdhandler.c:415:IFDHTransmitToICC (GemPC43x) lun: 0
GCUtils.c:144:gemcore_ISO_INPUT_processing (GemPC43x)
GCUtils.c:313:gemcore_status_processing (GemPC43x)
GCCmds.c:525:GCGemCoreError (GemPC43x) "Error" returned by the card (SW is not 9000)
SW: 61 0F
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:1293 SCardTransmit: Send Protocol: 0
APDU: C0 B0 00 00 04
ifdhandler.c:415:IFDHTransmitToICC (GemPC43x) lun: 0
GCUtils.c:62:gemcore_ISO_OUTPUT_processing (GemPC43x)
GCUtils.c:313:gemcore_status_processing (GemPC43x)
GCCmds.c:537:GCGemCoreError (GemPC43x) Unknown or undocumented error: 0xE4
SW:
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:642 SCardDisconnect: Active Contexts: -1
winscard.c:705 SCardDisconnect: Error resetting card.
winscard.c:92 SCardReleaseContext: Releasing Context: 17017816
pcscdaemon.c:144 SVCServiceRun: Client 7 has disappeared.
...................
winscard_msg.c:250 SHMProcessEvents: Common channel packet arrival pcscdaemon.c:144 SVCServiceRun: Client 7 has disappeared. winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0 winscard.c:81 SCardEstablishContext: Establishing Context: 16991154 winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0 winscard.c:149 SCardConnect: Attempting Connect to GemPC430 0 0 winscard.c:245 SCardConnect: Active Protocol: 0 winscard.c:252 SCardConnect: hCard Identity: 2dc68 winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0 winscard.c:642 SCardDisconnect: Active Contexts: -1 ifdhandler.c:320:IFDHPowerICC (GemPC43x) lun: 0 GCCmds.c:242:GCCmdPowerUp (GemPC43x) winscard.c:703 SCardDisconnect: Reset complete. winscard.c:92 SCardReleaseContext: Releasing Context: 16991154 pcscdaemon.c:144 SVCServiceRun: Client 7 has disappeared.
In the second case it even fails to connect the card appropriately.
Thank you for any help,
Tomas Mraz
--
Man, those grapes are so sour if I tried to make jelly
there'd be acid crystals in it.
Rufus Polson in some comment on Linuxtoday.com
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle
