Write_memory_card, Verify_password – ACS ACR38K Smart Keyboard User Manual

Page 29

Advertising
background image

ACR38x (CCID) – Reference Manual

[email protected]

Version 6.04

www.acs.com.hk

Page 29 of 58

9.3.4.3. WRITE_MEMORY_CARD

Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS Zone Address Byte Address MEM_L Byte 1 … … Byte n

FFh

Where:

INS

= D0h for writing user zone
= D1h for writing configuration zone or writing fuse

Zone Address

= 0000 0A

10

A

9

A

8

b where A

10

is the MSB of zone address

= Don’t care for writing fuse

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

= 1000 0000b for writing fuse

MEM_L

Length of data to be written to the memory card

Byte x

Data to be written to the memory card


Response Data Format (abData field in the RDR_to_PC_DataBlock)

SW1 SW2

Where:

SW1 SW2 = 90 00h if no error

9.3.4.4. VERIFY_PASSWORD

Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS

P1

P2

Lc

Data

FFh

20h

00h

00h

04h

RP

Pw(0)

Pw(1)

Pw(2)

Where:

Pw(0),Pw(1),Pw(2)

Passwords to be sent to memory card

RP

= 0000 rp

2

p

1

p

0

b

where the four bits “rp

2

p

1

p

0

” indicate the password to compare:

r = 0: Write password,
r = 1: Read password,
p

2

p

1

p

0

: Password set number.

(rp

2

p

1

p

0

= 0111 for the secure code)


Advertising