Reading Magnetic Stripe Reader - Citizen Model CMP-10 Command Reference Manual

Citizen systems mobile line thermal printer user manual
Hide thumbs Also See for Model CMP-10:
Table of Contents

Advertisement

ESC ? n
[Function]
[Code]
[Range]
[Outline]
[Caution]

Reading magnetic stripe reader

<1B>H<3F>H<n>
{0 =< n =< 7(Hex)}
When the command is received the bicolor LED is shining in RED and the printer is
waiting for the magnetic card to be swiped through the reader. If even after 10
seconds the card is not swiped the command is aborted automatically.
Printer returns the information read from the tracks followed by 00(Hex).
Reads the data of the track in the following table by the value of n.
n (Hex)
0
Invalid
1
Track 1
2
Track 2
3
Track 1 and 2
4
Track 3
5
Invalid
6
Track 2 and 3
7
Invalid
The format of the data read is as follows.
Track
Track
Track 1 is F1 (Hex)
Track 2 is F2 (Hex)
Track 3 is F3 (Hex)
Header
Track 1: "%"
Track 2: ";"
Track 3: "+" or ";"
Card data
ASCII data
Footer
If reading track is more than one (n=3 or 6), footer data of track 1 or 2 is followed by
track data of track 2 or 3.
The command for reading multiple tracks at a time may often result in read error.
If reading is unsuccessful, repeat it.
Track
Header
Card data
"?"
— 22 —
Footer

Advertisement

Table of Contents
loading

Table of Contents