Write_memory_card, Verify_password – ACS ACR33U-A1 SmartDuo Smart Card Reader User Manual
Page 37

ACR33U-A1 – Reference Manual
Version 1.02
www.acs.com.hk
Page 37 of 60
Where:
BYTE x : Data read from memory card
SW1, SW2 = 90 00h if no error
8.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 0000
b
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
8.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,