Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 8 of 37

MS-4 Imager User Manual, pages 71 to 80

Pages 71 to 80 of 366

The original document is the PDF (4.2 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 MS-4

Page 71

Communications

Report Format Examples For clarity, all report format examples are shown as follows: report fields separated by an underscore ( _ ), REPORT ID and LENGTH fields shown as decimal values, data fields shown as printable ASCII characters, and the number of NUL padding bytes shown as decimal values (nn). IN report (to host) 1_11_A]002374938 (51) REPORT ID = 1 = Microscan HID LENGTH = 11 DATA = ”A]02374938” = This is a Code 39 symbol. NUL padding = 51 bytes OUT report (from host to Imager) 1_27_<K200,3><K220,0,300><K714?> (35) REPORT ID = 1 = Microscan HID LENGTH = 27 DATA = “<K200,3><K220,0,300><K714?>” = These commands enable External Edge, set a 3 second timeout, and request the No Read configuration command. NUL padding = 35 bytes IN report (to host) 1_62_<K714,1, A LONG MESSAGE STREAMED OVER MULTIPLE MICROSCAN HID RE (0) REPORT ID = 1 = Microscan HID LENGTH = 62 DATA = “<K714,1, A LONG MESSAGE STREAMED OVER MULTIPLE MICROSCAN HID RE” = This shows the response to the <714?> command. Note that the command status response is not yet complete. See the next report example for the complete response. NUL padding = 0 bytes IN report (to host) 1_6_PORTS>(56) REPORT ID = 1 = Microscan HID LENGTH = 6 DATA = “PORTS>” = This is the end of the response to the <K714?> command from the previous example. The entire <K714> command response is as follows: DATA = “K714,1, A LONG MESSAGE STREAMED OVER MULTIPLE MICROSCAN HID REPORTS>” . NUL padding = 56 bytes

MS-4 Imager User Manual

3-27

Page 72

USB HID Interface

Keyboard Report Format

Size: 9 bytes, fixed-length. Structure: REPORT ID (1) MODIFIER (1) RESERVED (1) KEYCODES (6) Values in parentheses indicate the size, in bytes, of the field. Important: The host application does not need to understand and process Keyboard Reports. This task belongs to the host operating system. Keycodes are passed to the host application as if a user were typing keyboard text. The host application must be the active application in order to receive keystrokes. Keyboard Reports protocol requires that two reports be sent for every keystroke. The first report indicates which key is pressed. The second report indicates “no key pressed”, with all keycodes NUL (0x00) to indicate that all keys have been released. In the case of the MS-4 Imager, each byte output is equivalent to a keystroke, with a “key pressed” report and a “no key pressed” report. For this reason, data rates are much slower when using Keyboard Reports.

Field Descriptions REPORT ID Size: 1 byte Value: 0x02 Note: Report ID is the method employed by USB HID to allow multiple report formats to be sent and received from the same interface. MODIFIER Size: 1 byte Value: 0x00 to 0xFF Note: Modifier is an 8 bit field, corresponding to the state of the modifier keys at the time the keycode field was generated. Bit

Key

0

LEFT CTRL

1

LEFT SHIFT

2

LEFT ALT

3

LEFT GUI

4

RIGHT CTRL

5

RIGHT SHIFT

6

RIGHT ALT

7

RIGHT GUI

3-28

MS-4 Imager User Manual

Page 73

Communications

Field Descriptions RESERVED Size: 1 byte Value: 0x00 Note: This field is Reserved. Its value is always NUL (0x00). KEYCODES Size: 6 bytes Value: 0x00 to 0xFF Note: The MS-4 Imager translates 8 bit data values into Keycode data in the following ways: 8 Bit Data Value

Keycode Data

0x00 to 0x1F and 0x7F to 0xFF

Decimal key ( . ) unless otherwise noted.

CR, 0x0D

Enter key

TAB, 0x09

Tab key

ESC, 0x1B

ESC key

“Printable” characters, 0x20 to 0x7E

These all translate to the keystrokes that produce them. This includes a-z, 0-9, punctuation, and SHIFT in the Modifier field, when necessary. Only the first Keycode in the 6 byte array will be populated.

MS-4 Imager User Manual

3-29

Page 74

USB HID Interface

USB HID Configuration Options The user has the following options for configuring and defaulting a USB version of the MS-4:

Configuration Symbols (Data Matrix with “Configure Reader” Flag) Symbol configuration can be performed “out-of-the-box”, as the MS-4 is configured for Continuous Read Mode, and Data Matrix is enabled by default. Data Matrix symbols are used to encode configuration commands when the symbology’s “configure reader” flag is set. If the read cycle is changed, or if Data Matrix is disabled, another configuration/default method must be used. This is because the USB MS-4 has no external trigger, unless the user has configured the EZ button as a trigger.

EZ Button Configuration

By default, basic calibration can be initiated from the EZ button (3 beeps). Note that this only changes the camera, image processing, and symbology settings of the Imager. To default the USB MS-4, hold down the EZ button during power-on. Note: This only overwrites Power-On settings with Custom Default settings, as when the <Zrc> command is received. It does not overwrite Power-On settings with Factory Defaults, as when the <Zrd> command is received. If Custom Defaults are misconfigured, another method must be used to default the Imager.

Implementing the Host Operating System API and Establishing a Connection with the Microscan HID Interface When a connection is made, the host can send serial configuration/default commands. The Imager will always be able to receive configuration commands from the host application and send responses to those commands. However, the Imager can be configured to stop producing IN Reports to the host from symbol data output and diagnostics (service messages).

3-30

MS-4 Imager User Manual

Page 75

Communications

Configuration Exceptions for USB Read Cycle Mode By default, the Imager operates in Continuous Read Mode. If the Imager is configured using Data Matrix symbols, the read cycle mode should be the last item changed before saving the configuration settings and beginning operation. This is because all read cycle modes other than Continuous Read Mode require a trigger event. In USB, a trigger event can only be initiated by serial command. To send a trigger command the Imager, the host application must establish a connection with the Imager’s Microscan HID interface and send the trigger command in a Microscan HID Report.

The following read cycle conditions are required for USB MS-4: Serial Cmd: Default: Options:

<K200,read mode> Continuous 0 = Continuous Mode 1 = Coninuous Read 1 Output Mode 2 = Level Mode 3 = Edge Mode 4 = Serial Mode 5 = Serial and Edge Mode

Important: • To use Level Mode, you must enable Undelimited Start Trigger Character <K229> and Undelimited End Trigger Character <K230>. • To use Edge Mode, you must enable and use the Undelimited Start Trigger Character <K229>. • To use Serial Mode, you must use the Delimited Trigger defined by <K201>, or enable and use the Undelimited Start Trigger Character <K229>. • To use Serial and Edge Mode, you must use the Delimited Trigger defined by <K201>, or enable and use the Undelimited Start Trigger Character <K229>.

Communications For the USB version of MS-4, no communications serial commands have any effect on the Imager except the following: • USB HID Report Status <K149> • Preamble <K141> • Postamble <K142>

EZ Button Default on power-on cannot be disabled <K770,,default> = <K770,,1>. This ensures a level of safety for recovering from misconfigured Power-On settings <Z>. However, it is not foolproof, as defaulting with the EZ button only recovers Custom Default settings, which can be misconfigured themselves. For this reason, do not save to Custom Default settings <Zc> until the Imager’s configuration has been tested.

Symbologies If the Imager is going to be configured with Data Matrix symbols, do not disable Data Matrix <K479>. Disabling Data Matrix will prevent the Imager from reading configuration symbols. MS-4 Imager User Manual

3-31

Page 76

ASCII Character Entry Modifier

ASCII Character Entry Modifier Commands that require ASCII text fields, such as Preamble and Postamble commands, can be sent to the Imager as hex value pairs (see Appendix E, ASCII Table, for conversions). Serial Cmd Format: <Knnnh,00-FF> To enter ASCII fields as hex values (00 to FF), add a lower-case h directly after the command’s K number, and then enter the hex value that corresponds with the desired ASCII character. Example: Consider the Postamble command: Serial Cmd:

<K142,status,postamble character(s)>

Imagine that your application requires the ASCII character > to be the postamble in your symbol decode output. The ASCII characters <, >, and , can only be entered as hex pairs. So, to make > the postamble in your symbol decode output, enter the Postamble command as follows: <K142h,,3E> Note that the “status” field contains only a , . This is because the only field that is being changed is the “postamble character(s)” field. (See Serial Configuration Command Conventions on page A-10 for a more detailed explanation of this command shortcut.)

3-32

MS-4 Imager User Manual

Page 77

Communications

Preamble Preamble Status Usage: Definition: Serial Cmd: Default: Options:

Useful for identifying and controlling incoming data. For example, defining the preamble as a carriage return and a line feed causes each decoded message to be displayed on its own line. Defines a one to four character data string that can be added to the front of the decoded data. <K141,status,preamble character(s)> Disabled 0 = Disabled 1 = Enabled (within any protocol)

Preamble Characters Serial Cmd: Default: Options:

<K141,status,preamble character(s)> ^M corresponds to: carriage return. To enter control characters within a serial command, hold down the Ctrl key while typing the desired character. Example: <K141,1,CNTL-m> to enter the control character ^M.

Important: The ASCII characters <, >, and , can only be entered as hex pairs: For <: <K141h,,3C> For >: <K141h,,3E> For , : <K141h,,2C> See ASCII Character Entry Modifier on page 3-32 for a detailed explanation of how to enter ASCII characters as hex values.

MS-4 Imager User Manual

3-33

Page 78

Postamble

Postamble Postamble Status Usage: Definition: Serial Cmd: Default: Options:

Useful for identifying and controlling incoming data. For example, defining the postamble as a carriage return and a line feed causes each decoded message to be displayed on its own line. Allows the user to enable or disable up to four postamble characters that can be added to the end of the decoded data. <K142,status,postamble character(s)> Enabled 0 = Disabled 1 = Enabled (within any protocol)

Postamble Characters Serial Cmd: Default: Options:

<K142,status,postamble character(s)> ^M^J corresponds to carriage return/line feed. To enter control characters within a serial command, hold down the control key while typing the desired character. Example: <K142,1,CNTL-m CNTL-j> to enter ^M^J.

Important: The ASCII characters <, >, and , can only be entered as hex pairs: For <: <K142h,,3C> For >: <K142h,,3E> For , : <K142h,,2C> See ASCII Character Entry Modifier on page 3-32 for a detailed explanation of how to enter ASCII characters as hex values.

3-34

MS-4 Imager User Manual

Page 79

4 Calibration Contents Calibration Serial Commands ....................................................................................................... 4-2 Calibration Overview..................................................................................................................... 4-2 Calibration Options ....................................................................................................................... 4-3 Calibration by ESP...................................................................................................................... 4-10 Initiating Calibration .................................................................................................................... 4-12 Additional Notes about Calibration.............................................................................................. 4-17

This section shows the MS-4 Imager’s calibration options and their default settings.

MS-4 Imager User Manual

4-1

Page 80

Calibration Serial Commands

Calibration Serial Commands Calibration Options Autocalibrate

<K529,gain,shutter speed,symbol type,WOI framing,WOI margin,line scan height,processing> <@CAL>

Calibration Overview Autocalibration is one of the most powerful features of the MS-4 Imager. The calibration process can be initiated by serial command, EZ button, or ESP user interface. When the Imager enters calibration, it runs through an optimization cycle that sets the ideal parameters for reading symbols at the highest possible level of performance. Autocalibration can be specially configured to optimize specific parameters, such as gain, shutter speed, and symbol type. The calibration process consists of a search pass, medium pass, and fine-tune pass. During this process the Imager quickly locates configuration setup, defines a calibration range for the configuration parameters, and then tunes those parameters for optimal performance.

4-2

MS-4 Imager User Manual