DNP3 TCP Client Configuration example: Difference between revisions
DNP3 TCP Client Configuration example (view source)
Revision as of 14:34, 1 August 2023
, 1 August 2023no edit summary
(DNP3 configuration example) |
PauliusRug (talk | contribs) No edit summary |
||
(30 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Summary== | |||
'''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). | '''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 example provides an Step by Step instructions on how to | This example provides an Step by Step instructions on how to configure DNP3 functionality in RUTX11 device. In this RutX11 is configured as the TCP Master and DNP3 outstation to send data to a remote HTTPS server. | ||
==INSTALLING DNP3 PACKAGE== | |||
DNP3 can be installed using the package manager | DNP3 can be installed using the package manager | ||
Line 12: | Line 11: | ||
[[File:Networking rutx11 example DNP3 installing dnp3 package v1.png|border| class=tlt-border]] | [[File:Networking rutx11 example DNP3 installing dnp3 package v1.png|border| class=tlt-border]] | ||
After that navigate to | After that navigate to Services→DNP3 | ||
[[File:Networking rutx11 example DNP3 service features v1.png|border|class=tlt-border]] | [[File:Networking rutx11 example DNP3 service features v1.png|border|class=tlt-border]] | ||
DNP3 Protocol contains two features. | DNP3 Protocol contains two features. TCP MASTER and DNP3 OUTSTATION. | ||
==DNP3 TCP MASTER== | |||
TCP Master requests specific information from DNP3 outstation through the communication channel. | TCP Master requests specific information from DNP3 outstation through the communication channel. | ||
To setup TCP MASTER click on the TCP Master Button and click ‘ADD’ to add a new master. | To setup TCP MASTER click on the TCP Master Button and click ‘ADD’ to add a new master. | ||
[[File: | [[File:Network rutx example DNP3 TCP master overview.png|border|class=tlt-border|alt=|900x900px]] | ||
===TCP Configuration=== | |||
On this section we configure the parameters of the DNP3 Outstation that the Master will be querying with requests. | On this section we configure the parameters of the DNP3 Outstation that the Master will be querying with requests. | ||
[[File:Networking rutx11 example DNP3 tcp master configuration v1.png|border|class=tlt-border]] | [[File:Networking rutx11 example DNP3 tcp master configuration v1.png|border|class=tlt-border|alt=|924x924px]] | ||
===Requests Configuration=== | |||
To obtain data from DNP3 Outstation configure a DNP3 instance. The DNP3 Master will send a request to DNP3 outstation specifying the function codes to be sent. The outstation then sends the requested data back to the DNP3 Master. | To obtain data from DNP3 Outstation configure a DNP3 instance. The DNP3 Master will send a request to DNP3 outstation specifying the function codes to be sent. The outstation then sends the requested data back to the DNP3 Master. | ||
On the ‘ADD NEW INSTANCE SECTION’ type the name of the instance. In this example we want to read the serial number, so we type ‘serial’. | On the ‘ADD NEW INSTANCE SECTION’ type the name of the instance. In this example we want to read the serial number, so we type ‘serial’. | ||
[[File:Requests config.png|border|class=tlt-border|alt=|900x900px]] | |||
[[File: | |||
Line 49: | Line 42: | ||
The serial parameter is '5' with the group type 'octet string' and then ‘SAVE & APPLY’ | The serial parameter is '5' with the group type 'octet string' and then ‘SAVE & APPLY’ | ||
[[File:Networking rutx example DNP3 Instance settings v1.png|border|class=tlt-border|alt=|900x900px]] | |||
TCP MASTER should look like this. | TCP MASTER should look like this. | ||
[[File:Networking rux11 example DNP3 tcp master configurdv1.png|border|class=tlt-border]] | |||
DNP3 OUTSTATION | |||
A DNP3 Outstation component communicates with a single master via a communication channel. | A DNP3 Outstation component communicates with a single master via a communication channel. | ||
To configure the DNP3 Outstation Go to | To configure the DNP3 Outstation Go to Services→ DNP3→ DNP3 OUTSTATION | ||
===DNP3 Outstation Configuration=== | |||
[[File: | [[File:Networks rutx example DNP3 outstation config v1.png|border|class=tlt-border|alt=|900x900px]] | ||
'''NOTE: Th'''e Local Address and the Remote Address configuration in TCP Master and DNP3 Outstation are configured in reverse such that the Local address in TCP Master is the Remote address in the DNP3 Outstation and vice versa. | '''NOTE: Th'''e Local Address and the Remote Address configuration in TCP Master and DNP3 Outstation are configured in reverse such that the Local address in TCP Master is the Remote address in the DNP3 Outstation and vice versa. | ||
==TESTING DNP3== | |||
To test DNP3 protocol set up an account with the [https://beeceptor.com/ beeceptor] and create an endpoint. | To test DNP3 protocol set up an account with the [https://beeceptor.com/ beeceptor] and create an endpoint. | ||
Line 74: | Line 68: | ||
[[File:Networking rutx11 example DNP3 dnp3testing endpoint v1.png|border|class=tlt-border]] | [[File:Networking rutx11 example DNP3 dnp3testing endpoint v1.png|border|class=tlt-border]] | ||
===Data to Server=== | |||
Navigate to Services | Navigate to Services → Data to Server and set up the server. | ||
Set the JSON according to the kind of data you want to include. For this example, we will use. | Set the JSON according to the kind of data you want to include. For this example, we will use. | ||
{"Date": "%d", "Remote IP": %r, "Data": %o} | {"Date": "%d", "Remote IP": %r, "Data": %o} | ||
[[File:Networks rutx example DNP3 data to server v1.png|border|class=tlt-border|alt=|925x925px]] | |||
Proceed to [https://beeceptor.com/ beeceptor] to check the results | Proceed to [https://beeceptor.com/ beeceptor] to check the results | ||
Line 92: | Line 86: | ||
[[File:Networking rutx11 example DNP3 dnp3testing results v1.png|border|class=tlt-border]] | [[File:Networking rutx11 example DNP3 dnp3testing results v1.png|border|class=tlt-border]] | ||
Category: | [[Category:Configuration Examples]] |