Appendix d. telecommunications commands – Campbell Scientific CSM1 Card Storage Module User Manual

Page 27

Advertising
background image

D-1

Appendix D. Telecommunications
Commands

Once in the telecommunications mode the CSM1 responds to the commands listed below.
To enter a command enter the characters followed by a carriage return character. The
CSM1 does not support text correction using the backspace/delete characters; if an
unexpected character is read, command entry is aborted and the prompt is returned. With
the exception of the F and 0H commands, all commands finish with a carriage
return/linefeed/prompt sequence on completion. Some commands show the status line
before the prompt.

Command

Description

A
Status

This command returns the status of the card on a single line with
each parameter preceded by a character. The parameters are as
follows:

Vn.m, where n is the CSM1 PROM version number and m is the
card version number.

Mnn, where nn is the number of 16 kbyte pages of memory in
the card.

Bn, where n is 0, 1, or 2 and indicates the battery status. 0 is
dead, 1 is low (less than 3% capacity left) and 2 is OK. The
CSM1 does not attempt to store data if the battery is indicated as
being dead.

En, where n in the range of 0..254 indicates the number of bad
characters received from a datalogger, e.g. framing errors. If
n=255, this indicates that the CSM1 has detected some
corruption of its reserved memory area in the card, which could
indicate some of the other values on the status line are bad.

Pn, where n indicates the number of programs stored in the card.

Annnnnn, where nnnnnn is the number of free storage locations.

Rnnnnnn, where nnnnnn is the position of the storage reference
pointer, i.e. where the next new data value will be stored.

Lnnnnnn, where nnnnnn is the position of the display pointer,
which indicates where subsequent instructions that display or
output data will start.

Dnnnnnn, where nnnnnn is the position of the dump pointer,
which is used to mark where data was last dumped up to.

Cnnnnn, where nnnnn is a decimal representation of the
checksum of all characters transmitted by the CSM1 since the
last prompt character was transmitted. (This includes echoed
commands.) The checksum is the standard Campbell Scientific
checksum used by the dataloggers when transmitting binary
data. Please refer to the datalogger manuals for further details.

Advertising