Hello, Mr. Rousseau,

Ludovic Rousseau schrieb:

The GemPC410 works bad with CardOS and not at all with Starcos cards.


What do yo mean by "works bad"? Maybe you can send me the bug
description by private mail.

Sorry I needed so much time to answer, but I really had difficulties to replicate the problems, because most of the time the pcscd did not even start working with the GemPC410 (even without cards inserted). Now it works, but not very stable. It seems now to work good with T=0 cards and CardOS T=1, but bad or not at all with StarcOS T=1 cards.

The pcscd was taken from the PCSC-20031104.tar.gz of Damien Sauveron.
The GemPC410 driver from ifd-gempc-0.8.2.tar.gz.
My linux is a SuSE with kernel 2.4.19-4GB.

As Test program here I used formaticc from the PCSC package.

Here I test a StarcOS SPK 2.3 card. The pcscd said it was "mute".
_________________________________________________________________

[EMAIL PROTECTED]:~/dss/PCSC/src/utils> formaticc

Winscard PC/SC Lite Test Program

Please enter the desired host (localhost for this machine) [localhost]:
Please input the desired transmit protocol (0/1) [0]: 1
Please input the desired input apdu file: prova1.in
Please input the desired output apdu file: prova1.out
Reader 01: GemPC410 00 00
Enter the desired reader number: 1

Please insert a smartcard
Processing Command 001 of length 007: 07 00 A4 00 0C 02 3F 00
Processing Command 002 of length 005: 05 00 84 00 00 08
Processing Command 003 of length 007: 07 00 A4 00 0C 02 3F 00
Processing Command 004 of length 005: 05 00 84 00 00 08
Processing Command 005 of length 007: 07 00 A4 00 0C 02 3F 00
Processing Command 006 of length 005: 05 00 84 00 00 08
[EMAIL PROTECTED]:~/dss/PCSC/src/utils> cat prova1.out
..error -2146435050
..error -2146435050
..error -2146435050
..error -2146435050
..error -2146435050
..error -2146435050
_________________________________________________________________


This was a CardOS/M4. It worked! _________________________________________________________________

[EMAIL PROTECTED]:~/dss/PCSC/src/utils> formaticc

Winscard PC/SC Lite Test Program

Please enter the desired host (localhost for this machine) [localhost]:
Please input the desired transmit protocol (0/1) [0]: 1
Please input the desired input apdu file: prova1.in
Please input the desired output apdu file: prova1.out
Reader 01: GemPC410 00 00
Enter the desired reader number: 1

Please insert a smartcard
Processing Command 001 of length 007: 07 00 A4 00 0C 02 3F 00
Processing Command 002 of length 005: 05 00 84 00 00 08
Processing Command 003 of length 007: 07 00 A4 00 0C 02 3F 00
Processing Command 004 of length 005: 05 00 84 00 00 08
Processing Command 005 of length 007: 07 00 A4 00 0C 02 3F 00
Processing Command 006 of length 005: 05 00 84 00 00 08
[EMAIL PROTECTED]:~/dss/PCSC/src/utils> cat prova1.out
02 90 00
10 91 C6 D0 05 05 20 95 D8 90 00
02 90 00
10 64 94 8A 91 97 F8 8D 40 90 00
02 90 00
10 E1 88 35 CE 8B 33 BB 03 90 00

_________________________________________________________________


Here again the same StarcOS SPK 2.3 as before. Now it worked only for the "select MF" commands, not for the "generate random". _________________________________________________________________

[EMAIL PROTECTED]:~/dss/PCSC/src/utils> formaticc

Winscard PC/SC Lite Test Program

Please enter the desired host (localhost for this machine) [localhost]:
Please input the desired transmit protocol (0/1) [0]: 1
Please input the desired input apdu file: prova1.in
Please input the desired output apdu file: prova1.out
Reader 01: GemPC410 00 00
Enter the desired reader number: 1

Please insert a smartcard
Processing Command 001 of length 007: 07 00 A4 00 0C 02 3F 00
Processing Command 002 of length 005: 05 00 84 00 00 08
Processing Command 003 of length 007: 07 00 A4 00 0C 02 3F 00
Processing Command 004 of length 005: 05 00 84 00 00 08
Processing Command 005 of length 007: 07 00 A4 00 0C 02 3F 00
Processing Command 006 of length 005: 05 00 84 00 00 08
[EMAIL PROTECTED]:~/dss/PCSC/src/utils> cat prova1.out
02 90 00
..error -2146435050
02 90 00
..error -2146435050
02 90 00
..error -2146435050
_________________________________________________________________


