DNP3 outstation implementation mapped to Raspberry PI's GPIO pins
This project and opendnp3 require cmake and GCC 4.8:
> sudo apt-get install g++-4.8 cmake
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
Build and install the WiringPi library.
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
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