Present_code_memory_card (sle 4428 and sle 5528) – ACS ACR3801 Smart Card Reader User Manual

Page 39

Advertising
background image

ACR3801 – Reference Manual

[email protected]

Version 2.01

www.acs.com.hk

Page 39 of 62

Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA

INS

Byte Address

MEM_L Byte 1 .... .... Byte N

MSB

LSB

FFh

D1h

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 written to the memory card

Byte x

Byte values to be compared with the data in the card starting at Byte

Address. BYTE 1 is compared with the data at Byte Address; BYTE

N is compared with the data at (Byte Address+N-1).


Response Data Format (abData field in the RDR_to_PC_DataBlock)

SW1 SW2

Where:

SW1 SW2 = 90 00h if no error

8.3.5.7. PRESENT_CODE_MEMORY_CARD (SLE 4428 and SLE 5528)

This command is used to submit the secret code to the memory card to enable the write operation

with the SLE 4428 and SLE 5528 card, the following actions are executed:

1. Search a ‘1’ bit in the presentation error counter and write the bit to ‘0’.
2. Present the specified code to the card.
3. Try to erase the presentation error counter.


Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS P1 P2 MEM_L

CODE

Byte 1 Byte 2

FFh

20h 00h 00h

02h

Where:

CODE

Two bytes secret code (PIN)


Response Data Format (abData field in the RDR_to_PC_DataBlock)

SW1

SW2

ErrorCnt

90h

Advertising