Here the pcscd output log corresponding to the last case: _________________________________________________________________

ew-bma:/home/bma/dss/PCSC # /usr/local/sbin/pcscd -a -f -d stdout
pcscdaemon.c:230 pcscd set to foreground with debug send to stderr
pcscdaemon.c:249 debug messages send to stdout
readerfactory.c:1392 RFInitializeReader: Attempting startup of GemPC410 00 00.
readerfactory.c:1134 RFBindFunctions: Loading IFD Handler 2.0
ifdhandler.c:90 (GemPC41x) Entering IFDHCreateChannel (lun: 0)
gbpserial.c:599 (GemPC41x) Serial port baudrate already set to 38400 (3)
GCCmds.c:394 (GemPC41x) GCCmdSetMode
gbpserial.c:605 (GemPC41x) GCCmdSetMode success (4.a)
GCCmds.c:319 (GemPC41x) GCCmdGetOSVersion
GemPC410Utils.c:41 (GemPC41x) OS string: GemCore-R1.21-GM
GCCmds.c:394 (GemPC41x) GCCmdSetMode
ifdhandler.c:161 (GemPC41x) entering IFDHGetCapabilities (lun: 0)
pcscdaemon.c:428 main: pcsc-lite daemon ready.
ifdhandler.c:296 (GemPC41x) entering IFDHPowerICC (lun: 0)
GCCmds.c:242 (GemPC41x) GCCmdPowerUp
Conv 01, Y1 0E, K 02
T's FFFFFFFF 00 FF C1
P 05
T=1 Protocol Found
T's FFFFFFFF FFFFFFFF 10 31
P 07
T=1 Protocol Found
T's FE 55 FFFFFFFF FFFFFFFF
P 09
Conv 01, Y1 0E, K 02
T's FFFFFFFF 00 FF C1
P 05
T=1 Protocol Found
T's FFFFFFFF FFFFFFFF 10 31
P 07
T=1 Protocol Found
T's FE 55 FFFFFFFF FFFFFFFF
P 09
eventhandler.c:374 EHSpawnEventHandler: Card Removed From GemPC410 00 00
ifdhandler.c:296 (GemPC41x) entering IFDHPowerICC (lun: 0)
GCCmds.c:242 (GemPC41x) GCCmdPowerUp
Conv 01, Y1 0B, K 07
T's 94 00 FFFFFFFF 81
P 05
T=1 Protocol Found
T's FFFFFFFF FFFFFFFF FFFFFFFF 31
P 06
T=1 Protocol Found
T's FE 65 FFFFFFFF FFFFFFFF
P 08
Conv 01, Y1 0B, K 07
T's 94 00 FFFFFFFF 81
P 05
T=1 Protocol Found
T's FFFFFFFF FFFFFFFF FFFFFFFF 31
P 06
T=1 Protocol Found
T's FE 65 FFFFFFFF FFFFFFFF
P 08
eventhandler.c:463 EHSpawnEventHandler: Card inserted into GemPC410 00 00
EHSpawnEventHandler: Card ATR: 3B B7 94 00 81 31 FE 65 53 50 4B 32 33 90 00 D1
winscard_msg.c:200 SHMProcessEventsServer: Common channel packet arrival
winscard_msg.c:207 SHMProcessEventsServer: SHMProcessCommonChannelRequest detects: 9
pcscdaemon.c:134 SVCServiceRunLoop: A new context thread creation is requested: 9
winscard_svc.c:112 ContextThread: Thread is started: 9
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:76 SCardEstablishContext: Establishing Context: 17014896
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:144 SCardConnect: Attempting Connect to GemPC410 00 00
Conv 01, Y1 0B, K 07
T's 94 00 FFFFFFFF 81
P 05
T=1 Protocol Found
T's FFFFFFFF FFFFFFFF FFFFFFFF 31
P 06
T=1 Protocol Found
T's FE 65 FFFFFFFF FFFFFFFF
P 08
Conv 01, Y1 0B, K 07
T's 94 00 FFFFFFFF 81
P 05
T=1 Protocol Found
T's FFFFFFFF FFFFFFFF FFFFFFFF 31
P 06
T=1 Protocol Found
T's FE 65 FFFFFFFF FFFFFFFF
P 08
winscard.c:240 SCardConnect: Active Protocol: 2
winscard.c:247 SCardConnect: hCard Identity: 195e0
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:813 SCardBeginTransaction: Status: 0.
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:1288 SCardTransmit: Send Protocol: 1
APDU: 00 A4 00 0C 02 3F 00
ifdhandler.c:391 (GemPC41x) entering IFDHTransmitToICC (lun: 0)
GCUtils.c:220 (GemPC41x) Entering gemcore_ISO_EXCHANGE_processing
GCUtils.c:313 (GemPC41x) Entering gemcore_status_processing
SW: 90 00
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:1288 SCardTransmit: Send Protocol: 1
APDU: 00 84 00 00 08
ifdhandler.c:391 (GemPC41x) entering IFDHTransmitToICC (lun: 0)
GCUtils.c:220 (GemPC41x) Entering gemcore_ISO_EXCHANGE_processing
GCUtils.c:313 (GemPC41x) Entering gemcore_status_processing
GCCmds.c:507 (GemPC41x) RESYNCH successfully performed by GemCore
SW:
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:1288 SCardTransmit: Send Protocol: 1
APDU: 00 A4 00 0C 02 3F 00
ifdhandler.c:391 (GemPC41x) entering IFDHTransmitToICC (lun: 0)
GCUtils.c:220 (GemPC41x) Entering gemcore_ISO_EXCHANGE_processing
GCUtils.c:313 (GemPC41x) Entering gemcore_status_processing
SW: 90 00
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:1288 SCardTransmit: Send Protocol: 1
APDU: 00 84 00 00 08
ifdhandler.c:391 (GemPC41x) entering IFDHTransmitToICC (lun: 0)
GCUtils.c:220 (GemPC41x) Entering gemcore_ISO_EXCHANGE_processing
GCUtils.c:313 (GemPC41x) Entering gemcore_status_processing
GCCmds.c:507 (GemPC41x) RESYNCH successfully performed by GemCore
SW:
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:1288 SCardTransmit: Send Protocol: 1
APDU: 00 A4 00 0C 02 3F 00
ifdhandler.c:391 (GemPC41x) entering IFDHTransmitToICC (lun: 0)
GCUtils.c:220 (GemPC41x) Entering gemcore_ISO_EXCHANGE_processing
GCUtils.c:313 (GemPC41x) Entering gemcore_status_processing
SW: 90 00
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:1288 SCardTransmit: Send Protocol: 1
APDU: 00 84 00 00 08
ifdhandler.c:391 (GemPC41x) entering IFDHTransmitToICC (lun: 0)
GCUtils.c:220 (GemPC41x) Entering gemcore_ISO_EXCHANGE_processing
GCUtils.c:313 (GemPC41x) Entering gemcore_status_processing
GCCmds.c:507 (GemPC41x) RESYNCH successfully performed by GemCore
SW:
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:972 SCardEndTransaction: Status: 0.
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:637 SCardDisconnect: Active Contexts: 1
ifdhandler.c:296 (GemPC41x) entering IFDHPowerICC (lun: 0)
GCCmds.c:242 (GemPC41x) GCCmdPowerUp
Conv 01, Y1 0B, K 07
T's 94 00 FFFFFFFF 81
P 05
T=1 Protocol Found
T's FFFFFFFF FFFFFFFF FFFFFFFF 31
P 06
T=1 Protocol Found
T's FE 65 FFFFFFFF FFFFFFFF
P 08
winscard.c:698 SCardDisconnect: Reset complete.
winscard_msg.c:262 SHMProcessEventsContext: correctly processed client: 9
winscard.c:87 SCardReleaseContext: Releasing Context: 17014896
winscard_msg.c:251 SHMProcessEventsContext: Client has disappeared: 9
winscard_svc.c:125 ContextThread: Client die: 9
_________________________________________________________________


--
Dr. Bettina Martelli, Development, TC TrustCenter AG
Sonninstra�e 24-28,  D-20097 Hamburg,  Germany
Tel: +49 (0)40 / 80 80 26-0 Fax: +49 (0)40 / 80 80 26-126

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to