EasyManua.ls Logo

Unitech MSR206 - Section 9 Addendum; Write Data to Magnetic Card Example; Write Raw Data to Magnetic Card

Unitech MSR206
28 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MSR206 Programmer’s Manual UDN PM017-U Rev.C.1
Section 9 – Addendum 2003/10/9
Page 18
Total 28 pages
Section 9 Addendum
(I) WRITE DATA TO MAGNETIC CARD
The WRITE command:
Command WRITE
Command code
<ESC> w [Data Block]
Hex code
1B 77 [Data Block]
Response <ESC> [Status Byte]
Description This command request MSR106 to write the Data Block into the card swiped.
[Data Block] 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 data] 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 MSR106/MSR206
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 MSR106/206 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

Other manuals for Unitech MSR206

Related product manuals