General Serial Communications - Campbell CR300 Series Product Manual

Compact datalogger
Hide thumbs Also See for CR300 Series:
Table of Contents

Advertisement

 
Set the data logger to be a PakBus router only as needed. When the data logger is a router,
l
and it connects to another router like LoggerNet, it exchanges routing information with that
router and, possibly (depending on your settings), with other routers in the network.
Network Planner set this appropriately when it is used. This is also set through the IsRouter
setting in the Settings Editor. For more information, see the Device Configuration Settings
Editor IsRouter (p. 216).
 
Set PakBus beacons and verify intervals properly. For example, there is no need to verify
l
routes every five minutes if communications are expected only every 6 hours. Network
Planner will set this appropriately when it is used. This is also set through the Beacon and
Verify settings in the Settings Editor. For more information, see the Device Configuration
Settings Editor Beacon() and Verify() settings.
For information on Designing a PakBus network using the Network Planner tool in LoggerNet,
watch the following
video: https://www.campbellsci.com/videos/loggernet-software-network-
planner 
.

19.1 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 instructions for general serial communications include:
 
SerialOpen()
l
 
SerialClose()
l
 
SerialIn()
l
 
SerialInRecord()
l
 
SerialInBlock()
l
 
SerialInChk()
l
See the CRBasic Editor help for detailed instruction information and program examples:
https://help.campbellsci.com/crbasic/cr300/
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
programming details and examples.
 
SerialOut()
l
 
SerialOutBlock()
l
 
SerialBrk()
l
 
SerialFlush()
l
.
for more
19. Communications protocols     109

Advertisement

Table of Contents
loading

Table of Contents