Write_memory_card, Verify_password – ACS ACR38K Smart Keyboard User Manual

Page 26

Advertising
background image

ACR38x (CCID) – Reference Manual

[email protected]

Version 6.04

www.acs.com.hk

Page 26 of 58

9.3.3.3. WRITE_MEMORY_CARD

Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS

P1

Byte Address MEM_L Byte 1 .... .... Byte n

FFh

00h

Where:

INS

= D0h for writing zone 00b
= D1h for writing zone 01b
= D2h for writing zone 10b
= D3h for writing zone 11b
= D4h for writing fuse

Byte Address

Memory address location of the memory card

MEM_L

Length of data to be written to the memory card

MEM_D

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.3.4. VERIFY_PASSWORD

Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS P1

P2 Lc

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

FFh 20h

00h

03h

Where:

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

Passwords to be sent to memory card

P2

= 0000 00rp

b

where the two bits “rp” indicate the password to compare
r = 0: Write password,
r = 1: Read password,
p : Password set number,
rp = 01 for the secure code.

Advertising