The text of a manual · part 4 of 9
MAXI MICR RS232 with Optional 2-Track MSR Technical Reference Manual, pages 13 to 24
Pages 13 to 24 of 58: SECTION 3. OPERATION; SECTION 4. COMMANDS
The original document is the PDF (341 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 MagTek Maxi MICR Reader
Page 13
SECTION 3. OPERATION This section contains check and card reading procedures and LED indicator states. CHECK READING PROCEDURE 1.
Orient the check so the MICR line is down and the printed side faces the center on the MICR Reader as shown in Figure 3-1.
Figure 3-1. Check Orientation 2.
Drop the check so the leading edge is in the open slot.
3.
When the MICR Reader detects the presence of the check, the motor will turn on. At this time gently urge the check forward until the unit grabs the check. When this happens, release the check. The check will then be transported around the check path and will exit through the other side.
4.
After the check is read, the MICR Reader will transmit the data as specified by the parameters described in Section 4, Commands.
CARD SWIPE PROCEDURE The card may be swiped through the MSR in either direction, but the magnetic stripe must be oriented in only one direction as shown in Figure 1-1. The MSR will transmit raw card data (“as is” on the card) for all tracks.
5
Page 14
MAXI MICR RS232 with 2-Track MSR
LED INDICATORS Table 3-1 describes the LED indicator conditions for check and card reading operations. The LED indicator is located below the slot where the check is first inserted for reading. Table 3-1. LED indicators LED INDICATOR DESCRIPTION OFF Power off SOLID GREEN Ready to read check or card Check or card read error OFF→ SOLID RED Good read OFF→ SOLID GREEN FLASH GREEN Needs initialization* FLASH RED/GREEN Data sensor blocked (motor does not run)* FLASH RED Motor sensor blocked (motor does not run)* FLASH GREEN FAST Monitor mode (factory use only)* *Refer to “Appendix C. Troubleshooting Guide.”
6
Page 15
SECTION 4. COMMANDS This section describes the use of commands and programmable options available for the MICR Reader. Note All options described below can be factory set as specified by the user when ordering. To execute the MICR Reader commands, either one of two methods is required: Insta-Change checks or a PC with a program that provides access to a serial communications (COMM) port. INSTA-CHANGE CHECKS The first method is the use of Insta-Change checks, which is a more practical way of setting up the MICR Reader for most applications. The Insta-Change check is a MICR encoded document that contains commands and options used to reset the parameters of the MICR Reader. Multiple commands and options may be contained on one Insta-Change check. When used, the InstaChange checks are run through the MICR Reader the same as a standard check, and the options to be used are automatically selected. To obtain Insta-Change checks, notify a MagTek representative and specify what options will be used. To operate Insta-Change checks, install the MICR Reader as described in Section 2, and watch the LED indicator. When the Insta-Change check is run through the MICR Reader and read successfully, the LED indicator will blink green. If the LED indicator turns red, the read is not successful. Try again or use a different InstaChange check. PC PROGRAM The second method, the PC program, may be MagTek’s SET-MICR Demo program, or any other user provided PC program that permits access to the COMM port. With the SET-MICR program, commands may be selected from menus, but with any other program the command data is entered manually (typed) into the system. Whether SET-MICR, or any other program is used, the PC and the MICR Reader must be set to the same communication parameters (baud rate, parity, stop bits, etc.) COMMAND FORMAT When the commands are entered manually, they must use the following format: [COMMAND][DATA]<CR> where:
7
Page 16
MAXI MICR RS232 with 2-Track MSR
• • • • •
[COMMAND] is 2 or 3 alpha characters. [Data] is optional as described below for each command. <CR> is always required. All characters are ASCII No spaces, brackets, or angle brackets required.
SWA - SWITCH A COMMAND The SWA command controls the communication parameters, shown in Table 4-1. The data for this command consists of 8 ASCII bits (“0” = hex 30 and “1” = hex 31). Table 4-1. SWA Command 7
6
5
BITS 4 3
0 0 1 1
PARAMETERS 2 0 0 0 0 1 1 1 1
1 0 0 1 1 0 0 1 1
0 1 0 1
0 1 0 1 0 1
0 0 1 0 1 0 1 0 1
Reserved Baud Rate: 300 Baud Rate: 600 Baud Rate: 1200 Baud Rate 2400 Baud Rate: 4800 Baud Rate: 9600 Baud Rate: 19200 Data and Parity: 8, None Data and Parity: 7, Mark(1) Data and Parity: 7, Even Data and Parity: 7, Odd CTS/DSR: Use CTS/DSR: Ignore Number of Stop Bits: 1 Number of Stop Bits: 2 Intercharacter Delay: No Intercharacter Delay: Yes
To execute, send the SWA command as follows: SWA 01010101<CR> or SWA <CR>
(with data) (without data)
When sending data, all 8 bits must be provided. The MICR Reader will execute the command but it will not reply. To make this command permanent, use the SA (Save) command described at the end of this section. 8
Page 17
Section 4. Commands
If no data is sent, the MICR Reader responds with the current settings for SWA. Note The new settings for the serial port will not become effective until the RS (Reset) command is executed. The Reset command is described at the end of this section. SWA PARAMETERS The SWA functions are listed in Table 4-1 and described below. Baud Rate The baud rate is one of seven speeds at which the MICR Reader communicates with the Host. The lowest speed is 300 baud, and the highest is 19200. Data and Parity The number of data bits and the parity bit are interrelated. If even, odd, or mark parity is selected, the MICR Reader will use seven data bits per byte with one parity bit. If a parity of none is selected, the MICR Reader will use eight data bits per byte. CTS/DSR When CTS/DSR (Clear to Send/Data Set Ready) is set to IGNORE, the MICR Reader sends data to the Host without waiting for the CTS and DSR signals to be active. When CTS/DSR is set to USE, the MICR Reader waits for the CTS and DSR signals to be active before sending data. Number of Stop Bits The number of stop bits is either 1 or 2. Normally, one stop bit is used for most applications. Two stop bits are used to allow extra time for slower Host equipment. Intercharacter Delay The intercharacter delay is used to increase the time between characters transmitted from the MICR Reader. The time is increased to 13 milliseconds. This parameter affects character rate but not baud rate (i.e., each character takes the same time to transmit but the time between characters is increased).
9
Page 18
MAXI MICR RS232 with 2-Track MSR
SWB - SWITCH B COMMAND The SWB command controls the message format, shown in Table 4-2. The data for this command consists of 8 ASCII bits (“0” = hex 30 and “1” = hex 31). To execute, send the SWB command as follows: (with data)
SWB 01010101<CR> or
(without data)
SWB <CR>
When sending data, all 8 bits must be provided. The MICR Reader will execute the command but it will not reply. The new settings become effective immediately. To make this command permanent, use the command SA (Save) described at the end of this section. If no data is sent, the MICR Reader responds with the current settings for SWB. Table 4-2. SWB Command 7
6
5
BIT 4 3
PARAMETERS 2
1
0 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1
10
0 0 0 0 0 0 1 0
0 0 0 0 1 1 0 0
0 0 0 0 0 0 1 0
0 0 0 1 0 1 0 0
0 0 1 1 0 0 0 1
<LF>: No <LF>: Yes <CR>: No <CR>: Yes <ETX>: No <ETX>: Yes <ESC>: No <ESC>: Yes <STX>: No <STX>: Yes Send Data After Error?: No Send Data After Error?: Yes Send Status After Data?: No Send Status After Data?: Yes Comm Mode: 0 - Data Only Comm Mode: 1 - Data <CR> Comm Mode: 2 - Data -<LF> Comm Mode: 3 - Data -<CR><LF> Comm Mode: 4 - <ESC> Data Comm Mode: 5 - <ESC> Data<CR> Comm Mode: 6 - <STX> Data<ETX> Comm Mode: 7 - <STX>Data<ETX><LRC>
Page 19
Section 4. Commands
SWB PARAMETERS The SWB functions are listed in Table 4-2 and described below. Control Characters and MICR Data Control Characters may be added to the MICR data message. The characters are always in the following locations: <STX> <ESC> data <ETX> <CR> <LF> The control characters, descriptions, and hex values are shown in Table 4-3. Table 4-3. Control Characters CONTROL CHARACTER <STX> <ESC> <ETX> <CR> <LF>
DESCRIPTION Start of Text Escape End of Text Carriage Return Line Feed
HEX VALUE 02 1B 03 0D 0A
For example, if <STX> and <CR> are set to YES, the message from the MICR Reader will look like this: MICR Data: <STX>data<CR> Control Characters and Card Data The control characters are also available for card data but they are applied to each track individually. For example, if the <STX> and <ETX> options are set to YES, the card data message is transmitted as follows: Card Data:
<STX>[TK1 data]<ETX><STX>[TK2 data]<ETX><STX>[TK3 data]<ETX>
Communication Modes The selection of comm modes is a quick way of selecting multiple Control Characters. For instance, to send a carriage return/line feed pair after the data, you can specify Comm Mode 3.
11
Page 20
MAXI MICR RS232 with 2-Track MSR
Comm Mode 7, also known as Packet Mode, calculates an LRC (Longitudinal Redundancy Check), and appends it to the data message. Also, if a <NAK> (hex 15) character is received in this mode, the MICR Reader will resend the last message. Send Data After Error The request Send Data After Error specifies whether the MICR Reader will return data to the Host after a read error. If YES is selected and the MICR Reader detects a read error, the MICR Reader will still send the data back to the Host. If NO is selected and the MICR Reader finds an error, it will discard the data and nothing will be sent. The error conditions are listed in Table 4-4. Send Status After Data The Send Status After Data option makes the MICR Reader append a two-digit error/status code to the end of the MICR data. For most formats (See Appendix A), the error/status code will always be preceded by a forward slash (/). The error/status codes are listed in Table 4-4. For example, if a Canadian check (code 08) is read and had no errors, and the MICR data is “1234567890”, then the message from the MICR Reader will look like this: MICR Data:
1234567890/08
The status code is always at the end of the data, not the end of the message. For example, using the above conditions, with the message format set to send <STX> and <ETX>, the message from the MICR Reader will look like this: MICR Data:
<STX>1234567890/08<ETX> Table 4-4. Error and Status Codes
12
PRIORITY 9 8 7 6
CODE 01 09 08 05
TYPE Error Status Status Error
5 4 4 3 2 1 0
07 04 04 03 10 11 00
Error Error Status Status Status Status Status
DESCRIPTION No MICR data: no transit and no account found Mexican check Canadian check Transit error: No transit, bad character, bad length, bad check digit Account error: No account, bad character Check # error: Bad character in check number No check number Low MICR signal, good read Business check Amount field present Good read
Page 21
Section 4. Commands
Notes:
• The LED indicator will turn red on all error conditions. • The absence of a check number is not considered and error. • If a multiple error condition occurs, the error or status code with the highest priority is reported. • All unreadable MICR characters are transmitted as an “?” ASCII character (hex 3F), except for Format 00xx (See Appendix A). SWC - SWITCH C COMMAND The SWC command controls miscellaneous functions, shown in Table 4-5. The data for this command consists of 8 ASCII bits (“0” = hex 30 and “1” = hex 31). To execute, send the SWC command as follows: (with data)
SWC 01010101<CR> or SWC <CR>
(without data)
When sending data, all 8 bits must be provided. The MICR Reader will execute the command but it will not reply. The new settings become effective immediately. To make this command permanent, use the SA (Save) command described at the end of this section. If no data is sent, the MICR Reader responds with the current settings for SWC. Table 4-5. SWC Command 7
6
5
4
BITS 3
0 1 0
0
0
0
PARAMETERS 2
1
0 0
0 1
1
0
1
1
0 0 1
CMC-7 Character Set: No CMC-7 Character Set: Yes Invalid Commands: ?<CR> Invalid Commands : No Reply (Header Required)* Invalid Commands: No Reply (No Header Required) Ignore all Commands Active RTS: No Active RTS: Yes These bits are always set to 0
*Header Required means all commands must be preceded by a GS character (Hex 1D). 13
Page 22
MAXI MICR RS232 with 2-Track MSR
SWC PARAMETERS The SWC functions are listed in Table 4-5 and described below. CMC-7 Character Set If NO is selected the MICR Reader will only read E13-B characters. When YES is selected, the MICR Reader will read both CMC-7 and E13-B characters (see Appendix B). However, the MICR Reader will only output raw data ("as is" on the check) for both types of characters. Invalid Command Response Invalid command response is the action the MICR Reader takes upon receipt of a command it does not recognize. It can also be used to stop the MICR Reader from receiving any more commands. The first option “?<CR>” is the default. If the MICR Reader receives an unrecognized command, it will return a question mark and carriage return to the Host. The MICR Reader will then return to an idle state and wait for further commands or check/credit card reads. For the second option, “no reply - header required,” the MICR Reader will only execute commands preceded by a GS ASCII character (hex 1D). All other commands will be ignored. Also, the MICR Reader will not reply to invalid commands. For the third option, “no reply,” the MICR Reader will execute all valid commands, but it will not reply to invalid commands. The fourth option, “ignore all commands,” causes the MICR Reader to ignore any further commands. Even the SA (Save) command is ignored and therefore this fourth option is only temporary. To make this option permanent or to reset it, you must use an Insta-Change check. Active RTS When this function is set to YES, the MICR Reader will raise RTS and wait 5 seconds for CTS to become active before sending any data. If the 5 seconds expire and CTS is not active, the data message will be discarded and nothing will be sent FC - FORMAT CHANGE COMMAND Formats are used by the MICR Reader to process and transmit the MICR fields. The format command allows the selection of a format from the Format List, Appendix A. The data for this command consists of 4 digits (ASCII characters 0-9). To execute, send the command as follows: 14
Page 23
Section 4. Commands
(with data)
FC 6600<CR> or
(without data)
FC <CR>
When sending data, all 4 digits must be provided. The MICR Reader will execute the command but it will not reply. The new settings become effective immediately. To make this command permanent, use the SA (Save) command described below. If no data is provided, the MICR Reader will respond with the current format number. VR - VERSION COMMAND The Version command gives the current software revision in the MICR Reader. To execute, send the VR command followed by a carriage return as follows: VR<CR> The MICR Reader responds as follows: MICR data:
[software revision]<CR>
SA - SAVE COMMAND All changes are considered temporary until the Save command is executed. The Save command saves all changes to the MICR Reader memory and makes them permanent. The MICR Reader will execute the command but it will not reply. To execute, send the SA command followed by a carriage return as follows: SA<CR> RS - RESET COMMAND The Reset command resets the MICR firmware to the normal operating state of waiting for a check or card to be read. The command also resets the serial port to the most recent settings provided by the SWA command. To execute, send the RS command followed by a carriage return as follows: RS<CR>
15
Page 24
MAXI MICR RS232 with 2-Track MSR
16