Release v1.1.1.2: Fix FW update reply and update Anti-Theft error 0x4000 alarm display
- Fix FW update freezing at first 128B by setting ReplyFlag=true in RequestFlashWrite and handling FW Update timeouts in csUartThread - Update Operating Status: remove Anti-Theft from Status (0x0004 -> TRIP) and display TRIP (Anti-Theft) in Alarm when errorCode is 0x4000 - Sync Status/Alarm string mapping in csLog for CSV data logging - Bump assembly version to v1.1.1.2
This commit is contained in:
@@ -311,10 +311,7 @@ namespace LFP_Manager.Utils
|
||||
result = "FLOATING";
|
||||
break;
|
||||
case 0x0004:
|
||||
if (aProtection == 0)
|
||||
result = "TRIP (Anti-Theft)";
|
||||
else
|
||||
result = "TRIP";
|
||||
result = "TRIP";
|
||||
break;
|
||||
case 0x0008:
|
||||
result = "CHG-LIMIT";
|
||||
@@ -329,12 +326,13 @@ namespace LFP_Manager.Utils
|
||||
return result;
|
||||
}
|
||||
|
||||
private static string GetAlarmString(short aAlarm)
|
||||
private static string GetAlarmString(short aAlarm, short aErrorCode = 0)
|
||||
{
|
||||
string result = "";
|
||||
bool[] rackStatus = csUtils.Int16ToBitArray(aAlarm);
|
||||
|
||||
if (aAlarm == 0) result = "NORMAL";
|
||||
if (((ushort)aErrorCode & 0x4000) == 0x4000) result = "TRIP (Anti-Theft)";
|
||||
else if (aAlarm == 0) result = "NORMAL";
|
||||
else if (aAlarm == 1) result = "WARNING";
|
||||
else if (aAlarm == 2) result = "FAULT";
|
||||
else if (aAlarm == 3) result = "WARMING UP";
|
||||
@@ -460,7 +458,7 @@ namespace LFP_Manager.Utils
|
||||
, sData.Information.BMS_SN_Str // 4 MODEL
|
||||
, GetCommStatus(sConfig, sData) // 5 COMM STATUS
|
||||
, GetStatusString(sData.StatusData.status, sData.StatusData.protection) // 6 STATUS
|
||||
, GetAlarmString(sData.StatusData.batteryStatus) // 7 ALARM
|
||||
, GetAlarmString(sData.StatusData.batteryStatus, sData.StatusData.errorCode) // 7 ALARM
|
||||
);
|
||||
|
||||
sdata += String.Format(
|
||||
|
||||
Reference in New Issue
Block a user