Skip to content

Example project that interfaces opendnp3 with the Raspberry PI's GPIO pins

License

Notifications You must be signed in to change notification settings

dnp3/rpi-dnp3-gpio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example project that interfaces opendnp3 with the Raspberry PI's GPIO pins

Resources

License

Stars

Watchers

Forks

Packages

No packages published