ESC ? n
[Function] | Reading magnetic stripe reader | |
[Code] | <1B>H<3F>H<n> | |
[Range] | {0 =< n =< 7(Hex)} | |
[Outline] | 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) | Track |
| 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
Header
Card data
Footer
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.
[Caution] | The command for reading multiple tracks at a time may often result in read error. |
| If reading is unsuccessful, repeat it. |
Ñ 22 Ñ