American Magnetics 152 User manual

Copyright© 1999, AXIOHM Transaction Solutions, Inc. All Rights Reserved
MODEL 152
Smart Card Reader
OPERATION INSTRUCTIONS
8182760, REVISION G

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 2
FCC
This equipment has been tested and found to comply with the limits for a class B digital device,
pursuant to part 15 of the FCC rules. These limits are designed to provide reasonable protection
against harmful interference in a residential installation. This equipment generates, uses and can
radiate radio frequency energy and, if not installed and used in accordance with the instructions,
may cause harmful interference to radio communications. However, there is no guarantee that
interference will not occur in a particular installation.
If this equipment does cause harmful interference to radio or television reception, which can be
determined by turning the equipment off and on, the user is encouraged to try to correct the
interference by one or more of the following measures:
Reorient or relocate the receiving antenna.
Increase the separation between the equipment and receiver.
Connect the equipment into an outlet on a circuit different from that to which the receiver
is connected.
Consult the dealer or an experienced radio/TV technician for help.
This equipment has been certified to comply with the limits for a class B computing device,
pursuant to FCC Rules see Appendix H: Declaration of Conformity.
In order to maintain compliance with FCC regulations, shielded cables must be used with this
equipment. Operation with non-approved equipment or unshielded cables is likely to result in
interference to radio and TV reception.
The user is cautioned that changes and modifications made to the equipment without the
approval of the manufacturer could void the user’s authority to operate this equipment.
Statement of Electromagnetic Compliance
This product has passed all electromagnetic interference and susceptibility testing
required by the European Community and thus bears the "CE" mark
This Class B Digital Apparatus meets all requirements of the Canadian Interference
Causing Equipment Regulations.
Notice
The information contained in this manual is subject to change without prior notification. Axiohm -
American Magnetics Division shall not be held liable for technical and editorial omissions or errors
made herein; not for incidental, or consequential damages resulting from the furnishing,
performance or use of this material. This document contains proprietary information protected by
copyright. All rights are reserved. No part of this document may be photocopied without prior,
written permission of Axiohm.
Trademarks
All terms used in this document that are known to be trademarks or service marks have been
capitalized where appropriate. AMC cannot attest to the accuracy of this information. Use of a
term should not be regarded as affecting the validity of any trademark or service mark.

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page iii
Table of Contents
FCC .........................................................................................................................................i
Statement of Electromagnetic Compliance...................................................................................i
Notice .........................................................................................................................................i
Trademarks..................................................................................................................................i
Table of Contents........................................................................................................................ii
Tables and Figures.....................................................................................................................iii
Chapter 1:
Introduction
........................................................................................................... 1.1
Appearance................................................................................................................. 1.1
Features...................................................................................................................... 1.1
Accessories................................................................................................................. 1.1
Other Documents of Interest........................................................................................ 1.2
Chapter 2:
Installation
............................................................................................................ 2.1
Hardware..................................................................................................................... 2.1
Configuration / Demo Software.................................................................................... 2.2
Technical Support........................................................................................................ 2.2
Chapter 3:
Basic Operation
..................................................................................................... 3.1
Transmission Parameters............................................................................................ 3.1
Host Protocols............................................................................................................. 3.1
Power Cycle/Reset........................................................................................... 3.1
Chapter 4:
USI2 Protocol
........................................................................................................ 4.1
Transport layer ............................................................................................................ 4.1
Basic Frame Structure................................................................................................. 4.1
Commands.................................................................................................................. 4.2
Table 3 - USI2 Reader Commands .................................................................. 4.2
USI2 Reader Command Details................................................................................... 4.2
Table 5 - USI2 Card Commands...................................................................... 4.4
Responses from Card Reader to the Host................................................................... 4.5
Status Bytes ................................................................................................................ 4.5
Examples..................................................................................................................... 4.7
Chapter 5:
TLP-224 Protocol
................................................................................................... 5.1
Transport layer ............................................................................................................ 5.1
Response Operation Status Byte................................................................................. 5.2
Commands.................................................................................................................. 5.3
Table 14 - TLP-224 Reader Commands........................................................... 5.3
Table 16 - TLP-224 Card Commands............................................................... 5.5
Responses................................................................................................................... 5.6
Examples..................................................................................................................... 5.7

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page iv
Chapter 6:
TLP-224Turbo Protocol
......................................................................................... 6.1
Chapter 7:
ISO TPDU Command/Response Structure
........................................................... 7.1
TPDU Command Structure.......................................................................................... 7.1
TPDU Response Structure .......................................................................................... 7.1
Chapter 8:
Memory Card Support
........................................................................................... 8.1
Commands Supported................................................................................................. 8.2
Appendix A:
Specifications
...................................................................................................A.1
Mechanical ..................................................................................................................A.1
Electrical......................................................................................................................A.1
Environmental..............................................................................................................A.4
Appendix B: FCC Declaration of Conformity...........................................................................B.1
Glossary..................................................................................................................................C.1
Index D.1

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page v
Tables and Figures
Table 1 - Power Jack............................................................................................................... 2.1
Table 2 - DB-9 Connector........................................................................................................2.1
Table 3 - USI2 Reader Commands ......................................................................................... 4.2
Table 4 - Memory Card Types................................................................................................. 4.3
Table 5 - USI2 Card Commands ............................................................................................. 4.4
Table 6 - Responses from Card Reader to the Host................................................................ 4.5
Table 7 - First Status Byte .................................................................................................... 4.5
Table 8 - Second Status Byte.................................................................................................. 4.5
Table 9 - Response to Configuration Request......................................................................... 4.6
Table 10 - USI2 Reader Commands Example......................................................................... 4.7
Table 11 - USI2 Card Commands Example, Microprocessor Card (Solaic PocketBook .......... 4.8
Table 12 - USI2 Card Commands Example, Memory Card (AT24C01A)................................. 4.8
Table 13 - TLP-224 Operation Status Bytes............................................................................ 5.2
Table 14 - TLP-224 Reader Commands.................................................................................. 5.3
Table 15 - TLP-224 LED Control Byte..................................................................................... 5.4
Table 16 - TLP-224 Card Commands...................................................................................... 5.5
Table 17 - TLP-224 Reader Status Byte Format...................................................................... 5.6
Table 18 - TLP-224 Reader Commands Example................................................................... 5.7
Table 19 - TLP-224 Card Commands Example, Microprocessor Card (Solaic PocketBook).... 5.9
Table 20 - TLP-224 Card Commands Example, Memory Card (AT24C01A)........................... 5.9
Table 21 - Memory Card Commands Supported..................................................................... 8.2
Table 22 - Electrical Power Requirements...............................................................................A.1
Figure 1 - Dimensions Part 1...................................................................................................A.2
Figure 2 - Dimensions Part 2...................................................................................................A.3
Table 23 - Environmental Requirements .................................................................................A.4

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.1
Chapter 1:
Introduction
This booklet describes the requirements, operation, and usage of the Model 152 Smart Card
Reader/Writer (the “reader”). This booklet should be read and understood prior to initial
operation of the reader.
Appearance
The Model 152 is a manually operated insert reader for Smart Cards. The reader is contained in
an attractive plastic housing which allows easy insertion and withdrawal of smart cards. It may
be used with or without its base. The housing is suitable for desk top, cabinet top, and cabinet
side mounting.
Features
• ISO 7816 compliant. Supports Microprocessor Cards requiring a variety of f/d ratios
(speeds). Supports a minimum speed of 1920 bps and a top speed of 38400 bps, with
various speeds in between.
• Reads and writes Microprocessor Cards using either T=0 or T=1 protocol.*
• RS232 compatible.
• Reads and writes a variety of Memory Cards.
• Capable of accessing up to 8 Secure Application Module (SAM) cards in addition to the
card in the User Connector.
• Can use one of three communication protocols to talk with the host: AMC USI2, TLP-224,
or TLP-224Turbo.
• Gives the host full control over the LEDs.
• Allows the host to interrogate the device about current status and configuration information.
Accessories
• A power supply AC/DC adaptor is available which complies with your local power
requirements.
• Smart Card prototyping and training software for learning and demonstrating capabilities of
Smart Card technology using the Model 152.
• Local Connector (LSAM) for a Secure Application Module (SAM), in the GSM size. This
accessory must be specified when ordering the reader, it is not field upgradable.
• CTS for flow control. This option allows the host to block transmission from the reader. This
option must be specified when ordering the reader, it is not field upgradable.
• External SAM boxes allowing access of up to seven additional SAM cards.
• Axiohm - American Magnetics Division is committed to working with users to meet their
special requirements.
* Supports T=1 cards with using LRCs in the EDC field.

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.2
Other Documents of Interest
ISO 7816-3 Identification Cards - Integrated circuit(s) cards with contacts
Part 2:
Dimension and location of the contacts (1988)
Part 3:
Electronic signals and transmission protocols (1989)
Amendment 1:
Protocol type T=1, asynchronous half duplex
block transmission protocol
Amendment 2:
Revision of protocol type selection
Part 4:
Interindustry commands for interchange

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.1
Chapter 2:
Installation
Hardware
1. Attach a suitable (See electrical specifications) power supply to the DB-9 connector and to
a wall socket.
2. A 6 foot (1.8 meter) cable terminated with a female DB-9 connector is permanently
attached to the reader. The DB-9 housing has a power jack with a 2.1 mm diameter center
pin as positive polarity. See electrical specifications for power requirements.
3. Attach the DB-9 connector to a suitable RS232 connector on your host system. See tables
1 and 2 below for the cable pinouts.
4. Mount the reader in a suitable location for your application. You may use the included
rubber feet, velcro, or slotted screw mounts as desired. The base may be separated from
the body of the reader by squeezing the sides of the base and pulling.
Table 1 - Power Jack
CenterPin +Vin IN
Blade Circuit Ground ----
Table 2 - DB-9 Connector
1 Not Used ---
2TXD OUT
3RXD IN
4 Not Used ---
5 Circuit Gnd ---
6 Not Used ---
7CTS IN
8 Not Used ---
9 Not Used ---
Case Chassis Gnd ---

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.2
Configuration / Demo Software
The Model 152 ships from the factory with certain default conditions. These defaults can be
changed by running the configuration program (available from American Magnetics Division of
Axiohm) which may be used to change certain operational conditions.
Using the demo/configuration program is easy, simply launch it from a Microsoft Windows®
environment and follow the instructions. You will need to know to which serial communication
port the reader is attached (e.g COM1). The configuration program will lead you through a
series of steps to complete your configuration successfully. Once configured, the reader retains
the new configuration in its permanent memory.
The configuration program also contains a demonstration mode. From the main screen simply
click on a command to execute and click on the execute button.
To configure the reader click on the configure button. When you have finished selecting the
configuration options, simply click the done tab and click on the OK - write to the EEPROM
button to update the EEPROM and return to the main screen.
The demo allows you to explore all the functions of the Model 152.
Technical Support
For technical support, call Axiohm - American Magnetics Division at one of the phone numbers
found on the back cover of this manual.

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.1
Chapter 3:
Basic Operation
Transmission Parameters
Each character is transmitted using 8 data bits, no parity, and 1 stop bit.
The factory default speed is 9600 bps. Other speeds may be chosen using the configuration
program. The other speeds are: 38400, 19200, 4800, 2400, and 1200 bps.
Host Protocols
The Model 152 supports three communications protocols to talk with the host. They are: USI2,
TLP-224, TLP-224Turbo
USI2 is a proprietary protocol developed by Axiohm - American Magnetics which has features
allowing it to be used for multi-dropping and for large (up to 64K bytes) messages. Though the
Model 152 does not support multi-dropping at this time, a future variation of the device may.
TLP-224 is a protocol used by several manufacturers of Smart Card devices. There are a core
set of functions defined, which, if used exclusively, provide for plug compatibility between
different manufacturer’s readers. The AMC implementation has all of the core functions plus a
few more which you may use at your discretion.
TLP-224Turbo is an AMC originated variant of the TLP-224 protocol. The standard TLP-224
protocol requires each byte to be split into two ASCII readable bytes for transmission. This
effectively doubles the communication time for each message. The TLP-224Turbo protocol
corrects this problem by simply not splitting bytes. If you like TLP-224, but don’t like its speed,
you may want to try TLP-224Turbo.
Power Cycle/Reset
Cycling the power to the Model 152 will cause the device to loose the contents of volatile
memory, including the information on the current card and selected connector.
When power is restored the device checks the validity of the EEPROM to make sure they are
functioning correctly. The host needs to set all the parameters stored in volatile memory before
resuming.

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.1
Chapter 4:
USI2 Protocol
Transport layer
Each message sent to or from the reader must be formatted according to the protocol rules.
A maximum of 100 milliseconds is allowed between successive bytes of a message; if more
than 100 ms passes without a new byte, the message is considered spurious and is ignored.
The receiver then starts to look for a new message.
Basic Frame Structure
Header Data Trailer
SOH ADDR LENH LENL COMMAND or RESPONSE BCC
OR
Header Data Trailer
SOH ADDR LENH LENL COMMAND or RESPONSE EOT BCC
SOH is the value 01H and is used to signal the start of a message
ADDR is the address of the intended recipient. The host is always address 00H. Each reader
may be assigned a different address if desired. Readers will ignore messages sent to
other addresses. The factory default address is 00H. This address feature is meant for
future use in multi-drop configurations.
LENH and LENL give the length of the Data portion of the message. Together they are
considered as an integer with LENH as the high order portion and LENL as the low order
portion. If the value of LENH and LENL are both zero, the length of the Data portion is
determined by the presence of the EOT byte.
COMMAND is the message being sent. This is either a command to the reader or a response
from the reader. If LENH and LENL are not both equal to zero, any values may be sent
in the COMMAND field. If LENH and LENL are both zero, any value except the EOT
character may be sent as part of COMMAND.
EOT is optional. It is present only in messages where LENH and LENL are both equal to zero.
In these messages, EOT signals the end of the Data portion of the message. The value
of EOT is 04H.
BCC is the block check character. Its value is computed by exclusive oring the value of all
preceding bytes in the message, back to and including the SOH byte.
Commands

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.2
There are two types of commands which can be sent to the reader. The first type is used to
manipulate the reader (LEDs, status, etc.). The second type is used to manage I/O with cards.
Tables 3 & 5 show the commands of each type.
Table 3 - USI2 Reader Commands
ASCII HEX Name Use
% 25 Retransmit Retransmits the last message again
9 39 Version Report Transmits Version String
DEL 7F Warm Reset Simulates power cycle
$24
Reader Status
Request Transmits Reader Status Bytes
(see Tables 7 & 8)
L 4C Green LED ON Turns on Green LED
l 6C Green LED OFF Turns off Green LED
( 28 Green LED FLASH Flashing Green LED (Firmware Beta 2.22 &
later)
M 4D Red LED ON Turns on Red LED
m 6D Red LED OFF Turns off Red LED
) 29 Red LED FLASH Flashing Red LED (Firmware Beta 2.22 & later)
C 43 Select Card Connector Selects the card connector to be used with the
following card I/O commands
T 54 Memory Card Type
Select Selects the type of Memory Card for use with the
following Memory Card Commands
8 38 Switch Report Read and report state of card seated switch
(Firmware Beta 2.22 & later)
# 23 Configuration Request Transmits Reader Configuration Bytes
USI2 Reader Command Details
Retransmit Command. Use this command when you detect a communication error in a
message received from the reader. The reader will re-transmit the last response it transmitted
before this request. The host may request re-transmits as many times as it likes.
Version Report. Use this Command when you want to know the version of the Model 152
firmware currently loaded. The response is an ASCII string giving the firmware ID.
Warm Reset. Use this command when you want the reader to simulate a power cycle. As on
any power up, the Power Up Message will be sent by the reader.

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.3
Reader Status Request. Use this command to interrogate the reader about its operational
status. Two bytes of status information will be returned. ICC Power and Card Seated bits refer
to the currently selected card connector. Card Seated is only meaningful for the User
Connector. See Tables 7 & 8 for an interpretation guide for these bytes.
LED Commands. Use these commands to manipulate the LEDs on the reader (Firmware Beta
2.22 & later has flashing mode).
Select Card Connector. The Model 152 supports up to 9 card connectors. This command tells
the reader which connector is to be used with succeeding Card I/O Commands. The User
Connector (the only one the user can see) is number 0, and is always selected after a power
cycle. The Local Sam (GSM connector) is number 1. The remote SAM box contains up to 7
more connectors, numbered 2-8. The byte following the command byte codes the Connector
number.
Memory Card Type Select. This command is used to specify the type of Memory Card to be
accessed through the User Connector. The byte following the command byte codes the card
type. Table 4 shows the card types, type 0 is the factory default. The default type (always in
effect after power up) is selectable via the configuration program. By using type 0, a read of the
first four bytes (0-3) will always give the ISO 7816 defined ATR for synchronous cards if the
card in the connector conforms to the ISO standard. A user may be able to use the information
in the ATR to determine card type.
Table 4 - Memory Card Types
TYPE CARDS
00H Siemens SLE4406, SLE4436, SGS Thomson ST1305, Solaic E192B
01H Siemens SLE4418, SLE4428
02H Siemens SLE4404, GemPlus GPM416-5V, GPM896, Atmel AT88SC101,
AT88SC102, Incard MS101, MS102, AMMI AM0101, AM0102
03H Siemens SLE4432, SLE4442
04H 3 Byte I2C Protocol, Atmel AT24C01a - AT24C16, SGC Thomson ST14C02C
05H 4 Byte I2C Protocol, Microchip 24LC65
06H Xicor X76F041*
07H Xicor X76F640*
Configuration Request This command is used to obtain a configuration response which gives
details of the current configuration in the reader. See Table 9 for format and interpretation of the
response.
Switch Report. This command will return a “p” (hex 70) if no card is inserted or “s” if a card is
inserted. In automatic response mode the reader will send either “p” or “s” whenever the state
of the switch changes (Firmware Beta 2.22 & later).

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.4
Table 5 - USI2 Card Commands
ASCII HEX Name Use
N 4E ICC Power ON Power on Microprocessor Card, return ATR
n 6E ICC Power OFF Power off card, Microprocessor or Memory
A 41 *Output to Micro-
processor Card T=0 Sends request (and maybe data) to a Microprocessor
Card
a 61 *Input from Micro-
processor Card T=0 Sends request to a Microprocessor Card, waits for
response data
F 46 *I/O microprocessor
Card T=1 Sends request to a Microprocessor Card, waits for
response data and/or status bytes
B 42 *I/O to Memory Card Performs an operation on a Memory Card.
* these commands are followed by a TPDU as explained in Chapter 7.The Command and
TPDU may be sent in separate messages, or together. If they are sent in separate messages,
the reader will transmit an ACK response after receiving the Command and wait for the TPDU
message. Upon receipt of the TPDU, the TPDU will be processed (with resulting card I/O), and
the response returned to the user.
ICC Power ON. This command is used to power up a Microprocessor Card in the currently
selected connector. It will follow the ISO power up sequence and return the ATR as the
response. Memory Cards do not have an explicit power up command, rather the first I/O
operation directed to the card causes a power up, which is performed according to the
specifications for the current Memory Card type.
ICC Power OFF. This command is used to power down the card in the currently selected
connector. It will work for any type of card.
Output to Microprocessor Card. This command is used to pass a TPDU to a Microprocessor
Card using T=0, where only an ISO status reply is expected from the card. Because different
Microprocessor Cards use different TPDU commands, the host must specify (via command
selection) whether any data is expected in reply. WARNING: If you use this command to send a
TPDU which generates a data response, results are undefined.
Input from Microprocessor Card. This command is used to pass a TPDU to a Microprocessor
Card using T=0, where both data and an ISO status are expected in the response. If you pass a
TPDU with data intended for the card, the data will not be sent by this command.
I/O Microprocessor Card. This command is used to pass a TPDU to a Microprocessor Card
using T=1, where both data and an ISO status may be expected in the response.
I/O to Memory Card. This command is used to perform all operations with a Memory Card. This
command will always include a TPDU. Valid TPDUs are defined in Chapter 8 Memory Card
Support and Appendices

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.5
Table 6 - Responses from Card Reader to the Host
ASCII HEX NAME MEANING
^5E Acknowledge Acknowledges correct completion of most recent
command
*2A Error Command was received correctly, but could not be
completed.
?3F Communication
Error Command was not received correctly.
!21 Invalid Command Command was received correctly, but is not a
recognized command
:3A Power On Report The reader has just completed a power cycle, either
real or via the Warm Reset command
ISO TPDU
Response TPDU processing complete. See Chapter 7 for
format.
~ 7E Unavailable Hardware not available to complete this request
Status Bytes
Table 7 - First Status Byte
Bit Position ’0’ ’1’
0RFU,always0
1 Card not seated Card seated
2RFU,always0
3 ICC Power OFF ICC Power ON
4 Auto slot switch OFF Auto slot switch ON
5,6,7 Unused, always 0
Table 8 - Second Status Byte
Bit Position Meaning
0,1 00 - Green LED OFF 01 -Green LED ON 10 -Green LED FLASHING
2,3 00 - Red LED OFF 01 - Red LED ON 10 - Red LED FLASHING
4,5,6,7 Not used, Always’0’

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.6
Table 9 - Response to Configuration Request (16 bytes)
0123456 7-15
Equip
ment
0
RFU Prot Speed Addr Actual
Mem.
Card
Type
Default
Mem.
Card
Type
RFU
Table 9a - Equipment Byte 0
76 5 4 3 2 1 0
RFU RFU RFU RFU CTS RFU Local
SAM User
Card
Equipment may be any of the following:
01H - User Connector only
03H - User Connector and Local SAM
09H - User Connector and CTS (Clear to Send)
0BH - User Connector, Local SAM and CTS
Protocol is one of: 0=USI2, 1=TLP-224, 2=TLP-224Turbo
Speed is one of: 0=1200, 1=2400, 2=4800, 3=9600, 4=19200, 5=38400
Address is the actual address byte used to access this device (meaningful only if
communicating with USI2 protocol)
Memory Card Types per Table 4

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.7
Examples
In the following examples, the protocol envelope is shown in normal, unenhanced text; the
device information (commands, device responses) is underlined; and TPDU requests and
responses are in bold. All values are in hex.
Table 10 - USI2 Reader Commands Example
Step Host Command Reader Response Comments
1 01 00 00 01 39 39 01 00 00 15 39 36 31 30 33
30 2C 41 4D 43 20 4D 31 35
32 2C 56 31 2E 30 30 44
Version String request and
response
2 01 00 00 01 25 25 01 00 00 15 39 36 31 30 33
30 2C 41 4D 43 20 4D 31 35
32 2C 56 31 2E 30 30 44
Retransmit request and
given.
3 01 00 00 01 7F 7F 01 00 00 01 3A 3A Warm Reset and Power Up
Response
4 01 00 00 01 24 24 01 00 00 02 02 00 01 Status Request, reply shows
Card Seated
5 01 00 00 01 4C 4C 01 00 00 01 5E 5E Turn on Green LED, reader
Acknowledges
6 01 00 00 01 4D 4D 01 00 00 01 5E 5E Turn on Red LED, reader
Acknowledges
7 01 00 00 01 6C 6C 01 00 00 01 5E 5E Turn off Green LED, reader
Acknowledges
8 01 00 00 01 6D 6D 01 00 00 01 5E 5E Turn off Red LED, reader
Acknowledges
9 01 00 00 02 43 00 40 01 00 00 01 5E 5E Select Connector 0, reader
Acknowledges
10 01 00 00 02 54 02 55 01 00 00 01 5E 5E Select Type 2 Memory Card
(SLE4404), reader
Acknowledges
11 01 00 00 01 23 23 01 00 00 09 F0 00 00 03 00
02 00 00 00 00 00 00 00 00
00 00 F9
Request Configuration,
reader responds.
CTS and all Connectors
present, Model 0, Protocol
USI2, speed 9600, address
0, actual Memory Card 2,
default Memory Card 0

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.8
Table 11 - USI2 Card Commands Example, Microprocessor Card (Solaic PocketBook)
Step Host Command Reader Response Comments
1 01 00 00 01 4E 4E 01 00 00 09 3B 26 00 06
23 00 00 90 00 A0 ICC Power On, reader
responds with ATR
201 00 00 08 41 FA A4 00
00 02 AA CC 72 01 00 00 02 90 00 93 Send Output TPDU to
reader, receive ISO OK
status response.
301 00 00 06 61 FA B0 00
00 05 29 01 00 00 07 31 32 33 34
35 90 00 A7 Send Input TPDU to
reader, receive input (5
bytes) and ISO OK status.
4 01 00 00 01 6E 6E 01 00 00 01 5E 5E Power down card, reader
Acknowledges
Table 12 - USI2 Card Commands Example, Memory Card (AT24C01A)
Step Host Command Reader Response Comments
101 00 00 06 42 DA B0 00
10 04 3B 01 00 00 06 31 32 33 34
90 00 93 Send TPDU requesting
data from card, receive
input (4 bytes) and ISO
OK status.
201 00 00 0A 42 DA D0 00
10 04 35 36 37 38 5B 01 00 00 02 90 00 93 Send TPDU writing data to
card, receive ISO OK
status.
301 00 00 06 42 DA B0 00
10 04 3B 01 00 00 06 35 36 37 38
90 00 9B Send TPDU requesting
data from card, receive
input (4 bytes) and ISO
OK status.
4 01 00 00 01 6E 6E 01 00 00 01 5E 5E Power down card, reader
Acknowledges

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.1
Chapter 5:
TLP-224 Protocol
Transport layer
The transport layer is symmetrical, that is, a transport unit looks the same going either from the
host to reader or from reader to host. The relationship between host and reader is fixed, with the
host initiating all exchanges and the reader responding only when prompted by the host. For
each message sent by one side, the other side may ACK (acknowledge) correct receipt of the
message, NAK (negative acknowledge) correct receipt (requesting a retransmit), or ignore the
message. If the reader receives a NAK, it will retransmit the last message again. The host may
retransmit at its discretion.
Header Data Trailer
TYPE LEN Command or Response BCC ETX
TYPE specifies whether the message is a normal Acknowledge (ACK), or whether it is a
Negative Acknowledge (NAK). The value of TYPE for an ACK is 60H. The value of
TYPE for a NAK is E0H.
LEN gives the length of the Data portion of the message.
Command or Response is the message being sent. LEN bytes are sent.
BCC The Block Check Character is computed by exclusive ORing the value of all preceding
bytes in the message, back to and including the TYPE byte.
ETX Signals the end of the message. Its value is 03H.
Note: During transmission, each byte, including the ACK/NAK, Length, Data and LRC, but
excluding the ETX, is broken into 2 nibbles which are converted into the ASCII equivalent of
HEX, and transmitted. The ETX is transmitted as is. The receiver must reconstruct the inbound.
Thus an actual message takes almost twice as many bytes to transmit as there are bytes to
send. Suppose you want to send a Request Version String Command to the reader. Before
splitting the bytes, the message would look like (all values are HEX):
Header Data Trailer
TYPE LEN Command or Response BCC ETX
60 01 39 58 03
After splitting the bytes according to the TLP-224 rules, the transmitted character string would
look like this:
36 30 30 31 33 39 35 38 03
Response Operation Status Byte

Model 152 Smart Card Reader/Writer Operation Instructions
8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1.2
The Data portion of a message for a command is structured differently from the Data portion of
a message for a response. The command structure codes the command and any data (reader
control or TPDU) that may be needed to carrry out the command.
The response structure always has an Operation Status Byte (OSB) as the first character of the
response. After the Operation Status Byte, any other data (reader specific information or TPDU
response).
Header Data Trailer
TYPE LEN OSB response data BCC ETX
Table 13 - TLP-224 Operation Status Bytes
Status Meaning
00 Command executed without problems
03 Byte Receive Error (with NAK message)
04 Unknown Command
05 BCC Error (with NAK message)
07 Invalid Command parameters
08 Length Error (with NAK message)
A2 Card not supported (after ICC Power ON command)
A3 Card Communication Error (parity, timing, etc.; -- after ICC Power ON command)
E3 Same as A3, but with command other than ICC Power ON
E4 Inconsistent Procedure Byte from card (T=0 only, DA or DB commands)
E5 Card Interrupted Communications, check TPDU structure and sequence
E7 WARNING. TPDU response status (SW1/SW2) not = “9000"
F7 Card Removed Since Last Operation; this status is sent only once
FB Card Not Present
Table of contents