The text of a manual · part 6 of 43
Quadrus MINI Imager User's Manual, pages 51 to 60
Pages 51 to 60 of 424
The original document is the PDF (3.7 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.
Filed in the catalog under the Microscan MINI 3
Page 51
Communications
ACK/NAK Options Definition:
Serial Cmd:
These parameters take effect for ACK/NAK <K140,4> on the main RS-232 or RS-422 ports (not on the Auxiliary Port), and are completely independent of the Polling Mode Options <K148>. The imager always follows the protocol in both directions (to and from the host). There is no option to disable it from either direction. <K147,RES,REQ,STX,ETX,ACK,NAK>
RES-NAK Defaults RES: (Reset) REQ: (Request) STX: (Start of Text) ETX: (End of Text) ACK: (Acknowledge) NAK: (Negative Acknowledge)
00 (disabled) 00 (disabled) 00 (disabled) 00 (disabled) 06 15
The following are general outlines of the ACK/NAK protocol. Items that are framed by brackets ( [ ] ) can either be disabled or enabled. LRC does not include STX, but it does include preamble, postamble, and ETX.
Symbol Data Output TX to host: [STX] [preamble] SYMBOL DATA [postamble] [ETX] [LRC] Response from host: ACK/NAK. Sent when LRC, ETX, postamble, or timeout (waiting for more data) are detected (if REQ is disabled) depending on what is enabled.
Commands from Host to Imager TX to Imager: [STX] <command> [ETX] [LRC] Response from Imager: ACK/NAK. Sent when LRC, ETX, or command-ending angle bracket ‘>’ are received, depending on what is enabled.
Command Response from Imager to Host TX to host: [STX] [preamble] COMMAND RESPONSE DATA [postamble] [ETX] [LRC] Response from host: ACK/NAK. Sent when LRC, ETX, postamble, command-ending angle bracket ‘>’, or timeout (waiting for more data) are detected, depending on what is enabled. As with Polling Mode <K140,5>, the imager can optionally perform the REQ and RES event sequences in ACK/NAK mode. If the sender does not receive an ACK or NAK, it will send REQ to request such a response (if enabled). When the sender receives an ACK, too many NAKs, or times out (if already enabled), it will send a RES (if enabled) to terminate the transaction. Note: See ACK/NAK Data Flow Examples in Appendix E for sample ACK/NAK communication scenarios. Note: See USB HID Interface on page 3-23 for protocol information relating to USB. Quadrus MINI Imager User’s Manual
3-7
Page 52
Polling Mode Options
Polling Mode Options Definition:
Serial Cmd:
These parameters only take effect for Polling Mode <K140,5> on the main RS-232 or RS-422 ports (not on the Auxiliary Port), and are completely independent of the ACK/NAK Options <K147>. The values of protocol characters can be changed, but the protocol events cannot be disabled. The polling mode address is configured in the <K140> command (see Poll Address on page 3-6). To enable true multidrop protocol, the RS422/485 port must be enabled, <K102,1>, in order to turn the transmitter on and off. If RS-232 is enabled instead of RS422/485, <K102,0>, then Polling Mode will operate as a Point-to-Point polling protocol. This is because the RS-232 transmitter is always left on when enabled. <K148,RES,REQ,STX,ETX,ACK,NAK>
RES-NAK Defaults RES: (Reset) REQ: (Request) STX: (Start of Text) ETX: (End of Text) ACK: (Acknowledge) NAK: (Negative Acknowledge)
04 05 02 03 06 15
Note: See Polling Mode Data Flow Examples in Appendix E for sample Polling Mode communication scenarios. Note: See USB HID Interface on page 3-23 for protocol information relating to USB.
3-8
Quadrus MINI Imager User’s Manual
Page 53
Communications
RS-422 Status Usage: Definition:
Serial Cmd: Default: Options:
RS-232 is an industry standard. RS-422 is used when greater cable lengths are required and/or where noise interference is an issue. RS-422, if enabled, allows communication through RS-422 I/O lines. When RS-422 is enabled, RS-232 is disabled. When RS-422 is disabled, RS-232 is enabled. <K102,status> Disabled 0 = Disabled 1 = Enabled
Note: The default setting can only be changed in readers with multiplexed RS-232/RS-422 ports. It is forced to 1 (enabled) in readers with “dedicated” RS-422 ports.
Quadrus MINI Imager User’s Manual
3-9
Page 54
Auxiliary Port Connections
Auxiliary Port Connections The auxiliary port offers an alternative port that can be configured to communicate by RS-232 in several modes, including daisy chain. As with the host port parameters, the auxiliary port settings (baud rate, parity, stop bits, and data bits) must be identical with those of the auxiliary device. Usage: Definition:
An auxiliary port connects the imager to a remote display or to other readers that can display or transfer data. These commands set the communication parameters with the auxiliary port, which can be used to configure menus, send data to the host, display data transmissions originating from the host, and relay data from other imagers set in tandem (daisy chained).
Auxiliary Port Mode Usage: Definition: Serial Cmd: Default: Options:
Can be used to transfer data faster or to match an auxiliary device. Determines the flow of data between the auxiliary port device(s), the imager, and the host.. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status, daisy chain i.d.> Disabled 0 = Disabled 1 = Transparent 2 = Half duplex 5 = Command Processing 3 = Full duplex 4 = Daisy chain
Baud Rate, Auxiliary Port Usage: Definition: Serial Cmd: Default: Options:
3-10
Can be used to transfer data faster or to match an auxiliary device. The rate at which the imager and host transfer data back and forth. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> 115.2K 0 = 600 1 = 1200 2 = 2400 3 = 4800 4 = 9600 5 = 19.2K 6 = 38.4K 7 = 57.6K 8 = 115.2K 9 = 230K
Quadrus MINI Imager User’s Manual
Page 55
Communications
Parity, Auxiliary Port Usage: Definition: Serial Cmd: Default: Options:
Only changed if necessary to match host setting. An error detection routine in which one data bit in each character is set to 1 or 0 so that the total number of 1 bits in the data field is even or odd. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> None 0 = None 1 = Even 2 = Odd
Stop Bits, Auxiliary Port Usage: Definition: Serial Cmd: Default: Options:
Only changed if necessary to match host setting. Allows the user to select the last one or two bits in each character to indicate the end of the character. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> One 0 = One 1 = Two
Data Bits, Auxiliary Port Usage: Definition: Serial Cmd: Default: Options:
Only changed if necessary to match host setting. Number of bits in each character. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> Eight 0 = Seven 1 = Eight
Quadrus MINI Imager User’s Manual
3-11
Page 56
Auxiliary Port Connections
Transparent Mode Usage: Definition:
A common application, in conjunction with handheld imagers, is one that employs an auxiliary readout to detect misapplied symbols. In Transparent Mode, data is passed between the auxiliary port and the host. The imager buffers data from the auxiliary port and echoes the keyed data on the auxiliary port. • Auxiliary port data is passed through to the host whenever a return key is pressed at the auxiliary port or whenever symbol data is sent. If sent with symbol data, it is processed on a first-in/first-out basis. • Auxiliary port data to the host is always sent with a preamble and postamble. • If the imager is in a polling mode with the host, auxiliary port data will still pass through.
Aux. Port
Host
Imager
Data Originating from the Imager • Transmission to the auxiliary port occurs immediately upon a good read. • Data sent to the auxiliary port does not include a preamble or a postamble. • Communications with the auxiliary port is always in Point-to-Point protocol, even if the host is in a polled protocol mode.
Aux. Port
Host
Imager
Data Originating from the Host • All host data is echoed to the auxiliary port in unpolled mode.
Aux. Port
Host
Imager
Serial Cmd: Options:
3-12
<K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> 1 = Transparent
Quadrus MINI Imager User’s Manual
Page 57
Communications
Half Duplex Mode Usage: Definition:
Useful when the user wants symbol data displayed on an auxiliary menu close to the imager. In Half Duplex Mode all auxiliary port data and symbol data is sent directly to the host. Symbol data is displayed on the auxiliary port menu at the same time the data is sent to the host.
Data Originating from the Auxiliary Port • Auxiliary port data to the host is ignored if the imager is in a polled mode. • Auxiliary port data or read data is sent to the host whenever it is received. • Auxiliary port data is not echoed. • Auxiliary port data to the host is always sent without a preamble or postamble.
Aux. Port
Host
Imager
Data Originating from the Imager • Data is transmitted to the auxiliary port at the same time it is transmitted to the host. • Data transmission conforms with all parameters specified in the configuration menu (e.g. Preamble, Postamble, End of Read Cycle).
Aux. Port
Host
Imager
Data Originating from the Host • All host data is echoed to the auxiliary port in unpolled mode.
Aux. Port
Host
Imager
Serial Cmd. Options:
<K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> 2 = Half Duplex
Quadrus MINI Imager User’s Manual
3-13
Page 58
Auxiliary Port Connections
Full Duplex Mode Usage: Definition:
When communication to and from the auxiliary port is required. In Full Duplex Mode all auxiliary port data and symbol data is sent directly to the host. Symbol data is not displayed on the auxiliary port menu.
Data Originating from the Auxiliary Port • Auxiliary port data to the host is ignored if the imager is in a polled mode. • Auxiliary port data or read data is sent to the host whenever it is received. • Auxiliary port data is not echoed. • Auxiliary port data to the host is always sent without a preamble or postamble.
Aux. Port
Host
Imager
Data Originating from the Imager • Data is not sent to the auxiliary port. Aux. Port
Host
Imager
Data Originating from the Host • All host data is echoed to the auxiliary port in unpolled mode.
Aux. Port
Host
Imager
Serial Cmd: Options:
3-14
<K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> 3 = Full Duplex
Quadrus MINI Imager User’s Manual
Page 59
Communications
Daisy Chain Mode Usage:
Definition:
Serial Cmd: Options: Function:
Useful in applications where: • More than one symbol type is present. • A symbol may be present on multiple sides of a package. • Symbols are presented at different depths. In a daisy chain application, readers are connected in tandem or a “daisy chain” and decoded data is relayed from one reader to another until the data reaches the host. A primary reader has its host port linked to the host computer and its auxiliary port linked to the host port of the first secondary reader in the chain. Thereafter, each secondary reader’s auxiliary port is linked to the host port of the secondary reader that is farther from the host in the daisy chain. Each reader in the chain can be assigned an ID that accompanies any data that it sends. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> 4 = Daisy Chain Before the primary reader times out, it checks its auxiliary port for data. It should be set to wait at least 30 ms for each secondary reader in the daisy chain. If no data is received within the read cycle timeout, the primary reader sends a No Read message to the host. Otherwise the complete data is sent. If, for example, the primary reader is set to timeout in 120 ms, the first secondary reader reader downstream might be set to 90 ms, the next to 30 ms, and so forth, thus assuring that at least 30 ms elapses between transmissions.a Daisy-chained readers can send a series of symbols by enabling Multisymbol and a common multisymbol separator. If the primary reader does not receive the expected number of symbols, No Read messages are appended to the data string to make up the difference between the number of symbols enabled in Multisymbol and the number of symbols read. For example, a primary and two secondary readers have Number of Symbols set to 3 and Multisymbol Separator defined as %. If the primary and the first secondary reader do not find symbols, but the next secondary reader registers a good read, the transmitted results would be: symbol data % No Read % No Read a. The above example assumes a best-case scenario. Other factors, such as baud rate, dynamic focus timing, number of characters in a given symbol, and the number of secondary readers in the daisy chain can affect timing and may need to be included in your calculations for complete accuracy.
Quadrus MINI Imager User’s Manual
3-15
Page 60
Auxiliary Port Connections
Command Processing Mode Usage: Definition:
Serial Cmd: Options:
3-16
Allows a user to send configuration settings from the host port to the auxiliary port. When enabled, Command Processing Mode allows commands to be entered via the auxiliary port and direct externally triggered read cycle data in one of two ways: • Symbol data, including the serial trigger (if used), will be transmitted to the last port from which a command was sent. • If the last command came from the host port, then externally triggered read cycle data will only be output to the host port. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> 5 = Command Processing
Quadrus MINI Imager User’s Manual