Appendix d. telecommunications commands – Campbell Scientific SM192/SM716 Storage Modules User Manual

Page 28

Advertising
background image

D-1

APPENDIX D. TELECOMMUNICATIONS COMMANDS

The SM Telecommunications Commands can
be used over links through the CR10 or with the
Storage Module connected to an interface such
as the SC532, the SM232A, or the PC201.
Establishing communication between the
Storage Module and a computer/terminal is
discussed in Section 5. The commands permit
data storage and retrieval, switch setting, status
checks, battery tests, and other functions.

The Storage Module is ready for a command
when it sends its prompt, <cr><lf> %. The
successful execution of a command is indicated
by the SM returning a <cr><lf> %. (With several
commands, the "<cr> <lf> %" is preceded by
the SM status line as described for the A
command.) If just a "%" is returned, the
command was in error. "Ctrl-S" (XOFF) will
temporarily halt Storage Module responses to
commands; "Ctrl-C" will abort the response. If
using Graph Term or TERM, there may be a
delay for "Ctrl-S" and "Ctrl-C" to take effect due
to the program's buffer capacity.

The descriptions of some commands refer to
the Storage Module pointers (Section 4.2). The
Display Location Pointer (DLP) is used to
display Storage Module data. The Storage
Reference Pointer (SRP)
, indicates the next
location to be written to in the Storage Module.
The Dump Pointer is an internal Storage
Module pointer used for keeping track of the
current start-of-dump for Storage Module-to
Storage Module data dumps and for the data
retrieval options of the SMCOM program.

Storage Module Telecommunications
Commands are similar to datalogger
Telecommunications Commands and consist of
numbers and CAPITAL letters. In the following
list, Telecommunications Commands are on the
left and their description on the right.

A STATUS: Returns Version number, Switch
settings, number of Programs stored, number
of good Memory chips, number of Errors logged
(max. = 255), number of Available storage
locations, number of locations Full, Storage
Reference Pointer, Display Location Pointer,
and Checksum (sum of all transmitted ASCII

characters since last %; wraps around at 8192
bytes).

Example: V1 S1401 P0 M6 E0 A96448 F1 R2
L2 C1980 is the expected response to the A
command after the SM192 has been reset.

Example: V1 S1401 P0 M22 E0 A358336 F1
R2 L2 C2071 is the expected response to the A
command after the SM716 has been reset.

NOTE: Refer to the L command for a
discussion of the switch settings.

0A INHIBIT STATUS: Returns status line
without carriage return, line feed, and prompt
(%) following. Signature or status is inhibited on
subsequent commands other than A that
normally display signature or status. Command
A restores normal status function.

nnnnB Move the DLP back nnnn output arrays
from its current position. If it is fewer arrays to
the beginning of the file (File Mark), the DLP will
be placed at the beginning. B is the same as
1B. Status is displayed following execution of
command.

nnnnC COMMA DELINEATED ASCII DUMP:
Dump nnnn output arrays from the location of
the DLP. The dump will stop if the next file
mark or the Storage Reference Pointer is
reached. "C" is the same as "1C". "0C" means
dump continuously. Status is displayed
following execution of command.

nnnnD PRINTABLE ASCII DUMP: Dump
nnnn output arrays to the next File Mark from
the location of the DLP. The dump will stop if
the Storage Reference Pointer is reached. "D"
is the same as "1D". "0D" means dump
continuously. The status is displayed following
command execution. Until the start of an array
is found, the element ID's will show "xx".

E NO LOAD BATTERY TEST: The state of
the battery is compared to a 2.5 VDC reference
without loading the battery. The Storage
Module returns "1" if above 2.5 VDC or "0" if
below. If "0" is returned, the data should be
retrieved from the SM prior to disconnecting

Advertising