Skip to main content
Version: 3.2

DNP3DNP3 DNP3 Integration Guide

Monitor and read points from RTUs, relays and gateways over DNP3, operate outputs, freeze counters and keep the device clock set.

Status
Beta
Transports
TCP 20000 · TLS 19999 · serial line
Role
Master, one outstation per connection
Operations
Read · Poll · Operate · Freeze · Assign Class · Restart · Time
Triggers
Monitor Points, once per reported point

DNP3 (IEEE 1815) is the telecontrol protocol of electric and water utilities. MaestroHub connects as the master to one outstation: an RTU, a protection relay, or a gateway that concentrates many devices. This guide covers connection setup for TCP, TLS and serial lines, the startup sequence, the ten function types, and how the matching nodes and trigger slot into the Pipeline Designer.

Beta

The connector is checked against three independent DNP3 outstation implementations and against the Wireshark DNP3 dissector, but it has not yet been run against a physical device or a physical serial line. See What is and is not checked.

Overview​

The DNP3 connector provides:

  • A live process image: the latest report of every point the outstation sends, with its DNP3 flags, a quality band and the device's timestamp
  • Monitor Points trigger: start a pipeline for every point the outstation reports
  • Read Points: the latest known value of the points you list, with quality and age, never a made-up 0
  • Polls on demand: integrity poll, event poll, current values, and a direct read of chosen points
  • Controls: relay operations and analog set-points by select-before-operate, direct operate, or direct operate without acknowledgement, sent at most once
  • Counter freeze, class assignment and restart
  • Device attributes: what the device says about itself (maker, model, versions, point counts)
  • Time synchronisation: when the outstation asks for it and on demand, written in the device's time zone
  • TCP, TLS and serial lines: TLS 1.2+ with mutual authentication; serial lines tolerate line noise

How DNP3 delivers data​

A DNP3 outstation holds points, each addressed by its type (binary input, analog input, counter and so on) and its index within that type. For each point it keeps a current value, and it records a change as an event in one of three event classes.

The master collects data in three ways, and MaestroHub uses all three:

  • An event poll asks for the waiting events. MaestroHub confirms them, and only then does the outstation discard them, so an event is not lost when a response is.
  • An integrity poll asks for the waiting events and then for the current value of every point.
  • With unsolicited responses on, the outstation sends events on its own, without waiting for a poll.

MaestroHub keeps the latest report of every point in a process image for the connection, and pipelines use that image in two ways:

  • Monitor Points is a trigger. It starts a pipeline for every point the outstation reports.
  • Read Points returns the latest known value of the points you list, with its quality and age, without asking the device.

What happens on connect​

After the TCP (or TLS) connection is up, or the serial port is open, MaestroHub asks the outstation for its link status. An outstation answers only the master address it is configured for, so a connection whose Outstation Address or Master Address is wrong fails here, with a message that names both.

Then the startup sequence runs, in this order:

  1. Silence unsolicited reporting (on by default): the outstation is asked to stop sending events on its own, so that nothing arrives out of order during startup.
  2. Clear the restart indication, if the outstation reports that it restarted.
  3. Integrity poll (on by default): every waiting event, then every point's current value, so the process image is complete straight away.
  4. Time synchronisation, if the outstation asks for the time and Time Synchronisation is not off.
  5. Enable unsolicited responses, if that switch is on.

A startup request that gets no answer is sent again, up to three times in all: some outstations lose the first request after a connect. If the outstation refuses a step it does not support (unsolicited responses, for example), the connection stays up, and the connection log says which step was refused and what to change.

While the connection runs, MaestroHub polls for events at the Event Poll Interval and repeats the integrity poll at the Integrity Poll Interval. It also reacts to what the outstation reports in every response:

The outstation reportsMaestroHub
It restartedRuns the startup sequence again
Its event buffer overflowed (events were lost)Runs an integrity poll, and says so in the connection log
It needs the timeSynchronises the time, when Time Synchronisation is not off

Connection Configuration​

Creating a DNP3 Connection​

