Industrial communication software · Source-code library

DNP3 Server Library for C / C++

Integrate DNP3 outstation communication into your SCADA, industrial automation or embedded application—without developing the protocol stack from scratch.

VestaTel DNP3 Server Library is a portable C-language implementation of the DNP3 outstation (server) protocol. It provides static and event data reporting, unsolicited responses, control commands and time synchronization over TCP/IP, UDP/IP and serial connections.

C source codeC / C++ integrationTCP · UDP · SerialWindows · LinuxPortable HALv1.0.1

Key capabilities

Protocol functionality and integration features for industrial systems and engineering teams.

01 /

Static and event data

Binary and double-bit binary inputs, binary outputs, analog inputs and outputs, and counters. Configurable Class 1, 2 and 3 event queues.

02 /

Unsolicited reporting

Configurable unsolicited event responses, including confirmation timeouts and retry handling.

03 /

Control operations

Support for Select-Before-Operate (SBO) and Direct Operate commands, with application callbacks for processing control requests.

04 /

Multiple communication channels

DNP3 communication over TCP/IP, UDP/IP and serial interfaces, using a separated channel layer.

05 /

Time synchronization

Processing of DNP3 time synchronization requests, with platform-specific time services abstracted through the HAL.

06 /

Configurable protocol behavior

Set application fragment sizes, timeouts, retry counts, event queue capacities and object variations to suit your application.

Designed for integration

The protocol implementation is organized into application, transport, data-link and channel layers. A separate object parser handles DNP3 object processing. The customer application interfaces with the library through its C API and callbacks.

DNP3 Server Library architecture showing demo and customer applications, application and object parser modules, transport, data link and channel layers

Library architecture — application and protocol layers with channel abstraction.

Diagram asset: images/dnp3s_arch.png (included separately with this page).

Platforms and portability

Supplied platform-specific code supports Linux and Windows. The Hardware Abstraction Layer (HAL) separates sockets, serial interfaces and time functions from the protocol implementation, allowing adaptation to other platforms.

EnvironmentBuild toolchainCommunication
LinuxGCC / GNU MakeTCP/UDP and serial
WindowsGCC / CygwinTCP/UDP and serial
Other / embedded platformsPlatform-specificHAL and serial porting required

The manual also describes Microsoft Visual C++ compatibility; the documented GNU Make build procedure covers Linux and Cygwin. Embedded deployment requires porting and verification on the target.

What is included

Library source

dnp3s/ — DNP3 server protocol implementation.

Example application

demo/ — command-line outstation example showing configuration, communication and point handling.

Platform utilities

util/ — hardware abstraction and supporting utility functions.

Documentation

docs/ — user manual, DNP3 device profile and license agreement.

Technical documentation

The user manual includes build instructions, porting and integration guidance, configuration parameters, API and callback references, and example application usage.

Publish the PDF as vestatel-dnp3s-user-manual.pdf alongside this page to enable the manual link.

Discuss your DNP3 integration project

Interested in licensing the DNP3 Server Library for your product or project? Contact VestaTel to discuss your target platform, communication interfaces and integration requirements.

Commercial terms and licensing arrangements are available on enquiry.