On Tue, Mar 4, 2008 at 2:34 AM, Bruno Harbulot
<email@hidden> wrote:
> Hello,
Hello,
> Under Leopard (10.5.2), I'm trying to use a GemPC Twin USB reader to
> read smart cards. When connected and empty, the reader is blinking normally.
> When I try to insert a couple of SIM cards and Java cards I have, the
> light on the reader stops blinking (and is continuously on), which is
> normal. Using pcsctest works almost(*) fine and one of these cards shows
> this ATR: 3B 75 94 00 00 62 02 02 01 01, for example.
> However, when I try an Aladdin eToken Pro card (ATR: 3B F2 18 00 02 C1
> 0A 31 FE 58 C8 09 75), the reader doesn't seem to recognise the card as
> inserted. The light keep blinking and pcsctest says this:
> Testing SCardConnect : Card protocol mismatch.
The ATR of the Aladdin eToken Pro is analysed like this using ATR_analysis [1]:
ATR: 3B F2 18 00 02 C1 0A 31 FE 58 C8 09 75
+ TS = 3B --> Direct Convention
+ T0 = F2, Y(1): 1111, K: 2 (historical bytes)
TA(1) = 18 --> Fi=372, Di=12, 31 cycles/ETU (115200 bits/s at 3.57 MHz)
TB(1) = 00 --> VPP is not electrically connected
TC(1) = 02 --> Extra guard time: 2
TD(1) = C1 --> Y(i+1) = 1100, Protocol T = 1
-----
TC(2) = 0A --> Work waiting time: 960 x 10 x (Fi/F)
TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1
-----
TA(3) = FE --> IFSC: 254
TB(3) = 58 --> Block Waiting Integer: 5 - Character Waiting Integer: 8
+ Historical bytes: C8 09
Category indicator byte: C8 (proprietary format)
+ TCK = 75 (correct checksum)
Possibly identified card (using /home/lroussea/.smartcard_list.txt):
3B F2 18 00 02 C1 0A 31 FE 58 C8 09 75
Siemens CardOS V4.2B
The T=1 protocol is declared in TD1 and TD2. I guess that confuses
pcsc-lite on Leopard. A similar bug as been reported in [2]. I added
you case.
> All these cards show the correct ATR using pcsc_scan under linux using
> the very same reader. Any idea what may be happening? I don't really
> understand why this particular card wouldn't work.
It is a software bug in Leopard.
> (*) I was going to write 'works fine' until I tried to run pcsctest once
> more to copy and paste the result into this e-mail. It turns out this
> time the ATR is padded with zeros:
>
> Testing SCardConnect : Command successful.
> Testing SCardStatus : Command successful.
> Current Reader Name : CCID Smart Card Reader 00 00
> Current Reader State : 34
> Current Reader Protocol : 0
> Current Reader ATR Size : 21
> Current Reader ATR Value : 3B 75 94 00 00 62 02 02 01 01 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> Testing SCardDisconnect : Command successful.
> Testing SCardReleaseContext : Command successful.
>
> I've seen a similar e-mail on this list some time ago. I don't know what
> causes this.
It is also a software bug in Leopard.
I suggest you report these two bugs to Apple [3] and you add your
Problem ID to [2].
That's all you can do AFAIK.
Bye
[1] http://ludovic.rousseau.free.fr/softwares/pcsc-tools/index.html
[2] https://www.opensc-project.org/sca/wiki/LeopardBugs
[3] http://bugreport.apple.com/
--
Dr. Ludovic Rousseau
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/email@hidden
This email sent to email@hidden