beautypg.com

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

Page 35

background image

ACR38x – Reference Manual

[email protected]

Version 6.02

www.acs.com.hk

Page 35 of 40

9.2.2.6.5. READ_PRESENTATION_ERROR_COUNTER_MEMORY_CARD (SLE 4442

and SLE 5542)

This command is used to read the presentation error counter for the secret code.
Send Buffer Format

SCardTransmit Send Buffer

CLA

INS

P1

P2

MEM_L (P3)

FFh

B1h

00h

00h

00h


Response Buffer Format

SCardTransmit Receive Buffer

ERRCNT DUMMY 1 DUMMY 2 DUMMY 3 SW1 SW2

Where:

ERRCNT

The value of the presentation error counter.

DUMMY

Three bytes dummy data read from the card.

SW1 SW2

= 90 00h if no error.

9.2.2.6.6. CHANGE_CODE_MEMORY_CARD (SLE 4442 and SLE 5542)

This command is used to write the specified data as new secret code in the card.
The current secret code must be presented to the card with the PRESENT_CODE command prior to

the execution of this command.
Send Buffer Format

SCardTransmit Send Buffer

CLA

INS

P1

P2

MEM_L (P3)

CODE

Byte 1 Byte 2 Byte 3

FFh

D2h

00h

01h

03h


Response Buffer Format

SCardTransmit Receive Buffer

SW1

SW2

Where:

SW1 SW2 = 90 00h if no error.