Navigate to Connections → New Connection → DNP3 and configure the form. The form is organized into seven tabs: Connection, Startup, Polling & Timers, Security, Functions, Scaling, and Health. The Functions, Scaling, and Health tabs unlock after the connection is saved.

1. Profile Information​

FieldDefaultDescription
Profile Name-A descriptive name for this connection profile (required). Must be unique across all connections.
Description-Optional description for this DNP3 connection
Labels-Key-value pairs to categorize and organize the connection

Example Labels

  • site: pump-station-4: Site
  • device: rtu-1: Specific outstation
  • environment: production: Deployment environment

2. Outstation​

FieldDefaultMeaning
Transporttcptcp = a TCP connection to the outstation or its gateway, with or without TLS. serial = a serial port on the MaestroHub host
Address(required for TCP)Outstation host name or IP address
Port2000020000 is the DNP3 default; 19999 is registered for DNP3 over TLS
Outstation Address(required)The outstation's DNP3 link address, 0 to 65519. There is no standard default: take it from the device's configuration
Master Address(required)The link address MaestroHub uses, 0 to 65519. An outstation answers only the master address it is configured for
Device Time ZoneUTCThe zone the outstation's clock runs in. DNP3 times carry no zone; MaestroHub converts them from this zone to UTC, and writes time synchronisation in it

Neither link address has a default on purpose: a wrong guess does not fail loudly, it produces a connection the outstation silently ignores.

DNP3 connection formDNP3 connection form

The Connection tab: the transport, the outstation's address and the two link addresses

3. Serial Line​

Choosing serial as the Transport replaces Address and Port with the serial port fields.

FieldDefaultMeaning
Serial Device(required for serial)Serial port device path, e.g. /dev/ttyUSB0 or COM3
Baud Rate9600Line speed, 1200 to 115200. A DNP3 serial link always uses eight data bits
ParityNN = none, E = even, O = odd
Stop Bits11 or 2
RS-485 ModeoffEnable RS-485 transceiver mode on the serial port (Linux; ignored on Windows)

A serial line can carry noise, so a damaged frame is discarded and the connection carries on; it ends only when ten frames in a row arrive damaged. On TCP, where the network already delivers intact data, one damaged frame ends the connection and it reconnects.

The form refuses settings a connection would ignore: an address or TLS settings with the serial transport, and a serial device with the TCP transport.

4. Startup​

FieldDefaultMeaning
Silence Unsolicited Reporting on ConnectonSee What happens on connect
Integrity Poll on ConnectonSee What happens on connect
Enable Unsolicited ResponsesoffAfter startup, let the outstation send events on its own instead of waiting for the next event poll. Leave off on a two-wire serial line shared by both directions
Time SynchronisationoffWhat to do when the outstation asks for the time. off = nothing. lan = the network procedure. nonLan = the delay-measurement procedure, for serial lines

Leave Time Synchronisation off for an outstation whose clock comes from GPS or from another master.

5. Polling & Timers​

FieldDefaultMeaning
Event Poll Interval5sHow often to ask the outstation for its waiting events. 0 = never; allowed only with unsolicited responses on
Integrity Poll Interval1mHow often to read every event and every current value again, to resynchronise. 0 = only on connect
Connection Timeout30sMaximum time to establish the TCP (and TLS) connection, or to open the serial port, and get a first answer
Response Timeout5sHow long an answer may take to begin, and how long the line may then stay silent in the middle of one
Keep-Alive Interval1mAfter this long with nothing received, the outstation is asked for its link status; no answer ends the connection. 0 = off

A connection with the event poll interval at 0 and unsolicited responses off would look healthy and report nothing between integrity polls, so it is refused.

6. Security: TLS​

TLS applies to the TCP transport. Turn on Enable TLS and, usually, set the port to 19999.

  • CA Certificate: the CA that signed the outstation's certificate. Leave it empty to use the host's system roots.
  • Client Certificate / Client Private Key: MaestroHub's certificate for mutual authentication. Both are stored encrypted.
  • Server Name: the name expected in the outstation's certificate. It defaults to the address.
  • Skip Certificate Verification: accepts any certificate. Use it only while commissioning.

