The text of a manual · part 9 of 31
9560 Transaction Manager User's Manual, pages 81 to 90
Pages 81 to 90 of 309
The original document is the PDF (1.1 MB). 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 Intermec 9560
Page 81
Data Communications and Operating Options
5
Point-to-Point accepts and then transmits all data to the host when either: • the reader receives the EOM character.
• the timeout delay limit is reached.
Polling Mode D Protocol Polling Mode D protocol is a proprietary Intermec block transfer protocol. It works in a Point-to-Point environment and supports only one polled device on the line. Polling Mode D protocol has these characteristics: Half-duplex
This protocol can send or receive data at one time. The data is sent one character at a time.
Asynchronous
The solicitation (POL) and handshake sequences (XON/XOFF) are enabled and required.
Solicited
Error checking
The data block includes the LRC for data integrity.
You can set the Terminal Port mode for either transparent or buffered operation. The default is buffered. See “Displaying Data on a Terminal” later in this chapter for descriptions of transparent and buffered operation. If you are connecting the reader to a host computer, you may need to know the details of Polling Mode D. However, if you are using an Intermec concentrator, you do not need to understand Polling Mode D. These Intermec concentrators use Polling Mode D protocol: •
9160 with Rev. C software or higher
•
9160A and 9161B (Options 01 and 02)
•
9165 System Control Unit
Multi-Drop Protocol You use Multi-Drop protocol in a data communications network where several devices are connected to a common line. It is designed to work in an RS-422/RS-485 environment with up to 32 devices on a single multi-drop transmission line. Multi-Drop protocol has the following characteristics: Half-duplex Asynchronous
This protocol can send or receive data at one time. The data is sent one character at a time.
The solicitation (POL) and handshake sequences (XON/XOFF) are enabled and required.
Solicited
The 9154A and the 9161B Option 02 Intermec controllers support Multi-Drop protocol.
5-7
Page 82
9560 Transaction Manager User’s Manual
User-Defined and User-Defined Multi-Drop Protocols You define all protocol parameters in User-Defined protocols. Thus, you can duplicate any protocol to emulate a proprietary or irregular protocol on a host computer. Some protocols are very robust and secure, while others are not. A secure data link protocol can recover from transmission line errors (parity and framing errors) and uses affirmative and negative responses to verify communication events. If the transmitting device receives a negative acknowledgment, the data is retransmitted. The maximum retry count is three for all asynchronous Intermec protocols.
Tips for Defining Secure Protocols Use these tips for defining secure User-Defined protocols: 1. Define all protocol fields with ASCII control characters. See the Glossary for definitions of unfamiliar acronyms and terms. Examples: SOM = STX
REQ = ENQ
AFF = ACK
RES = EOT
NEG = NAK
EOR1 = RS
EOM1 = ETX
EOF = ETB
2. Use even or odd parity when transmitting data. 3. Enable the LRC (Longitudinal Redundancy Check character) to provide added data security to all transmitted and received messages. When both parity and LRC checks are enabled, horizontal and vertical error checking are performed. If the SOM is enabled, it is not included in the LRC calculation. The reader allows the LRC to be enabled in addition to XON/XOFF flow control. The host device must also be able to receive the XON or XOFF character as the LRC or receive the XON or XOFF characters as data if preceded by the DLE. 4. If the host device cannot guarantee reception of data at all times, the host should control the transmission of data from the reader. There are three methods available. Use one of the methods or combine them: a. Enable Solicitation. This prohibits the reader from sending any type of data or response unless the host is ready for it. b. Enable XON/XOFF flow control. c. Use CTS (clear to send) hardware handshake. The reader checks CTS before transmitting all characters with the exception of XON/XOFF responses. If CTS is false, the reader either stops or does not start transmitting data. 5. Always enable the SOM.
5-8
Page 83
Data Communications and Operating Options
5
6. If the REQ is enabled, also enable the RES. When the REQ is enabled, the reader waits for the timeout period to expire and then accepts the data. By enabling the RES, the host sends the RES when it recognizes the response (AFF) sent by the reader if the data was correctly received.
Buffering Received Data The 9560 uses three different circular queues to hold received data. Buffers all characters received. This queue serves as a buffer if the data cannot be processed as fast as it is received. If XON/XOFF flow control is enabled, the device transmits the XOFF character when the queue is half full.
20-byte queue
Buffers data characters only. When the data queue has 32 bytes remaining, the reader sends the XOFF character to the host. 512-byte queue
Contains a pointer to the packet start position and a byte count. This information is used to pass complete packets of successfully received messages to the operating system. The packet queue holds up to 20 packets. The device sends the XOFF character when the queue has 18 packets. Packet queue
Communications Delays While receiving data, the reader waits a specific time before sending an error message. You can modify this time in Point-to-Point or User-Defined protocols. The amount of time the reader waits before sending each character to the host. This delay modifies the outgoing transmission rate only. Use the intercharacter delay when communicating with a controller through modems in full-duplex operation.
Intercharacter delay
The amount of time the reader waits between receiving each character before sending an error message. Also, it is the amount of time the reader waits for an acknowledgment from the host before sending an error message.
Timeout
The amount of time the reader waits after receiving data before sending a response to the host.
Turnaround delay
5-9
Page 84
9560 Transaction Manager User’s Manual
Data Format Requirements Regardless of the protocol you selected, the host and the reader must format the data before transmitting it. Each transmission includes a start character, the data block, and an end character. The SOM (start of message) character and the EOM (end of message) character are determined by the protocol. The data block may include preambles, data, and a postamble. The following figure shows the data format parameters. The Intermec Data Communications Reference Manual describes these parameters in detail. SOM
Preamble
Record
Postamble
EOM(s)
Data Block
SOM Character (Start of Message) The SOM character precedes the data and indicates the beginning of a data block. The SOM character is a protocol character and is not part of the data format.
Preambles and Postambles The preamble is a field of data sent before record data and a postamble is sent after record data. Preambles and postambles are typically used to tag transactions for rapid processing by the host computer. They are also used to expand the data field (record) length. The reader has two preambles, Preamble A and Preamble B, and one postamble, Postamble C. If you select “Preamble A Required” in Configuration mode, you must also define Preamble A. For preamble commands, see Chapter 8, “Data Entry Commands.” Your preamble definition is erased if you reset the reader to the default settings. You will need to re-enter the preamble to use it again. When the reader transmits a message block, the presentation control first checks to see if the preamble or postamble functions are enabled and defined. If they are, then the transmitted data has the following format: <Preamble A> <Preamble B> message block <Time> <Postamble C>
The message may consist of a single record or multiple records. If a file is being transmitted with multiple records per message block, the message block has the following format: record <EOR> record <EOR> record <EOR> last record <EOR> <EOF>
5-10
Page 85
Data Communications and Operating Options
5
•
The EOF (End of File) is only transmitted after the last record of a file.
•
Time is never appended to the transmitted files.
Preambles and the postamble are described more completely in Chapter 8, “Data Entry Commands.”
EOR Characters (End of Record) Your destination for the data from the 9560 may require an end of record character in the data files. If you enable EOR, the reader adds the EOR character at the end of all the individual records within the file. EOR is disabled in Polling Mode D, Multi-Drop, and Point-to-Point protocols.
EOF Characters (End of File) Your destination for the data from the 9560 may require an end of file character in the data file. The EOF character follows the last record transmitted within any record block, regardless of the size of the record block. If you enable EOF, the reader adds the EOF character after the last EOR character (if EOR is enabled). EOF is disabled in Point-to-Point protocol. The default EOF character in Polling Mode D and Multi-Drop protocols is SOH.
Record A record is a maximum of 128 data characters that can be stored in the reader’s memory. A record can be: •
Data from a regular label
•
Data from several multiple-read labels
•
Data from regular or multiple-read labels when the reader is in Accumulate mode
•
Data entered from a 1700 keyboard or terminal keyboard
Records per Block For all protocols except User-Defined protocol, the number of Records per Block is one. You can set Records per Block from 0 to 99 in User-Defined protocol. Setting this value to zero transmits the whole file within a single block.
5-11
Page 86
9560 Transaction Manager User’s Manual
EOM Characters (End of Message) The EOM character follows the data and indicates the end of a data block. The EOM character is a protocol character and is not part of the data format. The 9560 can transmit one or two EOM characters. If you use NUL for the first EOM character, the reader transmits the ASCII NUL character (00 Hex) and disables communications from the host. If you enter NUL for the second EOM character, the reader disables the second character and transmits nothing for the character. The characters cannot be the same, unless both are NUL.
Error Checking In User-Defined protocol, the reader can add a Longitudinal Redundancy Check (LRC) character to data transmissions. The host must have software to handle the LRC. The LRC character is the exclusive “OR” of the seven (or eight) data bits in the data block. The LRC character is the last character sent, but it is not part of the data. For more detailed information, refer to the Data Communications Reference Manual.
Displaying Data on the 9560 The 9560 has either a 2-line by 40-character standard display or a 1-line by 20-character oversize display. You can scroll the standard display back two lines. You can scroll the oversize display back three lines, one line at a time. Note: The keypad on the 9560 does not provide keys for scrolling. You must use an IRL program, scan bar code command labels, or use the arrow keys on the 1700 keyboard to scroll the display.
Types of Data Displayed The reader distinguishes between four data types for the display: Input data All data entered from the keyboard or an input device. This includes IRL program statements being entered and displayed in the editor. Host messages Any message received from the host at the reader modem port with the correct protocol. Host messages can interrupt the current display at any time.
All messages to the operator, such as those that occur during Prompting Configuration, with the exception of those messages that describe errors. This also includes IRL prompt statements when an IRL program is running.
Reader prompts
5-12
Page 87
Data Communications and Operating Options
5
Reader warning messages All error or warning messages to the operator. These messages can interrupt the current display at any time and are generally accompanied by a beep. If transparent display is selected, the error messages are not displayed.
Display Settings and Formatting The reader has two display settings: buffered and transparent.
Buffered Display In buffered display mode, the reader adds and executes a CR LF sequence to all transmitted, received, or scanned data or messages. The CR LF formats the reader display to show each record, message, or prompt on a new line. After displaying a host message, the reader adds a CR LF sequence is to any accumulated data. The CR LF is then executed and any buffered accumulated data is displayed again on the next display operation.
Transparent Display In transparent display mode the display does not format data or host messages with CR LF sequences. You use control codes or control sequences in host messages or IRL prompts to format data for the display.
Formatting the Display You use control codes to position the cursor or format the reader display. The reader recognizes these display control codes: Description
Code
Action
Backspace
BS (08 Hex)
Moves the cursor one position to the left until the cursor reaches the first column. Except when in the first row, the cursor moves from the first column of the current row to the last column of the previous row.
Home
CR (0D Hex)
Returns the cursor to the first column of the current row.
Next line
LF (0A Hex)
Moves the cursor down one row in the current column position. If the cursor is already in the last row, a new line is added.
Erase Display
ESC[2J
Erases all of the display and returns the cursor to the home position (row 1, column 1). Erases the entire virtual display image (buffer with up to four rows of the most recently displayed data).
5-13
Page 88
9560 Transaction Manager User’s Manual
Description
Code
Action
Cursor Position
ESC[#;#H
Moves the cursor to the position specified by the # parameters. The first parameter specifies the row or line number and the second parameter specifies the column number. If zero or no parameter is entered, the parameter is set equal to one. Parameters exceeding the maximum row or column number are set equal to the display’s maximum.
Save Cursor Position
ESC[s
Saves the current cursor position. Successive Save Cursor Position commands overwrite previous positions saved.
Restore Cursor Position
ESC[u
Restores the cursor position saved with a Save Cursor Position command. Each Restore Cursor Position command must be paired with a preceding Save Cursor Position command. If a Save Cursor Position command has not been previously issued, the cursor position remains unchanged
Select Character Set
ESC[#w
Defines the character set to be used (character sets are defined later in this chapter). The character set to be used is specified by the # parameter.
Restore Configured Character Set
ESC[x
Returns the display to the character set defined during configuration.
Display Overflow The reader can receive more data than it can display at one time. The display overflow is stored in the virtual display image buffer of the reader. This buffer holds up to four rows of the most recently displayed. The reader display is a window or viewport into the virtual display image. The 2-line by 40-character display shows the last two rows by default. The 1-line by 20-character display shows the last row by default. You use the review and forward commands to move the display up or down in the current virtual display image. When you scroll the display up, the cursor is disabled. When you scroll the display back to the default position in the virtual display image, the cursor is restored. Any event that alters the display returns the display to the default position. For example, entered data, accumulated data, or commands (such as Enter, Backspace, Clear, or End Accumulate) automatically return the display to the default position.
5-14
Page 89
Data Communications and Operating Options
5
Use these commands to modify the virtual display: Command
Result
Review
Moves the display up one row in the current virtual display image if a display control sequence was executed.
Forward
Moves the display image down one row in the current virtual display image following a review command.
Backspace
Can cause the default display position to be moved up one row in the current virtual display image if (1) display overflow has occurred since the last erase display control sequence, and (2) the command is executed with the cursor in the first column of the last display row.
Clear
Executes multiple backspaces. Can also cause the default display position to be moved up one or more rows in the current virtual display image.
Displaying ASCII Control Codes The reader uses a center dot to display ASCII control code characters such as CR LF. The center dot is a unique programmed character distinguishable from all other ASCII characters. The reader displays prompting configuration and IRL display control characters as a sequence of characters that can be displayed. Two to five characters can be used to display one control code. For example, the line feed control code could be displayed as <LF> or LF.
Displaying Data on a Terminal When you connect the 9560 to a CRT terminal, you need to set the type of terminal operation. Typically, you set the display to match the reader’s terminal setting. Your choices as are follows: •
Buffered (default)
•
Transparent
•
Nonbuffered, full-duplex
•
Nonbuffered, half-duplex
•
Block
5-15
Page 90
9560 Transaction Manager User’s Manual
This table lists valid reader settings for the terminal and reader. Terminal Screen Formatting
Reader Setting
Protocol Choices
Reader formats terminal screen
Buffered
Point-to-Point User-Defined User-Defined Multi-Drop Polling Mode D Multi-Drop
Host formats terminal screen
Transparent
Point-to-Point User-Defined User-Defined Multi-Drop Polling Mode D Multi-Drop
Host formats terminal screen, and uses full-duplex
Nonbuffered, full-duplex
Point-to-Point User-Defined
Host formats the terminal screen, and uses half-duplex
Nonbuffered, half-duplex
Point-to-Point User-Defined
“Smart” terminal that can buffer several blocks of data
Block operation
Point-to-Point User-Defined
Buffered Terminal Operation In buffered operation, the reader is usually connected to a port concentrator through the modem port and to the terminal through the terminal port. The reader emulates a smart terminal for batching transmissions to the host. The reader buffers data from both the terminal and scanner, and then formats and displays that data on the terminal screen. The reader echoes input from the terminal until you send a command to transmit the data. The reader transmits the data to the host when one of these events occurs: •
The reader receives a Transmit command.
•
The reader scans a regular label.
•
You press Enter from the terminal keyboard.
You can use host control characters to format the terminal screen and display messages from the host. The terminal also displays communication diagnostics.
5-16