VN-200 User Manual
UM004
www.vectornav.com
20/47
4.4
System Commands
This Section describes the list of commands available on the VN-200 module. All commands are
available in both ASCII text (UART) and binary (SPI) command formats.
The table below lists the commands available along with some quick information about the commands.
The Text ID is used to specify the command when using the text command format and the Binary ID is
used to specify the command when using the binary command format. More details about the
individual commands can be found in the referenced Section.
Table 14 – List of Available Commands
Command Name
Text ID
Binary ID
Section
Read Register
VNRRG
0x01
4.4.1
Write Register
VNWRG
0x02
4.4.2
Write Settings
VNWNV
0x03
4.4.3
Restore Factory Settings
VNRFS
0x04
0
Reset
VNRST
0x06
4.4.5
4.4.1
Read Register Command
This command allows the user to read any of the registers on the VN-200 module (see Section 5 for the
list of available registers). The only required parameter is the ID of the register to be read. The first
parameter of the response will contain the same register ID followed by a variable number of
parameters. The number of parameters and their formatting is specific to the requested register. Refer
to the appropriate register Section contained in Section 5 for details on this formatting. If an invalid
register is requested, an error code will be returned. The error code format is described in Section 4.5.
Table 15 - Example Read Register Command
Example Command
Message
UART Command
$VNRRG,5*46
UART Response
$VNRRG,5,9600*65
SPI Command (8 bytes)
01 05 00 00 80 25 00 00 (shown as hex)
SPI Response (8 bytes)
00 01 05 00 80 25 00 00 (shown as hex)
4.4.2
Write Register Command
This command is used to write data values to a specified register on the VN-200 module (see Section 5
for the list of available registers). The ID of the register to be written to is the first parameter. This is
followed by the data values specific to that register. Refer to the appropriate register Section in Section
5 for this formatting. If an invalid register is requested, an error code will be returned. The error code
format is described in Section 4.5.