Campbell Hausfeld SDM-CAN Manual Do Utilizador

Página de 74
Section 5.  Using the RS232 Diagnostics Port 
Monitor mode will not miss frames when they come in high speed burst’s. This 
command will perform better the higher the terminal baud rate. 
 
The hex output format of the command is as follows:- Info byte, Frame ID, Frame 
Data. To exit this command use ‘CTRL-C’. 
SETCANBAUD nnnn  nnnn  nnnn – Sets the CANBUS baud rate. The 
parameters are in the following order: TQUANTA = 0 - 63, TSEG1 = 0 - 15 and 
TSEG2 = 0 to 7. See Section 3 which gives details on how to calculate baud rate 
using these parameters. The SDM-CAN baud rate will stay set until it is changed 
by the datalogger following a program re-compilation by the user, 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 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). 
5-3