Hexdump [start address] [number of bytes, Lasterror, Errorres – Campbell Scientific SDM-SIO4 4-Channel Serial I/O Interface User Manual

Page 31: Bytewr [address] [byte, Testio [test, Hexdump, Bytewr

Advertising
background image

Section 4. Programming the SDM-SIO4

4-5

hexdump

[start address] [number of bytes]

This is used by Campbell Scientific for test purposes and outputs a hex dump of
the SDM-SIO4’s internal address space. The start address and number of bytes
to dump must be in base 10, decimal integer.

lasterror

This command returns the last reported error to the command line. This
command can be used, for instance, to get the return code from the ramtest
command when in talk-through mode.

errorres

This resets all error counters.

bytewr

[address] [byte]

This is used by Campbell Scientific for test purposes and writes a byte to the
memory of the SDM-SIO4.

The address and bytes to write must be in base 10, decimal integer. The address
range is 0-65535 and the byte is from 0-255.

testio [test#]

This is used by Campbell Scientific for test purposes.

Each test command is carried out for 2 seconds. Test# can be in the range 0-
255; only five test numbers are currently valid, as shown below.

testio

returns

test 0

DTR,RTS,IO=LOW

test1 DTR=HIGH,RTS,IO=LOW

test2

DTR=LOW,RTS=HIGH,IO=LOW

test3

DTR,RTS=HIGH,IO=LOW

test4

DTR,RTS=LOW,IO=HIGH

Advertising