浏览代码

Treat DC Shutdown status codes as valid when STOP power delivery is requested

When an EVSE side shutdown is initated it's hard to tell from
the controller point of view wich exact state is requested. So in
WaitForPowerDeliveryReq we treat EVSE_SHUTDOWN and similar status codes
as valid when the EV requested a stop
Nagy Attila Gabor 5 年之前
父节点
当前提交
5446786323

+ 5 - 2
RISE-V2G-SECC/src/main/java/com/v2gclarity/risev2g/secc/states/WaitForPowerDeliveryReq.java

@@ -152,8 +152,11 @@ public class WaitForPowerDeliveryReq extends ServerState {
 				dcEVSEStatusCode.equals(DCEVSEStatusCodeType.EVSE_EMERGENCY_SHUTDOWN) || 
 				dcEVSEStatusCode.equals(DCEVSEStatusCodeType.EVSE_EMERGENCY_SHUTDOWN) || 
 				dcEVSEStatusCode.equals(DCEVSEStatusCodeType.EVSE_MALFUNCTION)) {
 				dcEVSEStatusCode.equals(DCEVSEStatusCodeType.EVSE_MALFUNCTION)) {
 				getLogger().error("EVSE status code is '" + dcEVSEStatusCode.toString() + "'");
 				getLogger().error("EVSE status code is '" + dcEVSEStatusCode.toString() + "'");
-				powerDeliveryRes.setResponseCode(ResponseCodeType.FAILED_POWER_DELIVERY_NOT_APPLIED);
-				return false;
+				
+				if (!powerDeliveryReq.getChargeProgress().equals(ChargeProgressType.STOP)) {
+					powerDeliveryRes.setResponseCode(ResponseCodeType.FAILED_POWER_DELIVERY_NOT_APPLIED);
+					return false;
+				}
 			}
 			}
 					
 					
 		}
 		}