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 22 of 37

Native Terminal Emulation Programmer's Guide: Chapter 5: Data Collection Server and Gateway Commands, pages 177 to 186

Pages 177 to 186 of 340, from Native Terminal Emulation Programmer's Guide

The original document is the PDF (2.9 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 2435

Page 177

5

Data Collection Server and Gateway Commands

A Data Collection Server (DCS) or gateway command is either a “parameter” or a “diagnostic.” This chapter contains detailed information about each command.

Native Terminal Emulation Programmer’s Guide

157

Page 178

Chapter 5, Data Collection Server and Gateway Commands

CMT (Return Parameter Values) This command returns the current value of all CMT parameters. For compatibility, the DCS or gateway response contains place-holders for commands supported on Intermec legacy controllers and multiplexers, but not supported on Enterprise Wireless LANt DCSs and gateways. For more information about compatibility issues, see “Compatibility with Legacy Systems” on page 184.

Host Command CMT<cr>

DCS or Gateway Response <parameter values><cr>

Example This example shows that the CMT parameters are set to default values: Command: CMT<cr> Response: 002,255,000,000,000,000,000,006,000, 000,000,000,000,000,000,000,000,047,000<cr>

158

Native Terminal Emulation Programmer’s Guide

Page 179

Chapter 5, Data Collection Server and Gateway Commands

CMT, (Set All Parameters) The CMT, command sets all CMT parameters at once through one command line. Variables and related are as follows.

Host Command CMT,<a,b,c,...r><cr>

DCS or Gateway Response OK<cr>

Variables and Related Parameters: S a

CMT0

S b

CMT1

S c

CMT2

S d

CMT3 (placeholder for legacy system)

S e

CMT4

S f

CMT5

S g

CMT6 (placeholder for legacy system)

S h

CMT7 (placeholder for legacy system)

S i

CMT8

S j

CMT10

S k

CMT11 (placeholder for legacy system)

S l

CMT12 (placeholder for legacy system)

S m

CMT13

S n

CMT14 (placeholder for legacy system)

S o

CMT15 (placeholder for legacy system)

S p

CMT16 (placeholder for legacy system)

S q

CMT17 (placeholder for legacy system)

S r

CMT18 (placeholder for legacy system)

Native Terminal Emulation Programmer’s Guide

159

Page 180

Chapter 5, Data Collection Server and Gateway Commands

Maintain the default settings by omitting a parameter and including the comma, as in Example 1. Parameters following an incomplete series remain unchanged, like in Example 2.

Example 1 Command: CMT,2,2,1,,,,,<cr> Response: OK<cr> This example does the following. The remaining values apply to legacy systems and do not change. Sets CMT0 to 2 Sets CMT1 to 2 Sets CMT2 to 1 Sets CMT4, CMT5, CMT8, CMT10, and CMT13 to default values.

Example 2 Command: CMT,1,1,<cr> Response: OK<cr> This example does the following. The remaining values apply to legacy systems and do not change. Sets CMT0 to 1 Sets CMT1 to 1 Leaves the parameters for CMT4, CMT5, CMT8, CMT10, and CMT13 set at the values in Example 1 (assuming that Example 1 precedes Example 2).

160

Native Terminal Emulation Programmer’s Guide

Page 181

Chapter 5, Data Collection Server and Gateway Commands

CMT0 (Set Response Delay) CMT0 sets the time delay for the DCS or gateway to respond to a command from the host. This delay may be required after transmitting for the host to prepare to receive data. The response delay is xS10 milliseconds. Values for x are 0–255 (default is 2). A “0” indicates no response delay. CMT0 without the x variable returns the previously set and stored value to the host. CMTI (Set Default Parameters) resets all parameters to default values.

Host Command CMT0,x<cr>

DCS or Gateway Response OK<cr>

Example 1 Command: CMT0,5<cr> Action: DCS or gateway sets the response delay to 50 milliseconds (5–10).

Example 2 Command: CMT0<cr> Response: 5<cr> This response assumes the setting from Example 1.

Native Terminal Emulation Programmer’s Guide

161

Page 182

Chapter 5, Data Collection Server and Gateway Commands

CMT1 (Set Data Time-Out) CMT1 sets the number of seconds the DCS or gateway waits for data from a terminal after it receives an R (Read) command from the host. Data received within this time passes immediately to the host. The DCS or gateway returns an “empty” response (OK<cr>) to the host after the specified time-out if no data is available. Data the user enters at a terminal after the time limit is returned after the next R (Read) command.

Host Command CMT1,x<cr>

DCS or Gateway Response OK<cr>

Variables S 0–254 (one-second increments) If the value is “0,” the DCS or gateway responds immediately with terminal data (if any) or with an OK. S 255 (indefinite) Disables the data time-out. If an “R” Read command is issued, the host cannot send another command until a terminal reports (default).

Example 1 Command: CMT1,1<cr> Action: Data time-out is 1 second.

Example 2 Command: CMT1<cr> Response: 1<cr> This response assumes the setting from Example 1.

Example 3 Command: CMT1,0<cr> Action: The DCS or gateway responds immediately with terminal data, if it has any, or with an OK.

162

Native Terminal Emulation Programmer’s Guide

Page 183

Chapter 5, Data Collection Server and Gateway Commands

CMT2 (Interactive Mode) Use CMT2 to enable or disable interactive mode.

Host Command CMT2,x<cr>

DCS or Gateway Response OK<cr>

X Variable Values S 0 Disables interactive mode. The DCS or gateway never sends an OK. The host sends commands to the DCS or gateway, which does not respond unless the command has an error. The DCS or gateway sends terminal responses as it receives them (default). S 1 Enables interactive mode. The DCS or gateway responds to every host command whether or not data is requested. If it has no terminal responses queued up, it responds with “OK<cr>.”

Example 1 Command: CMT2,1<cr> Response: OK<cr>

Example 2 Command: CMT2<cr> Response: 1<cr> This response assumes the setting from Example 1.

Native Terminal Emulation Programmer’s Guide

163

Page 184

Chapter 5, Data Collection Server and Gateway Commands

CMT4 (Add Line Feed to Responses) Use CMT4 to enable (or disable) the automatic addition of an ASCII line feed character to the end of each data string from the DCS or gateway to the host.

Host Command CMT4,x<cr>

DCS or Gateway Response OK<cr>

X Variable Values S 0 Disables automatic line feed character (default). S 1 Enables automatic line feed character.

Example 1 Command: CMT4,1<cr> Response: OK<cr><lf> The DCS or gateway adds an ASCII line feed character to each data string sent to the host.

Example 2 Command: CMT4<cr> Response: 1<cr><lf> This response assumes the setting from Example 1.

164

Native Terminal Emulation Programmer’s Guide

Page 185

Chapter 5, Data Collection Server and Gateway Commands

CMT5 (Set Gap Time-Out) CMT5 sets the time the DCS or gateway waits between characters before terminating a message to xS30 msec. You can only use CMT5 in interactive mode (CMT2,1). Note: Intercharacter gap timeout for DCS 301 is 10 seconds, regardless of the CMT5 setting. Values for variable x are 0-255 (default: 0). “255” disables gap time-out (the DCS or gateway waits indefinitely for a carriage return). When you enable CMT5, the DCS or gateway expects a carriage return to terminate messages from the host. Without the carriage return, it automatically terminates a message after a time interval equal to the gap time-out setting.

Host Command CMT5,x<cr>

DCS or Gateway Response OK<cr>

Example 1 Command: CMT5,3<cr> Action: DCS or gateway sets gap time-out to 90 milliseconds (3S30).

Example 2 Command: CMT5<cr> Response: 3<cr> This response assumes the setting from Example 1.

Native Terminal Emulation Programmer’s Guide

165

Page 186

Chapter 5, Data Collection Server and Gateway Commands

CMT8 (Set Data Error Checking) CMT8 controls the following data checking mechanisms. These data checks perform separate from parity checks or other error checking devices in the network. S LRC (Longitudinal Redundancy Checking) This 7-bit mechanism uses all character bits to form a check character at both ends of the communication link. These are compared. S CRC-16 (Cyclic Redundancy Checking) This uses an algorithm to divide a constant into the numeric binary value of all character bits in a block of data. Quotients are discarded and the remainders are compared.

Host Command CMT8,x<cr>

DCS or Gateway Response OK<cr>

X Variable Values S 0

Disables CRC-16 and LRC (default).

S 1

Enables CRC-16 error checking, disables LRC.

S 2

Enables LRC error checking, disables CRC-16.

Example 1 Command: CMT8,1<cr> Response: OK<cr><0xC6><0xE2> The DCS or gateway checks host commands for a two-digit CRC-16 value following <cr>.

Example 2 Command: R<cr><0xFC><0xA5> Response: OK<cr><0xC6><0xE2> This response assumes the setting from Example 1.

166

Native Terminal Emulation Programmer’s Guide