TLS 1.2 is the minimum. If TLS fields are filled in while Enable TLS is off, the connection is refused rather than silently connecting without TLS.

DNP3 Secure Authentication (the challenge and reply inside the protocol, separate from TLS) is not supported. An outstation that demands it is reported as such and the request is not retried.

Testing the Connection​

Click Test Connection at the bottom of the form to try the current settings before saving. Once the connection runs, its health probe asks the outstation for its link status and reports the round trip; a request the outstation does not answer drops the session, and the connection reconnects.

Function Builder​

Creating DNP3 Functions​

After the connection is saved:

  1. Open the connection and navigate to the Functions tab
  2. Click New Function to open the function type selection dialog
  3. Choose one of the ten function types below
  4. Fill the Basic tab (name, description, labels) and the Configuration tab (operation-specific parameters)
  5. Use the Test button to run the function against the live outstation before saving
DNP3 function typesDNP3 function types

One trigger, four reads and five operations that act on the outstation

Points are named by type and index throughout:

Point typeWhat it is
binaryInputA two-state input (a contact, a status)
doubleBitInputA four-state input (a breaker or switch position)
analogInputA measured value
counterA running counter
frozenCounterA counter value captured by a freeze
binaryOutputThe status of a relay output
analogOutputThe status of an analog set-point
octetStringA short run of bytes, often text

Index lists are written as indexes and ranges separated by commas, for example 0-9, 12. In Read Points, Read Points Directly, Freeze Counters and Assign Class the list can also be a ((parameter)) the pipeline fills in, alone or beside listed indexes (0-3, ((more))); what it becomes is checked when the function runs, and a list that is none is refused with nothing sent. Monitor Points takes a fixed list.

Monitor Points (dnp3.monitor)​

Purpose: Starts a pipeline for each point the outstation reports. This function type is a pipeline trigger: see Pipeline Integration and the DNP3 Trigger node.

ParameterMeaning
Point TypeThe kind of point to watch. all (default) = every type
IndexesIndexes and ranges to watch, e.g. 0-9, 12. Empty = every index
Include Current ValuesOn (default): the current values that arrive in answers to integrity polls and reads also fire the trigger. Off: only events do

Each event's payload:

{
"outstationAddress": 10,
"pointType": "analogInput",
"index": 0,
"object": "g32v7",
"value": 231.5,
"quality": "good",
"flags": { "online": true, "restart": false, "commLost": false, "remoteForced": false, "localForced": false, "chatterFilter": false, "overRange": false, "referenceError": false, "rollover": false, "discontinuity": false, "timeUnsynchronized": false },
"cause": "event",
"detail": {},
"sourceTimestamp": "2026-11-14T09:30:00.25Z",
"serverTimestamp": "2026-11-14T09:30:00.412Z"
}

Every point has the same top-level keys, whatever its type; what only some types carry sits in detail.

  • object is the DNP3 object the value arrived in, as group and variation (g32v7 = a single-precision analog input event with time).
  • cause is event (from an event poll or an integrity poll), unsolicited (the outstation sent it on its own) or static (a current value, from an integrity poll or a read).
  • sourceTimestamp is the device's own time for the value, in UTC. It is null when the device sent no time, and when it sent one from a clock it marks as never set: then flags.timeUnsynchronized is true and the raw count is in detail.deviceTimeMs, which still orders that device's events.
  • serverTimestamp is when MaestroHub received the point.
  • quality is the platform's band: bad when the point is not online or carries the restart flag (the device has not measured it since it started); uncertain for every other flag (communication lost, forced, chatter filter, over range, reference error, rollover, discontinuity); otherwise good. The individual flags stay in flags. Octet strings carry no flags: their flags is null and their quality is good.

When the link to the outstation drops, the trigger fires once per outage with quality bad and the cause under error; see the DNP3 Trigger node.

How value is written depends on the point type:

