Read_protection_bit – ACS ACR33U-A1 SmartDuo Smart Card Reader User Manual
Page 41

ACR33U-A1 – Reference Manual
Version 1.02
www.acs.com.hk
Page 41 of 60
8.3.5.3. READ_PRESENTATION_ERROR_COUNTER_MEMORY_CARD (only
SLE4428 and SLE5528)
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 the maximum number of
retries). Other values indicate the last verification has failed.
DUMMY: Two bytes dummy data read from the card.
SW1, SW2 = 90 00h if no error
8.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 eight protection bits starting from memory 0x0010h, the following pseudo-
APDU should be issued:
0xFFh 0xB1h 0x00h 0x10h 0x01h
Response data format (abData field in the RDR_to_PC_DataBlock)
PROT 1 … … PROT L SW1 SW2