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
***************************************************************

Reply via email to