background image

Model 152 Smart Card Reader/Writer Operation Instructions

8182760 Revision G Copyright Axiohm 1998 All Rights Reserved

Page 1.1

Chapter 8:  

Memory Card Support

Memory Cards are to be accessed by using the “B” command. The command consists of the
command designator (B) and an ISO 7816 TPDU. The reader interprets the TPDU based on the
currently active Memory Card type and performs the requested operation. When the operation is
complete, the reader returns an ISO 7816 status (SW1, SW2).

TPDUs are coded, to the extent possible, according to ISO 7816-4 requirements and the
response status conforms to ISO 7816-4 requirements. This allows the user to use a command
interface which is relatively easy to upgrade to Microprocessor Cards in the future. Additionally,
it provides a single model for the operation of all different Memory Cards, with limited exceptions
for cards with special needs.

The “B” command is usable with either the USI2 or TLP-224 protocols. When used with the
TLP-224 protocol (or its faster derivative, TLP-224Turbo), the response always has one byte of
device status before the ISO defined response.

The interface design is intended to present the smoothest interface possible when switching
between types of Memory Cards. Functions which are identical or similar from card to card will
be supported by identical or similar commands (i.e. Read Binary will probably be identical for all
cards). When a command closely matches a command described in ISO 7816-4, that command
INS and as much of its format as practical are used.

This manual does not presume to detail the complete operation of all the Memory Cards it
supports. Each Memory Card has special features which are, in some cases, quite complex.
Most of the documents describing these features are copyrighted. Usually, these documents
represent the best source of information. It is presumed that if you intend to use the reader to
access a particular type of Memory Card, you will have either the card manufacturer’s technical
documentation and/or the chip manufacturer’s documentation.

Summary of Contents for 152

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

Page 2: ...eclaration 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 o...

Page 3: ...onfiguration 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 Examp...

Page 4: ... 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 ...

Page 5: ...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 Command...

Page 6: ...ariety 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 D...

Page 7: ...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 ...

Page 8: ...in 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...

Page 9: ...ached 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 config...

Page 10: ...turers 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 spli...

Page 11: ...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 ...

Page 12: ...9 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 C...

Page 13: ... 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...

Page 14: ... 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 Car...

Page 15: ...t 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 0 RFU always 0 1 Card not seated Card seated 2 RFU always 0 3 ICC Power OFF ICC Power...

Page 16: ...t Byte 0 7 6 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 acce...

Page 17: ...st 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 0...

Page 18: ...0 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 1 01 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 2 01 00 ...

Page 19: ...e 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 transmi...

Page 20: ...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 et...

Page 21: ...lect Memory Card Type Selects the type of Memory Card for use with subsequent Memory Card commands 23 Configuration Request Transmits Reader Configuration Bytes to the host 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 simulat...

Page 22: ...s 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 ...

Page 23: ...mmand 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 The command format is 6E xx 00 00 6E is the command byte xx is a wait time in seconds If no card is in the reader when this command is received the reader will wait xx seconds looking for a card If the card is inserted within xx seconds it ...

Page 24: ...ults are undefined Input from Microprocessor Card This command is used to pass a TPDU to a T 0 Microprocessor Card 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 to Memory Card This command is used to perform all operations with a Memory Card This command will always include a TPDU Vali...

Page 25: ...mments 1 60 01 39 58 03 60 15 00 39 36 31 30 33 30 2C 41 4D 43 20 4D 31 35 32 2C 56 31 2E 30 30 25 03 Version String request and response 2 60 01 7F 1E 03 60 01 00 61 03 Warm Reset reader Acknowledges 3 60 02 01 01 62 03 60 02 00 01 63 03 Status Request reply shows Card Seated 4 60 03 01 01 04 67 03 60 02 00 05 67 03 Turn on Green LED reader Acknowledges 5 60 03 01 01 14 77 03 60 02 00 15 77 03 Tu...

Page 26: ... response 3 60 06 DB FA B0 00 00 05 F2 03 60 08 00 31 32 33 34 35 90 00 C9 03 Send Input TPDU to reader receive input 5 bytes and ISO OK status 4 60 01 4D 2C 03 60 04 00 90 00 00 F4 03 Power down card reader Acknowledges Table 20 TLP 224 Card Commands Example Memory Card AT24C01A Step Host Command Reader Response Comments 1 60 06 42 DA B0 00 10 04 5A 03 60 07 00 31 32 33 34 90 00 F3 03 Send TPDU r...

Page 27: ...atically increases the amount of time it takes to transmit a message The TLP 224Turbo protocol drops this requirement Each byte in a frame is transmitted as is and the receiver should not try to reconstruct broken bytes This restores the speed of the interface to almost double the speed the original TLP 224 protocol attains Programming changes in drivers to handle this variant should be minor when...

