Datamax 7A300007 Rev. 2 manual Magnetic Card Data Output Format, Magnetic Card Read Error Messages

Page 38

Example: The following escape sequence sets the timer to 99 seconds and activates the MRC to read the track #1.

Escape Sequence:

ESC

M

9

9

1

CR

Hexadecimal:

1B

4D

39

39

31

0C

Decimal:

27

77

57

57

49

13

or

 

 

 

 

 

 

Escape Sequence:

ESC

m

9

9

1

CR

Hexadecimal:

1B

6D

39

39

31

0C

Decimal:

27

109

57

57

49

13

Magnetic Card Data Output Format

The track data retrieved from a magnetic card is transmitted to the host in ISO7811 ASCII format as summarized in the table below. The first four characters (“%/1/”) flag the track number, the track data follows the flag string terminated with ‘?’-CR-LF.

‘%;+’ are the track start characters, While ‘?’ is the end of track character.

If no data is available for a track then that data field will be empty. If an Error is encountered on any track, a single ‘E’ will be the output for that track’s data field. The ISO 7811 ASCII Format is detailed below:

 

Track1

 

 

Track 2

%/1/

Data

?CRLF

;/2/

Data

?CRLF

Track 3

+/3/

Data

?CRLF

Magnetic Card Read Error Messages

The characters <%> and <E> preface all error messages. Following these two characters is a comma, two ASCII digits representing the error number (01 through 99), another comma, English description of the error encountered, and finally a CR-LF which terminates the <Error Message> string. The syntax is as follows:

<%><E>, nn, Error text in ASCII, <CR> <LF> Where nn is the error number encountered

The printer may transmit three (3) types of Read Error messages. Refer to the table below for detailed description of the error messages.

Error #

Error Message Transmitted

05

Time-out Expired

07

Invalid Track Number

09

Cancel Request

Interfacing to the Magnetic Card Reader

This section details the software steps required to access the MC reader from a computer or a terminal.

(1)The Host selects the printer by activating the RTS input line or sending wake-up characters to the printer.

(2)The Printer Sends the XON command to the host to indicate that it is ready to receive data from the host.

(3)Once XON is received the host sends an ASCII serial command string to enable the magnetic card reader (e.g. Esc- m004-cr). The printer switches on the GREEN <READY> LED.

(4)Once the operator swipes the magnetic card, the printer transmits, in ASCII format, the track information found on the magnetic card.

A good read automatically switches off the MC reader and the <READY> LED.

(5) The <READY> LED illuminates RED if an error is encountered while reading the magnetic card.

The printer transmits a timeout error message if the operator fails to swipe a card in the time period set by the host application.

32

Image 38
Contents Apex & Andes Series Page Copyrights Document Revision History Contents Dip Switch Settings Communications Settings’Neil Line Print mode Datamax-O’Neil Printer Command Language ExPCL IntroductionXON CommunicationsEOT XoffCharacter Size and Line Spacing Select Character Pitch Mode ESC K n CRCharacter Sets Select Character Set Esc F nAndes3 Select Character Pitch Mode ESC k nApex APEX4 Character Size and Line Spacing Width and Height Selection U Underline Mode on u Underline Mode OFF Emphasized Printing Mode ESC U nUnderline Printing Mode ESC U n Character AttributesSelection R Reverse printing on n Reverse printing OFF Reverse Print ESC U nRight to Left and Left to Right Printing ESC F n Backspace Horizontal PositionCarriage ReturnCR Horizontal TabVariable Size Line Feed ESC J n Vertical PositionLine FeedLF Variable Size Reverse Line Feed ESC Q J nForm Feed Bar CodesSet Vertical Tab Height ESC T V n Set Form Feed Length in Dot Lines ESC T F n1 n2Code 39 Specifications Print Bar Code with Human Readable TextHEX DEC Code a Code B Code C Code 128 SpecificationsDescription Character set Elements per symbol UCC/EAN-128 Specifications DescriptionInterleaved 2 of 5 Specifications UPC/EAN/JAN SpecificationsElements per Codabar SpecificationsSymbol Character density GS1 DataBar Specifications Character set QR Code ModelsDecimal Page Page Page QR Code Specifications Symbol Character/symbol Error correctionElement Width Value Length in mil Compaction Mode Description Encoding CapabilitySecurity Level # Error-Check Code Words Bit Graphics GraphicsBarcode Height Multiplier ESC z h n Function Bit Compressed GraphicsGraphic String Component Printer Controls Data Processing Enable Buffer ModeDisable Buffer Mode Select Online Mode ESC P $ESC P + Printer Controls Printed Output AdjustPrint Buffer Contents Buffer Mode ESC PCan Printer Controls ResetPrinter Controls Power ESC @Extended Auto Power Down Command Command String Printer ResponseSYN Printer Status CommandsSTX Query Printer Model and Hardware Revision Level Magnetic Card Command String DescriptionMagnetic Card Reader Track Position Track2 Track3Magnetic Card Data Output Format Magnetic Card Read Error MessagesError # Interfacing to the Magnetic Card ReaderESC Q R CR Black Mark Sensing Control CommandsESC C Black Mark Sensing Command Mode Black Mark Sensing Auto ModePrinted Receipt/Label Presenter Positive Adjust ESC Q D + n Enable Back Black Mark Sensor ESC Q b e CRDisable Back Black Mark Sensor ESC Q b d CR Printed Receipt/Label Presenter Positive Adjust ESC Q P nEnter the Page Printing Mode Print Commands ConfigurationPrinted Receipt/Label Presenter Negative Adjust ESC Q D n ESC P PPrint Commands Draw Commands Command Name Draw Rectangle DrawRectangle x1, y1, x2, y2,color,widthType Value Barcode type HeightForm FiestaTM ESC S L Download Printer Default SetupESC D S ESC S Download Self test Message Hardware InformationStart Hardware Information download process Print Hardware Information ESC L gDownload Logo ESC D L CR LFESC D F CR Enable Font DownloadingDownload Fonts Display Tables InformationESC D I CR Disable Font Download ModeDisplay Font Download Current Settings ESC F S m t k f CR ESC FSelect Load Operating Mode ESC F M m CR FlashImportant Font Downloading Notes ESC F B CRExample 1 BBX 08 23 0 Example 2 BBX 08 23 0Bluetooth & WiFi Setup Command Select Pass-Thru Command Mode ESC P U n1 U n2 T t0 t1 t2 CRSelect Emulation ESC E n ’Neil Line Print modeEmulation Emulation LanguageEsc C n Esc a n Can Esc V n1 n2 OFF Communications SettingsDip Switch Settings OFF 2USBSerial Busy Protocol RJ25 Connector PIN # Functional Description Signal NameSerial Communication RS232C XON/XOFF ProtocolUSB Communication USB RS232C Technical SpecificationsDip switch setting OverviewUSB Technical Specifications Bluetooth CommunicationsSoftware Driver Installation TeraTerm ExampleAutomatic Power OFF Mode Bluetooth Interface Power ModificationManual Power OFF Mode SettingsLED Wi-Fi Communication OptionPrinter Status Indicator LED Panel Status Condition FunctionAction Required LED #LED Color/ Status Description LED # Factory Fonts Appendix a Flash Font TablesReplaceable Fonts Tables Replaceable FontsCourier International Font Table Courier PC Line Graphic TableMonospace Font Table Rotated Font Table