MSRE206 Programmer’s Manual
Rev. 2.8
Hongkong Unique Electronic INT'L LTD
www.ylk-ic.com
11
Section
Section
Section
Section 7
7
7
7 Data
Data
Data
Data Format
Format
Format
Format
* [Data Block] format:
Start Field
R/W Data Field
Ending Field
Command code
<ESC> s
[Card data]
? <FS> <ESC> [Status]
Hex code
1B 73
[Card data]
3F 1C 1B [Status]
* [Card data] format:
Card Data
Char Code
<ESC> 1[string1] <ESC> 2 [string2] <ESC> 3 [string3]
Hex Code
1B 01 [string1] 1B 02 [string2] 1B 03 [string3]
* [Status Byte] format:
Status
description
HEX
ASCII
Ok
If read, write or command ok
30h
0
Error
Write or read error
31h
1
Command format error
32h
2
Invalid command
34h
4
Invalid card swipe when in write mode
39h
9
* 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 MSRE206, it will transmit data like
1B
1B
1B
1B 73
73
73
73 1B
1B
1B
1B 01
01
01
01
1B
1B
1B
1B 02
02
02
02 [string
[string
[string
[string
]
3F
3F
3F
3F 1C
1C
1C
1C
, for no data on track 1 so it shown 1B 01 only.
* [Raw Data Block] format:
Start Field
R/W Data Field
Ending Field
Command code
<ESC> s
[Raw data]
? <FS> <ESC> [Status]
Hex code
1B 73
[Raw data]
3F 1C 1B [Status]
* [Raw Data] 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],[string2],and [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 MSRE206, it will transmit data like
1B
1B
1B
1B 73
73
73
73 1B
1B
1B
1B 01
01
01
01 00
00
00
00
1B
1B
1B
1B 02
02
02
02 [L2]
[L2]
[L2]
[L2] [string]
[string]
[string]
[string] 3F
3F
3F
3F 1C
1C
1C
1C
.