Encode example, Transmitted and received data formats – MagTek MODEL MT-85 User Manual

Page 15

Advertising
background image

Section 3. Operation

9


ENCODE EXAMPLE


To encode “ABCDEFG” on Track 1 and “123456789=112233” on Track 2 and keep Track 3 the
same, the data to the encoder is as follows:

Request:

<STX>%ABCDEFG?;123456789=112233?<ETX>{BCC}

The STX character shows on the computer’s screen as a happy face (on some systems it might
appear as $02). The ETX character shows on the computer’s screen as a heart (on some systems
it might appear as $03). It is not necessary to send a carriage return after the ETX. With this
command, Tracks 1 and 2 will be encoded. Track 3 will be left as it is. The {BCC} is required
only if that option is enabled.

Response:

After a good encode, the MT-85 will return the data that was read from the tracks being encoded:

<STX>%ABCDEFG?;123456789=112233?

<ETX>{BCC}

If there is an error in any of the encoded tracks, a NAK message will be sent:

<STX><NAK><ETX>{BCC}


TRANSMITTED AND RECEIVED DATA FORMATS

STX

TRACK 1 DATA

TRACK 2 DATA

TRACK 3 DATA

ETX

BCC










SS DATA

MESSAGE

ES






Start of Text Character
Hex 02

Data Message for Each Track

Block Check
Character,
Optional

End of Text Character
Hex 03

Start Sentinel
Character. See below
for each track.

End Sentinel Character.
3F Hex (?) for all tracks.

Length of Data Message of each track.
See below for each track or E for
Error.

Advertising