The text of a manual · part 7 of 42
Quadrus MINI Velocity User's Manual, pages 61 to 70
Pages 61 to 70 of 419
The original document is the PDF (3.0 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 Microscan MINI VELOCITY
Page 61
Communications
Daisy Chain ID Status Usage: Definition: Serial Cmd: Default: Options:
Used in a daisy chain setup in cases where the host needs to know which reader in the chain sent the data. Each reader in a daisy chain can be assigned a one or two character ID that will appear in front of decoded data and identify its source. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status, daisy chain i.d.> Disabled 0 = Disabled 1 = Enabled
Note: Enable/disable and length must be the same in all readers.
Daisy Chain ID Usage: Definition: Serial Cmd: Default: Options:
Used in a daisy chain setup in cases where the host needs to know which reader in the chain sent the data. A one or two character prefix which identifies the particular daisy chain reader from which the data is being sent to the host. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.> 1/ Any one or two ASCII characters.
Important: The ASCII characters <, >, and , can only be entered as hex pairs: For <: <K101h,,,,,,,3C> For >: <K101h,,,,,,,3E> For , : <K101h,,,,,,,2C> See ASCII Character Entry Modifier on page 3-32 for a detailed explanation of how to enter ASCII characters as hex values.
Quadrus MINI Velocity User’s Manual
3-17
Page 62
Auxiliary Port System Data Status
Auxiliary Port System Data Status Definition:
Serial Cmd: Default: Options:
3-18
When enabled, system data will be routed to the Auxiliary Port. This includes decoded data and diagnostic warning messages. When disabled, system data will not be routed to the Auxiliary Port. <K146,aux port system data status> Disabled 0 = Disabled 1 = Enabled
Quadrus MINI Velocity User’s Manual
Page 63
Communications
Daisy Chain Autoconfigure Usage: Definition:
Serial Cmd:
For quick setup and configuration of your daisy chain network. The command to autoconfigure the daisy chain is sent to the primary imager and the software responds in the following ways: • Counts the number of secondary readers in the daisy chain. • Assigns an internal ID number (1...n) to each secondary reader, where the first secondary reader is number 1 (the primary reader’s ID being a 0). • Propagates the communications settings and the relevant operating modes of the primary imager to the host and auxiliary ports of each secondary reader. • Resets each secondary reader. • Confirms that each secondary reader has acquired the new settings. <K150DAISY>
Note: All secondary readers must be set to Serial for Daisy Chain to function. When setting up a daisy chain operation, perform the following steps: 1. Set the primary imager (the one connected to the host) to Serial. This sets all the imagers in the chain to Serial when the command is executed. Before Autoconfigure you must set the primary imager to Serial (S): Host
S
Primary Imager
S
Secondary Imager
S
Secondary Imager
2. Send <K150DAISY>. 3. If necessary, set the primary imager to Edge. After Autoconfigure you may set the primary imager to Edge (S), but the other imagers must remain in Serial (S): Host
E
Primary Imager
Quadrus MINI Velocity User’s Manual
S
Secondary Imager
S
Secondary Imager
3-19
Page 64
Response Timeout
Response Timeout Usage:
Definition: Serial Cmd: Default: Options:
Only used when a response is required from the host. While in Multidrop, if the imager does not receive an ACK or NAK from the host after sending polled data, it will act on a fault. The reader can be set to wait indefinitely by setting Response Timeout to zero. The time that the imager will wait before timing out if ACK, NAK, and ETX are enabled, and a host response is expected. <K143,response timeout> 12 (in 1ms increments) 0 to 255 (A zero (0) setting causes an indefinite wait.)
Note: See USB HID Interface on page 3-23 for protocol information relating to USB.
3-20
Quadrus MINI Velocity User’s Manual
Page 65
Communications
LRC Status (Longitudinal Redundancy Check) Usage: Definition:
Serial Cmd: Default: Options:
Used when extra data integrity is required. An error-checking routine that verifies the accuracy of transmissions. It is the exclusive OR of all characters following the STX (start of text) up to and including the ETX (end of text). What this means is that the binary representation of all the characters in a transmission are cumulatively added in a column and each resulting odd integer is assigned a 1 and each even integer a 0 (two 1s = 0, two 0s = 0, a 1 and a 0 = 1). The extra LRC character is then appended to the transmission, and the receiver (usually the host) performs the same addition and compares the results. <K145,status> Disabled 0 = Disabled 1 = Enabled
Quadrus MINI Velocity User’s Manual
3-21
Page 66
Protocol Configuration Examples
Protocol Configuration Examples Point-to-Point (Main Port) <K100,8,0,1,1> <K140,0> <K102,0>
Baud Rate: 115.2K; Parity: None; Stop Bits: 2; Data Bits: 8 Point-to-Point RS-232 enabled; <K102,1> = RS-422 enabled
Polling Mode (Main Port) <K100,4,0,1,1> <K140,5,23> <K102,0> <K143,30>
Baud Rate: 9600; Parity: None; Stop Bits: 2; Data Bits: 8 Polling Mode; Address: 23 RS-232 Point-to-Point polling; <K102,1> = RS-422/RS-485 true multidrop (switched transmitter) 30 ms Response Timeout
“User-Defined” Polling Mode (Main Port) <K100,4,0,1,1> Baud Rate: 9600; Parity: None; Stop Bits: 2; Data Bits: 8 <K140,5,12> Polling Mode; Address: 12 <K148,,08,09,18,0B,0C,0D> Default RES (0x04), REQ=0x08; EOT=0x09; STX=0x18; ETX=0x0B; ACK=0x0C; NAK=0x0D <K102,0> RS-232 Point-to-Point polling; <K102,1> = RS-485 (true multidrop with switched transmitter) <K143,40> 40 ms Response Timeout
ACK/NAK (Main Port) <K100,9,0,1,1> <K140,4> <K147,,,01,1B,2E,1F> <K102,1> <K143,50>
Baud Rate: 230K; Parity: None; Stop Bits: 2; Data Bits: 8 ACK/NAK Default RES and REQ (00, disabled); STX=0x01; ETX=0x1B; ACK=0x2E; NAK=0x1F RS-422 enabled; <K102,0> = RS-232 enabled 50 ms Response Timeout
Auxiliary Port Listed below are several examples of Auxiliary Port commands. <K101,2,4,0,1,1> <K101,1,5,0,1,1> <K101,3,7,0,1,1> <K101,5,6,0,1,1>
3-22
Half Duplex; Baud Rate: 9600; Parity: None; Stop Bits: 2; Data Bits: 8 Transparent; Baud Rate: 19.2K; Parity: None; Stop Bits: 2; Data Bits: 8 Full Duplex; Baud Rate: 57.6K; Parity: None; Stop Bits: 2; Data Bits: 8 Command Processing; Baud Rate: 230K; Parity: None; Stop Bits: 2; Data Bits: 8 Quadrus MINI Velocity User’s Manual
Page 67
Communications
USB HID Interface The USB version of the Quadrus MINI Velocity operates as an HID (Human Interface Device) on the USB bus. HID-class devices communicate via “report” packets. An HID may support multiple report types, each of which is identified with a unique report ID. The Quadrus MINI Velocity supports two different report types: • Microscan HID Report (ID = 1) • Keyboard Report (ID = 2) The imager always outputs the same data for both report types. The user may enable or disable either report type. Regardless of the report type used by the host application, the application protocol via USB is identical to RS-232/RS-422 ports. HID Reports are used as a channel for standard Microscan imager communication, command input, and symbol data output. Important: No matter how the imager is configured, it is always able to receive and respond to commands from the host application using Microscan HID Reports.
Quadrus MINI Velocity User’s Manual
3-23
Page 68
USB HID Interface
Report Options The following functionality conditions hold true regardless of how HID Reports are configured: 1. The host application must establish a connection with the imager to receive Microscan HID IN Reports (symbol data) and to send Microscan HID OUT Reports (commands, serial triggers). 2. The imager can always receive Microscan HID OUT Reports (commands, serial triggers). 3. The host application can always send commands through Microscan HID OUT Reports. If the command requires a response (a part number, for example), the imager will always send the response through Microscan HID IN Reports. 4. The imager always ignores Keyboard OUT Reports sent by the host operating system. 5. The content of both the Keyboard Reports and Microscan HID IN Reports is identical, except for Keyboard Reports non-printable data limitations.
Microscan HID IN Reports HID Reports are used as a channel for standard Microscan imager communication, command input, and symbol data output. There are two types of Microscan HID Reports: Report Type Microscan HID IN (imager to host) Microscan HID OUT (host to imager)
Data Content Symbol data; No Reads; Service messages Commands; serial triggers
Note: The imager is always able to receive commands and serial triggers from the host through Microscan HID OUT Reports, regardless of the Microscan HID IN Report status. If the imager receives a command that requests a response, such as a part number query, the imager will send a Microscan HID IN Report regardless of the IN Report status. Serial Cmd: Default: Options:
<K149,Microscan HID IN Report status,Keyboard IN Report status> 1 0 = Disabled 1 = Enabled
Microscan HID IN Reports Enabled When this feature is enabled, the imager will send Microscan HID IN Reports to the host, containing data originated by the imager.
Microscan HID IN Reports Disabled When this feature is disabled, the imager will not send Microscan HID IN Reports to the host, containing data originated by the imager.
3-24
Quadrus MINI Velocity User’s Manual
Page 69
Communications
Keyboard IN Reports The host operating system will interpret Keyboard IN Reports from the imager as if the user were typing keyboard text. The host operating system sends keystrokes to the current application. This is commonly called a Keyboard Wedge configuration. There is one type of Keyboard Report used: Report Type Keyboard IN (imager to host)
Data Content Symbol data; No Reads; Service messages
Note: If Keyboard IN Reports is enabled, and Microscan HID IN Reports is disabled, the read cycle must be Continuous Read 1 Output, because there will be no External Trigger or Serial Trigger. It is not possible to send commands to the imager as Keyboard OUT Reports. To send commands to the imager via USB, the host application must establish a connection with the imager and send Microscan HID OUT Reports. Serial Cmd: Default: Options:
<K149,Microscan HID IN Report status,Keyboard IN Report status> 0 0 = Disabled 1 = Enabled
Keyboard IN Reports Enabled When this feature is enabled, the imager will send Keyboard IN Reports to the host, containing data originated by the imager.
Keyboard IN Reports Disabled When this feature is disabled, the imager will not send Keyboard IN Reports to the host, containing data originated by the imager.
Quadrus MINI Velocity User’s Manual
3-25
Page 70
USB HID Interface
Microscan HID Report Format Size: 64 bytes, fixed-length. The USB HID standard defines all reports as being fixed-length. Structure: REPORT ID (1) LENGTH (1) DATA (62) Values in parentheses indicate the size, in bytes, of the field.
Field Descriptions REPORT ID Size: 1 byte Value: 0x01 Note: Report ID is the method employed by USB HID to allow multiple report formats to be sent and received from the same interface. LENGTH Size: 1 byte Value: 0-62 Note: Length indicates the number of valid data bytes in the fixed-length data field. This is necessary because the USB HID standards define HID Reports as fixed-length, yet the imager or host may require a smaller data size in any given report. DATA Size: 62 bytes, fixed-length Value: 0x00 to 0xFF Note: The Data field is left-justified, meaning it begins immediately after the Length field. All unused data space is NUL (00 in hex) padded. Data values can be “binary”, meaning that they span the entire 8 bit range of 0x00 to 0xFF.
3-26
Quadrus MINI Velocity User’s Manual