User's Manual

pulsAR radio Operator’s Manual
5-6
Table 5.1. UDP Command / Reply Packet Format
Bytes Host to Radio (Command) Radio to Host (reply)
0-5 Dest MAC address Dest MAC address
6-11 Src MAC address Src MAC address
12-13 0x0800 0x0800
Ethernet
Encapsulation
14-33 IP header IP header
34-35 Src port (any) Src port: radio UDP cmd port
36-37 Dest port: radio UDP cmd port Dest port: UDP peer cmd port
38-39 Length of UDP payload (6-500) Length of UDP payload (6-500)
40-41 Checksum Checksum
UDP/IP
encapsulation
RFC-768 (UDP)
RFC-760 (IP).
42-45 Command Sequence number Command Sequence number
46-47 Pad (all zeroes) Reply code
48- Command text Reply text
Payload
The values of the “reply code” field are shown in the following table.
Table 5.2. Reply Code Field
Code Mnemonic Description
0 CMD_SUCCESS Command executed successfully
1 CMD_RESTART Unsolicited reply at startup.
A start command must be given.
2 CMD_TRUNCATED Response text overflow (truncated if over the
value specified by max-response-bytes)
3 CMD_NOT_FOUND Unknown Command
4 CMD_AMBIGUOUS Ambiguous abbreviation
5 CMD_BAD_ARG_NAME Illegal or ambiguous argument name
6 CMD_BAD_ARG_VALUE Argument value out of range
7 CMD_ARG_MISSING Required argument missing
8 CMD_FAILED Command failed
9CMD_DISABLED A start command must be given
.