Skip to content

This is a online information WebUI with rest api based on php showing information from Victron Cerbo GX via Modus TCP

Notifications You must be signed in to change notification settings

datjan/php-victron-cerbogx-modbus-tcp

Repository files navigation

php-victron-cerbogx-modbus-tcp

This is a online information WebUI with rest api based on php showing information from Victron Cerbo GX via Modus TCP

WebUi

index.php alt text

Rest Json

reload_modbus.php alt text

Configuration Victron Cerbo GX

Activate Modbus within the Victron Remote Console.

  • Settings -> Services -> Modbus TCP -> Enabled

Configuration PHP

Within the following file you can configure your modbus connection:

  • setup_modbus.php

Example Configuration

  • url = ip from the Victron Cerbo GX device
  • meters information can be found in Victron "CCGX-Modbus-TCP-register-list" Excel-Document
$setup = '
[{
	"name":"Victron",
	"url":"192.168.178.36",
	"protocol":"TCP",
	"meters":[
		{
			"name":"Grid L1",
			"unit_of_measurement":"W",
			"data_type":"int16",
			"unit_id":"100",
			"address":"820",
			"scale":"1"
		},
		{
			"name":"Grid L2",
			"unit_of_measurement":"W",
			"data_type":"int16",
			"unit_id":"100",
			"address":"821",
			"scale":"1"
		},
		{
			"name":"Grid L3",
			"unit_of_measurement":"W",
			"data_type":"int16",
			"unit_id":"100",
			"address":"822",
			"scale":"1"
		},
		{
			"name":"ESS Minimum SoC setpoint",
			"unit_of_measurement":"%",
			"data_type":"uint16",
			"unit_id":"100",
			"address":"2901",
			"scale":"10"
		},
		{
			"name":"Battery state (System)",
			"unit_of_measurement":"(0=idle;1=charging;2=discharging)",
			"data_type":"uint16",
			"unit_id":"100",
			"address":"844",
			"scale":"1"
		},
		{
			"name":"Battery State of Charge (System)",
			"unit_of_measurement":"%",
			"data_type":"uint16",
			"unit_id":"100",
			"address":"843",
			"scale":"1"
		} 
	]
}]';

Example of Victron "CCGX-Modbus-TCP-register-list" documentation file: alt text

Actual Supported "data_type":

- string
- int16
- uint16
- int32
- uint32

Victron Remote Console "unit_id":

Settings -> Services -> Modbus TCP -> Existing Services

About

This is a online information WebUI with rest api based on php showing information from Victron Cerbo GX via Modus TCP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published