A C R 3 8 S m a r t C a r d R e a d e r / W r i t e r
Memory Card – 32,64,128,256,512,1024 kbit I2C card
SELECT_CARD_TYPE
This command powers down and up the selected card inserted in the card reader and performs a card reset.
Notes: This command must be the first command after card insertion!
Command format
Header
Instruction
Data length
Data
LEN
CLA
INS
P1
P2
Lc
Card Type
01
H
A0
H
00
H
06
H
FF
H
A4
H
00
H
00
H
01
H
02
H
Response data format
Header
Status
Data length
BYTE 1
…
…
BYTE N
SW1
SW2
LEN
01
H
BYTE x
ATR from card (if any)
SW1, SW2
= 90
H
00
H
if no error
SELECT_PAGE_SIZE
This command will choose the page size to read the smart card. The default value is 8-byte page write. It will reset to default
value whenever the card is removed or the reader is powered off.
Command format
Header
Instruction
Data length
Data
LEN
CLA
INS
P1
P2
Lc
Page size
01
H
A0
H
00
H
06
H
FF
H
01
H
00
H
00
H
01
H
Data
TPDU to be sent to the card
Page size
=
03
H
for 8-byte page write
=
04
H
for 16-byte page write
=
05
H
for 32-byte page write
=
06
H
for 64-byte page write
=
07
H
for 128-byte page write
ACR38 Reference Manual
Version 2.2 January 2008
Page
20
of 44