General serial communications
The data logger supports two-way serial communications. These communications ports can be used with smart sensors that deliver measurement data through serial-data protocols, or with devices such as modems, that communicate using serial data protocols.
CRBasic Campbell Scientific's BASIC-like programming language that supports analog and digital measurements, data processing and analysis routines, hardware control, and many communications protocols. instructions for general serial communications include:
|
|
See the CRBasic Editor help for detailed instruction information and program examples:
To communicate over a serial port, it is important to be familiar with the protocol used by the device with which you will be communicating. Refer to the manual of the sensor or device to find its protocol and then select the appropriate options for each CRBasic parameter. See the application note Interfacing Serial Sensors with Campbell Scientific Dataloggers for more programming details and examples.
Configure SerialOpen()
CRBasic instruction. Terminals are configured in pairs for TTL, RS-232, and half-duplex RS-422 and RS-485 communications. For full-duplex RS-422 and RS-485, four terminals are required.
Serial communications summary |
||||
---|---|---|---|---|
|
RS-232 |
RS-485
|
TTL |
TTL-INV |
Communications |
Point-to-point |
Multi-drop |
Point-to-point |
Point-to-point |
Maximum number of devices |
1 Transmitter 1 Receiver |
32 Transmitters 32 Receivers |
1 Tx 1 Rx |
1 Tx 1 Rx |
Mode type |
Full duplex |
Full duplex Half duplex |
Full duplex |
Full duplex |
Reference |
Single wire Tx ref to GND |
Differential pair TxB+ referenced to TxA– |
Single wire Tx referenced to GND |
|
Voltage range |
–25 V to 25 V |
–5 V to 5 V |
0 V to 5 V |
0 V to 5 V |
Idle voltage |
–25 V to |
–0.2 V to 5 V |
5 V |
0 V |