Axcera 79XITS-7045 Benutzerhandbuch

Seite von 56
WaveCom Electronics Inc
MA4040D Manual; MAN1L0901 REV 13(0104)
Approved: D.P.
31
7.4 Response Structure
The response structure will consist of a sequence of ASCII characters, terminated by a carriage return. Responses
will be in one of the two following general formats:
<start>ADD<sp>R<sp>RC<sp>CRC<cr>
or
<start>ADD<sp>R<sp>RC<sp>PARM<sp>CRC<cr>
There will be one response returned for all commands.
<start>
ASCII Asterisk character
<sp>
ASCII Space character
<cr>
ASCII Carriage Return character
ADD = Address (3 characters)
The address of the unit that is responding to the command.
R = ASCII “R” character (1 character)
Indicates that this is a response to a previous message.
RC = Response Code (3 characters)
OK = Command Accepted
MOD = Command Denied because the addressed module is invalid
ERR = Command Denied because of Syntax Error
CRC = Command Denied because of CRC-16 error
CRC = CRC-16 checksum (3 characters)
The response checksum is always valid. The first character will be an ASCII “V” followed by the low and high
bytes respectively of the computed CRC 16 checksum (the checksum characters are not necessarily ASCII). The
checksum will be computed on all characters after the initial <start> character up to, and including, the first “V”
character in the CRC section.
PARM is one or more characters, and is command specific.