User Tools

Site Tools


open_source:ccgx:installing_ccgx_func_on_raspberry_pi

This is an old revision of the document!


Installing CCGX functionality on a raspberry pi

(in progress, everybody reading this page, feel free too add and improve)

Steps

1. Install daemontools

Daemontools is a set of tools to run services: it runs an executable, and when it fails it will start it again. To see some commonly used commands, like starting and stopping a service, or seeing status of all services, check the CCGX command-line introduction.

To install daemontools follows the instructions on its install page, with one addition: right before running /package install, there is one change that is necessary to make it compile:

open conf-cc in ./src, and add the following parameter to the gcc call:

-include /usr/include/errno.h     

Daemontools will now be running, to make sure check the processlist:

pi@raspberrypi ~ $ ps ax | grep svscan
 2171 ?        Ss     0:00 /bin/sh /command/svscanboot
 2173 ?        S      0:00 svscan /service
 2260 pts/0    S+     0:00 grep --color=auto svscan

But is not doing anything yet, as there are no services setup in /service yet.

2. Install the dbus-cli

dbus-cli is a command line interface to dbus. Very useful to play with and debug all the different CCGX services. To find what D-Bus is, read the CCGX introduction and look on Google. See CCGX commandline intro for basic usage.

First, get the code from above, and put it somewhere in the path.

Then, get some dependencies, first install pip, the python installer:

sudo apt-get install python-pip

Then install lxml, which is needed by dbus-cli:

sudo apt-get install libxml2-dev libxslt1-dev python-dev
sudo pip install lxml

Done! If all works, you'll be able to run dbus -y from the commandline:

pi@raspberrypi ~ $ dbus -y
org.freedesktop.DBus

3. Install dbus-modbustcp

dbus-modbustcp is a modbustcp server, that allows for example PLCs to get data (battery voltage, etc.) from the D-Bus.

Install the qt libraries:

sudo apt-get install libqt4-dev

DISQUS

~~DISQUS~~

open_source/ccgx/installing_ccgx_func_on_raspberry_pi.1425068864.txt.gz · Last modified: by mvader

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki