Update Schneider meter reading from the device and upload doc files for the new battery 250 UP
This commit is contained in:
parent
bb5b91b380
commit
dca4543a13
|
@ -32,7 +32,9 @@ public static class Controller
|
|||
var mode = s.SelectControlMode().WriteLine();
|
||||
|
||||
if (mode is EssMode.Off)
|
||||
{
|
||||
return EssControl.Default;
|
||||
}
|
||||
|
||||
if (mode is EssMode.NoGridMeter)
|
||||
return new EssControl
|
||||
|
@ -152,7 +154,7 @@ public static class Controller
|
|||
|
||||
private static Double MaxBatteryChargePower(this StatusRecord s)
|
||||
{
|
||||
// This introduce a limit when we don't have communication with batteries
|
||||
// This introduces a limit when we don't have communication with batteries
|
||||
// Otherwise the limit will be 0 and the batteries will be not heated
|
||||
|
||||
var batteries = s.GetBatteries();
|
||||
|
@ -213,7 +215,6 @@ public static class Controller
|
|||
if (calibrationChargeForced == CalibrationChargeType.AdditionallyOnce && statusRecord.Battery.Eoc )
|
||||
{
|
||||
statusRecord.Config.ForceCalibrationChargeState = CalibrationChargeType.RepetitivelyEvery;
|
||||
//_hasAdditionalCalibrationChargeChecked = false;
|
||||
|
||||
}
|
||||
else if (calibrationChargeForced == CalibrationChargeType.RepetitivelyEvery && statusRecord.Battery.Eoc && _hasRepetitiveCalibrationChargeChecked)
|
||||
|
@ -222,47 +223,26 @@ public static class Controller
|
|||
_hasRepetitiveCalibrationChargeChecked = false;
|
||||
}
|
||||
}
|
||||
|
||||
return mustDoCalibrationCharge;
|
||||
}
|
||||
|
||||
private static Boolean RepetitiveCalibrationDateHasBeenPassed(DateTime calibrationChargeDate)
|
||||
{
|
||||
// if (!_hasRepetitiveCalibrationChargeChecked)
|
||||
// {
|
||||
// if (DateTime.Now >= calibrationChargeDate )
|
||||
// {
|
||||
// _hasRepetitiveCalibrationChargeChecked = true;
|
||||
// return true;
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
// return true;
|
||||
|
||||
|
||||
if (DateTime.Now >= calibrationChargeDate )
|
||||
{
|
||||
_hasRepetitiveCalibrationChargeChecked = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
private static Boolean AdditionalCalibrationDateHasBeenPassed(DateTime calibrationChargeDate)
|
||||
{
|
||||
// if (!_hasAdditionalCalibrationChargeChecked)
|
||||
// {
|
||||
if (DateTime.Now >= calibrationChargeDate )
|
||||
{
|
||||
//_hasAdditionalCalibrationChargeChecked = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
// }
|
||||
// return true;
|
||||
|
||||
}
|
||||
|
||||
private static Double ControlGridPower(this StatusRecord status, Double targetPower)
|
||||
|
|
|
@ -8,8 +8,8 @@ public static class Config
|
|||
public const String Version = "1.0";
|
||||
public const String BusName = "com.victronenergy.grid.Schneider";
|
||||
public const Byte ModbusNodeId = 1;
|
||||
public const String OwnAddress = "192.168.1.246";
|
||||
public const String PeerAddress = "192.168.1.82";
|
||||
public const String OwnAddress = "192.168.3.147";
|
||||
public const String PeerAddress = "192.168.3.63";
|
||||
//public const String PeerAddress = "127.0.0.1";
|
||||
public const UInt16 PeerPort = 502;
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ chmod +x /opt/innovenergy/SchneiderMeterDriver/service/log/run
|
|||
# Create the symbolic link for the service
|
||||
ln -sf /opt/innovenergy/SchneiderMeterDriver/service /service/SchneiderMeterDriver
|
||||
|
||||
# Wait a bit for the symlink to be recongnized
|
||||
# Wait a bit for the symlink to be recognized
|
||||
|
||||
sleep 2
|
||||
|
||||
|
|
|
@ -14,41 +14,7 @@ public partial class Battery250UpRecord
|
|||
{
|
||||
[InputRegister(1004)] private UInt16 _LedStates;
|
||||
[InputRegister<UInt64>(1005)] private UInt64 _WarningFlags;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//mine
|
||||
[InputRegister<UInt64>(1006)] private UInt64 _WarningFlags16to31;
|
||||
[InputRegister<UInt64>(1007)] private UInt64 _WarningFlags32to47;
|
||||
[InputRegister<UInt64>(1008)] private UInt64 _WarningFlags48to63;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[InputRegister<UInt64>(1009)] private UInt64 _AlarmFlags;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//mine
|
||||
|
||||
[InputRegister<UInt64>(1010)] private UInt64 _AlarmFlags16to31;
|
||||
[InputRegister<UInt64>(1011)] private UInt64 _AlarmFlags32to47;
|
||||
[InputRegister<UInt64>(1012)] private UInt64 _AlarmFlags48to63;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[InputRegister(1013)] private UInt16 _IoStates;
|
||||
|
||||
[InputRegister(999, Scale = 0.01)] private Double _CellsVoltage;
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue