The text of a manual · part 17 of 48
DS2208 Digital Scanner Product Reference Guide: Chapter 8 SSI Interface, pages 121 to 128
Pages 121 to 128 of 404, from DS2208 Digital Scanner Product Reference Guide
The original document is the PDF (12 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 Zebra DS2208
Page 121
SSI Interface 8 - 9
Example Transaction The following example illustrates how to retrieve diagnostic information (Diagnostic Testing and Reporting (Attribute #10061) decimal) from the scanner using encapsulation of RSM commands over SSI. Before sending an RSM command, the host must send the RSM Get Packet Size command to query the packet size supported by the device.
Command from Host to Query Packet Size Supported by Device 0A 80 04 00 00 06 20 00 FF FF FD 4E Where: • 0A 80 04 00 is encapsulation of RSM commands over SSI command header • 00 06 20 00 FF FF is RSM Get Packet Size command • FD 4E is SSI command checksum
Response from Device with Packet Size Information 0C 80 00 00 00 08 20 00 00 F0 00 F0 FD 6C Where: • 0C 80 00 00 is encapsulation of RSM command over SSI command header • 00 08 20 00 00 F0 00 F0 is RSM Get Packet Size response • FD 6C is SSI response checksum
Command from Host to Retrieve Diagnostic Information 0C 80 04 00 00 08 02 00 27 4D 42 00 FE B0 Where: • 0C 80 04 00 is encapsulation of RSM commands over SSI command header • 00 08 02 00 27 4D 42 00 is attribute Get command requesting attribute 10061 decimal • FE B0 is SSI command checksum
Response from Device with Diagnostic Information 21 80 00 00 00 1D 02 00 27 4D 41 01 42 00 0E 00 00 00 00 01 03 02 03 03 03 04 03 05 03 06 03 FF FF FC 15 Where: • 21 80 00 00 00 1D 02 00 27 4D 41 01 42 00 0E 00 00 is encapsulation of RSM responses over SSI command header • 00 00 01 03 02 03 03 03 04 03 05 03 06 03 is attribute Get response which includes diagnostic report value • FF FF is attribute Get response, packet termination • FC 15 is SSI response checksum
Page 122
8 - 10 DS2208 Digital Scanner Product Reference Guide
Setting Parameters This section describes how to set up the scanner with an SSI host. When using SSI, program the scanner via bar code menu or SSI hosts commands. The scanner ships with the settings shown in Table 8-3 on page 8-11 (also see Appendix A, Standard Default Parameters for all defaults). If the default values suit requirements, programming is not necessary. To set feature values, scan a single bar code or a short bar code sequence. The settings are stored in non-volatile memory and are preserved even when the scanner powers down. NOTE Most computer monitors allow scanning bar codes directly on the screen. When scanning from the screen, be sure to set the document magnification to a level where you can see the bar code clearly, and bars and/or spaces do not merge.
To return all features to default values, scan Set Factory Defaults on page 5-5. Throughout the programming bar code menus, asterisks (*) indicate default values.
* Indicates default
*Enable Parameter (1)
Feature/option Option value
Scanning Sequence Examples In most cases scanning one bar code sets the parameter value. For example, to set the baud rate to 19,200, scan the Baud Rate 19,200 bar code under Baud Rate on page 8-12. The scanner issues a fast warble beep and the LED turns green, signifying a successful parameter entry. Other parameters require scanning several bar codes. See the parameter descriptions for this procedure.
Errors While Scanning Unless otherwise specified, to correct an error during a scanning sequence, just re-scan the correct parameter.
Page 123
SSI Interface 8 - 11
Simple Serial Interface Parameter Defaults Table 8-1 lists defaults for SSI host parameters. Change these values in one of two ways: • Scan the appropriate bar codes in this chapter. The new value replaces the standard default value in memory. To recall default parameter values, see Default Parameters on page 5-5. • Download data through the device’s serial port using SSI. Hexadecimal parameter numbers appear in this chapter below the parameter title, and option values appear in parenthesis beneath the accompanying bar codes. Refer to the Simple Serial Interface (SSI) Programmer’s Guide for detailed instructions for changing parameters using this method. NOTE See Appendix A, Standard Default Parameters for all user preference, host, symbology, and miscellaneous default parameters.
Table 8-3
SSI Interface Default Table Parameter
Parameter Number
SSI Number
Default
Page Number
SSI Host Parameters Select SSI Host
N/A
N/A
N/A
8-12
Baud Rate
156
9Ch
9600
8-12
Parity
158
9Eh
None
8-14
Check Parity
151
97h
Disable
8-15
Stop Bits
157
9Dh
1
8-15
Software Handshaking
159
9Fh
ACK/NAK
8-16
Host RTS Line State
154
9Ah
Low
8-17
Decode Data Packet Format
238
EEh
Send Raw Decode Data
8-17
Host Serial Response Timeout
155
9Bh
2 Seconds
8-18
Host Character Timeout
239
EFh
200 msec
8-19
Multipacket Option
334
F0h 4Eh
Option 1
8-20
Interpacket Delay
335
F0h 4Fh
0 msec
8-21
Decode Event
256
F0h 00h
Disable
8-22
Boot Up Event
258
F0h 02h
Disable
8-23
Parameter Event
259
F0h 03h
Disable
8-23
Event Reporting
NOTE SSI interprets Prefix, Suffix1, and Suffix2 values listed in Table I-1 on page I-1 differently than other interfaces. SSI does not recognize key categories, only the 3-digit decimal value. The default value of 7013 is interpreted as CR only.
Page 124
8 - 12 DS2208 Digital Scanner Product Reference Guide
SSI Host Parameters Select SSI Host To select SSI as the host interface, scan the following bar code.
SSI Host
Baud Rate Parameter # 156 SSI # 9Ch Baud rate is the number of bits of data transmitted per second. Scan one of the following bar codes to set the scanner's baud rate to match the baud rate setting of the host device. Otherwise, data may not reach the host device or may reach it in distorted form.
*Baud Rate 9600 (6)
Baud Rate 19,200 (7)
Baud Rate 38,400 (8)
Baud Rate 57,600 (10)
Page 125
SSI Interface 8 - 13
Baud Rate (continued)
Baud Rate 115,200 (11)
Baud Rate 230,400 (13)
Baud Rate 460,800 (14)
Baud Rate 921,600 (15)
Page 126
8 - 14 DS2208 Digital Scanner Product Reference Guide
Parity Parameter # 158 SSI # 9Eh A parity check bit is the most significant bit of each ASCII coded character. Scan one of the following bar codes to select the parity type according to host device requirements: • Odd - This sets the parity bit value to 0 or 1, based on data, to ensure that the coded character contains an odd number of 1 bits. • Even - This sets the parity bit value to 0 or 1, based on data, to ensure that the coded character contains an even number of 1 bits. • None - No parity bit is required.
Odd (2)
Even (1)
*None (0)
Page 127
SSI Interface 8 - 15
Check Parity Parameter # 151 SSI # 97h Scan one of the following bar codes to select whether to check the parity of received characters. See Parity to select the type of parity.
*Do Not Check Parity (0)
Check Parity (1)
Stop Bits Parameter # 157 SSI # 9Dh The stop bit(s) at the end of each transmitted character marks the end of transmission of one character and prepares the receiving device for the next character in the serial data stream. Scan one of the following bar codes to set the number of stop bits (one or two) based on the number the receiving host can accommodate.
*1 Stop Bit (1)
2 Stop Bits (2)
Page 128
8 - 16 DS2208 Digital Scanner Product Reference Guide
Software Handshaking Parameter # 159 SSI # 9Fh This parameter offers control of data transmission in addition to the control hardware handshaking offers. Hardware handshaking is always enabled; you cannot disable it. Options: • Disable ACK/NAK Handshaking - The scanner neither generates nor expects ACK/NAK handshaking packets. • Enable ACK/NAK Handshaking - After transmitting data, the scanner expects either an ACK or NAK response from the host. The scanner also ACKs or NAKs messages from the host. The scanner waits up to the programmable Host Serial Response Timeout to receive an ACK or NAK. If the scanner does not get a response in this time, it resends its data up to two times before discarding the data and declaring a transmission error.
Disable ACK/NAK (0)
*Enable ACK/NAK (1)