Section 5. bmp5 direct sdk, 1 bmp5 direct sdk overview, 2 simplepb wrapper – Campbell Scientific Software Development Kit Beginner's Guide User Manual
Page 19
5-1
Section 5. BMP5 Direct SDK
5.1 BMP5 Direct SDK Overview
The BMP5 Direct software development kit is for developers that want a
simple way to create an application that communicates with any PakBus
datalogger using only RS-232 or an intermediate communication that is
transparent to RS-232 such as RF400 radios. The application created using the
BMP5 Direct SDK will only be able to communicate with one datalogger at a
time.
The BMP5 Direct SDK provides the developer access to the communications
engine, CORALIB3D.DLL, through the SimplePB.DLL wrapper. The BMP5
Direct SDK install includes examples with source code along with
documentation describing how to use the SimplePB.DLL.
5.2 SimplePB Wrapper
The SimplePB.DLL wrapper provides the developer an easy interface through
a communications engine to a single PakBus datalogger. The following basic
commands are available in the SimplePB.DLL:
OpenPort() – used to open a COM port
ClosePort ()– used to close a COM port
OpenIPPort() – used to open an IP port
CloseIPPort()– used to close an IP port
GetClock() – used to query a datalogger for its date and time
SetClock() – used to set a datalogger’s date and time
GetValue() – used to query a datalogger for a value or group of values
SetValue() – used to set a field value in a datalogger
GetData() – used to query data from a datalogger table
GetDataHeader() – used to get just the header information for a specific
table in the datalogger
GetCommaData() – used to get just the CSV data from a specific table in
the datalogger
File_Send() – used to send a program file to a datalogger
GetAddress() – used to query the PakBus address of a datalogger
GetStatus() – used to query the current status of a datalogger