Present_code_memory_card (sle 4442 and sle 5542) – ACS ACR38 SAM Smart Card Reader User Manual

Page 34

Advertising
background image

ACR38x – Reference Manual

[email protected]

Version 6.02

www.acs.com.hk

Page 34 of 40

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 Buffer Format

SCardTransmit Receive Buffer

SW1

SW2

Where:

SW1 SW2 = 90 00h if no error.

9.2.2.6.4. PRESENT_CODE_MEMORY_CARD (SLE 4442 and SLE 5542)

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

with the SLE 4442 and SLE 5542 card. The following actions are executed:

1. Search a ‘1’ bit in the presentation error counter
2. Write the bit to ‘0’ present the specified code to the card try to erase the presentation error

counter

Send Buffer Format

SCardTransmit Send Buffer

CLA INS

P1

P2

MEM_L (P3)

CODE

Byte 1 Byte 2 Byte 3

FFh 20h 00h 00h

03h

Where:

CODE

Three bytes secret code (PIN).


Response Buffer Format

SCardTransmit Receive Buffer

ERRCNT

CODE

SW1 SW2

Byte 1 Byte 2 Byte 3

Where:

ERRCNT The value of the presentation error counter after the code presentation.
CODE

The three bytes secret code read from the card.

SW1 SW2 = 90 00h if no error.


If the correct code has been presented to the card, the value of ERRCNT is 07

H

and the value of

CODE is identical to the code data specified in the command.

Advertising