7 command line parameter, 1 additional command line parameter options, 1 nocolor – Campbell Scientific PC208 Datalogger Support Software User Manual

Page 98: 2 sm232a, 3 communications baud rate

Advertising
background image

SECTION 7. CSMCOM

7-6

out of the card. If the data files are corrupted,
not collected, or not complete then you should
try to find out where the starts of the files are by
running the Terminal Emulator (T) option.
Position the display pointer at the beginning of
the card using the 1G command and then scan
through the card repeatedly using the NFM
command to find the start of each file. Record
the position of the start of each file as you go.
Once you have determined where each file
starts you can use option L to try to read out
each file.

If you are unable to recover your data please
contact Campbell Scientific for further advice.

7.7 COMMAND LINE PARAMETER

All options in CSMCOM can be specified as
command line parameters when the program is
run. This enables semi-automated reading of
the cards, as CSMCOM can be called from a
DOS batch file.

The parameters should be entered in the order
that they would be entered when running
CSMCOM. If you wish you can spell out the
name of the option selected in full, as only the
first character of the options is read by
CSMCOM.

An example is:

csmcom 3 all dfiles comma programs pfiles
download prog1 1 q

This is equivalent to:

csmcom 3 a dfiles c p pfiles d prog1 1 q

This executes CSMCOM and communicates on
COM3. All data files are collected and stored in
files with a root name of DFILES.DAT in comma
separated format. All the program files are then
collected and stored in a series of files with a
root name PFILES. A new program stored in
PROG1.DLD is then loaded into program area 1
in the card. Finally, CSMCOM quits.

7.7.1 ADDITIONAL COMMAND LINE

PARAMETER OPTIONS

7.7.1.1 NOCOLOR

If poor contrast is apparent as a result of trying
to simulate CSMCOM's screen colors when
running CSMCOM on a computer with an LCD

screen, the contrast may be improved by
entering NOCOLOR as the first command line
parameter (see the SM232A option below).

7.7.1.2 SM232A

If you wish to connect the CSM1 to a computer
using an old SM232A storage module interface,
you must enter SM232A as the first parameter
of the command line. CSMCOM then asks you
to toggle the switch on the SM232A, to wake up
the module, when you start the program.

If you need to specify both the NOCOLOR and
SM232A options append the two options
together, with no spaces in between, as the first
command line parameter, e.g.

csmcom NOCOLORSM232A

7.7.1.3 COMMUNICATIONS BAUD RATE

The normal communication speed between the
PC and the CSM1 is 19200 baud. However,
when CSMCOM first starts it performs a simple
test on the speed of access to the serial port. If
access is slow, as happens with older IBM PC
computers, the baud rate is reduced to 9600.

Some recent high-performance computers will
reliably support serial communications at
speeds higher than 19200 baud. For such
computers, the speed of offloading data from
the CSM1 can be increased by manually setting
the baud rate to 38400 baud.

You can set the baud rate at which CSMCOM
initially tries to communicate by specifying the
baud rate, followed by 'B', as the command line
parameter that follows NOCOLOR/SM232A (if
used). Valid baud rates are 300, 600, 1200,
2400, 4800, 9600, 19200, and 38400. In
common with the DOS MODE command, you
do not have to specify the trailing zeros, i.e. 12B
is equivalent to 1200B.

Examples:

csmcom 384B

csmcom SM232A 9600B

NOTE: CSMCOM has the same capability
as GRAPHTERM and SMCOM to send
character strings, with wait periods.

Advertising