Point typevalue
binaryInput, binaryOutputtrue / false
doubleBitInput0-3; detail.state is intermediate, off, on or indeterminate
analogInput, analogOutputA number. A value the device sent in 32 bits keeps its own digits (0.1 stays 0.1). Not-a-number and infinity are given as text
counter, frozenCounterA whole number
octetStringThe bytes in hex; detail.length, and detail.text when every byte is printable

Read Points (dnp3.read)​

Purpose: Returns the latest value of each listed point of one type, for example analog inputs 0-3, 10 (at most 10,000 points). Nothing is sent to the device. Each entry is the payload above plus status: "ok" and ageMs, the time since the point was received. A point the outstation has not reported since the connection came up is returned as { "pointType": "analogInput", "index": 11, "status": "noValueYet" }, never as 0.

The process image starts empty on every new connection, so a read never returns a value from a link that has since dropped.

Read Points Directly (dnp3.readDirect)​

Purpose: Asks the outstation now for the current value of points of one type, all of them or the listed index ranges, and returns what it answers. Use it for a point the device leaves out of its integrity poll, or for a value wanted at this instant.

ParameterMeaning
Point TypeThe kind of point to read
IndexesIndexes and ranges, e.g. 100-119. Empty = every point of the type
TimeoutBound on the read (default 30m)

The answer also updates the process image and fires any matching Monitor Points triggers.

Poll Outstation (dnp3.poll)​

Purpose: Runs a poll now and returns every point received, together with the outstation's internal indications.

ParameterMeaning
Kindintegrity (default) = events of every class, then all current values. events = waiting events only. static = current values only
TimeoutBound on the whole poll (default 30m)

The internal indications are what the outstation says about itself in every response, listed by name when set: class1Events, class2Events, class3Events (events are waiting), needTime, localControl, deviceTrouble, deviceRestart, eventBufferOverflow, alreadyExecuting, configCorrupt, broadcast.

Read Device Attributes (dnp3.readAttributes)​

Purpose: Reads what the device says about itself: its manufacturer, product name, software and hardware versions, serial number, and the number of points of each type.

ParameterMeaning
Attribute Number254 (default) = all attributes. 255 = the list of attributes the device has. Any other number reads that one attribute, e.g. 252 = manufacturer name
TimeoutBound on the read (default 30m)

Not every device has attributes. One that does not refuses the request, and the function reports the refusal.

Operate Output (dnp3.operate)​

Purpose: Sends one control to one output and waits for the outstation's answer.

ParameterMeaning
Output Typerelay = a control relay output block. analogInt16, analogInt32, analogFloat32, analogFloat64 = the number format an analog set-point is sent in; use the one the device expects
IndexIndex of the output to operate
Valuerelay: latchOn, latchOff, pulseOn, pulseOff, trip or close. Analog types: a number; the integer formats take whole numbers in their range
ModeselectBeforeOperate (default) = select, then operate once the selection is confirmed. directOperate = one request. directOperateNoAck = one request the outstation never answers
Countrelay only: how many times the outstation carries out the operation (default 1)
On Time / Off Timerelay only: how long the output stays on in each pulse, and off between pulses (default 100ms each)
TimeoutBound on the whole control (default 30m)

Every parameter is checked before anything is sent; a bad value never reaches the outstation. An outstation that executes a control sends it back unchanged with a status; MaestroHub reports success only when the answer repeats the control with status success, and otherwise reports the outstation's reason, for example local: the device is switched to local control.

Operate Output function parametersOperate Output function parameters

An Operate Output function whose value is the ((command)) parameter, filled by the pipeline

In the directOperateNoAck mode the outstation sends no answer at all, so nothing confirms the control: the function succeeds with confirmed: false. Use it only where the device requires it, and read the output's status afterwards to learn the result.

A control is sent at most once per call

If the outstation does not answer the operate, the outcome is unknown: the outstation may have acted. MaestroHub then reports the outcome as unknown and never sends it again on its own, not by the connector and not by a pipeline's Retry on Fail or ForEach retry. A refused control is reported as refused and is not retried either. Controls are never buffered for later delivery, and a pipeline started by a late (replayed) value does not execute them unless the node allows late input.

