소스 검색

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
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      RISE-V2G-SECC/src/main/java/com/v2gclarity/risev2g/secc/states/WaitForPowerDeliveryReq.java

+ 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_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;
+				}
 			}
 					
 		}