Read_protection_bits, Acr33u-a1 – reference manual – ACS ACR33U-A1 SmartDuo Smart Card Reader User Manual

Page 46

Advertising
background image

ACR33U-A1 – Reference Manual

[email protected]

Version 1.02

www.acs.com.hk

Page 46 of 60

8.3.6.3. READ_PRESENTATION_ERROR_COUNTER_MEMORY_CARD (only

SLE4442 and SLE5542)

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

04h


Response data format (abData field in the RDR_to_PC_DataBlock)

ERRCNT DUMMY 1 DUMMY 2 DUMMY 3 SW1 SW2

Where:

ERRCNT: The value of the presentation error counter. 07h 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: Three bytes dummy data read from the card.
SW1, SW2 = 90 00h if no error

8.3.6.4. READ_PROTECTION_BITS

To read the protection bits for the first 32 bytes.
Command format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS P1 P2 MEM_L

FFh B2h 00h 00h

04h


Response data format (abData field in the RDR_to_PC_DataBlock)

PROT 1 PROT 2 PROT3 PROT 4 SW1 SW2

Where:

PROT y:

Bytes containing the protection bits from protection memory

SW1, SW2

= 90 00h if no error


The arrangement of the protection bits in the PROT bytes is as follows:

PROT 1

PROT 2

P8

P7

P6

P5

P4

P3

P2

P1

P16

P15

P14

P13

P12

P11

P10

P9

..

..

..

..

..

..

P18

P17

Advertising