question

rainerb avatar image
rainerb asked

Venus GX Digital Input - dbus command syntax

Hello,

does anyone know the exact dbus command, in order to read out the State of Digital Input 4 of a Venus GX device? I use a bash script with a few other (working) dbus commands but I can't find the exact syntax for the inputs.

I found the following in the "Modbus TCP Register list", but still don't know the command to address a specific Input:

I tried this and a lot of variations dbus -y com.victronenergy.digitalinput /State GetValue

(By the way, the Input is working and shows its state on the Remote console).


Thank you

Rainer


Venus GX - VGX
1571995454052.png (19.8 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
Ole Saether avatar image
Ole Saether answered ยท

Try:
dbus -y com.victronenergy.digitalinput.input04 /State GetValue

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

rainerb avatar image rainerb commented ยท

Hi, thank you. That is what I was looking for, it works...

0 Likes 0 ยท
markussi avatar image
markussi answered ยท

hello,


i search the correct Input mapping for the digital Inputs of the venus gx via Modbus.

I use a Siemens Logo, at this device i have no "dbus -y com.victronenergy.digitalinput.input04". I can only use Adress and Unit ID. Which Unit ID i should use for the digital Input 1-4?


Other Data (for example the SOC on 843 and Unit ID 0) works fine.


Thank you,

Markus

4 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Ole Saether avatar image Ole Saether commented ยท

@MarkusSi
Go to https://www.victronenergy.com/support-and-downloads/whitepapers

and download the document Modbus-TCP register list. In this document it is described how to obtain the Unit ID.

0 Likes 0 ยท
markussi avatar image markussi commented ยท

@osaether

in the Modbus-TCP Register list ist no extra Unit ID for each of the 5 different digital Inputs. In the Register List is no Unit ID for com.victronenergy.digitalinput.input

What are the different Settings for Input 1 vs. Input 2?

0 Likes 0 ยท
Ole Saether avatar image Ole Saether markussi commented ยท

@MarkusSi Have you checked the complete document I mentioned above? It is described under "Note on finding the modbus Unit ID" at the bottom of the tab "Unit ID mapping"

0 Likes 0 ยท
mvader (Victron Energy) avatar image mvader (Victron Energy) โ™ฆโ™ฆ Ole Saether commented ยท

Hey both, to find the unitid, there is a page in the GUI now. See in the GX Modbus-TCP manual:
https://www.victronenergy.com/live/ccgx:modbustcp_faq

Also, if ever you want to see the source code of the mapping, and our changes to it, see here:
https://github.com/victronenergy/dbus_modbustcp/blob/master/attributes.csv

(same file is on your GX device)

best, Matthijs

0 Likes 0 ยท