Product Manual

Table Of Contents
13
RADAR COMMANDS
RADAR COMMAND OVERVIEW
Commands are used to control the operation of the radar. These are sent over the RS422 UART link.
Commands are immediately followed by an operator that indicates the required action. Not all operators are
supported for all commands. Where an operator is used and it is not supported the radar will respond with a
warning message. The table shows the operators that are used by the radar.
Operator Operation
= Set something to a value e.g. *DIR=A<CR> sets detect direction to approaching
? Respond with value or values
^ Set default value for parameter
$ Provide help on the command e.g. *DIR$<CR>
! Do something e.g. *REBOOT! Reboots the radar
Command Operators
Where a command is used to enquire or set a radar parameter the radar will respond in a set way. The radar
will respond with a hash, #, followed by the command name, operator used and then the value of parameter or
parameters.
For example
*DIR=A<CR> Radar responds with #DIR=A<CR>
*DIR?<CR> Radar responds with #DIR?A<CR>
Checksum Calculation
The unsolicited messages and the Serial Number output by the 317 contain a checksum. The checksum is
performed as an exclusive OR (XOR) sum of each of the characters in the message excluding the header and
termination characters. The checksum is then appended to the message as a 2 character hexadecimal number.
e.g. Consider a Heartbeat message prior to the header and termination
HB,0000133*
‘H’ = 0x48
‘B’ = 0x42
An XOR operation on these two characters results in 0x0A which is then used in the XOR with the next character
(‘,’ = 0x2C) and so on until all of the characters have been summed.
The result is appended to the message following the ‘*’ character and the message is transmitted with the ‘STX’
and ‘ETX’ characters.
STXHB,00001334*25ETX