User Tools

Site Tools


open_source:ccgx:installing_ccgx_func_on_raspberry_pi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
open_source:ccgx:installing_ccgx_func_on_raspberry_pi [2015-02-27 21:27] – [2. Install the dbus-cli] mvaderopen_source:ccgx:installing_ccgx_func_on_raspberry_pi [2019-06-22 15:47] (current) mvader
Line 1: Line 1:
 ====== Installing CCGX functionality on a raspberry pi ====== ====== Installing CCGX functionality on a raspberry pi ======
  
-(in progress, everybody reading this page, feel free too add and improve)+The contents of this page were moved to the Venus OS wiki:
  
-===== Steps =====+https://github.com/victronenergy/venus/wiki
  
-==== 1. Install daemontools ==== 
-[[http://cr.yp.to/daemontools.html|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 [[open_source:ccgx:commandline|CCGX command-line introduction]]. 
  
-To install daemontools follows [[http://cr.yp.to/daemontools/install.html|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: 
-<code> 
--include /usr/include/errno.h      
-</code> 
- 
-Daemontools will now be running, to make sure check the processlist: 
-<code> 
-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 
-</code> 
- 
-But is not doing anything yet, as there are no services setup in /service yet. 
- 
-==== 2. Install the dbus-cli ==== 
-[[https://code.google.com/p/dbus-tools/wiki/DBusCli|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 [[open_source:ccgx:start|CCGX introduction]] and look on Google. See [[open_source:ccgx:commandline|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 ==== 
-[[https://github.com/victronenergy/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: 2015-02-27 21:27 by mvader

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki