From 544678632353a86ee62ba3583ca89c122ea52d81 Mon Sep 17 00:00:00 2001 From: Nagy Attila Gabor Date: Sun, 26 Apr 2020 22:20:19 +0200 Subject: [PATCH] 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 --- .../risev2g/secc/states/WaitForPowerDeliveryReq.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/RISE-V2G-SECC/src/main/java/com/v2gclarity/risev2g/secc/states/WaitForPowerDeliveryReq.java b/RISE-V2G-SECC/src/main/java/com/v2gclarity/risev2g/secc/states/WaitForPowerDeliveryReq.java index 789948f..6c6f417 100644 --- a/RISE-V2G-SECC/src/main/java/com/v2gclarity/risev2g/secc/states/WaitForPowerDeliveryReq.java +++ b/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_MALFUNCTION)) { 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; + } } }