Selaa lähdekoodia

[Bug fixed][DM30][DW30][Event code]: After EV board send the alarm code "000000" to DCM, the following alarm code will not displayed and stored.

2020.06.16 / TC Hsu

Actions: After EV board send the "000000" to DCM, it will be stored, and ignore all following event code, Correct the strncmp item from _chargingData[gun_index]->EvConnAlarmCode to the errCode in the AbnormalStopAnalysis() function to fixed it.

Image version    : N/A
Image checksum   : N/A

Hardware PWB P/N : N/A
Hardware Version : N/A

Files:

	modified:   EVSE/Projects/DM30/Apps/Module_EvComm.c
	modified:   EVSE/Projects/DW30/Apps/Module_EvComm.c
TC_Hsu 4 vuotta sitten
vanhempi
commit
53d2c44d93

+ 1 - 1
EVSE/Projects/DM30/Apps/Module_EvComm.c

@@ -2366,7 +2366,7 @@ void AbnormalStopAnalysis(byte gun_index, byte *errCode)
     sprintf(string, "%d%d%d%d%d%d", *(errCode + 0), *(errCode + 1), *(errCode + 2), *(errCode + 3), *(errCode + 4), *(errCode + 5));
 
     PRINTF_FUNC("NOTIFICATION_EV_STOP : Err Code = %s \n", string);
-    if (strncmp((char *)_chargingData[gun_index]->EvConnAlarmCode, "000000", 6) == EQUAL ||
+    if (strncmp(string, "000000", 6) == EQUAL ||
         strncmp((char *)_chargingData[gun_index]->EvConnAlarmCode, "", 6) != EQUAL)
         return;
 

+ 1 - 1
EVSE/Projects/DW30/Apps/Module_EvComm.c

@@ -2366,7 +2366,7 @@ void AbnormalStopAnalysis(byte gun_index, byte *errCode)
     sprintf(string, "%d%d%d%d%d%d", *(errCode + 0), *(errCode + 1), *(errCode + 2), *(errCode + 3), *(errCode + 4), *(errCode + 5));
 
     PRINTF_FUNC("NOTIFICATION_EV_STOP : Err Code = %s \n", string);
-    if (strncmp((char *)_chargingData[gun_index]->EvConnAlarmCode, "000000", 6) == EQUAL ||
+    if (strncmp(string, "000000", 6) == EQUAL ||
         strncmp((char *)_chargingData[gun_index]->EvConnAlarmCode, "", 6) != EQUAL)
         return;