ACR39x – Reference Manual
Version 1.03
www.acs.com.hk
Page 25 of 35
8.3.3.
READ_PRESENTATION_ERROR_COUNTER_MEMORY_CARD (Only
SLE4428 and SLE5528)
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
The value of the presentation error counter. FFh
indicates the last verification is
correct. 00h
indicates the password is locked (exceeded maximum number of
retries). Other values indicate the last verification failed.
DUMMY
Two bytes dummy data read from the card.
SW1 SW2
= 90 00h if no error.
8.3.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 data to be read from the memory card (in multiple of 8 bits;
maximum of 32).
MEM_L = 1 + INT [(number of bits – 1)/8]
For example: To read eight protection bits starting from memory
0010h, the following pseudo-APDU should be issued as:
FF B1 00 10 01h