User Manual

ACR38x (CCID) Reference Manual info@acs.com.hk
Version 6.04
www.acs.com.hk
Page 33 of 58
9.3.5.3. READ_PRESENTATION_ERROR_COUNTER_MEMORY_CARD (SLE
4428 and SLE 5528)
This command is used to read the presentation error counter for the secret code.
Command Format (abData field in the PC_to_RDR_XfrBlock)
Pseudo-APDU
CLA INS P1 P2 MEM_L
FFh B1h 00h 00h 03h
Response Data Format (abData field in the RDR_to_PC_DataBlock)
ERRCNT DUMMY 1 DUMMY 2 SW1 SW2
Where:
ERRCNT Error Counter. FFh indicates that the last verification is correct. 00h indicates that
the password is locked (exceeded the maximum number of retries). Other values
indicate that the last verification has failed.
DUMMY Two bytes dummy data read from the card
SW1 SW2 = 90 00h if no error
9.3.5.4. READ_PROTECTION_BIT
Command Format (abData field in the PC_to_RDR_XfrBlock)
Pseudo-APDU
CLA INS
Byte Address
MEM_L
MSB LSB
FFh B2h
Where:
MSB Byte Address = 0000 00A
9
A
8
b is the memory address location of the memory card
LSB Byte Address = A
7
A
6
A
5
A
4
A
3
A
2
A
1
A
0
b is the memory address location of the memory
card
MEM_L Length of protection bits to be read from the card, in multiples of 8 bits.
Maximum value is 32.
MEM_L = 1 + INT( (number of bits - 1)/8 )
For example, to read 8 protection bits starting from memory 0x0010h, the following pseudo-APDU
should be issued:
0xFFh 0xB2h 0x00h 0x10h 0x01h