From 5c44e176159764d146dca38aa74291b43ddcfa4f Mon Sep 17 00:00:00 2001 From: uhi22 Date: Mon, 3 Jul 2023 20:28:10 +0200 Subject: [PATCH] workaround: in SessionSetupResponse, treat ok as valid --- fsmPev.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fsmPev.py b/fsmPev.py index 74d0e40..332a417 100644 --- a/fsmPev.py +++ b/fsmPev.py @@ -286,7 +286,10 @@ class fsmPev(): self.sessionId = strSessionId except: self.addToTrace("ERROR: Could not decode the sessionID") - if (strResponseCode!="OK_NewSessionEstablished"): + if ((strResponseCode!="OK_NewSessionEstablished") and (strResponseCode!="OK")): + # According to the standard, the only valid response code is OK_NewSessionEstablished. + # But the ABB chargers use "OK", so we need to accept this, too. Discussed + # here: https://openinverter.org/forum/viewtopic.php?p=58399#p58399 self.addToTrace("Wrong response code. Aborting.") self.enterState(stateUnrecoverableError) return