open_source:ccgx:raspbian_deb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
open_source:ccgx:raspbian_deb [2019-01-22 10:43] – external edit 127.0.0.1 | open_source:ccgx:raspbian_deb [2019-06-22 15:49] (current) – removed mvader | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Installing CCGX functionality on a raspberry pi (package based) ====== | ||
- | |||
- | While Matthijs is having fun at https:// | ||
- | |||
- | First of all, the Rpi 1 is based on a armv6, while armhf has a minimum of ARMv7+VFP3, yet the Raspbian image believes it is running armhf. The answer seems simply that Raspbian redefined armhf to ARMv6+VFP but forgot to rename it somehow. Since these binaries are incompatible, | ||
- | A Rpi 2 can run Debian armhf and would be better of doing so instead of running Raspbian. | ||
- | |||
- | Anyway, it seems that supporting a package for a rpi needs rpi specific packages, so that is what is done. To get it (there is only 1 for testing) the following must be done: | ||
- | |||
- | < | ||
- | sudo nano / | ||
- | </ | ||
- | |||
- | And add the following line | ||
- | < | ||
- | deb http:// | ||
- | </ | ||
- | |||
- | e.g. vedirect-dbus can now be installed with | ||
- | < | ||
- | sudo apt-get update | ||
- | sudo apt-get install vedirect-dbus | ||
- | </ | ||
- | |||
- | vedirect_dbus is an implementation of the design at https:// | ||
- | |||
- | < | ||
- | vedirect-dbus -s / | ||
- | </ | ||
- | |||
- | note: on a rpi it will connect to a SESSION dbus | ||
- | |||
- | To interact with it some dbus tool is needed, e.g.: | ||
- | < | ||
- | sudo apt-get install python-lxml | ||
- | cd / | ||
- | sudo wget https:// | ||
- | sudo chmod +x ./dbus | ||
- | </ | ||
- | |||
- | `dbus` should now list besides others e.g.: | ||
- | com.victronenergy.battery.ttyUSB0 | ||
- | |||
- | < | ||
- | dbus com.victronenergy.battery.ttyUSB0 / GetValue | ||
- | </ | ||
- | |||
- | should list all values | ||
- | |||
- | From python (just type python and hit enter) you can now do: | ||
- | < | ||
- | import dbus | ||
- | bus = dbus.SessionBus() | ||
- | item = bus.get_object(" | ||
- | print(item.GetValue()) | ||
- | </ | ||
- | |||
- | https:// | ||
open_source/ccgx/raspbian_deb.1548150227.txt.gz · Last modified: 2019-01-22 10:43 by 127.0.0.1