Update GUI version to 2.1.3.9 and fix CAN protocol issues (Cell Diff code, Balancing interval bug, Calibration B-offset bug)

This commit is contained in:
2026-02-19 09:17:48 +09:00
parent 0956e4d38a
commit a690441f7c
2 changed files with 5 additions and 5 deletions

View File

@@ -225,7 +225,7 @@ namespace LFP_Manager.Function
); );
rSystemData.CalibriationData.SystemInfo.devTime = dev; rSystemData.CalibriationData.SystemInfo.devTime = dev;
break; break;
case 21: // Cell Voltage Difference Parameter case 2: // Cell Voltage Difference Parameter
rSystemData.ParamData.CellVoltageDifferenceTrip = (short)((data[0] * 256) + data[1]); rSystemData.ParamData.CellVoltageDifferenceTrip = (short)((data[0] * 256) + data[1]);
rSystemData.ParamData.CellVoltageDifferenceWarning = (short)((data[2] * 256) + data[3]); rSystemData.ParamData.CellVoltageDifferenceWarning = (short)((data[2] * 256) + data[3]);
rSystemData.ParamData.CellVoltageDifferenceRelease = (short)((data[4] * 256) + data[5]); rSystemData.ParamData.CellVoltageDifferenceRelease = (short)((data[4] * 256) + data[5]);
@@ -375,7 +375,7 @@ namespace LFP_Manager.Function
int ss = Convert.ToInt32(String.Format("{0:ss}", DateTime.Now)); int ss = Convert.ToInt32(String.Format("{0:ss}", DateTime.Now));
if (ss == 0) if (ss == 0)
{ {
result[3] = 1; result[3] |= 1;
UInt32 nTime = (UInt32)csUtils.UnixTimeNow(); UInt32 nTime = (UInt32)csUtils.UnixTimeNow();
result[4] = (byte)(nTime >> 24); result[4] = (byte)(nTime >> 24);
result[5] = (byte)(nTime >> 16); result[5] = (byte)(nTime >> 16);
@@ -430,7 +430,7 @@ namespace LFP_Manager.Function
result[4] = (byte)(aCalib.SystemVoltage.Calibration_K >> 8); result[4] = (byte)(aCalib.SystemVoltage.Calibration_K >> 8);
result[5] = (byte)(aCalib.SystemVoltage.Calibration_K >> 0); result[5] = (byte)(aCalib.SystemVoltage.Calibration_K >> 0);
result[6] = (byte)(aCalib.SystemVoltage.Calibration_B >> 8); result[6] = (byte)(aCalib.SystemVoltage.Calibration_B >> 8);
result[7] = (byte)(aCalib.SystemVoltage.Calibration_K >> 0); result[7] = (byte)(aCalib.SystemVoltage.Calibration_B >> 0);
break; break;
case 22: // Current Warning and Fault Parameter case 22: // Current Warning and Fault Parameter
temp = (short)(aParam.ChaOverCurrentWarning + 30000); temp = (short)(aParam.ChaOverCurrentWarning + 30000);

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.3.8")] [assembly: AssemblyVersion("2.1.3.9")]
[assembly: AssemblyFileVersion("2.1.3.8")] [assembly: AssemblyFileVersion("2.1.3.9")]