42 lines
673 B
Protocol Buffer
42 lines
673 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
import "VictronV1/BatteryStatus48TL.proto";
|
||
|
|
||
|
option csharp_namespace = "InnovEnergy.WireFormat.VictronV1";
|
||
|
|
||
|
enum DeviceType
|
||
|
{
|
||
|
UnknownDevice = 0;
|
||
|
Grid = 1;
|
||
|
Shore = 2;
|
||
|
AcInBus = 3;
|
||
|
AcOutBus = 4;
|
||
|
AcBus = 5;
|
||
|
DcBus = 6;
|
||
|
Inverter = 7;
|
||
|
Battery48TL200 = 8;
|
||
|
PvInverter = 9;
|
||
|
Mppt = 10;
|
||
|
Generator = 11;
|
||
|
AcLoad = 12;
|
||
|
DcLoad = 13;
|
||
|
Losses = 14;
|
||
|
BatteryHeater = 15;
|
||
|
}
|
||
|
|
||
|
message Phase
|
||
|
{
|
||
|
float voltage = 1;
|
||
|
float current = 2;
|
||
|
float power = 3;
|
||
|
}
|
||
|
|
||
|
message Device
|
||
|
{
|
||
|
DeviceType type = 1;
|
||
|
|
||
|
repeated Phase phases = 4;
|
||
|
repeated Device devices = 5;
|
||
|
|
||
|
BatteryStatus48TL batteryData = 10;
|
||
|
}
|