TRB142 DNP3

Main Page > TRB Gateways > TRB142 > TRB142 Manual > TRB142 WebUI > TRB142 Services section > TRB142 DNP3

The information in this page is updated in accordance with firmware version TRB1_R_00.07.01.

SummaryEdit

Distributed Network Protocol 3 (DNP3) is a set of communications protocols used between components in process automation systems. It is primarily used for communications between a master station and Remote Terminal Units (RTUs) or Intelligent Electronic Devices (IEDs).

This manual page provides an overview of the DNP3 functionality in TRB142 devices.

Note: DNP3 is additional software that can be installed from the Services → Package Manager page.

DNP3 ParametersEdit

DNP3 parameters are held within indexes. The index numbers and corresponding system values are described in the table below:

required value index group type
Uptime 0 Counter
Signal Strength 1 Octet String
Modem temperature (in 0.1 °C) 2 Octet String
Hostname 3 Octet String
Operator 4 Octet String
Router Serial Number 5 Octet String
Router name 7 Octet String
Network state 9 Octet String
Connection state 10 Octet String
Mobile data received today 20 Counter
Mobile data sent today 21 Counter
Mobile data received this week 22 Counter
Mobile data sent this week 23 Counter
Mobile data received this month 24 Counter
Mobile data sent this month 25 Counter
Mobile data received last 24h 26 Counter
Mobile data sent last 24h 27 Counter
Mobile data received last week 28 Counter
Mobile data sent last week 29 Counter
Mobile data received last month 30 Counter
Mobile data sent last month 31 Counter


TCP MasterEdit

A master in DNP3 is a component that communicates (requests data) with a single outstation via a communication channel. By default, the master list is empty. To add a new master, click the 'Add' button.

Networking rutos manual dnp3 tcp master add button.png

After clicking 'Add' you will be redirected to the newly added master's configuration page.

TCP Master ConfigurationEdit


The TCP Master Configuration section is used to configure the parameters of a DNP3 Outstation that the Master (this TRB142 device) will be querying with requests. The figure below is an example of the TCP Master Configuration and the table below provides information on the fields contained in that section:

Networking rutos manual dnp3 tcp master tcp master configuration.png

Field Value Description
Enable off | on; default: off Turns communication with the outstation device on or off.
Name string; default: none Name of the TCP master, used for easier management purposes.
IP address ip; default: none DNP3 Outstation IP address.
Port integer [0..65535]; default: none DNP3 Outstation Port.
Local Address integer [0..65535]; default: none Master Link-Layer address.
Remote Address integer [0..65535]; default: none Outstation Link-Layer address.
Period integer [1..60]; default: none Interval at which requests are sent to the outstation device.
Timeout integer [1..60]; default: none Maximum response wait time.

Requests ConfigurationEdit


A DNP3 request is a way of obtaining data from DNP3 Outstations. The master sends a request to an outstation specifying the function codes to be performed. The outstation then sends the requested data back to the DNP3 master.

The Request Configuration list is empty by default. To add a new Request Configuration look to the Add New Instance section. Enter a custom name into the 'New Configuration Name' field and click the 'Add' button:

Networking rutos manual dnp3 tcp master tcp master configuration requests configuration add new instance v2.png

The new Request Configuration should become visible in the list:

Networking rutos manual dnp3 tcp master requests configuration.png

Field Value Description
Name string; default: Unnamed Name of this Request Configuration. Used for easier management purposes.
Start Index integer [0..65535]; default: none Start index of the data subarray.
End Index integer [0..65535]; default: none End index of the data subarray.
Data Type Binary | Double Binary | Counter | Frozen Counter | Analog | Octet String | Analog Output Status | Binary Output Status; default: Binary Data object group of the requested index(-es).
off/on slider off | on; default: off Turns the request on or off.

Serial Master

The Serial Master page is used to configure the device as a DNP3 RTU Master. DNP3 RTU (remote terminal unit) is a serial communication protocol mainly used in communication via serial interfaces.

Serial Master Configuration


The Serial Master Configuration section is used to configure the parameters of a DNP3 Outstation that the Master (this TRB142 device) will be querying with requests. The figure below is an example of the Serial Master Configuration and the table below provides information on the fields contained in that section:

Networking rutos manual dnp3 serial master serial master configuration.png

