UM-0086-A2
CANgate User’s Manual
Page 24
Verbose mode should normally be switched on when manually entering CANgate commands and slot definitions. Once you
are confident that the slots are working as expected, Verbose mode can be turned off.
When CANgate is being controlled by a DT80/800 data logger, Verbose mode is normally switched off. This avoids any
parsing complications which may occur due to unexpected messages returned by CANgate.
The current Verbose mode setting is saved to flash memory so it will be restored following a power interruption.
VERSION – Display Firmware Version
VERSION
This command will return the version number of the CANgate firmware, eg.
1.24
, followed by CRLF.
In Verbose mode, the product name is also included.
The
VERSION
command is a useful check that the host port communications are correctly configured and CANgate is
responding, as it should always return some text in response to this command.
RESET – Clear Memory Slots
RESET
This command will clear all defined memory slots. It does not affect the currently configured CAN/GPS bit rates, or the
current verbose mode setting.
SNOOP – Report CAN/GPS Activity
SNOOP
port
{ snoopTime }
where
port
is either the CAN port number (
1
or
2
), or
GPS
.
snoopTime
is the time to spend listening (integer, in ms, must be multiple of 100ms). Default is
10000
(10 seconds).
This command may be used to determine which CAN identifiers are being broadcast on a CAN network. During the specified
snoop time, all incoming CAN messages on the specified port are received. For each distinct CAN identifier that was
received, the following information is displayed:
identifier type: standard 11 bit (
STD
) or extended 29 bit (
EXT
)
identifier value, in hexadecimal
the 64-bit data value from the first received message with this identifier
If
GPS
is specified instead of a CAN port number, this command will display all NMEA strings that are received during the
snoop period. This is useful for verifying that the GPS unit is sending the expected strings.
Examples
SNOOP 1
EXT 18FEF000 FFFFFF0000F0CCFF
EXT 18F0000F C07DFFFF0FFFFFFF
EXT 18EBFF00 0115FF5E0004016F
EXT 18ECFF0F 20130003FFE1FE00
EXT 18EBFF0F 010306602254A041
EXT 18FEEE00 17FF0020FFFFFFFF
END
SNOOP
This shows that 6 different extended identifiers were captured on CAN port 1 during the default 10 second snoop time.
SNOOP GPS 5000
$GPGLL,5330.25,N,00215.31,W,134531,A
$GPGLL,5330.25,N,00215.31,W,134532,A
$GPGLL,5330.25,N,00215.32,W,134533,A
$GPGLL,5330.24,N,00215.32,W,134534,A
$GPGLL,5330.23,N,00215.32,W,134535,A
This shows the strings received from a GPS unit over a 5 second period.
SNOOPJ – Report J1939 Activity
SNOOPJ
port
{ snoopTime }
This works in exactly the same way as
SNOOP
, except that the results are interpreted in terms of the J1939 protocol. That is,
the PGN, priority, source address and destination address components of the CAN identifier are decoded.
This command also recognises J1939 multi-packet messages. For such messages the displayed PGN is extracted from the
data field, not the identifier. (For multi-packet messages, the PGN encoded into the CAN identifier relates to the transport