MagTek USB INSERTION READER User Manual

USB
INSERTION READER
TECHNICAL REFERENCE MANUAL
Manual Part Number 99875205 Rev 13
MAY 2012
REGISTERED TO ISO 9001:2008
Seal Beach, CA 90740
Phone: (562) 546-6400
FAX: (562) 546-6301
Technical Support: (651) 415-6800
www.magtek.com
Rev Number
Date
Notes
1
29 Oct 01
Initial Release
2
13 Nov 01
Changed Temp Spec: Operating: 0o to 65 o C (32o to 149 o F), and Storage: -40o to 80 o C (-40o to 176o F)
3
12 Dec 02
Section 4, Command Number: Corrected GET and SET PROPERTY descriptions
4
28 Jan 03
Changed copyright symbol so pdf copies would print on all printers
5
03 Jun 03
Front Matter: added ISO line to logo, changed Tech Support phone number, added new warranty statement.
6
16 Jul 03
Sec 4: In the paragraph beginning “This device is powered…” changed Product ID from 0x0002 to 0x0003.
21065140. Updated temperature and swipe speed ranges.
8
13 Sep 06
Updated Configuration Table: added 21065141; included type of bezel and cable P/N
9
9 Oct 07
Added keyboard emulation feature; added part numbers 21065145 & 21065146
10
6 Jun 08
Corrected reverences from “swipe” to “insert” reader; added RoHS statement
reader models; included connector descriptions for both models
12
19 Oct 10
Removed 21065099; Added 21065154; removed reference to LED.
13
3 May 12
Updated images to improve quality.
Copyright© 2001-2012
MagTek®, Inc.
Printed in the United States of America
Information in this document is subject to change without notice. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of MagTek, Inc.
MagTek is a registered trademark of MagTek, Inc.
USB (Universal Serial Bus) Specification is Copyright© 1998 by Compaq Computer Corporation, Intel Corporation, Microsoft Corporation, NEC Corporation.
REVISIONS
7 30 May 06 Removed reference to JIS. Changed to 3-track reading capability.
Added Reset, LED and Track Enable commands. Added description on reader LED operation. New top level reader part number
11 13 Aug 08 Added 21065150; included Molex connector information for older
ii
LIMITED WARRANTY
MagTek warrants that the products sold pursuant to this Agreement will perform in accordance with MagTek’s published specifications. This warranty shall be provided only for a period of one year from the date of the shipment of the product from MagTek (the “Warranty Period”). This warranty shall apply only to the “Buyer” (the original purchaser, unless that entity resells the product as authorized by MagTek, in which event this warranty shall apply only to the first repurchaser).
During the Warranty Period, should this product fail to conform to MagTek’s specifications, MagTek will, at its option, repair or replace this product at no additional charge except as set forth below. Repair parts and replacement products will be furnished on an exchange basis and will be either reconditioned or new. All replaced parts and products become the property of MagTek. This limited warranty does not include service to repair damage to the product resulting from accident, disaster, unreasonable use, misuse, abuse, negligence, or modification of the product not authorized by MagTek. MagTek reserves the right to examine the alleged defective goods to determine whether the warranty is applicable.
Without limiting the generality of the foregoing, MagTek specifically disclaims any liability or warranty for goods resold in other than MagTek’s original packages, and for goods modified, altered, or treated without authorization by MagTek.
Service may be obtained by delivering the product during the warranty period to MagTek (1710 Apollo Court, Seal Beach, CA 90740). If this product is delivered by mail or by an equivalent shipping carrier, the customer agrees to insure the product or assume the risk of loss or damage in transit, to prepay shipping charges to the warranty service location, and to use the original shipping container or equivalent. MagTek will return the product, prepaid, via a three (3) day shipping service. A Return Material Authorization (“RMA”) number must accompany all returns. Buyers may obtain an RMA number by contacting Technical Support at (888) 624-8350.
EACH BUYER UNDERSTANDS THAT THIS MAGTEK PRODUCT IS OFFERED AS IS.
MAGTEK MAKES NO OTHER WARRANTY , EXPRESS OR
IMPLIED, AND MAGTEK DISCLAIMS ANY WARRANTY OF ANY OTHER KIND, INCLUDING ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
IF THIS PRODUCT DOES NOT CONFORM TO MAGTEK’S SPECIFICATIONS, THE SOLE REMEDY SHALL BE REPAIR OR REPLACEMENT AS PROVIDED ABOVE. MAGTEK’S LIABILITY, IF ANY, SHALL IN NO EVENT EXCEED THE TOTAL AMOUNT PAID TO MAGTEK UNDER THIS AGREEMENT. IN NO EVENT WILL MAGTEK BE LIABLE TO THE BUYER FOR ANY DAMAGES, INCLUDING ANY LOST PROFITS, LOST SAVINGS, OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF, OR INABILITY TO USE, SUCH PRODUCT, EVEN IF MAGTEK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
LIMITATION ON LIABILITY EXCEPT AS PROVIDED IN THE SECTIONS RELATING TO MAGTEK’S LIMITED WARRANTY,
MAGTEK’S LIABILITY UNDER THIS AGREEMENT IS LIMITED TO THE CONTRACT PRICE OF THIS PRODUCT.
MAGTEK MAKES NO OTHER WARRANTIES WITH RESPECT TO THE PRODUCT, EXPRESSED OR IMPLIED, EXCEPT AS MAY BE STATED IN THIS AGREEMENT, AND MAGTEK DISCLAIMS ANY IMPLIED WARRANTY, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
MAGTEK SHALL NOT BE LIABLE FOR CONTINGENT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES TO PERSONS OR PROPERTY. MAGTEK FURTHER LIMITS ITS LIABILITY OF ANY KIND WITH RESPECT TO THE PRODUCT, INCLUDING ANY NEGLIGENCE ON ITS PART, TO THE CONTRACT PRICE FOR THE GOODS.
MAGTEK’S SOLE LIABILITY AND BUYER’S EXCLUSIVE REMEDIES ARE STATED IN THIS SECTION AND IN THE SECTION RELATING TO MAGTEK’S LIMITED WARRANTY.
iii
FCC WARNING STATEMENT
This equipment has been tested and was found to comply with the limits for a Class B digital device pursuant to Part 15 of FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a residential environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference with radio communications. However, there is no guarantee that interference will not occur in a particular installation.
FCC COMPLIANCE STATEMENT
This device complies with Part 15 of the FCC Rules. Operation of this device is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
CANADIAN DOC STATEMENT
This digital apparatus does not exceed the Class B limits for radio noise from digital apparatus set out in the Radio Interference Regulations of the Canadian Department of Communications.
Le présent appareil numérique n’émet pas de bruits radioélectriques dépassant les limites applicables aux appareils numériques de la classe B prescrites dans le Réglement sur le brouillage radioélectrique édicté par le ministère des Communications du Canada.
This Class B digital apparatus complies with Canadian ICES-003.
Cet appareil numériqué de la classe B est conformé à la norme NMB-003 du Canada.
CE STANDARDS
Testing for compliance with CE requirements was performed by an independent laboratory. The unit under test was found compliant with s tandards established for Class B devices.
UL/CSA
This product is recognized per Underwriter Laboratories and Canadian Underwriter Laboratories 1950.
RoHS STATEMENT
When ordered as RoHS compliant, this product meets the Electrical and Electronic Equipment (EEE) Reduction of Hazardous Substances (RoHS) European Directive 2002/95/EC. The marking is clearly recognizable, either as written words like “Pb-free”, “lead-free”, or as another clear symbol ( ).
iv

TABLE OF CONTENTS

SECTION 1. FEATURES AND SPECIFICATIONS ...................................................................................... 1
FEATURES ............................................................................................................................................... 2
HARDWARE CONFIGURATIONS ............................................................................................................ 2
ACCESSORIES ........................................................................................................................................ 3
REFERENCE DOCUMENTS .................................................................................................................... 3
SPECIFICATIONS .................................................................................................................................... 4
SECTION 2. INSTALLATION ....................................................................................................................... 5
USB CONNECTION .................................................................................................................................. 5
WINDOWS PLUG AND PLAY S E TUP ..................................................................................................... 7
MOUNTING ............................................................................................................................................... 7
CARD INSERTION AND ORIENTATION ................................................................................................. 9
SECTION 3. OPERATION ......................................................................................................................... 11
CARD READ ........................................................................................................................................... 11
SECTION 4. USB COMMUNICATIONS (HID) ........................................................................................... 13
HID USAGES .......................................................................................................................................... 14
REPORT DESCRIPTOR ......................................................................................................................... 15
CARD DATA ............................................................................................................................................ 15
TRACK 1 DECODE STATUS ................................................................................................................. 16
TRACK 2 DECODE STATUS ................................................................................................................. 16
TRACK 3 DECODE STATUS ................................................................................................................. 16
TRACK 1 DATA LENGTH ....................................................................................................................... 17
TRACK 2 DATA LENGTH ....................................................................................................................... 17
TRACK 3 DATA LENGTH ....................................................................................................................... 17
CARD ENCODE TYPE ........................................................................................................................... 17
TRACK DATA .......................................................................................................................................... 17
TRACK 1 DATA ....................................................................................................................................... 18
TRACK 2 DATA ....................................................................................................................................... 18
TRACK 3 DATA ....................................................................................................................................... 18
CARD STATUS ....................................................................................................................................... 18
COMMANDS ........................................................................................................................................... 18
COMMAND NUMBER ............................................................................................................................. 19
DATA LENGTH ....................................................................................................................................... 19
DATA ....................................................................................................................................................... 19
RESULT CODE ....................................................................................................................................... 19
GET AND SET PROPERTY COMMANDS ............................................................................................. 19
SOFTWARE ID PROPERTY .................................................................................................................. 20
SERIAL NUM PROPERTY ..................................................................................................................... 21
POLLING INTERV AL PR OPERTY ......................................................................................................... 22
MSR DIRECTION PROPERTY ............................................................................................................... 23
CARD INSERTED PROPERTY .............................................................................................................. 24
MAX PACKET SIZE PROPERTY ........................................................................................................... 24
INTERFACE TYPE PROPERTY ............................................................................................................. 25
TRACK ID ENABL E PRO P ERTY ........................................................................................................... 26
RESET DEVICE COMMAND .................................................................................................................. 27
SECTION 5. USB COMMUNICATIONS (KB) ............................................................................................ 29
HOST APPLICATIONS ........................................................................................................................... 29
CARD DATA ............................................................................................................................................ 30
PROGRAMMABLE CONFIGURATION OPTIONS ................................................................................. 31
LOW LEVEL COMMUNICATIONS ......................................................................................................... 31
HID USAGES .......................................................................................................................................... 32
REPORT DESCRIPTOR ......................................................................................................................... 33
COMMANDS ........................................................................................................................................... 34
COMMAND NUMBER ............................................................................................................................. 34
DATA LENGTH ....................................................................................................................................... 34
DATA ....................................................................................................................................................... 34
RESULT CODE ....................................................................................................................................... 35
GET AND SET PROPERTY COMMANDS ............................................................................................. 35
v
SOFTWARE ID PROPERTY .................................................................................................................. 36
SERIAL NUM PROPERTY ..................................................................................................................... 37
POLLING INTERV AL PR OPERTY ......................................................................................................... 38
TRACK ID ENBLE PROPERTY .............................................................................................................. 39
TRACK DATA SEND FLAGS PROPERTY ............................................................................................. 39
TERMINATION CHAR PROPERTY ....................................................................................................... 40
SS TK2 7BITS PROPERTY .................................................................................................................... 41
SS TK3 ISO ABA PROPERTY ................................................................................................................ 41
SS TK3 AAMVA PROPERTY ................................................................................................................. 41
SS TK3 7BITS PROPERTY .................................................................................................................... 42
PRE CARD CHAR PROPERTY .............................................................................................................. 42
POST CARD CHAR PROPERTY ........................................................................................................... 43
PRE TK CHAR PROPERTY ................................................................................................................... 43
POST TK CHAR PROPERTY ................................................................................................................. 43
ASCII TO KEYPRESS CONVERSION TYPE PROPERTY .................................................................... 44
INTERFACE TYPE PROPERTY ............................................................................................................. 45
ACTIVE KEYMAP PROPERTY .............................................................................................................. 46
PRE CARD STRING PROPERTY .......................................................................................................... 47
POST CARD STRING PROPERTY ........................................................................................................ 47
SS TK1 ISO ABA PROPERTY ................................................................................................................ 48
SS TK2 ISO ABA PROPERTY ................................................................................................................ 48
ES PROPERTY ....................................................................................................................................... 49
MSR DIRECTION PROPERTY ............................................................................................................... 49
CARD INSERTED PROPERTY .............................................................................................................. 50
SENSOR BLOCKED CHAR .................................................................................................................... 50
SENSOR UNBLOCKED CHAR .............................................................................................................. 51
ES TK1 PROPERTY ............................................................................................................................... 51
ES TK2 PROPERTY ............................................................................................................................... 52
ES TK3 PROPERTY ............................................................................................................................... 52
RESET DEVICE COMMAND .................................................................................................................. 53
GET KEYMAP ITEM COMMAND ........................................................................................................... 53
SET KEYMAP ITEM COMMAND ............................................................................................................ 55
SAVE CUSTOM KEYMAP COMMAND .................................................................................................. 57
SECTION 6. DEMO PROGRAM ................................................................................................................ 59
INSTALLATION ....................................................................................................................................... 59
OPERATION ........................................................................................................................................... 59
SOURCE CODE ...................................................................................................................................... 60
APPENDIX A. USAGE ID DEFINITIONS ................................................................................................... 61
KEYBOARD/KEYPAD PAGE (0X07) ...................................................................................................... 61
APPENDIX B. MODIFIER BYTE DEFINITIONS ........................................................................................ 69
APPENDIX C. BEZEL DESIGN .................................................................................................................. 71
vi

TABLES AND FIGURES

Figure 1-1. USB Insertion Reader ............................................................................................................. viii
Table 1-2. Specifications .............................................................................................................................. 4
Figure 2-1. Cabling for 2-track Models ......................................................................................................... 5
Table 2-1. 5-Pin Molex Connector (J1)......................................................................................................... 5
Figure 2-2. Connector Location for 3-track Models ...................................................................................... 6
Table 2-2. 5-Pin USB Mini-B Connector (J1) ............................................................................................... 6
Table 2-3. 4-Pin USB Type A Connector...................................................................................................... 6
Figure 2-3. MagTek Bezel Mounting Dimensions ........................................................................................ 8
Figure 2-4. Card Insertion and Orientation ................................................................................................... 9
Table A-1. Keyboard/Keypad ..................................................................................................................... 61
Table B-1. Modifier Byte ............................................................................................................................. 69
Figure C-1. Dimensions for Bezel Design Sheet 1 ..................................................................................... 72
Figure C-2. Dimensions for Bezel Design Sheet 2 ..................................................................................... 73
vii
viii
Figure 1-1. USB Insertion Reader

SECTION 1. FEATURES AND SPECIFICATIONS

The USB (Universal Serial Bus) HID (Human Interface Device) Insertion Reader is a compact magnetic stripe card reader, which conforms to ISO standards. The Reader is compatible with any device with a host USB interface. The reader can have single or dual head configurations. The dual head configuration can read a card with the magnetic stripe orientated in two directions. The single head configuration can read a card with the magnetic stripe orientated in one direction. A card is read by inserting it into and/or removing it out of the card slot when the card is oriented such that the card’s magnetic stripe contacts a read head.
The reader conforms to the USB HID Class specification Version 1.1. This allows host applications designed for most versions of Windows to easily communicate to the device using standard Windows API calls that communicate to the device through the HID driver that comes with Windows.
The Reader can be operated in two different modes:
HID (herein referred to as “HID mode”) and
HID with Keyboard Emulation (herein referred to as “KB mode”)
Note that only readers 21065140, 21065145 and 21065150 with firmware version 21042817C01 or newer support both modes. The other readers only support HID mode.
When operating in the HID mode, this device will not use keyboard emulation. It behaves like a vendor defined HID device so that a direct communication path can be established between the host application and the device, without interference from other HID devices.
When configured for the Keyboard Emulation (KB) mode, the Reader emulates a USB HID United States keyboard or, optionally, any international keyboard using ALT ASCII code keypad key combinations or customizable key maps. This allows host applications designed to acquire card data from keyboard input to seamlessly acquire the card data from the USB insert reader.
Caution
When in Keyboard Emulation mode, if another keyboard is connected to the same host as this device and a key is pressed on the other keyboard while this device is transmitting, then the data transmitted by this device may get corrupted.
1
USB Insertion Reader
Part
Number
Head
Configuration
USB
Mode
USB Mini B,
21065141
Dual head, Tk 1,2
HID
Extended
53048-0510
21041494 or 21041495
USB Mini B,
21065146
Dual head, Tk 1,2
HID
None
53048-0510
21041494 or 21041495
USB Mini B,
USB Mini B,
5-pin

FEATURES

Major features of the Insert Reader are as follows:
Powered through the USB – no external power supply required (current consumption of less
than one USB Unit Load)
Hardware Compatible with PC or any computer or terminal with a USB interface
Mag-Stripe reading during insertion and/or removal of card – for reliable card reading
Reads encoded data that meets ANSI/ISO/AAMVA standards and other custom formats such
as ISO track 1 format on track 2 or 3
Reads up to three tracks of card data
Compatible with USB specification Revision 1.1
Compatible with HID specification Version 1.1
Can use standard Windows HID driver for communications; no third party device driver is
required
Programmable USB serial number descriptor
Programmable USB Interrupt In Endpoint polling interval
Programmable read direction. (insert, withdrawal or both)
Non-volatile memory for configuration storage
Optional 6-foot Black or Pearl White cable; the 3-track version uses standard USB mini Type
B connector
Isolated PCB – isolates electronics from debris and liquids
AGC (Automatic Gain Control) in MagTek’s latest read IC - enhances read performance
with less susceptibility to RF interference
Beam-mounted Read-heads – improves card tracking capabilities
Ruggedized Chassis and Bezel Material - improves temperature and impact performance
Open Chassis Design – provides superior debris clearing capability
Half-card Drop Out – allows half-size credit cards and coins to be cleared from insert
channel.

HARDWARE CONFIGURATIONS

The Configuration is as follows:
21065140 Dual head, Tk 1,2,3 HID/KB Flat
21065145 Head right, Tk 1,2,3 HID/KB None
21065150 Dual head, Tk 1,2,3 KB Flat 21065154 Dual head, Tk 1,2,3 HID Flat
2
Bezel Connector Cable P/N
5-pin
5-pin
5-pin
16051430
16051430
16051430 16051430
Section 1. Features and Specifications
Part Number
Description
16051430
Cable, USB- A to mini USB-B Pearl White, 6 ft.6’
21041494
Cable, USB-A to 5-pin Molex Pearl White, 6 ft.
21041495
Cable, USB-A to 5-pin Molex Black, 6 ft.
21042806
USB MSR Demo Program with Source Code (CD)
99510026
USB MSR Demo Program with Source Code (WEB)

ACCESSORIES

The accessories are as follows:

REFERENCE DOCUMENTS

Axelson, Jan. USB Complete, Everything You Need to Develop Custom USB Peripherals, 1999. Lakeview Research, 2209 Winnebago St., Madison WI 53704, 396pp., http://www.lvr.com.
USB Human Interface Device (HID) Class Specification Version 1.1.
USB (Universal Serial Bus) Specification, Version 1.1, Copyright 1998 by Compaq Computer Corporation, Intel Corporation, Microsoft Corporation, NEC Corporation.
USB Implementers Forum, Inc., www.usb.org
The USB Insertion Reader will read cards that meet the standards defined by ISO (International Standards Organization):
ISO 7811 Identification Cards - Mag-stripe Cards, Tracks 1-3 ISO 7810 Identification Cards - Physical Specifications (ID-1 Cards)
3
USB Insertion Reader
Reference Standards
ISO 7810 and ISO 7811 and AAMVA*
Power Input
5V from USB port
Recording Method
Two-frequency coherent phase (F2F)
Message Format
ASCII
Card Speed
3 to 60 ips (7.62 to 152.4 cm/s)
Magnetic Head Durability
500,000 insertion cycles
ELECTRICAL
Current
Suspend Mode
Meets USB 2.0 specification for a Low-power Function
MECHANICAL
Dimensions
Height
Without bezel With Flat-faced Bezel
1.24" (31.50 mm) 3.00" (76.2 mm)
Bezel Thickness
Flat Faced: 0.31" (7.87mm)
2.25 oz. (65 gr.) 3.85 oz. (109 gr.)
Cable length (optional)
6ft.
ENVIRONMENTAL
Temperature Operating
-40 oC to 70 oC (-40 oF to 158 oF)
Storage
-40 oC to 80 oC (-40 oF to 176 oF)
Humidity Operating
10% to 90% noncondensing
Storage
10% to 90% noncondensing

SPECIFICATIONS

Table 1-2 lists the specifications for the Insertion Reader.
Table 1-2. Specifications
Normal Mode (2-track) Normal Mode (3-track)
Length Width
Weight Without bezel With Flat-faced Bezel
* ISO (International Standards Organization) and AAMVA (American Association of Motor Vehicle
Administrators)
15 mA 35 mA
4.4" (111.76 mm) 4.58" (116.33 mm)
3.51" (89.15 mm) 4.00" (101.60 mm)
4
Pin Number
Signal
1
VCC
2
- Data
3
+Data
4
Ground
5
Shield Ground

SECTION 2. INSTALLATION

This section describes the cable connections, the Windows Plug and Play Setup, and the physical mounting of the unit.

USB CONNECTION

Connect the optional USB cable to a USB port on the host. The reader and optional cable connectors are shown in Figures 2-1 and 2-2.
Figure 2-1. Cabling for 2-track Models
The 5-pin connections between the Reader and the USB connector shown in Figure 2-1 are listed in Table 2-1. The connector part number on the PCB is Molex 53048-0510.
Table 2-1. 5-Pin Molex Connector (J1)
5
USB Insertion Reader
Pin Number
Signal
1
VCC
2
- Data
3
+Data
4
- -
5
Ground
Pin Number
Signal
Cable Color
1
VCC
Red
2
- Data
White
3
+Data
Green
4
Ground
Black
Figure 2-2. Connector Location for 3-track Models
The 5-pin connections between the Reader and the USB connector shown in Figure 2-2 are listed in Table 2-2. The connector part number on the PCB is Molex 54819-0511.
Table 2-2. 5-Pin USB Mini-B Connector (J1)
The USB type A cable connector pin numbers and signal descriptions for both types of readers are listed in Table 2-3.
Table 2-3. 4-Pin USB Type A Connector
6
Section 2. Installation

WINDOWS PLUG AND PLAY SETUP

On hosts with the Windows operating system, the first time the device is plugged into a specific USB port, Windows will pop up a dialog box, which will guide you through the process of installing a device driver for the device. After this process is completed once, Windows will no longer request this process as long as the device is plugged into the same USB port. The device driver that Windows will install for this device is the driver used for HID devices and it is part of the Windows operating system. When the dialog box pops up, follow the instructions given in the dialog box. Sometimes Windows will find all the files it needs on its own without giving any prompts. Other times Windows will need to know the location of the files it needs. If Windows prompts for the file locations, insert the CD that was used to install Windows on your PC and point Windows to the root directory of the CD. Windows should find all the files it needs there.

MOUNTING

Figure 2-1 shows the board layout and indicates the cable connections.
Note
As shown in Figure 2-1, there is also a cable connector, which may add to the length of the unit. If used as shown, approximately 1.5” inch is added to the length of the unit.
For users who are interested in designing their own bezel, refer to the dimensions in Appendix C.
Figure 2-2 shows the dimensions for mounting when using a MagTek Bezel. The top view and the side view show the heads mounted above and below the PCB with connectors J2 and J3.
7
USB Insertion Reader
8
Figure 2-3. MagTek Bezel Mounting Dimensions
Section 2. Installation

CARD INSERTION AND ORIENTATION

The Reader can be mounted in two positions as shown in Figure 2-3. On the left panel of the illustration, the card is inserted with the magnetic stripe to the left. On the right panel of the illustration, the card is inserted with the magnetic stripe up. These are the mounting positions that permit any foreign object inserted into the slot to drop out of the reader.
The card may be inserted with the magnetic stripe either facing up or down, and data is read in either the forward or reverse direction as indicated in the illustration. For forward read, the start sentinel is read first; for reverse read, the start sentinel is read last.
Figure 2-4. Card Insertion and Orientation
Although the card is read during insertion, if the device is configured to read only on withdrawal the data will not be transmitted until the card is withdrawn. If an error is encountered during insertion, the card will be read again as the card is removed. In either case, the device will indicate that the card has been inserted when the rear sensor is blocked.
9
USB Insertion Reader
10

SECTION 3. OPERATION

This section describes the card reading operation.

CARD READ

A card may be read by inserting it into the reader slot or removing it from the reader slot. The direction of the read that is sent to the host is controlled by the MSR DIRECTION property, which is described in the next section. The magnetic stripe must face toward a read head during the insert operation. Once the card is swiped, the device will attempt to decode the data and then send the results to the host via a USB HID input report or, if in Keyboard Emulation mode, as if the data was being typed on a keyboard. After the results are sent to the host, the device will be ready to read the next swipe. To help reduce read errors, if a good read occurs when the card is inserted and a bad read occurs when the card is removed, then the read data for the card insert will be sent to the host when the card is removed instead of the bad read data from the removal.
11
USB Insertion Reader
12

SECTION 4. USB COMMUNICATIONS (HID)

The Reader can be operated in two different modes:
HID (herein referred to as “HID mode”) and
HID with Keyboard Emulation (herein referred to as “KB mode”)
Note that only readers 21065140 and 21065145 with firmware version 21042817C01 or newer support both modes. The other readers only support HID mode.
When operating in the HID mode, this device will not use keyboard emulation. It behaves like a vendor defined HID device so that a direct communication path can be established between the host application and the device, without interference from other HID devices.
When configured for the Keyboard Emulation (KB) mode, the Reader emulates a USB HID United States keyboard or, optionally, any international keyboard using ALT ASCII code keypad key combinations or customizable key maps. This allows host applications designed to acquire card data from keyboard input to seamlessly acquire the card data from the USB insert reader.
This section only describes USB communications when the device is in the HID mode. See the USB communications (KB) section for a description of USB communication when the device is in the KB mode. (Refer to Interface Type Property for information on how to change modes.)
This device conforms to the USB specification revision 1.1. This device also conforms with the Human Interface Device (H ID) clas s specification version 1.1. The device communicates to the host as a vendor defined HID device. The details about how the card data and commands are structured into HID reports follow later in this section. The latest versions of the Windows operating systems come with a standard Windows USB HID driver. Windows applications that communicate to this device can be easily developed. These applications can communicate to the device using standard windows API calls that communicate to the device using the standard Windows USB HID driver. These applications can be easily developed using compilers such as Microsoft’s Visual Basic or Visual C++. A demonstration program and its source code, written in Visual Basic, that communicates with this device is available. This demo program can be used to test the device and it can be used as a guide for developing other applications. More details about the demo program follow later in this document.
It is recommended that application software developers become familiar with the HID specification and the USB specification before attempting to communicate with this device. This document assumes that the reader is familiar with these specifications. These specifications can be downloaded free from www.usb.org.
This is a full speed USB device. This device has a number of programmable configuration properties. These properties are stored in non-volatile memory. These properties can be configured at the factory or by the end user. More details about these properties can be found later in this document in the command section.
13
Loading...