# How to Setup DNP3 Device

**URL:** <http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347>\
**Category:** openHistorian\
**Created:** [June 28, 2018, 8:30pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347 "2018-06-28T20:30:00Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![ritchiecarroll](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/ritchiecarroll/32/2_2.png) [@ritchiecarroll](http://discussions.gridprotectionalliance.org/u/ritchiecarroll)\
**Post date:** [May 29, 2020, 3:45pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/21 "2020-05-29T15:45:55Z")

</div>

That disposed message may be from previous instance.

What do you see if you execute the following from the console:

```auto
    ls rtac-dnp3

```

Thanks,  
Ritchie

---

<div class="post-metadata">

**Author:** ![mstucky](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@mstucky](http://discussions.gridprotectionalliance.org/u/mstucky)\
**Post date:** [June 1, 2020, 2:16pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/22 "2020-06-01T14:16:01Z")

</div>

Progress! When I issued the `ls rtac-dnp3` command, I found that the device, while initialized, was not connected (I’d previously thought that if initialized, it would automatically connect). After executing `connect rtac-dnp3` it started successfully polling the RTAC and plotting data in the real-time measurements graph. Is there a way to set up automatic connection so it doesn’t have to be connected through the console?

---

<div class="post-metadata">

**Author:** ![StephenCWills](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/stephencwills/32/20_2.png) [@StephenCWills](http://discussions.gridprotectionalliance.org/u/StephenCWills)\
**Post date:** [June 1, 2020, 2:23pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/23 "2020-06-01T14:23:00Z")

</div>

It should automatically connect by default because `Connect On Demand` is unchecked. The `Connect On Demand` flag, if checked, tells the adapter that it shouldn’t connect unless an action or output adapter advertises that it expects to receive the measurements provided by the DNP3 adapter.

---

<div class="post-metadata">

**Author:** ![mstucky](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@mstucky](http://discussions.gridprotectionalliance.org/u/mstucky)\
**Post date:** [June 3, 2020, 1:41pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/24 "2020-06-03T13:41:57Z")

</div>

In the process of trying various things, I’d checked the `Connect On Demand` option back on. After unchecking it again, it appears to be connecting automatically as you noted. Thank you both for your assistance with this!

---

<div class="post-metadata">

**Author:** ![konrad](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/k/f475e1/32.png) [@konrad](http://discussions.gridprotectionalliance.org/u/konrad)\
**Post date:** [July 18, 2020, 2:28pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/25 "2020-07-18T14:28:29Z")

</div>

I have being through all the suggestions here, but I am still having problems to set the DNP3 communication on openHistorian.

The system here already has a Modbus communication between RTAC and openHistorian that is working fine. The DNP3 adapters DLL are installed and the firewall is off.

For the DNP3 communication, I have already created the comms.xml and mapping.xml files, as well as the points on the Measurement screean at Manager. However, when I initialize the device I have a Error Connecting.

There are some points in this processes that still not clear for me. Like, Where should I drop the comms and mapping files? Would it be recognize if I drop the files at C: and indicate the path?

CommsFilePath=C:\comms.xml;  
MappingFilePath=:\mapping.xml

The “ls rtac\_dnp3\_server” command is not working in my case. There is any thing that could avoid this command?

---

<div class="post-metadata">

**Author:** ![ritchiecarroll](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/ritchiecarroll/32/2_2.png) [@ritchiecarroll](http://discussions.gridprotectionalliance.org/u/ritchiecarroll)\
**Post date:** [July 20, 2020, 2:34pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/26 "2020-07-20T14:34:31Z")

</div>

I would try putting the XML configuration files in the same folder as the openHistorian.

---

<div class="post-metadata">

**Author:** ![ritchiecarroll](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/ritchiecarroll/32/2_2.png) [@ritchiecarroll](http://discussions.gridprotectionalliance.org/u/ritchiecarroll)\
**Post date:** [September 30, 2020, 12:40am UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/27 "2020-09-30T00:40:00Z")

</div>

We’ve updated our DNP3 engine to the latest version of [OpenDNP3](https://github.com/dnp3/opendnp3/). When installing the nightly build (as of `9/30/2020` or later), you should now run the `DNP3ConfigGenerator.exe` from the install folder. This tool will extract the needed OpenSSL DLL’s and the required Visual C++ Redistributable Installer, i.e., `VC_redist.x64.exe`. The Visual C++ Redistributable Installer will need to be run before attempting to use the DNP3 adapter, otherwise the adapter may not show up as an available input adapter in the openHistorian manager. The DNP3 config generation tool will also create a sample `device.xml` comm file and `mappings.xml` mappings file in the openHistorian installation folder. If you already have files with these names in your openHistorian installation folder that are important, you should back these up before running the `DNP3ConfigGenerator.exe`.

Thanks,  
Ritchie

---

<div class="post-metadata">

**Author:** ![Andre\_Santos](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/andre_santos/32/856_2.png) [@Andre\_Santos](http://discussions.gridprotectionalliance.org/u/Andre_Santos)\
**Post date:** [April 15, 2024, 5:49pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/28 "2024-04-15T17:49:51Z")

</div>

What is the problem working as an outstation (openPDC replying questions for measurements) ?

Thanks.

---

<div class="post-metadata">

**Author:** ![StephenCWills](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/stephencwills/32/20_2.png) [@StephenCWills](http://discussions.gridprotectionalliance.org/u/StephenCWills)\
**Post date:** [April 17, 2024, 6:24pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/29 "2024-04-17T18:24:02Z")

</div>

Hi Andre,

There is no problem, but the functionality doesn’t exist in openPDC. One would need to create an action adapter or output adapter that provides the functionality.

Thanks,  
Stephen

---

<div class="post-metadata">

**Author:** ![Alci\_Ruiz\_Figueiredo](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/alci_ruiz_figueiredo/32/1616_2.png) [@Alci\_Ruiz\_Figueiredo](http://discussions.gridprotectionalliance.org/u/Alci_Ruiz_Figueiredo)\
**Post date:** [October 30, 2025, 9:33pm UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/30 "2025-10-30T21:33:25Z")

</div>

Hi !

Is it possible to configure the OpenPDC as a DNP3 Server (slave) , to send data to a client ?

Thanks

Alci

---

<div class="post-metadata">

**Author:** ![ritchiecarroll](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/ritchiecarroll/32/2_2.png) [@ritchiecarroll](http://discussions.gridprotectionalliance.org/u/ritchiecarroll)\
**Post date:** [November 26, 2025, 3:51am UTC](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347/31 "2025-11-26T03:51:28Z")

</div>

It is now - in latest version… Use nightly build.

[Previous page](http://discussions.gridprotectionalliance.org/t/how-to-setup-dnp3-device/347.md?page=1)
