Manual 206 V 1
Manual 206 V 1
Reader/Writer Encoder
Dual Mode
PROGRAM MANUAL
VERSION 1.1.5 August 18th, 2007
1
INDEX
1. Introduction
2. Packing List
3. Technical specifications
4. Setup
5. Test software
7. Data Format
9. Addendum
2
Chapter 1. Introduction
Thank you very much for purchasing the MSRW-206 product series of manual swipe
from Point of Sale system, custom membership card, to banking and credit card
services, etc.
The MSRW-206 series is designed to read and write track 1/2/3 magnetic
Features:
3
Chapter 2. Packing List
Cord )**
http://www.msrw206.com/software/demo.exe
http://www.msrw206.com/software/usbdrv9720.rar
4
Chapter 3. Technical specifications
Specification
Power
+24VDC ±5%
Requirement:
Typical 450mA Max. 900mA plus for each writing
Consumption:
track
Power supply: External Switching power 24V/2.0A
Communication: Standard RS232 signal levels
Body Material: ABS
Dimension and 210.1 (L) x 60 (W) x 60 (H) mm.
Weight: Approx. 3 LB including packing
Card Handling
Manual swipe, Single direction
Method:
Operation : -10 to +55ºc, 10 to 85% humidity
Environment:
Storage : -30 to +70ºc, 10 to 90% humidity
5
Chapter 4. Setup
Because this card reader / writer has its internal CPU, it does not use any
HARDWARE SETUP:
( 110 V ~ 240 V ).
5. Connect the switching power supply’s output DC-24V plug to card
6
6. If the power-on-test finished okay, the Green LED on the card writer
OPERATING MODE:
-ISO : for all bank cards. Credit card, gift card, store card, membership
card…
-RAW DATA : read/write data in HEX mode: door card, special card…
DATA Limit:
Track 1 76 characters
7
SOFTWARE SETUP:
Because this is an industry standard card writer, you can use several industry
standard software to operate it. Please check with the software vendors
directly.
8
Chapter 5. Software
There are some software on the market which may operate this machine,
when you use these software, please select the model as “MSR206”.
z Palm Sync
z GPS
z Modem/FAX.
z If “Not Found xxx206 !” appears, please check the serial port plug
z Use Hi-Co card in Hi-Co writing mode, please use Lo-Co card in
bank cards after 2002 are Hi-Co; Most membership cards are Lo-Co.
If you are a programmer, you can use following serial commands to control
9
TYPICAL CARD READER / WRITER COMMAND /RESPONSE
6.COMMAND and RESPONSE
This section gives detailed description of commands to the MSRW206 and the
Corresponding response from MSRW206.
Notional conventions:
Command Description:
1. Command :RESET
Command code :<ESC>a
Hex code :1B 61
Response :none
Description :This command reset the MSRW206 to
Initial state.
2. Command :READ
Command code :<ESC>r
Hex code :1B 72
Response : [Data Block] <ESC> [Status Byte]
Description :This command request MSRW206 to read a card
Swiped and respond with the data read.
3. Command :WRITE
Command code :<ESC>w [Data Block]
Hex code :1B 77 [Data Block]
Response :<ESC> [Status Byte]
Description :This command request MSRW206 to write the
Data Block into the card swiped.
10
4. Command :Communication test
Command code :<ESC>e
Hex code :1B 65
Response :<ESC> y [1B][79]
Description :This command is used to verify that the
Communication link between computer and
MSRW206 is up and good.
11
10. Command :Sensor test
Command code :<ESC><86>
Hex code :1B 86
Response :<ESC> 0 (1B 30) if test ok
Description :This command is used to verify
that the card sensing circuit of MSRW206 is
working properly MSRW206 will not response until
a card is sensed or receive a RESET command.
12
14. Command :Erase card
Command code :<ESC> c [Select Byte]
Hex code :1B 63 [Select Byte]
Response : <ESC> 0 [1B][30] command Select Byte ok
<ESC> A [1B][41] command Select Byte fail
Description :This command is used to erase the card data when
Card swipe.
*[Select Byte]format :
00000000 : Track 1 only
00000010 : Track 2 only
00000100 : Track 3 only
00000011 : Track 1 & 2
00000101 : Track 1 & 3
00000110 : Track 2 & 3
00000111 : Track 1,2 & 3
13
18. Command :Get device model
Command code :<ESC>t
Hex code :1B 74
Response :<ESC>[Model] S
Description :This command is used to get the model
of MSRW206.There are four models
Model 1,2,3,&5
Models Description
MSRW206-1 Track 2
MSRW206-2 Track 2 & 3
MSRW206-3 Track1, 2 & 3
MSRW206-5 Track 1 & 2
14
21. Command :Set Hi-Co
Command code :<ESC> x
Hex code :1B 78
Response :<ESC>0
Description :This command is used to set MSRW206HL status to
write Hi-Co card.
15
7. DATA FORMAT
Card Data
Char Code <ESC>1[string1] <ESC>2[string2] <ESC>3[string3]
Hex Code 1B 01[string1] 1B02 [string2] 1B 03 [string3]
*Note:
1. When [Status Byte] equal 39h means card moving error
2. None available and none data tracks will not be transmitted when swipe of card.
For example, when read card with data encoded on track 2 only for
MSRW206-5,it will transmit data like 1b 73 1b 01 1b 02 [string] 3f 1c,for no
data on track 1 so it shown 1B 01 only.
16
[Raw Data Block] Format:
Raw Data
Char Code <ESC>1 [L1][string1] <ESC>2 [L2][string2] <ESC>3 [L3][string3]
Hex Code 1B 01 [L1][string1] 1B 02 [L2][string2] 1B 03 [L3][string3]
Note:
1. [L1],[L2],[L3]is the length of [string1], [string12], [string3]
2. None available and none data tracks will not output when swipe of card.
For example, when read card (encoded data on track 2 only) on MSRW206-5, it
will transmit data like
1B 73 1B 01 00 1B 02 [L2][string]3F 1C
17
8.COMMUNICATION SEQUENCE
18
8.3 READ DATA TO MSRW 206
*[xx]=HEX Code XX
19
9.ADDENDUM
(I) WRITE DATA TO MAGNETIC CARD
THE WRITE command:
Command WRITE
Command code <ESC> w [Data Block]
Hex code 1B77 [Data Block]
Response <ESC> [Status Byte]
Description This command request MSRW106 to write the Data Block into
the card swiped.
card data
Char. code <ESC>[01][string] <ESC>[02][string] <ESC>[03][string3]
HEX code 1B 01 [string1] 1B 02 [string2] 1B 03 [string3]
Track1:%ABC123?
Track2:12345?
Track3:12345?
20
HOST DIRECTION MSR106/ MSRW206
Command code:
<esc>w<ESC>s<ESC>[01]A (write command)
BC123 ====Î
<ESC>[02]12345<ESC>[03]1
2345?<FS>
HEX code:
[1B][77][1B][73][1B][01][41]
[42][43][31][32][33][1B][02]
[31][32][33][34][35][1B][03]
[31] [32][33][34][35][3F][1C]
After send command to Yellow LED on, Write data to the magnetic card
MSRW 206 then swipe card
( Status ACK) (Wait until swipe card)
Command ACK:<ESC>[status]
HEX code:[1B] [status]
Status=[30] no error
Status=[31] ~ [3F] if error
21
(II) WRITE RAW DATA TO MAGNECTIC CARD
Converting Card Data Information to Hexadecimal for the Binary Write Function
0 1 2 3
B5 0 0 1 1
B3 B2 B1 BO B4 0 1 0 1
0 0 0 0 0 (sp) 0 2 P
1 0 0 0 1 ! 1 A Q
2 0 0 1 0 “ 2 B R
3 0 0 1 1 # 3 C S
4 0 1 0 0 $ 4 D T
5 0 1 0 1 % 5 E U
6 0 1 1 0 & 6 F V
7 0 1 1 1 ‘ 7 G W
8 1 0 0 0 ( 8 H X
9 1 0 0 1 ) 9 I Y
A 1 0 1 0 * : J Z
B 1 0 1 1 + ; K [
C 1 1 0 0 ` < L \
D 1 1 0 1 , = M ]
E 1 1 1 0 . > N ^
F 1 1 1 1 / ? O -
22
Converting track two and three ASCII information into HEX
Data p B3 B2 B1 B0
0 1 0 0 0 0
1 0 0 0 0 1
2 0 0 0 1 0
3 1 0 0 1 1
4 0 0 1 0 0
5 1 0 1 0 1
6 1 0 1 1 0
7 0 0 1 1 1
8 0 1 0 0 0
9 1 1 0 0 1
: 1 1 0 1 0
:(*) 0 1 0 1 1
< 1 1 1 0 0
= 0 1 1 0 1
> 0 1 1 1 0
?(*) 1 1 1 1 1
Track1:%ABC123?
Track2:12345?
Track3:12345?
We use three different data bits to write raw data on the cards. The procedures are listed
as below:
23
08,08,08 BITS
UIC UIC
Start Field 1B6E 1B73
Track1 header 1B01
Length 08
Track1 data C5B07814954E3E2A
Track header 1B02
Length 05
Track2 data 2B8849EAAF
Track3 header 1B03
Length 05
Track3 data 2B8849EAAF
Ending Field 3F1C
B0 B1 B2 B3 B4 B5 P
% 1 0 1 0 0 0 1
A 1 0 0 0 0 1 1
B 0 1 0 0 0 1 1
C 1 1 0 0 0 1 0
1 1 0 0 0 1 0 1
2 0 1 0 0 1 0 1
3 1 1 0 0 1 0 0
? 1 1 1 1 1 0 0
LRC 0 1 0 1 0 1 0
24
LRC: If there are an Even Number of 1’s in the column of data for each character, put a 0
in the LRC row. Otherwise, put a o in the row. The last LRC will be considered as the
parity rule of this row.
B0 B1 B2 B3 B4 B5 B6 B7
1 0 1 0 0 0 1 1
0 0 0 0 1 1 0 1
0 0 0 1 1 1 1 0
0 0 1 0 1 0 0 0
1 0 1 0 1 0 0 1
0 1 1 1 0 0 1 0
0 1 1 1 1 1 0 0
0 1 0 1 0 1 0 0
B7 B6 B5 B4 B3 B2 B1 B0 HEX
1 1 0 0 0 1 0 1 C5
1 0 1 1 0 0 0 0 B0
0 1 1 1 1 0 0 0 78
0 0 0 1 0 1 0 0 14
1 0 0 1 0 1 0 1 95
0 1 0 0 1 1 1 0 4E
0 0 1 1 1 1 1 0 3E
0 0 1 0 1 0 1 0 2A
B0 B1 B2 B3 B4 B5 B6 B7
1 1 0 1 0 1 0 0
0 0 0 1 0 0 0 1
1 0 0 1 0 0 1 0
0 1 0 1 0 1 1 1
1 1 1 1 0 1 0 1
25
B7 B6 B5 B4 B3 B2 B1 B0 HEX
0 0 1 0 1 0 1 1 2B
1 0 0 0 1 0 0 0 88
0 1 0 0 1 0 0 1 49
1 1 1 0 1 0 1 0 EA
1 0 1 0 1 1 1 1 AF
07,05,05 BITS
UIC
Start Field 1B6E 1B73
Track1 header 1B01
Length 09
Track1 data 456162235152131F2A
Track2 header 1B02
Length 08
Track2 data 0B01021304151F15
Track3 header 1B03
Length 08
Track3 data 0B01021304151F15
Ending Field 3F1C
Transfer the track1 data to HEX under 07 bits:
B0 B1 B2 B3 B4 B5 P
% 1 0 1 0 0 0 1
A 1 0 0 0 0 1 1
B 0 1 0 0 0 1 1
C 1 1 0 0 0 1 0
1 1 0 0 0 1 0 1
2 0 1 0 0 1 0 1
3 1 1 0 0 1 0 0
? 1 1 1 1 1 0 0
LRC 0 1 0 1 0 1 0
26
Calculate Odd Parity (P column)
If there are number of 1’sin the row of data for each character, put a1 in the P column.
Otherwise, put a 0 in the column.
Add p B5 B4 B3 B2 B1 B0 HEX
% 0 1 0 0 0 1 0 1 45
A 0 1 1 0 0 0 0 1 61
B 0 1 1 0 0 0 1 0 62
C 0 0 1 0 0 0 1 1 23
1 0 1 0 1 0 0 0 1 51
2 0 1 0 1 0 0 1 0 52
3 0 0 0 1 0 0 1 1 13
? 0 0 0 1 1 1 1 1 1F
LRC 0 0 1 0 1 0 1 0 2A
27
HEX
B3 B2 B1 B0
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
A 1 0 1 0
B 1 0 1 1
C 1 1 0 0
D 1 1 0 1
E 1 1 1 0
F 1 1 1 1
Transfer tack2 (Track3) data to HEX under 05 bits:
B0 B1 B2 B3 P
; 1 1 0 1 0
1 1 0 0 0 0
2 0 1 0 0 0
3 1 1 0 0 1
4 0 0 1 0 0
5 1 0 1 0 1
? 1 1 1 1 1
LRC 1 0 1 0 1
28
06,05,06 BITS
UIC
Start Field 1B6E 1B73
Track1 header 1B01
Length 09
Track1 data 052122231112131F2A
Track2 header 1B02
Length 08
Track2 data 0B01021304151F15
Track3 header 1B03
Length 08
Track3 data 0101020304051F1F
Ending Field 3F1C
B0 B1 B2 B3 B4 B5
% 1 0 1 0 0 0
A 1 0 0 0 0 1
B 0 1 0 0 0 1
C 1 1 0 0 0 1
1 1 0 0 0 1 0
2 0 1 0 0 1 0
3 1 1 0 0 1 0
? 1 1 1 1 1 0
LRC 0 1 0 1 0 1
29
Add 0 Add 0 B5 B4 B3 B2 B1 B0 HEX
% 0 0 0 0 0 1 0 1 05
A 0 0 1 0 0 0 0 1 21
B 0 0 1 0 0 0 1 0 22
C 0 0 1 0 0 0 1 1 23
1 0 0 0 1 0 0 0 1 11
2 0 0 0 1 0 0 1 0 12
3 0 0 0 1 0 0 1 1 13
? 0 0 0 1 1 1 1 1 1F
LRC 0 0 1 0 1 0 1 0 2A
30
Transfer tack3 data to HEX under 06 bits:
B0 B1 B2 B3 B4 B5
! 1 0 0 0 0 0
1 1 0 0 0 0 0
2 0 1 0 0 0 0
3 1 1 0 0 0 0
4 0 0 1 0 0 0
5 1 0 1 0 0 0
? 1 1 1 1 1 0
LRC 1 1 1 1 1 0
31
Technical Notes : ISO 7810, 7811 & 7813
7811-1 Embossing
Full copies of these standards can be pruchased from www.iso.org and www.ansi.org. The
information below is abstracted from these standards.
2.175",
Physical Plastic Card
55.245mm
3.375", 85.725mm
0.030", 0.762mm thick
Characteristics of Tracks:
32
Recording Density Character Configuration Information Content
Position Track Number
(bits per inch) (including parity bit) (including control characters)
0.110" 79 Alphanumeric
Track 1 210BPI 7 bits per character
(2.794mm) characters
0.110"
Track 2 75BPI 5 bits per character 40 Numeric characters
(2.794mm)
0.110"
Track 3 210BPI 5 bits per character 107 Numeric characters
(2.794mm)
Track One:
Description Value
SS Start Sentinel 05h
FC Format Code
FS Field Seperator 3Eh
ES End Sentinel 1Fh
LRC Longitudinal Redunancy Check Character
Track Two:
Description Value
SS Start Sentinel 0Bh
FS Field Seperator 0Dh
ES End Sentinel 0Fh
LRC Longitudinal Redunancy Check Character
33
Description Value
SS Start Sentinel 0Bh
FC Format Code 2 digits
FS Field Seperator 0Dh
ES End Sentinel 0Fh
LRC Longitudinal Redunancy Check Character
Character Sets
Data stored on magnetic stripes does not use the standard ASCII character set as used on PCs.
Below are the two ANSI/ISO character sets used on magnetic stripes.
The ANSI/ISO ALPHA format is 7 bit, 6 data bits + 1 parity bit (odd). The data is read least
significant bit first.
The character set contains 64 characters, 43 alphanumeric, 3 framing/field characters and 18
control/special charact
34
1 0 1 1 0 0 0 - 0D Special
0 1 1 1 0 0 0 . 0E Special
1 0 0 1 0 0 1 / 0F Special
0 0 0 0 1 0 0 0 10 Data
1 0 0 0 1 0 1 1 11 Data
0 1 0 0 1 0 1 2 12 Data
1 1 0 0 1 0 0 3 13 Data
0 0 1 0 1 0 1 4 14 Data
1 0 1 0 1 0 0 5 15 Data
0 1 1 0 1 0 0 6 16 Data
1 1 1 0 1 0 1 7 17 Data
0 0 0 1 1 0 1 8 18 Data
1 0 0 1 1 0 0 9 19 Data
0 1 0 1 1 0 0 : 1A Special
1 1 0 1 1 0 1 ; 1B Special
0 0 1 1 1 0 0 < 1C Special
1 0 1 1 1 0 1 = 1D Special
0 1 1 1 1 0 1 > 1E Special
1 1 1 1 1 0 0 ? 1F End sentinel
0 0 0 0 0 1 0 @ 20 Special
1 0 0 0 0 1 1 A 21 Data
0 1 0 0 0 1 1 B 22 Data
1 1 0 0 0 1 0 C 23 Data
0 0 1 0 0 1 1 D 24 Data
1 0 1 0 0 1 0 E 25 Data
0 1 1 0 0 1 0 F 26 Data
1 1 1 0 0 1 1 G 27 Data
0 0 0 1 0 1 1 H 28 Data
1 0 0 1 0 1 0 I 29 Data
0 1 0 1 0 1 0 J 2A Data
1 1 0 1 0 1 1 K 2B Data
0 0 1 1 0 1 0 L 2C Data
1 0 1 1 0 1 1 M 2D Data
0 1 1 1 0 1 1 N 2E Data
1 1 1 1 0 1 0 O 2F Data
35
0 0 0 0 1 1 1 P 30 Data
1 0 0 0 1 1 0 Q 31 Data
0 1 0 0 1 1 0 R 32 Data
1 1 0 0 1 1 1 S 33 Data
0 0 1 0 1 1 0 T 34 Data
1 0 1 0 1 1 1 U 35 Data
0 1 1 0 1 1 1 V 36 Data
1 1 1 0 1 1 0 W 37 Data
0 0 0 1 1 1 0 X 38 Data
1 0 0 1 1 1 1 Y 39 Data
0 1 0 1 1 1 1 Z 3A Data
1 1 0 1 1 1 0 [ 3B Special
0 0 1 1 1 1 1 \ 3C Special
1 0 1 1 1 1 0 ] 3D Special
0 1 1 1 1 1 0 ^ 3E Field Separator
1 1 1 1 1 1 1 _ 3F Special
The ANSI/ISO BCD format is 5 bit, 4 data bits + 1 parity bit (odd). The data is read least significant
bit first.
The character set contains 16 characters, 10 alphanumeric, 3 framing/field characters and 3
control/special characters.
36
0 0 0 0 1 0 00 Data
1 0 0 0 0 1 01 Data
0 1 0 0 0 2 02 Data
1 1 0 0 1 3 03 Data
0 0 1 0 0 4 04 Data
1 0 1 0 1 5 05 Data
0 1 1 0 1 6 06 Data
1 1 1 0 0 7 07 Data
0 0 0 1 0 8 08 Data
1 0 0 1 1 9 09 Data
0 1 0 1 1 : 0A Control
1 1 0 1 0 ; 0B Start Sentinel
0 0 1 1 1 < 0C Control
1 0 1 1 0 = 0D Field Separator
0 1 1 1 0 > 0E Control
1 1 1 1 1 ? 0F End Sentinel
-----------------------------------------------------------END-------------------------------------------------------
37