Преглед на файлове

[Bug fixed][DM30][DW30][OCPP smart charhing]: If OCPP backend not connected, the charging current will be 0A when charging.

2020.07.07 / TC Hsu

Actions: Since OCPP backend not connected, the default value of ChargingProfileCurrent and ChargingProfilePower is 0, it will make the available current transfer to EV is 0. Modify the GetMaxVolAndCurMethod() and GetMaxPowerMethod() functions, the compare action should only active when the ChargingProfileCurrent and ChargingProfilePower is more then 0.

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 години
родител
ревизия
e0ab71f89c
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      EVSE/Projects/DM30/Apps/Module_EvComm.c
  2. 2 2
      EVSE/Projects/DW30/Apps/Module_EvComm.c

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

@@ -3007,7 +3007,7 @@ void GetMaxVolAndCurMethod(byte index, float *vol, float *cur)
         *cur = maxChargingCur[index];
 
     if (_chargingData[index]->SystemStatus == S_CHARGING &&
-        _chargingData[index]->ChargingProfileCurrent >= 0 &&
+        _chargingData[index]->ChargingProfileCurrent > 0 &&
         _chargingData[index]->ChargingProfileCurrent <= *cur)
     {
         *cur = _chargingData[index]->ChargingProfileCurrent;
@@ -3020,7 +3020,7 @@ void GetMaxPowerMethod(byte index, float *pow)
         *pow = maxChargingPow;
 
     if (_chargingData[index]->SystemStatus == S_CHARGING &&
-        _chargingData[index]->ChargingProfilePower >= 0 &&
+        _chargingData[index]->ChargingProfilePower > 0 &&
         _chargingData[index]->ChargingProfilePower <= *pow)
     {
         *pow = _chargingData[index]->ChargingProfilePower;

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

@@ -3007,7 +3007,7 @@ void GetMaxVolAndCurMethod(byte index, float *vol, float *cur)
         *cur = maxChargingCur[index];
 
     if (_chargingData[index]->SystemStatus == S_CHARGING &&
-        _chargingData[index]->ChargingProfileCurrent >= 0 &&
+        _chargingData[index]->ChargingProfileCurrent > 0 &&
         _chargingData[index]->ChargingProfileCurrent <= *cur)
     {
         *cur = _chargingData[index]->ChargingProfileCurrent;
@@ -3020,7 +3020,7 @@ void GetMaxPowerMethod(byte index, float *pow)
         *pow = maxChargingPow;
 
     if (_chargingData[index]->SystemStatus == S_CHARGING &&
-        _chargingData[index]->ChargingProfilePower >= 0 &&
+        _chargingData[index]->ChargingProfilePower > 0 &&
         _chargingData[index]->ChargingProfilePower <= *pow)
     {
         *pow = _chargingData[index]->ChargingProfilePower;