Freeze Counters (dnp3.freeze)​

Purpose: Copies the running counters into the frozen counters at one instant, so that they can be read as of the same moment.

ParameterMeaning
Clear After FreezingAlso set the running counters to zero (freeze-and-clear). Default off
IndexesCounter indexes and ranges, e.g. 0-7. Empty = every counter
TimeoutBound on the freeze (default 30m)

Read the frozen values afterwards with Read Points Directly (point type frozenCounter). A freeze that got no answer is reported as outcome unknown and is not sent again, for the same reason as a control: a second freeze-and-clear would overwrite the frozen values.

Assign Class (dnp3.assignClass)​

Purpose: Tells the outstation which event class the points of one type report in.

ParameterMeaning
Point TypeThe kind of point to assign
IndexesIndexes and ranges, e.g. 0-15. Empty = every point of the type
Event Class1, 2 or 3; 0 = the points produce no events
TimeoutBound on the assignment (default 30m)

Whether a device keeps the assignment over its own restart is up to the device; MaestroHub does not apply it again by itself.

Restart Outstation (dnp3.restart)​

Purpose: Asks the outstation to restart and returns the time it says it will be away.

ParameterMeaning
Kindcold = a full restart of the device. warm = a restart of its DNP3 application. There is no default: choose one
TimeoutBound on the request (default 30m)

The connection drops while the device restarts and comes back by itself; each Monitor Points trigger reports the outage once. A restart that got no answer is reported as outcome unknown and is not sent again.

Synchronise Time (dnp3.timeSync)​

Purpose: Writes the current time to the outstation, in the connection's device time zone.

ParameterMeaning
Procedurelan (default) = the network procedure: the outstation notes when the request arrived. nonLan = measure the line's delay first, then write the time with it added; for serial lines
TimeoutBound on the synchronisation (default 30m)

The connection also does this by itself when the outstation asks for the time, if Time Synchronisation is not off.

Pipeline Integration​

Use the DNP3 functions you configure here as nodes inside the Pipeline Designer. Every function type except Monitor Points is exposed as a matching connector node, and Monitor Points functions drive the DNP3 trigger node:

  • DNP3 Read Points (connected.dnp3.read): executes a dnp3.read function
  • DNP3 Read Points Directly (connected.dnp3.readDirect): executes a dnp3.readDirect function
  • DNP3 Poll Outstation (connected.dnp3.poll): executes a dnp3.poll function
  • DNP3 Read Device Attributes (connected.dnp3.readAttributes): executes a dnp3.readAttributes function
  • DNP3 Operate Output (connected.dnp3.operate): executes a dnp3.operate function
  • DNP3 Freeze Counters (connected.dnp3.freeze): executes a dnp3.freeze function
  • DNP3 Assign Class (connected.dnp3.assignClass): executes a dnp3.assignClass function
  • DNP3 Restart Outstation (connected.dnp3.restart): executes a dnp3.restart function
  • DNP3 Synchronise Time (connected.dnp3.timeSync): executes a dnp3.timeSync function
  • DNP3 Trigger (trigger.dnp3): starts a pipeline for each point a dnp3.monitor function matches
DNP3 node in the pipeline designerDNP3 node in the pipeline designer

The Read Points node with its connection and function

For node-level details (output structure, execution settings), see the DNP3 Nodes and DNP3 Trigger pages.

For orchestration strategies that mix DNP3 with other data sources, see the Nodes page.

Common Use Cases​

RTU Telemetry to a Historian or UNS​

Author a Monitor Points function over the analog inputs, then use the DNP3 Trigger node to route every reported point to a historian, MQTT topic or the Unified Namespace. Each event carries the platform quality band and the device timestamp, so a UNS Publish node stores what the outstation said, not just the value.

Breaker and Alarm Events​

Watch the binary and double-bit inputs with Include Current Values off, so the pipeline fires only on events: a breaker opening, a protection alarm, a door contact. The device's own timestamp (sourceTimestamp) orders events correctly even when they arrive together in one poll.

