beautypg.com

Status – Campbell Scientific SDM-SIO4 4-Channel Serial I/O Interface User Manual

Page 30

background image

Section 4. Programming the SDM-SIO4

4-4

port is chosen or power is removed and then re-applied, in which case the
command line reverts to port 1.

status

This outputs the general status of the SDM-SIO4. The results are as follows:

BATT 0 or 1

If the value is 0 the battery needs replacing.

If the value is 1 the battery is good.

ADDR 0 to 15

This is the current SDM-SIO4 hardware address.

WD n WDERR n WDADDR n

WD n is a count of the number of watchdog resets, WDERR is the number of
the last task that crashed and WDADDR is the address at which the crash was
found.

NC 0-9

This is the number of SDM commands the datalogger sent to the SDM-SIO4
that the SDM-SIO4 did not recognize. This counter may be incremented when
the program is first compiled in the datalogger due to the auto speed detection
of the datalogger.

PORT1-4

These four sets of values are the current port settings in the order as below:
• Baud rate setting
• Data length setting
• Stop bit setting
• Parity bit setting
• Handshake mode
• Delay time value
• Parity error count
• Framing error count
• Overrun error count
• Line break error count
• DTR handshake line status, 0=low 1=high
• RTS handshake line status, 0=low 1=high
• CTS handshake line status, 0=low 1=high
• DSR handshake line status, 0=low 1=high
• DCD handshake line status, 0=low 1=high

You should refer to the appropriate section of this manual for further specific
detail.