Le mardi 13 ao�t 2002 � 11:42:06, Victor Tarasov a �crit: > Hello, > thank you for the answer. > > Here is essential log for the session with > IFD_CMD_ICC_POWER_UP_OPT_AUTO_PPS_MNGT option > in the POWER_UP command: > > GCCmds.c:290 (GemPC410) GCCmdGetOSVersion > -> 42 40 05 22 05 3F E0 10 EF > <- 24 40 11 00 47 65 6D 43 6F 72 65 2D 52 31 2E 32 31 2D 47 4D 45 > GemPC410Utils.c:41 (GemPC410) OS string: GemCore-R1.21-GM > ....... > GCCmds.c:237 (GemPC410) GCCmdPowerUp > -> 42 00 02 12 23 71 > <- 24 00 15 00 3B 7F 18 00 00 00 31 C0 73 9E 01 0B 64 52 D9 04 00 82 90 00 > 82 > ........ > GCCmds.c:348 (GemPC410) GCCmdCardStatus > -> 42 40 01 17 14 > <- 24 40 07 00 06 02 18 00 0A 00 75 > #The third status byte is 0x18. As far as I see, this byte means FI/DI. > #Is it legal, the value 0x8, for DI or for FI?
The result of the GemCore Card Status command is on 7 bytes. It is not the ATR. The ATR is returned by the GemCore PowerUp command. In your case the ATR is: 3B 7F 18 00 00 00 31 C0 73 9E 01 0B 64 52 D9 04 00 82 90 00 If I use the ATR_analysis program from pcsc-tools[1] I have: $ ATR_analysis '3B 7F 18 00 00 00 31 C0 73 9E 01 0B 64 52 D9 04 00 82 90 00' ATR: 3B 7F 18 00 00 00 31 C0 73 9E 01 0B 64 52 D9 04 00 82 90 00 + TS = 3B --> Direct Convention + T0 = 7F, Y(1): 0111, K: 15 (historical bytes) TA(1) = 18 --> Fi=372, Di=12, 31.000 cycles/ETU TB(1) = 00 --> Programming Param P: 0, I: 0 TC(1) = 00 --> Extra guard time: 0 + Historical bytes: 00 31 C0 73 9E 01 0B 64 52 D9 04 00 82 90 00 The return value of the Card Status command should be interpreted as: 00 : no error 06 : card powered, card inserted, T=0, power=5V 02 : standard speed mode (3.6864 Mhz) ISO 7816-3 18 : TA1 (same as in the ATR) 00 : TC1 (same as in the ATR) 0A : WI (??) 00 : always 00 I re-checked with the ISO 7816-3 and the interpretation of TA1 by ATR_analysis is correct. > .................. > # 'SelectApplication' command sent to the card: > ifdhandler.c:386 (GemPC410) entering IFDHTransmitToICC > APDU sent: 00 A4 04 00 0E A0 00 00 00 77 58 35 30 39 23 56 32 2E 30 12 > GCUtils.c:208 (GemPC410) Entering gemcore_ISO_EXCHANGE_processing > -> 42 00 15 15 00 A4 04 00 0E A0 00 00 00 77 58 35 30 39 23 56 32 2E 30 12 > 14 > <- 24 00 03 E5 6C C2 6C > #Unknown error (0x6CC2) for this command. E5 : GemCore error : The card has interrupted an exchange (the card sends an SW1 byte but more data remains to be sent or received) 6C C2 : this should be the SW. According to ISO 7816-4 the SW must be interpreted as : '6CXX' Wrong length Le: SW2 indicates the exact length C2 is a "strange" length I think. But maybe C2 is not SW2? > Here is essential log for the session with > IFD_CMD_ICC_POWER_UP_OPT_NO_PPS_MNGT option > for POWER_UP command: > > GCCmds.c:290 (GemPC410) GCCmdGetOSVersion > -> 42 00 05 22 05 3F E0 10 AF > <- 24 00 11 00 47 65 6D 43 6F 72 65 2D 52 31 2E 32 31 2D 47 4D 05 > GemPC410Utils.c:41 (GemPC410) OS string: GemCore-R1.21-GM > ............ > GCCmds.c:237 (GemPC410) GCCmdPowerUp > -> 42 40 02 12 13 01 > <- 24 40 15 00 3B 7F 18 00 00 00 31 C0 73 9E 01 0B 64 52 D9 04 00 82 90 00 > C2 > ........... > GCCmds.c:348 (GemPC410) GCCmdCardStatus > -> 42 00 01 17 54 > <- 24 00 07 00 06 02 11 00 0A 00 3C > #Now the third status byte is 0x11. TA(1) = 11 --> Fi=372, Di=1, 372.000 cycles/ETU In this case the reader gives much more time to respond. > > > I am using GemPC410 with Oberthur AuthentIC smart card. I don't have such cards. I don't know if they are supposed to work at a speed of 31.000 cycles/ETU (as they claim to support in the ATR) I propose you send me an "Oberthur AuthentIC" card if you can. I would try to find a solution. Did you tried with the same reader under Windows? Did you tried with a different kind of reader? Regards, [1] http://ludovic.rousseau.free.fr/softwares/pcsc-tools/pcsc-tools.html -- Dr. Ludovic Rousseau [EMAIL PROTECTED] -- Normaliser Unix c'est comme pasteuriser le Camembert, L.R. -- *************************************************************** Unix Smart Card Developers - M.U.S.C.L.E. (Movement for the Use of Smart Cards in a Linux Environment) http://www.linuxnet.com/ To unsubscribe send an email to [EMAIL PROTECTED] with unsubscribe sclinux ***************************************************************
