open_source:ccgx:d-bus
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
open_source:ccgx:d-bus [2019-05-25 11:41] – [Basics] mvader | open_source:ccgx:d-bus [2019-06-21 15:45] – mvader | ||
---|---|---|---|
Line 150: | Line 150: | ||
__ / | __ / | ||
- | The Devices object path is only used for products that operate in parallel mode. This object-path is used to access the underlying real products. Examples of products operating in parallel mode are VE.Bus products (Inverters, Multi’s, Quattro’s), | + | |
+ | Initially, the | ||
+ | |||
+ | Per 2019, this has changed: for solar chargers we are no longer grouping the data on one D-Bus service, instead each solar charger will go on the D-Bus with its own service. Still we use the /Devices path, but then to have a generic API to find all devices. This is used by the VregLink API: the mqtt-rpc vreg-device-list method scans each d-bus service for its entries on the /Devices sub-tree and returns the assembled data. | ||
+ | |||
+ | Some examples: | ||
+ | |||
+ | < | ||
+ | vedirect_interface will publish only one entry per service. | ||
+ | |||
+ | com.victronenergy.battery.ttyO2: | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | vecan-dbus example, first item is a 1st generation solar charger (which has a grouped entry on D-Bus). and the second one a 2nd generation solar charger; which are all uniquely on D-Bus: | ||
+ | |||
+ | com.victronenergy.vecan.can0: | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | Note that for the second entry, there is no ServiceName entered, since because of the grouping there is not necessarily a group item. | ||
+ | </ | ||
+ | |||
__ / | __ / |
open_source/ccgx/d-bus.txt · Last modified: 2019-07-04 11:17 by jhofstee