Do you know if your cards comply with ISO 7816? Or perhaps they use one of
the other interface protocols not recognised by ISO (e.g. I2C). Or maybe its
the other way round: your cards are 7816 compliant but the reader is not.
Memory cards are an area where you have to be sure that the card and reader
match each other, and that means you have to have the suppliers'
specifications.

Peter
----- Original Message -----
From: "Henning Koester" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 08, 2000 12:31 PM
Subject: Re: MUSCLE how to get the size of a memorycard?


> Hi,
>
> Ok thanks. But I've got a problem. I have 3 memorycards. 2 "normal" ones
and
> one card with a PIN authentification mechanism. Only this card returns a
> ATR when I send:
> unsigned char GET_ATR[] = { 0x20, 0x12, 0x01, 0x01, 0 };
>
> What's the problem?
> Thanks
>
>
> On Fri, Dec 08, 2000 at 09:05:04AM -0000, Guillaume LAISNEY wrote:
> > Hello,
> >
> > You can get the size of a memory card from the second byte of its ATR.
> > According to ISO 7816-3, the 3 LSB of this byte define the length of
data
> > units (in bits), and its 4 next bits, the number of data units as :
> >
> > 0000 = No size specified
> > 0001 = 128 data units
> > 0010 = 256
> > 0011 = 512
> > 0100 = 1024
> > 0101 = ???
> > ...
> >
> >
> >
> > Example :
> > ATR = 92 23 10 91
> > 23 -> 0 0100 011  ->    0100 data units ,  011 bits per data unit
> >
> > This card is a 1 kb memorycard...
> >
> >
> > Regards.
> >
> > Guillaume.
> >
> >
>
> ***************************************************************
> Linux Smart Card Developers - M.U.S.C.L.E.
> (Movement for the Use of Smart Cards in a Linux Environment)
> http://www.linuxnet.com/smartcard/index.html
> ***************************************************************
>

***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to