Energy and Flow Metering​

Drive Freeze Counters from a Schedule trigger, for example at midnight, then read the frozen values with Read Points Directly (point type frozenCounter) and forward them to billing or reporting. Every counter is captured at the same instant, however long the read takes.

Supervised Switching and Set-Points​

Receive a switching order or set-point from an upstream system or operator UI, validate it with a Condition node, then issue an Operate Output in the select-before-operate mode. Because a control whose outcome is unknown is never re-sent, confirm the device state with Read Points Directly on the output's status before trying again.

What is and is not checked​

What stands behind the connector today:

  • Every request it sends is decoded without complaint by the Wireshark DNP3 dissector.
  • It is run against three independent outstation implementations (the open-source opendnp3 library in seven configurations, and two further simulators for device attributes), covering the startup sequence, polls, multi-fragment answers, unsolicited responses, controls in all three modes, refusals, freeze, class assignment, restart, both time procedures, TLS with mutual authentication, injected line noise and damaged frames, a serial port over a pseudo-terminal, and link loss.
  • Its decoder reads reference captures of a master and an outstation that MaestroHub had no part in, and a published capture of a commercial relay's device attributes.

What is not yet proven, and is the reason for the Beta mark:

  • It has not been connected to a physical RTU or relay.
  • It has not been run on a physical serial line: baud rate, line timing and RS-485 direction switching are untested on hardware.
  • Device attribute values of the less common types (octet string, bit string, time, Unicode string) are decoded from the published format but were not met in any test device.

Not supported: Secure Authentication, DNP3 over UDP, file transfer, data sets, several outstations on one connection, and acting as an outstation.

Troubleshooting​

Error Reference​

What you seeMeaningRetried?
the outstation at … did not answer a link status request as address N to master M (check both addresses)The connection opened but the outstation does not answer these link addressesThe connection keeps trying; fix the addresses
the outstation refused …: function not supported (also object unknown, parameter error)The outstation rejected the requestNo, it will not change on retry
the outstation refused the select: … / the outstation refused the operate: …The outstation refused a control, with its reason (not supported for this point, local: the device is switched to local control, blocked, and so on)No
no response from the outstationThe request was sent and not answered in timeReads and polls: yes. Controls, freeze and restart: never (the outstation may have acted)
the answer does not repeat the control that was sentThe outstation answered a control with something else; nothing is known about the outputNever
the outstation uses Secure Authentication, which is not supportedThe device demands DNP3 Secure AuthenticationNo
A certificate error on connectThe outstation's certificate does not match the CA or server nameNo
not connectedThe connection is not upYes, after reconnect

Connection Issues​

SymptomPossible CauseSolution
The connection opens and then fails with "check both addresses"The Outstation Address or the Master Address does not match the deviceSet both from the device's configuration. An outstation ignores a master address it is not configured for
A read returns noValueYet for a pointThe outstation has not reported it since the connection came up, or it is not in the device's integrity pollKeep Integrity Poll on Connect on; for a point the device leaves out, use Read Points Directly
Events arrive lateThey wait for the next event pollShorten the Event Poll Interval, or turn on Enable Unsolicited Responses if the device supports them
Device timestamps are hours offDevice Time Zone does not match the outstation's clockSet the zone the outstation's clock runs in; MaestroHub converts from it to UTC
sourceTimestamp is always null and flags.timeUnsynchronized is trueThe device's clock was never setSet Time Synchronisation to lan (or nonLan on a serial line), or run Synchronise Time
Connection refused with TLS fields filled inTLS material is set while Enable TLS is offTurn on Enable TLS, or clear the TLS fields
A serial connection keeps droppingBaud rate, parity or stop bits differ from the device's, or the line is noisyMatch the device's serial settings; a connection ends after ten damaged frames in a row
The connection drops and reconnects every time something else connectsAnother master, or a second MaestroHub connection, is connecting to the same outstation port. Many outstations serve one TCP connection and drop the one they have when a new one arrivesKeep one connection per outstation. Functions and triggers share a connection; they do not need one each