dnp3 / rpi-dnp3-gpio

Example project that interfaces opendnp3 with the Raspberry PI's GPIO pins
Apache License 2.0
11 stars 8 forks source link

rpi-dnp3-gpio

DNP3 outstation implementation mapped to Raspberry PI's GPIO pins

prerequisites

This project and opendnp3 require cmake and GCC 4.8:

> sudo apt-get install g++-4.8 cmake

dependencies

The library also uses the inih library for reading configuration files. This is specified as a git submodule, so be sure to clone this repository recursively:

git clone --recursive https://github.com/automatak/rpi-dnp3-gpio.git

wiringPI

Build and install the WiringPi library.

opendnp3

Build and install the 2.2.0 release of opendnp3. Build instructions are here.

> CXX=g++-4.9 cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
> make
> sudo make install

building

The build uses cmake:

> mkdir build
> cd build
> cmake ..
> make

usage

The program takes a single argument, the path to the INI configuration file:

> ./rpi-dnp3-gpio ../default.ini