Field Value Description
Enable off | on; default: off Turns communication with the outstation device on or off.
Name string; default: none Name of the Serial master, used for easier management purposes.
Serial port RS232 ; default: RS232 Selects which serial port to use for communication.
Baud rate 300 | 1200 | 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200; default: 115200 Serial data transmission rate (in bits per second).
Data bits 5 | 6 | 7 | 8; default: 8 Number of data bits for each character.
Stop bits None | 1 | 1.5 | 2; default: 1 Stop bits sent at the end of every character allow the receiving signal hardware to detect the end of a character and to resynchronise with the character stream. Electronic devices usually use one stop bit. Two stop bits are required if slow electromechanical devices are used.
Parity None | Even | Odd; default: None In serial transmission, parity is a method of detecting errors. An extra data bit is sent with each data character, arranged so that the number of 1 bits in each character, including the parity bit, is always odd or always even. If a byte is received with the wrong number of 1s, then it must have been corrupted. However, an even number of errors can pass the parity check.
  • None (N) - no parity method is used.
  • Odd (O) - the parity bit is set so that the number of "logical ones (1s)" has to be odd.
  • Even (E) - the parity bit is set so that the number of "logical ones (1s)" has to be even.
Flow control None | Hardware | Xon/Xoff; default: None In many circumstances a transmitter might be able to send data faster than the receiver is able to process it. To cope with this, serial lines often incorporate a "handshaking" method, usually distinguished between hardware and software handshaking.
  • Hardware - hardware handshaking. RTS and CTS are turned OFF and ON from alternate ends to control data flow, for instance when a buffer is almost full.
  • Xon/Xoff - software handshaking. The Xon and Xoff characters are sent by the receiver to the sender to control when the sender will send data, i.e., these characters go in the opposite direction to the data being sent. The circuit starts in the "sending allowed" state. When the receiver's buffers approach capacity, the receiver sends the Xoff character to tell the sender to stop sending data. Later, after the receiver has emptied its buffers, it sends an Xon character to tell the sender to resume transmission.
Open delay integer [0..10000]; default: none Some physical layers need time to 'settle' so that the first tx isn't lost.
Local Address integer [0..65535]; default: none Master Link-Layer address.
Remote Address integer [0..65535]; default: none Outstation Link-Layer address.
Period integer [1..60]; default: none Interval at which requests are sent to the outstation device.
Timeout integer [1..60]; default: none Maximum response wait time.

Requests Configuration


A DNP3 request is a way of obtaining data from DNP3 Outstations. The master sends a request to an outstation specifying the function codes to be performed. The outstation then sends the requested data back to the DNP3 master.

The Request Configuration list is empty by default. To add a new Request Configuration look to the Add New Instance section. Enter a custom name into the 'New Configuration Name' field and click the 'Add' button:

Networking rutos manual dnp3 tcp master tcp master configuration requests configuration add new instance v2.png

The new Request Configuration should become visible in the list:

Networking rutos manual dnp3 tcp master requests configuration.png

Field Value Description
Name string; default: Unnamed Name of this Request Configuration. Used for easier management purposes.
Start Index integer [0..65535]; default: none Start index of the data subarray.
End Index integer [0..65535]; default: none End index of the data subarray.
Data Type Binary | Double Binary | Counter | Frozen Counter | Analog | Octet String | Analog Output Status | Binary Output Status; default: Binary Data object group of the requested index(-es).
off/on slider off | on; default: off Turns the request on or off.

DNP3 OutstationEdit

An outstation in DNP3 is a component that communicates with a single master via a communication channel. It makes measurements of the physical world and then sends them to a master upon request (solicited) or on its own accord (unsolicited). Occasionally a master requests that it do something by sending it a control. This provides the user with the possibility to get system parameters.

The figure below is an example of the DNP3 Outstation window section and the table below provides information on the fields contained in that window:

Networking rutos manual dnp3 dnp3 outstation.png

Field Value Description
Enable off | on; default: off Turns DNP3 Outstation on or off.
Local Address integer [0..65535]; default: none Outstation Link-Layer address.
Remote Address integer [0..65535]; default: none Master Link-Layer address.
Unsolicited enabled off | on; default: none Enables the transmission of unsolicited messages.
Protocol TCP | UDP; default: TCP Protocol used for DNP3 communications.
Port integer [0..65535]; default: 502 Port used for DNP3 communications.
UDP response address ipv4; default: none UDP response address.
UDP response port integer [0..65535]; default: none UDP response port.
Allow Remote Access off | on; default: off Allows remote DNP3 connections by adding an exception to the device's firewall on the port specified in the field above.