Campbell Scientific SDM-CAN Datalogger to CANbus Interface User Manual
Page 51

SDM-CAN Datalogger-to-CANbus Interface
or by a datalogger communications error, which will force the SDM-CAN to
be reset.
If parameters are omitted, the default setting is 1 Megabaud with the following
parameters: TQUANTA=1, TSEG1=5 and TSEG2=2.
Because any communication errors cause a default back to the datalogger set
baud rate, it is not recommended that this command is used for anything other
than CANBUS diagnostic purposes.
STAT – Takes no parameters. This command will return the CAN bus status as
follows (each value is output on a new line in decimal format):
TQUANTA, TSEG1, TSEG2, Transmit error, Receive error, Overrun error,
Watchdog error, Switch Settings, SDM Address, verbose mode, Bus mode and
buffers = n
n
n where the first `n’ is number of bins, the 2
nd
`n’ is number of
buffers and the 3
rd
`n’ is number of frame buffers.
Bus mode indicates the following states:
0 = Bus-On; the SDM-CAN is involved in bus activities. Error counters
are less than 96.
1 = Bus-On; the SDM-CAN is involved in bus activities. Error counters
are equal to or greater than 96.
2 = Bus-Off; the SDM-CAN is not involved in bus activities. Error
counters are less than 96.
3 = Bus-Off; the SDM-CAN is not involved in bus activities. Error
counters are equal to or greater than 96.
SWITCH nnnn – This command changes the internal switch settings of the
SDM-CAN. Please refer to Data type 32, in Section 3, Programming CR10X,
CR7 and CR23X Dataloggers to use the SDM-CAN, above, for details of the
switch parameter.
VERBOSE nnnn – The parameter nnnn is the verbose mode. With no
parameter or when nnnn=0 verbose mode is off, otherwise if nnnn>0 verbose
mode is on. Currently verbose mode ‘1’ turns on compile reports – used for
Campbell Scientific debugging purposes only.
VERSION – Takes no parameters. This command will output the OS version
number on the first line and the OS signature on the second line. If the
signature is zero then the OS is corrupt and the SDM-CAN may malfunction.
The Status is then returned (see STAT above).
5.3 Loading a New Operating System into the SDM-CAN
Interface
When new functions are added, or bugs fixed, new versions of the operating
system for the SDM-CAN interface may become available. As with most
newer Campbell Scientific devices, the operating system is stored in non-
volatile memory which can be re-programmed or updated by downloading a
new operating system to the module from a PC running appropriate Campbell
Scientific software (see below).
43