beautypg.com

Aschex vs. binary values, Command responses – Quatech WLNG-ET-DP500 Series User Manual

Page 22

background image

Company Confidential

Quatech, Inc.

22

Airborne CLI Reference Manual

100-8081-100

6.7

ASCHEX vs. Binary Values

Data can be sent to the Module as either binary data or a hexadecimal
representation of the actual data being transmitted.

When a LAN device or serial port Host issues a pass command, the data is
transmitted as binary data. By comparison, when the command putget or
putexpect is issued, the senddata content must be encoded as ASCII
hexadecimal digit pairs. The data is translated across the Module and received
as an ASCII representation of the actual data. This is true whether the
transmission initiates from the LAN device or from the Host.

For example, the digits 31 correspond to the ASCII character 1. If you issue a
putget or putexpect command with the senddata value of 314151, the
destination receives the ASCII characters 1, A, and Q.

6.8

Command Responses

The Module responds to CLI commands with a response indicating whether the
CLI command was executed successfully. All responses are terminated by
.

Multiline responses have each line terminated with with the response
terminated by ..

After the Module executes a CLI command successfully, it returns the response:

OK

Otherwise, it returns an error response. Error responses are returned in the
following general format:

Error 0xhhhh: error text

In the response the aschex value is the error code. A summary of error code can
be found in section TBD.

This manual is related to the following products: