User's Manual

Page 8 of 9
U
niversal Terminal UT1
Version 0.03 Oct 2008
\
ACR122S PC-linked Contractless Smart Card Reader
10.0 To do data-exchange through the SAM Interface
STX
(0x02)
Bulk-OUT Header
(HOST_to_RDR_XfrBlock)
Parameters Checksum
ETX
(0x03)
1 Byte 10 Bytes M Byte 1 Byte 1 Byte
HOST_to_RDR_XfrBlock Format
Offset Field Size Value Description
0 bMessageType 1 6Fh
1 dDwLength
<LSB .. MSB>
4 M Message-specific data length
5 bSlot 1 00-FFh Identifies the slot number for this
command. Default=00h
6 bSeq 1 00-FFh Sequence number for command
7 bBWI 1 00-FFh Used to extend the Block Waiting
Timeout.
8 wLevelParameter 2 0000h
STX
(0x02)
Bulk-IN Header
(RDR_to_HOST_DataBlock)
abData Checksum ETX
(0x03)
1 Byte 10 Bytes N Bytes
(ATR)
1 Byte 1 Byte
RDR_to_HOST_DataBlock Format
Offset Field Size Value Description
0 bMessageType 1 80h Indicates that a data block is
being sent from the ACR122S
1 dwLength
<LSB .. MSB>
4 N Size of abData field. (N Bytes)
5 bSlot
1 Same as
Bulk-OUT
Identifies the slot number for this
command
6 bSeq 1 Same as
Bulk-OUT
Sequence number for
corresponding command
7 bStatus 1
8 bError 1
9 bChainParameter
1
Example 1. To send an APDU “80 84 00 00 08” to the slot 0 (default), sequence number = 3.
HOST -> 02 6F 05 00 00 00 00 03 00 00 00 80 84 00 00 08 [Checksum] 03
RDR -> 02 00 00 03
RDR -> 02 80 0A 00 00 00 00 03 00 00 00 E3 51 B0 FC 88 AA 2D 18 90 00 [Checksum] 03
Response = E3 51 B0 FC 88 AA 2D 18; SW1 SW2 = 90 00
ACR122S Command Frame Format
ACR122S Response Frame Format