The text of a manual · part 4 of 5
Mt Series Programmer's Manual, pages 28 to 36
Pages 28 to 36 of 44
The original document is the PDF (673 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Printek Mt3
Page 28
Page 29
Magnetic Card Reader A three track Magnetic Card Reader (MCR) is optionally available on all Printek Mt series model printers. The MCR is designed to read magnetically encoded data from cards conforming to ANSI/ISO 7810, 7811 standards. The MCR converts the F2F encoded signals on the magnetic card to ISO7811 compatible ASCII format and transmit the information to the host computer or a terminal. The MCR can read one, two, or three tracks simultaneously and bi-directionally. Set of printer ESC software commands are supported in order to provide the following operating features: •
Select the MCR.
•
Set the auto time-out software timer
•
Report MCR Read errors
•
Report MCR status.
Card Specifications The table below summarizes the format of the data stored on each magnetic track.
Track Position Recording Density Recording Capacity Number of data bits Card Thickness
Track 1 - ISO1 (IATA) 210 BPI 79 characters 7 .76 mm +/- 0.08 mm
Track2 - ISO2 (ABA) 75 BPI 40 characters 5
Track3 - ISO3(MINTS) 210 BPI 107 characters 7
Magnetic Card Read Command Strings •
Six Commands strings are provided, to read the magnetic cards. These commands are summarized in the table below.
•
The general syntax for commands are as follows: ESC M n1 n2 t CR
•
The ESC M command turns on the power to the MCR.
•
The next two bytes, n1 n2, are used to set the reader’s timer. ‘01’ through ‘99’ are valid timer settings. ‘00’ disables the timer.
•
The printer aborts and transmits the time-out error message if the operator fails to swipe a card within the time period set by the host application.
25
Page 30
Magnetic Card Reader •
On timeout, the printer aborts the swipe process, transmits timeout error message and turns off the MCR Indicator.
•
A good magnetic card swipe automatically terminates the read process.
Magnetic Card Command String ESC M n1 n2 1 CR ESC M n1 n2 2 CR ESC M n1 n2 3 CR ESC M n1 n2 4 CR ESC M n1 n2 5 CR ESC M n1 n2 6 CR ESC C
Description Read Track1 only Read Track2 only Read Track3 only Read Track1 and Track2 simultaneously Read Track2 and Track3 simultaneously Read Tracks 1,2 and 3 simultaneously Cancel Read process
Example: Read tracks 2 & 3 with a twenty second timeout. Escape Sequence: ESC Hexadecimal: 1B
M 4D
2 32
0 30
5 35
CR 0D
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 ? CRLF. “%;+” are the track start sentinel characters, while “?” is the end of track sentinel character. If no data is available for a track that data field will be empty. If an Error is encountered on any track a single “E” will be the output for that tracks’ data field.
%/1/
Track1 Data
?CRLF
;/2/
Track 2 Data
?CRLF
+/3/
Track 3 Data
?CRLF
Magnetic Card Read Error Messages The characters “%” and “E” preface all error messages. Following these two characters is a comma, the error number in ASCII (01 through 99), another comma, an English description of the error encountered, and finally CRLF terminating the Error Message string. The syntax is as follows: % E, nn, Error text in ASCII, CRLF 26
Page 31
Magnetic Card Reader
The printer may transmit Four (4) types of Read Error messages. The following messages terminated with CRLF are returned.
Error # 05 07 08 09
Error Message Transmitted Time-out Expired Invalid Track Number Unsupported Track Selected 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. •
The host selects the printer by activating the RTS input line or sending wake-up characters to the printer.
•
The printer sends the XON command to the host to indicate that it is ready to receive data from host.
•
Once XON is received, the host sends the command to enable the magnetic card reader (ESC M 0 0 4 CR). The printer turns on the GREEN MCR Indicator.
•
Once the operator swipes the magnetic card, the printer transmits the track(s) information found on the magnetic card.
•
A good read automatically turns off the reader and the indicator.
•
The MCR indicator 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.
27
Page 32
Serial Communications The proper baud rate and protocol settings are required to communicate with the host device. The printer defaults to 19200 BAUD, 8 DATA BITS, NO PARIT, and one STOP BIT on initial power up. Two communication handshaking protocols are supported, Serial Busy protocol and XON/XOFF protocols.
Serial Busy Protocol For the serial busy handshaking mode, the Request To Send printer input (RTS) and Clear To Send printer output (CTS) are used to control data flow to and from the printer. RTS and CTS are considered to be valid or active when the signal level is positive (3 to 12VDC). A positive RTS signal from the host device enables the printer. The RTS signal is monitored during data transmission from the printer to the host device, the printer transmits data to the host device only if RTS input is high. The printer raises CTS when it is ready to accept data. The printer lowers CTS when the print buffer has less than 256 unused locations.
XON/XOFF Protocol For the XON/XOFF handshaking mode, the printer transmits XON (0x11) when it is ready to accept data, and XOFF (0x13) for the print buffer has less than 256 unused locations. Under XON/XOFF protocol, the data flow out of the printer's serial port is halted on receipt of XOFF from Host device and resumed on receipt of XON.
RS232C Connections The RS232C Interface signals for the printer are terminated on a 6 PIN RJ type data connector located at the back of the printer. Six connections are provided from the Serial Interface to the host computer. The table below lists the Serial Interface signals and pin out on the RJ connector followed by the pin locations on the connector.
28
Page 33
Serial Communications PIN # 1, 5 2 3 4 6
FUNCTIONAL DESCRIPTION SIGNAL NAME Logic common COM RS232 from Printer (OUTPUT) TXD RS232 from Host (INPUT) RXD Clear to send from Printer (OUTPUT) CTS Request to send from Host (INPUT) RTS Serial Connector Pin Assignments
RS-232C Technical Specifications • • • • • • • • • • • • •
Data transfer rate: Word length: Start bit Data Bits Parity Bit Stop bits Signal levels: Mark or Logical 1: Space or Logical 0: Handshaking: Hardware: Software: Auto power up:
2400 - 38.4K Baud 10 or 11 bits 1 7 or 8 None, odd or even 1 or 2 RS232C -3 to -15VDC +3 to +15VDC Two modes are supported RTS/CTS XON/XOFF Positive signal on RTS input turns printer on.
29
Page 34
Printer Configuration Mt2 Series Communication and other settings may be changed via the switches located inside the printer. The following figure shows the location of the switches, and the table shows the switch assignments. For more information, please refer to the Mt2 Series Operator’s Manual. The diagram below shows switch settings for IrDA communications and Auto Power Off enabled.
Sample Switch Setting Configuration Switch Location
Switch Position(s) SW1 Off On SW2 SW3 Off Off Off On On Off On On SW4 Off On SW5 SW6 SW7 Off Off On Off On On SW8
Function Communication Interface RS232/Bluetooth Enabled IrDA Enabled Baud Rate 38,400 19,200 9,600 2,400 Manual Power Control (Mt2B) Manual Control Disabled Manual Control Enabled Reserved Parity bit No Parity Odd Parity Even Parity Reserved
Mt2 Switch Assignments
30
Page 35
Printer Configuration
Mt3 Series Communication and other settings may be changed via the switches located inside the printer. The following chart explains the various conditions obtained through the various configuration switch settings. For more information, please refer to the Mt3 Series Operator’s Manual Note: In order for switch changes to take effect, the printer power must be reset. The diagram below shows switch settings for IrDA communications and Auto Power Off enabled.
Example: SW1 Shown in On position Configuration Switch Location
Switch Position(s) SW1 Off On SW2 SW3 Off Off Off On On Off On On SW4 SW5 Off Off On Off On On SW6 On Off SW7 SW8 On Off
Function Communication Interface RS232/Bluetooth Enabled IrDA Enabled Baud Rate 38,400 19,200 9,600 2,400 Parity bit No Parity Odd Parity Even Parity Hardware Reset Enable Reset Disable Reset (Default) Reserved Printer Power Control Continuous Power On Enabled Auto Power Off Enabled
Mt3 Switch Assignments
31
Page 36
Printer Configuration
Mt3-II Series Communication and other settings may be changed via the switches located inside the printer. The following chart explains the various conditions obtained through the various configuration switch settings. For more information, please refer to the Mt3-II Series Operator’s Manual
The diagram below shows switch settings for Bluetooth or Wi-Fi communications.
Switches 2 & 3 Shown In ON Position
Configuration Switch Location
Switch Position(s) SW1 OFF ON SW2 OFF ON SW3 OFF ON SW4 SW5 OFF OFF OFF ON ON OFF ON ON SW6 SW7 OFF X ON OFF ON ON SW8
Function IrDA Interface Disabled Enabled RS-232C Interface Enabled Disabled Bluetooth/Wi-Fi Interface Disabled Enabled Baud Rate 38,400 19,200 9,600 2,400 Parity No Parity Even Parity Odd Parity Reserved
Mt3-II Switch Assignments
32