MSRE206 Programmer’s Manual
Rev. 2.8
Hongkong Unique Electronic INT'L LTD
www.ylk-ic.com
15
Section
Section
Section
Section 9
9
9
9 Addendum
Addendum
Addendum
Addendum
�
Write
Write
Write
Write Data
Data
Data
Data to
to
to
to Magnetic
Magnetic
Magnetic
Magnetic Card
Card
Card
Card
The
The
The
The WRITE
WRITE
WRITE
WRITE command
command
command
command
:
Command
WRITE
Command code
<ESC> w
[Data
[Data
[Data
[Data Block]
Block]
Block]
Block]
Hex code
1B 77
[Data
[Data
[Data
[Data Block]
Block]
Block]
Block]
Response
<ESC> [Status Byte]
Description
This command request MSRE206 to write the Data Block into the card swiped.
[[[[
Data
Data
Data
Data Block
Block
Block
Block
]]]] format:
format:
format:
format:
Start Field
R/W Data Field
Ending Field
Command code
<ESC>s
[
card data
]
?<FS>
HEX code
1B 73
[
card data
]
3F 1C
[[[[
card
card
card
card data
data
data
data
]]]] format:
format:
format:
format:
card data
Char. code
<ESC>[01] [string] <ESC> [02] [string] <ESC> [03] [string3]
HEX code
1B 01 [string1] 1B 02 [string2] 1B 03 [string3]
As an example the following information will be written to the card:
Track1: %ABC123?
Track2: ;12345?
Track3: ;12345?
HOST
DIRECTION
MSRE206
Command code:
<esc>w<ESC>s<ESC>[01]ABC123<ESC>
[02]12345<ESC>[03]12345?<FS>
HEX code:
[1B][77][1B][73][1B][01][41][42][43][31][
32][33][1B][02][31][32][33][34][35][1B][0
3][31][32][33][34][35][3F][1C]
(write command)
After send command to MSRE206
Yellow LED on, then swipe
card
write data to the magnetic card
(status ACK)
(wait until swipe card)
Command ACK: <ESC><status>
HEX code: [1B][status]
Status = [30] no error
Status = [31] ~ [3F] if error