On Tue, Mar 4, 2008 at 9:19 AM, Ludovic Rousseau
<email@hidden> wrote:
> On Tue, Mar 4, 2008 at 2:34 AM, Bruno Harbulot
> <email@hidden> wrote:
> > 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.
I can reproduce the bug using the Apple CCID driver (CCIDClassDriver)
but not using my CCID driver [1]. I reported the bug to Apple.
I suggest you to install a working driver for your reader.
bye
[1] http://pcsclite.alioth.debian.org/ccid.html#MacOSX
--
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