2 packet structure, 1 start of packet – Comtech EF Data CDM-840 User Manual

Page 150

Advertising
background image

CDM-840 Remote Router

Revision 2

Serial-based Remote Product Management

MN-CDM840

7–4

7.2.2

Packet Structure

The exchange of information is transmitted, Controller-to-Target and Target-to-Controller, in ‘packets’. Each packet contains a finite

number of bytes consisting of printable ASCII characters, excluding ASCII code 127 (DELETE).

In this context, the Carriage Return and Line Feed characters are considered printable. With one exception, all messages from Controller-

to-Target require a response – this will be either to return data that has been requested by the Controller, or to acknowledge reception of an

instruction to change the configuration of the Target.

Controller-to-Target (Issued Command or Query)

Start of Packet

Target Address

Address Delimiter

Instruction Code

Code Qualifier

Optional Arguments

End of Packet

<

ASCII code 60

(1 character)

0000 (default)

(4 characters)

/

ASCII code 47

(1 character)

(3 characters)

= or ?

ASCII codes 61 or 63

(1 character)

(n characters)

Carriage Return

ASCII code 13

(1 character)

Packet Example:

<0000/BFR=1[cr]

Target-to-Controller (Response to Command or Query)

Start of Packet

Target Address

Address Delimiter

Instruction Code

Code Qualifier

Optional Arguments

End of Packet

>

ASCII code 62

(1 character)

0000 (default)

(4 characters)

/

ASCII code 47

(1 character)

(3 characters)

= or ?

ASCII codes 61 or 63

(1 character)

(n characters)

Carriage Return

ASCII code 13

(1 character)

Packet Example:

>0000/BFR=1[cr][lf]

Detailed description of the packet components follow.

7.2.2.1 Start of Packet

Controller-to-Target: This is the character ‘<’ (ASCII code 60).

Target-to-Controller: This is the character ‘>’ (ASCII code 62).

Advertising