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

Advertising
background image

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

Advertising