A.12 peer-to-peer pakbus communications – Campbell Scientific CR3000 Micrologger User Manual
Page 513

Appendix A. CRBasic Programming Instructions
513
SerialInRecord
Reads incoming serial data on a COM port and stores the data in a destination
variable.
Syntax
SerialInRecord(COMPort, Dest, BeginWord, NBytes, EndWord,
NBytesReturned, LoadNAN)
SerialOpen
Sets up a datalogger port for communication with a non‐PakBus device.
Syntax
SerialOpen(ComPort, BaudRate, Format, TXDelay, BufferSize)
SerialOut
Transmits a string over a datalogger communication port.
Syntax
SerialOut(ComPort, OutString, WaitString, NumberTries,
TimeOut)
SerialOutBlock
Send binary data out a communications port. Used to support a transparent
serial talk‐through mode.
Syntax
SerialOutBlock(ComPort, Expression, NumberBytes)
A.12 Peer-to-Peer PakBus Communications
Read More! See section PakBus Overview
(p. 356)
for more information. Also see
Campbell Scientific PakBus® Networking Guide available at
www.campbellsci.com.
PakBus
®
is a proprietary network communications protocol designed to maximize
synergies between Campbell Scientific dataloggers and peripherals. It features
auto-discovery and self-healing. Following is a list of CRBasic instructions that
control PakBus
®
processes. Each instruction specifies a PakBus
®
address and a
COM port. The PakBus
®
address is a variable that can be used in CRBasic like
any other variable. The COM port sets a default communications port when a
route to the remote node is not known. The following COM port arguments are
available:
• ComRS-232
• ComME
• Com310
• ComSDC7
• ComSDC8
• ComSDC10
• ComSDC11
• Com1 (C1,C2)