Page 28: ... ISO Parameter Le maximum length of expected reply Note P3 usually codes Lc length of data to send to card If there is no data to send to the card and data is expected from the card P3 will code Le maximum length of data expected from the card If there is no data to send to the card and no data is expected in the response P3 is 0 If Data or Le are marked N A they should not be supplied Memory Card...

Page 29: ...e USI2 or TLP 224 protocols When used with the TLP 224 protocol or its faster derivative TLP 224Turbo the response always has one byte of device status before the ISO defined response The interface design is intended to present the smoothest interface possible when switching between types of Memory Cards Functions which are identical or similar from card to card will be supported by identical or s...

Page 30: ...NS P1 P2 P3 Lc or Le Data Le Verify DA 20 0 00 xx len Password N A Int Authenticate DA 88 xx xx len Challenge len Read Binary DA B0 addr addr len Data read from card N A Write Binary DA D0 addr addr len Data to write N A Erase Binary DA 0 00 addr addr len may need data N A Restore Data DA C0 addr addr len N A N A Write Binary with Protect DA C1 addr addr len Data to write N A Read Binary with Prot...

Page 31: ...ndents in the unit and stand easily accommodate velcro strips if that method is desired and molded keyholes allow more secure mounting The unit may be easily removed by squeezing both sides of the stand Force required to insert or remove an ICC Insertion 10N maximum Extraction 3N minimum Durability In excess of 100 000 card insert withdrawal operations Electrical The Model 152 has several optional...

Page 32: ...Model 152 Smart Card Reader Writer Operation Instructions 8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1 2 Figure 1 Dimensions Part 1 ...

Page 33: ...Model 152 Smart Card Reader Writer Operation Instructions 8182760 Revision G Copyright Axiohm 1998 All Rights Reserved Page 1 3 Figure 2 Dimensions Part 2 ...

Page 34: ...n G Copyright Axiohm 1998 All Rights Reserved Page 1 4 Environmental Table 23 Environmental Requirements Condition Temperature Humidity Condensin g Operating 41 to 131 F 5 to 50 C 5 to 95 NO Shipping 40 to 158 F 40 to 70 C 5 to 95 NO Storage 14 to 140 F 10 to 60 C 5 to 95 NO ...

Page 35: ...ice 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 wil...

Page 36: ...thentication The process of assuring that one or both parties to a transaction are who they say they are BCC Block Check Character Used in many communications protocols to detect errors in transmission BPS Bits Per Second abbreviated in either upper case or lower case Refers to the number of bits which can be sent on a communications path in one second Card Seated Refers to a card which is actuall...

Page 37: ...or would mate to a 9 pin commport DC Direct Current EEPROM Electrically Erasable Programmable Read Only Memory Most Smart Cards store user data in EEPROM which can be erased and re programmed numerous times See the card manufacturer s specifications for information on the number of programming cycles available with a particular card EOT End Of Transmission This byte is used in many communications ...

Page 38: ...tion is to denote a HEX number Host The device connected to the Model 152 reader via the communications cable The host controls all operations of the reader ICC Integrated Circuit Card Any card which acts as a carrier for an Integrated Circuit Most particularly cards which conform to ISO 7816 standards INS Instruction This is one of the bytes used in a TPDU ISO 7816 This international standard is ...

Page 39: ... microprocessor They contain simple relatively circuitry which allows the card to read write and update data There are a variety of security mechanisms available on many cards Microprocessor Cards Also known as Asynchronous Cards ICC Cards which have a microprocessor and function according to ISO 7816 3 specifications for Microprocessor Cards ms milliseconds Multi drop Refers to techniques for mul...

Page 40: ...An electrical specification of a communications system which used between parties on a communications line The Model 152 is RS232 compatible SAM Secure Application Module Many Smart Card applications require security to protect against fraud Many security schemes are implemented via SAMs which are Smart Cards which make security algorithms available and supply a secure place to store keys It is qu...

Page 41: ...n and recovery techniques applied to whole messages TLP 224 One of the communication protocols supported by the Model 152 for communications between the reader and the host This protocol is used by several manufacturers of Smart Card readers If you use only the core set of commands in your application your unit may be plug compatible with units from other manufacturers TLP 224Turbo A proprietary v...

Page 42: ...es through a power cycle this Connector is selected USI2 One of the communications protocols supported by the Model 152 for communications between the reader and the host This protocol is unique to Axiohm American Magnetics This protocol allows fuller usage of the features of the Model 152 Write Because most Smart Cards use EEPROM for data storage if the new value to be stored at a location has an...

Page 43: ... 822 2200 FAX 714 822 2202 www magstripe com 0 51 4 56 4 14 0 6 10 4WCNKV We at Axiohm American Magnetics are absolutely committed to provide defect free products and services to our customers in partnership with equally committed suppliers and authorized dealers ...

Reviews: