Scancode MSR120D Operating and maintenance manual

MSR120D
Magnetic Stripe Card Reader
Universal Serial Bus (USB) Interface
Programmer’s Manual
UDN PM009 Revision E
22 Feb. 2005

MSR120D Programmer’s Manual UDN PM009 Rev. E
Notice, Agency Approved, Warning, Warranty, and Preface 2005/2/23
NOTICE
The issuer of this manual has made every effort to provide accurate information contained in this manual. The issuer
shall not be held liable for any technical and editorial omissions or errors made herein; nor for incidental 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, reproduced, or translated without the prior written permission of the issuer. The
information provided in this manual is subject to change without notice.
AGENCY APPROVED
—Specification for FCC Class B
—Specification for CE Class B
—Certificate by Taiwan BSMI
NOTE: 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.
You are cautioned that any change or modifications to the equipment not expressly approve by the party responsible for
compliance could void your authority to operate such equipment.
WARNING
You are cautioned that changes or modifications not expressly approved by the party responsible for compliance could
void your authority to operate the equipment.
WARRANTY
This product is served under one-year warranty of defects in material and functionality to the original purchasers.
Within the warranty period, if the product found to be defective will be repaired or replaced. This warranty applies to
the products only under the normal use of the original purchasers, and in no circumstances covers incidental or
consequential damages through consumers’ misuse or modification of the product.
Page I
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Notice, Agency Approved, Warning, Warranty, and Preface 2005/2/23
PREFACE
This manual provides detailed information relating to the overall operational, electrical, mechanical, environmental and
functional aspects of the MSR120D. This document should be read and understood prior to initial operation of the
product.
For ease of installation and programming use, we have addressed everything from its attractive features to its various
configurations.
When designing the MSR120D, we selected what we feel are the most useful features and functions. If in some cases
you find that your specific needs differ from our existing products, we welcome your comments and suggestions.
Custom-designed models are also available.
If further questions do arise, please call for technical support, our FAE will assist you in any way we can.
Page II
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Table of Contents 2005/2/23
Table of Contents
Section 1 General Description ___________________________________________ 1
Features ________________________________________________________________ 1
Application______________________________________________________________ 1
Function ________________________________________________________________ 1
Self Test________________________________________________________________________ 1
Transmission Reset by Hardware ___________________________________________________ 1
Reading ________________________________________________________________________ 2
Reading Customized Data _________________________________________________________ 2
Self –Arm Mode__________________________________________________________________ 2
Transmitting Data Block of Tracks __________________________________________________ 2
Part Number Description __________________________________________________ 3
Section 2 Configurations _______________________________________________ 4
Dimensions of MSR120D __________________________________________________ 4
Accessories of MSR120D __________________________________________________ 4
Installation ______________________________________________________________ 4
Section 3 Technical Specifications _______________________________________ 6
Card Specifications_______________________________________________________ 6
Card Type ______________________________________________________________________ 6
Thickness ______________________________________________________________________ 6
Card Format_____________________________________________________________________ 6
Card Operation Speed ____________________________________________________________ 6
Mechanical Specifications _________________________________________________ 6
Body Material____________________________________________________________________ 6
Dimension ______________________________________________________________________ 7
Weight _________________________________________________________________________ 7
Magnetic Head Life _______________________________________________________________ 7
Electrical Specifications ___________________________________________________ 7
Power Required__________________________________________________________________ 7
Power Consumption______________________________________________________________ 7
Communication__________________________________________________________________ 7
Dielectric Strength _______________________________________________________________ 7
Insulation Resistance_____________________________________________________________ 7
Environmental Specifications ______________________________________________ 7
Temperature ____________________________________________________________________ 7
Humidity________________________________________________________________________ 7
USB Connector Termination Assignment_____________________________________ 8
Page III
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Table of Contents 2005/2/23
Communication __________________________________________________________ 8
Transmission Protocol____________________________________________________________ 8
Protocol 0 _________________________________________________________________________ 8
Protocol 1 _________________________________________________________________________ 8
Protocol 2 _________________________________________________________________________ 9
Transmission Format _____________________________________________________________ 9
Data output format (Self-ARM mode) ___________________________________________________ 9
Read data for command ______________________________________________________________ 9
Section 4 COMMANDS and RESPONSES _________________________________ 11
Command -Host to Reader _____________________________________________ 11
P (50h) ─Ready to Read ________________________________________________________ 11
p (70h) ─Ready to Read ________________________________________________________ 11
Q (51h) ─Transmit Standard Data, Track 1 _________________________________________ 11
R (52h) ─Transmit Standard Data, Track 2 _________________________________________ 11
S (53h) ─Transmit Standard Data, Track 3 _________________________________________ 11
U (55h) ─Transmit Customized Data, Track 1_______________________________________ 12
V (56h) ─Transmit Customized Data, Track 2_______________________________________ 12
W (57h) ─Transmit Customized Data, Track 3 ______________________________________ 12
u (75h) ─Transmit Reverse Customized Data, Track 1 _______________________________ 12
v (76h) ─Transmit Reverse Customized Data, Track 2________________________________ 12
w (77h) ─Transmit Reverse Customized Data, Track 3 _______________________________ 12
% (25h) ─Retransmit ___________________________________________________________ 12
# (23h) ─Configuration Request__________________________________________________ 12
L (4Ch) ─Green LED On ________________________________________________________ 13
l (6Ch) ─Green LED Off_________________________________________________________ 13
M (4Dh) ─Red LED On__________________________________________________________ 13
m (6Dh) ─Red LED Off _________________________________________________________ 13
( (28h) ─Green LED Flash_______________________________________________________ 13
) (29h) ─Red LED Flash_________________________________________________________ 13
Z (5Ah) ─One Long Beep _______________________________________________________ 13
z (7Ah) ─One Short Beep _______________________________________________________ 13
DC3 (13h) ─Pause Transmit _____________________________________________________ 13
DC1 (11h) ─Resume Transmit ___________________________________________________ 13
T (54h) ─Card Type Report______________________________________________________ 13
ESC (1Bh) ─Abort _____________________________________________________________ 14
9 (39h) ─Version Report ________________________________________________________ 14
DEL (7Fh) ─Warm Reset________________________________________________________ 14
$ (24h) ─Reader Status Request _________________________________________________ 14
Page IV
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Table of Contents 2005/2/23
Response-Reader to Host_______________________________________________ 14
^ (5Eh) ─ACK_________________________________________________________________ 14
+ (2Bh) ─No Data______________________________________________________________ 15
* (2Ah) ─Error_________________________________________________________________ 15
? (3Fh) ─Communication Error __________________________________________________ 15
! (21h) ─Invalid Command ______________________________________________________ 15
: (3Ah) ─Power On Report ______________________________________________________ 15
~ (7Eh) ─Cannot Execute _______________________________________________________ 15
Section 5 CONFIGURATION COMMANDS_________________________________ 16
Command Form_________________________________________________________ 16
ESx (45h 53h x) -ES & SS Send Enable/Disable ____________________________________ 16
LCx (4Ch 43h x) -LRC Send Enable/Disable _______________________________________ 16
PCx (50h 43h x) -Set Protocol of Power On Report _________________________________ 16
BZx (42h 5Ah x) -Buzzer Enable/Disable __________________________________________ 16
TKx (54h 4Bh x) -Set Transmitting Data Tracks ____________________________________ 17
AAx (41h 41h x) -Set Address___________________________________________________ 17
SAx (53h 41h x) -Self -Arm Mode Enable/Disable ___________________________________ 17
SPx (53h 50h x) -Set Track Separator ____________________________________________ 17
JHx (4Ah 48h x) -Set JIS Read Head _____________________________________________ 17
p1 data (70h 31h data) -Set Track 1 Prefix Code____________________________________ 18
p2 data (70h 32h data) -Set Track 2 Prefix Code____________________________________ 18
p3 data (70h 33h data) -Set Track 3 Prefix Code____________________________________ 18
s1 (46h 61h x) -Set Track 1 Suffix Code___________________________________________ 18
s2 data (73h 32h data) -Set Track 2 Suffix Code ____________________________________ 19
s3 data (73h 33h data) -Set Track 3 Suffix Code ____________________________________ 19
K1A type start end (4Bh 31h 41h type start end)______________________________________ 19
-Set Transmitting Data Block, Channel A of Track 1_________________________________ 19
K1B type start end (4Bh 31h 42h type start end)______________________________________ 20
-Set Transmitting Data Block, Channel B of Track 1_________________________________ 20
Table 5-16. Data Block Channel B, Tk1______________________________________________ 20
K1C type start end (4Bh 31h 43h type start end) ______________________________________ 20
-Set Transmitting Data Block, Channel C of Track 1_________________________________ 20
Table 5-17. Data Block Channel C, Tk1______________________________________________ 20
K2A type start end (4Bh 32h 41h type start end) ______________________________________ 20
-Set Transmitting Data Block, Channel A of Track 2_________________________________ 20
Table 5-18. Data Block Channel A, Tk2______________________________________________ 20
K2B type start end (4Bh 32h 42h type start end) ______________________________________ 20
-Set Transmitting Data Block, Channel B of Track 2_________________________________ 20
Page V
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Table of Contents 2005/2/23
Table 5-19. Data Block Channel B, Tk2______________________________________________ 20
K2C type start end (4Bh 32h 43h type start end) ______________________________________ 21
-Set Transmitting Data Block, Channel C of Track 2_________________________________ 21
Table 5-20. Data Block Channel C, Tk2______________________________________________ 21
K3A type start end (4Bh 33h 41h type start end) ______________________________________ 21
-Set Transmitting Data Block, Channel A of Track 3_________________________________ 21
Table 5-21. Data Block Channel A, Tk3______________________________________________ 21
K3B type start end (4Bh 33h 42h type start end) ______________________________________ 21
-Set Transmitting Data Block, Channel B of Track 3_________________________________ 21
Table 5-22. Data Block Channel B, Tk3______________________________________________ 21
K3C type start end (4Bh 33h 43h type start end) ______________________________________ 21
-Set Transmitting Data Block, Channel C of Track 3_________________________________ 21
Table 5-23. Data Block Channel C, Tk3______________________________________________ 21
DF0 (44h 46h 00h) -Default Setting_______________________________________________ 21
RE0 (52h 45h 00h) -Read EEPROM Data __________________________________________ 22
Byte1 and 2 in EEPROM are 00h, 13h separately. They are identical characters. _________________ 22
Byte 3 in EEPROM_________________________________________________________________ 22
Byte 4 in EEPROM_________________________________________________________________ 22
Byte 5 in EEPROM_________________________________________________________________ 23
Byte 6 in EEPROM: Track Separator Setting_____________________________________________ 23
Byte 7-12 in EEPROM: Track 1 Prefix Code Setting_______________________________________ 23
Byte 13-18 in EEPROM: Track 2 Prefix Code Setting______________________________________ 23
Byte 19-24 in EEPROM: Track 3 Prefix Code Setting______________________________________ 23
Byte 25-30 in EEPROM: Track 1 Suffix Code Setting _____________________________________ 23
Byte 31-36 in EEPROM: Track 2 Suffix Code Setting _____________________________________ 23
Byte 37-42 in EEPROM: Track 3 Suffix Code Setting _____________________________________ 23
Byte 43-45 in EEPROM: Channel A of Track 1 Setting ____________________________________ 23
Byte 47-49 in EEPROM: Channel B of Track 1 Setting_____________________________________ 23
Byte 51-53 in EEPROM: Channel C of Track 1 Setting_____________________________________ 23
Byte 55-57 in EEPROM: Channel A of Track 2 Setting ____________________________________ 23
Byte 59-61 in EEPROM: Channel B of Track 2 Setting_____________________________________ 23
Byte 63-65 in EEPROM: Channel C of Track 2 Setting_____________________________________ 23
Byte 67-69 in EEPROM: Channel A of Track 3 Setting ____________________________________ 23
Byte 71-73 in EEPROM: Channel B of Track 3 Setting_____________________________________ 23
Byte 75-77 in EEPROM: Channel C of Track 3 Setting_____________________________________ 23
Byte 78-83 in EEPROM: Reserved. ____________________________________________________ 23
Byte 84 in EEPROM: Raw Data Output Mode Setting._____________________________________ 23
Bit-0 = 1 is enable and bit-0 = 0 is disable. Bit 1-7 is 0._____________________________________ 23
Byte 85-98 in EEPROM: Reserved. ____________________________________________________ 23
Page VI
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Table of Contents 2005/2/23
RE1 (52h 45h 31h) -Read Configuration Status_____________________________________ 24
RE2 (52h 45h 32h) -Read Prefix & Suffix Setting Status of Tracks _____________________ 24
RE3 (52h 45h 33h) -Read Channel Setting Status of Tracks __________________________ 24
RE4 (52h 45h 34h) -Read Serial Number __________________________________________ 24
Sdx (53h 64h x) -MSR100 Output Format Enable/Disable ____________________________ 24
Table 5-31. MSR100 output format setting ______________________________________________ 24
SN data (53h 4Eh data) -Write serial number_______________________________________ 25
Table 5-32. Write serial nuber ________________________________________________________ 25
RDx (52h 44h x) -Raw Data Output Mode Enable/Disable ____________________________ 25
Section 6 Download Specification_______________________________________ 27
Introduction ____________________________________________________________ 27
Enter Boot Mode ________________________________________________________ 27
Procedure _____________________________________________________________________ 27
Command Sets__________________________________________________________ 28
Download Commands ___________________________________________________________ 28
Command BL --- Request the reader to enter boot mode____________________________________ 29
Command RS --- Programming reset ___________________________________________________ 29
Command CS --- Request checksum of system program ____________________________________ 29
Command ES --- Erase system program area by filling with FFh _____________________________ 29
Command BC --- Blank check ________________________________________________________ 30
Command PRG --- Programming indicator ______________________________________________ 30
Command 06 --- Start programming____________________________________________________ 30
Appendix A Download Application _______________________________________ 1
System Requirements_____________________________________________________ 1
Application Installation and Firmware Download_______________________________ 1
Page VII
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 1 -- General Description 2005/2/23
Section 1 General Description
This section presents general information about the basic characters of the MSR120D.
¾Features
The MSR120D provides the following features:
1 Light weight: 120g
2 Compact size: 100L*34W*28H (mm)
3 LED and Buzzer indicators indicate card status
4 Low power consumption
5 Single, dual, or triple track versions allow for reading all types of magnetic cards, including credit cards and
drivers licenses.
6 Firmware download (refer to section 6)
¾Application
This Magnetic Stripe Reader is design to read high or low coercive magnetic cards. It can decode/verify up to 3
tracks of data simultaneously. This product communicates with a host computer or other terminal using a standard
USB interface. Because of the transmitting protocol of MSR120D is more precise, it is suitable for using in
financial industry.
¾Function
Self Test
Whenever the reader experiences a reset cycle, a self-test is performed. The reader will respond with “:” and the
LED will turn green if the entire test is successful. Otherwise, the LED will turn orange and no response will be
generated.
Table 1-1. Self Test
Indication
LED Buzzer Cause Post Condition
Green 1 Beep Test Success Responds with “:”
Orange EEPROM Failed Hang
Orange Internal ROM Failed Hang
Transmission Reset by Hardware
When the reader cannot communicate with the host, user can set the switch S1-1 on and power on the reader. The
reader will beep twice and response the baud rate, parity, CTS and RTS default setting, but the data inside
EEPROM will not be changed.
Page 1
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 1 -- General Description 2005/2/23
Reading
The reader can read magnetic data form any available track encoded per ISO 7810, 7811, AAMVA, CA old DMV,
JIS. The host can request the read data from the reader with commands. For details and examples of commands
and responses, refer to section 4.
Reading Customized Data
The interface can read customized encoded magnetic data. Data integrity is not verified when reading customized
data. Customized data is not formatted into ASCII characters prior to transmission to the host.
Self –Arm Mode
The default reader configuration is the “Self-Arm Mode”, which allows the magstripe functions to run
automatically, reporting magstripe activity to the host without instruction from the host. In the Self-Arm mode, the
reader also can accept commands from host. However, the reader can be configured to only “Host Polled Mode”
by disabling Self-Arm mode. The “Host Polled Mode” allows the magstripe functions to run by commands. The
conditions of indicators when the reader is in Self-Arm mode are shown below.
Table 1-2. Self-Arm Mode
Indication
LED Buzzer Cause
Off Card Swipe
Orange 2 Beeps 1 or 2 Tracks Read Miss
Red 3 Beeps Read Error
Green 1 Beep Read Success
When the reader is in the Self-Arm mode, the green LED indicates the reader is waiting for accepting card. While
card is moving, the LED will turn off. When one or two tracks read miss, the LED shows orange for 1 second and
the buzzer beeps twice. If tracks read error, the LED turns red and beeps thrice. When the reader is in the Host
Polled mode, the green LED keeps flashing.
Transmitting Data Block of Tracks
Each track could divide into 1-3 channels (blocks) for transmission. For example, user could set “Channel A” of
track1 format as: ISO standard card track1 15th-30th characters. If the set data is different from the data after
swiping, the reader will transmit completed data without limitation. The commands of setting channels are shown
in section 5.
Page 2
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 1 -- General Description 2005/2/23
¾Part Number Description
The brief configuration of MSR120D part number are shown as below:
MSR120D-12 Dual track 1&2
MSR120D-23 Dual track 2&3
MSR120D-33 Triple track 1&2&3
Note: Optional configuration is available.
Page 3
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 2 -- Configurations 2005/2/23
Section 2 Configurations
This section shows the dimensions, accessories and setup for the MSR120D.
¾Dimensions of MSR120D
Figure 2-1 Dimensions of MSR120D
¾Accessories of MSR120D
The following accessories should be supplied along with MSR120D. Make sure all the following accessories are
contained in your package.
1. Signal cable (USB Connector, 1.7M)
2. Programmer’s manual
3. Download application
¾Installation
1. Power off your PC system.
Page 4
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 2 -- Configurations 2005/2/23
2. Connect PC and MSR120D as below.
3. Connect USB connector of signal cable to a free USB port. Connect the connector to MSR120D.
4. Power on your PC system.
Figure 2-2 Installing MSR120D
Page 5
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 3 -- Technical Specification 2005/2/23
Section 3 Technical Specifications
¾Card Specifications
Card Type
ISO standard card
CA old DMV
AAMVA
JIS
Read high or low coercive magnetic stripes (300-4000oe)
Read triple track 7 BPC & 210 BPI cards
Thickness
0.76 mm ±0.08 mm
Card Format
Track 1 & 3:210 bpi
Track 2: 75/210 bpi
JISII 210bpi
Note: The card data output sequence for Model J2 is ISO track 2 prior to JIS II.
The card data output sequence for Model J3 is ISO track 1 & 2 prior to JIS II.
Card Operation Speed
Table 3-1. Card Operation Speed
Test Card Speed (IPS)
ISO standard card 5-55
* Jitter 5-50
** Low Amplitude 5-50
Note: *Jitter card: Reliable reading of magnetic stripes encoded with bit cell length variations within +/-12% of
normal as defined by ISO 7811.
**Low amplitude: Reliable reading of magnetic stripes encoded at 60% or more of the encoding amplitude as
defined by ISO 7811.
¾Mechanical Specifications
Body Material
ABS 94V-0
Page 6
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 3 -- Technical Specification 2005/2/23
Dimension
Length: 100mm
Width: 34mm
Height: 28mm
Weight
120g
Magnetic Head Life
500K swipes Min. 1M optional
¾Electrical Specifications
Power Required
DC 5V±10%
Power Consumption
98mA Max. in normal condition
Communication
Standard USB signal levels (comply with USB specification v 1.1)
Dielectric Strength
250VDC for 1 minute
Insulation Resistance
10M Ohms min. at 250VDC
¾Environmental Specifications
Temperature
Operating: -10-50℃
Storage: -30-70℃
Humidity
Operating: 10-85% (non condensing)
Storage: 10-90% (non condensing)
Page 7
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 3 -- Technical Specification 2005/2/23
¾USB Connector Termination Assignment
Table 3-2. Connector Assignment
Contact
Number
Signal
Name
Typical Wiring
Assignment
1 Vbus Red
2 D- White
3 D+ Green
4 GND Black
Shell Shield Drain Wire
¾Communication
The interface receives and transmits serial bit stream at voltage levels compatible with the USB specification.
Transmission Protocol
The user may select from three different protocols: Protocol 0, 1, and 2.
Upon reset, the reader sends the power-on response “:”, depending upon the configuration setting. The reader then
configures itself to the protocol of the first command from the host. From this point on, the protocol is
unchangeable until a reset occurs.
Protocol 0
In Protocol 0, all characters are transmitted and received using exactly the characters listed in section 4. There are
no headers and Block Check Characters (BCC). Protocol 0 presumes no transmission errors. If the host detects an
error, it may request a retransmission.
Table 3-3. Example for Protocol 0
Host Command Reader Response Comment
P Ready to read
^ Reader ACK
Protocol 1
In Protocol 1, all messages are preceded by the ASCII character <STX> and terminated with the ASCII character
<ETX>, followed by a one byte <BCC>. <BCC> is an XOR of the 7 data bits, excluding parity, of each character
in the entire message, including <STX>.
Format: <STX><MESSAGE><ETX><BCC>
where STX=02Hex and ETX=03Hex.
Table 3-4. Example for Protocol 1
Page 8
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 3 -- Technical Specification 2005/2/23
Host Command Reader Response Comment
02h 50h 03h 51h Ready to read
02h 5Eh 03h 5Fh Reader ACK
Protocol 2
In Protocol 2, all messages are preceded by the ASCII character <SOH>, followed by a one byte reader address,
one byte character count and terminated with a one byte <BCC>. The <BCC> is an XOR of the characters (8 bits)
in the entire message, including <SOH>.
Format: <SOH><ADDRESS><00Hex><COUNT><MESSAGE><BCC>
or
<SOH><ADDRESS><00Hex><00Hex><MESSAGE><EOT><BCC>
where STX=02Hex and ETX=03Hex.
Table 3-5. Example for Protocol 2
Host Command Reader Response Comment
01h 00h 00h 01h 50h 50h Ready to read
01h 00h 00h 01h 5Eh 5Eh Reader ACK
The <ADDRESS> field is for a multi-reader system. This function is not currently supported. The recommended
value for this field is NULL (00Hex), however, any value will work.
If the value of <COUNT> fields are zero, an <EOT>, followed by the <BCC>, completes the message. The reader
may, at its option, use NULL for COUNT when transmitting.
For Protocols 1 and 2, if the reader detects an error in an incoming transmission, it will respond with a
“Communications Error” message. If the host detects a transmission error, it may request a retransmission. Both
protocols enforce a 100mSec timeout between characters.
For all Protocols, the host may, at any time, stop/start the reader transmission by using software “handshake”
(DC3/DC1) or hardware “handshake” (if enabled in EEPROM configuration) by controlling the CTS line.
Transmission Format
Data output format (Self-ARM mode)
Protocol code Tk1 prefix Tk1 Data Tk1 suffix EOT BCC
Protocol code Separator Tk2 prefix Tk2 Data Tk2 suffix EOT BCC
Protocol code Separator Tk3 prefix TK3 Data Tk3 suffix EOT BCC
Read data for command
Read tk1 data for command
Protocol code Tk1 prefix Tk1 Data Tk1 suffix EOT BCC
Read tk2 data for command
Page 9
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 3 -- Technical Specification 2005/2/23
Protocol code Tk2 prefix Tk2 Data Tk2 suffix EOT BCC
Read tk3 data for command
Protocol code Tk3 prefix Tk3 Data Tk3 suffix EOT BCC
Note: Tk x data: SS (option) track data ES (option) LRC (option)
Page 10
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 4 – Commands and Responses 2005/2/23
Section 4 COMMANDS and RESPONSES
This section describes the commands and responses available for the MSR120D series. Each item includes the ASCII,
hexadecimal codes and comments paragraph. The comments paragraph provides an explanation of the command. The
letter ‘x’ indicates a variable and the letter 'h' is an abbreviation of 'hexadecimal'.
All readers are capable of communicating in 3 protocols: 0, 1 and 2. If protocol 0 is selected, all commands and
responses are as listed in this section. If protocol 1 is selected, the characters STX, ETX and BCC must be added to all
transmissions. If protocol 2 is selected, the characters SOH, ADDRESS, COUNT and BCC must be added to all
transmissions.
¾Command -Host to Reader
P (50h) ─Ready to Read
Comments
1 Clear buffers
2 Transmit "ACK"
3 Expect for card swipe
4 Transmit "ACK" after card swipe
After an "Ready to Read" command is received and acknowledged, the only valid commands that will be accepted
for execution are: "Abort" <ESC>, "Status" <$> and LED control commands. When the reader is ready for "Read
on Insert", the "ACK" after card swipe will be transmitted after the rear sensor is activated. For read on reverse
swipe, the "ACK" after card swipe will be transmitted after the front sensor is de-activated.
p (70h) ─Ready to Read
Comments
Same as 'P' command, except an extra response " ( " is reported when a media is detected through the read head.
A " ) " response is reported when media detect goes inactive, and response " > " when no magstripe.
Q (51h) ─Transmit Standard Data, Track 1
R (52h) ─Transmit Standard Data, Track 2
S (53h) ─Transmit Standard Data, Track 3
Comments
1 Process data in the read buffer for the specified track according to ISO, AAMVA and DVM format.
2 Transmit data in ASCII.
3 If error is detected, transmit proper error response "*". If no data transmit "+". (Refer to Responses-
Reader to Host later in this section).
Page 11
Total 42 pages

MSR120D Programmer’s Manual UDN PM009 Rev. E
Section 4 – Commands and Responses 2005/2/23
U (55h) ─Transmit Customized Data, Track 1
V (56h) ─Transmit Customized Data, Track 2
W (57h) ─Transmit Customized Data, Track 3
Comments
1 To request customized data with no "nulls" allowed, use the two bytes command: "transmit customized
data" command, followed by an ASCII number (3-8), which specifies the number of bits per customized
character.
2 Process data to the read buffer for the specified track, based upon the "number of bits" character.
u (75h) ─Transmit Reverse Customized Data, Track 1
v (76h) ─Transmit Reverse Customized Data, Track 2
w (77h) ─Transmit Reverse Customized Data, Track 3
Comments
1 To request customized data with no "nulls" allowed, use the two bytes command: "transmit customized
data" command, followed by an ASCII number (3-8), which specifies the number of bits per customized
character.
2 Process reversed-bit data (result of reverse swipe) to the read buffer for the specified track, based upon
the "number of bits" character.
% (25h) ─Retransmit
Comments
Request to retransmit the previous valid command except “P” and “p” commands.
Note: Z (or z) won’t be retransmitted.
# (23h) ─Configuration Request
Comments
Transmit a byte, which represent configuration of the interface as follows:
Table 4-2. Interface Configuration
Bit 0 Track 1 read capability
Bit 1 Track 2 read capability
Bit 2 Track 3 read capability
Bit 3 0
Bit 4 0
Bit 5 1
Bit 6 1
Bit 7 Parity (protocol 0 and 1 only), 0 (protocol 2)
Where "1" bit means "capable of…" and "0" bit means "not capable of…".
Page 12
Total 42 pages
Table of contents