
Interfacing the MICROCOM DESIGN GTX Modulator to the Campbell Scientific CR1000 Data Logger PRELIMINARY
Test Program #2
Random Data
Message
In this next test program we will format the data sent by the CR1000 to enable the GTX to
include the data messages in its buffer for a random transmission.
First we will send a Random Data message from the CR1000 to the GTX. In our case we
will use the CR1000 Battery Voltage. We will also read the GTX’s Time and Date and set
the CR1000 local clock to the GTX time.
First we must set up the GTX. Using the Microcom GTX Utility software we can set the GTX
up for Random transmission. The Microcom GTX utility runs on a PC and requires a PC
serial port to connect to the GTX serial port. For now, we do this by disconnecting the PC
connection from the CR1000 so that the PC is connected to the GTX serial port (instead
of the CR1000). Once the GTX is set up and enabled, then the GTX serial connection
should be reattached to the CR1000 COM4.
The full use of the GTX utility is beyond the scope of this application note and is not going
to be covered in this application note. The GTX needs to be set to accept Random Data
Tx and it needs to be enabled. A configuration file was saved called ricktestConfigFile.txt
which does this. After opening up the file you also need to ENABLE the GTX.
NOTE
CR1000 programs can be written with commands which include the setup from for the
GTX. For example the rickstestConfigFile.txt contains commands like:
NID=77880016
Which can be sent in the CR1000 by sending “NID=77880016” out the com port
connected to the GTX. A good strategy for code development of the CR1000 GTX
interface is to set up the GTX using the GTX GUI, and then saving off a configuration you
know works, and then writing a setup subroutine for the GTX in the CR1000 CRBASIC code
based on the setup text file.
___________________________________________
© 2005 Microcom Design Inc. All rights reserved voice: 401.771.1070 Fax:410.771.0018
uAPP222 (v1.0) July 12, 2005 http://www.microcomdesign.com 7
Kommentare zu diesen Handbüchern