fix: increase timeout for chargeParamDiscovery and CableCheck

This commit is contained in:
uhi22 2023-05-12 22:18:51 +02:00
parent 82f08c7c4a
commit 01c7c069fd

View file

@ -372,7 +372,7 @@ class fsmPev():
self.enterState(stateWaitForConnectorLock) self.enterState(stateWaitForConnectorLock)
else: else:
# Not (yet) finished. # Not (yet) finished.
if (self.numberOfChargeParameterDiscoveryReq>=20): # approx 20 seconds, should be sufficient for the charger to find its parameters... if (self.numberOfChargeParameterDiscoveryReq>=60): # approx 60 seconds, should be sufficient for the charger to find its parameters... The ISO allows up to 55s reaction time and 60s timeout for "ongoing".
self.addToTrace("ChargeParameterDiscovery lasted too long. " + str(self.numberOfChargeParameterDiscoveryReq) + " Giving up.") self.addToTrace("ChargeParameterDiscovery lasted too long. " + str(self.numberOfChargeParameterDiscoveryReq) + " Giving up.")
self.enterState(stateSequenceTimeout) self.enterState(stateSequenceTimeout)
else: else:
@ -427,7 +427,7 @@ class fsmPev():
self.Tcp.transmit(msg) self.Tcp.transmit(msg)
self.enterState(stateWaitForPreChargeResponse) self.enterState(stateWaitForPreChargeResponse)
else: else:
if (self.numberOfCableCheckReq>30): # approx 30s should be sufficient for cable check if (self.numberOfCableCheckReq>60): # approx 60s should be sufficient for cable check. The ISO allows up to 55s reaction time and 60s timeout for "ongoing".
self.addToTrace("CableCheck lasted too long. " + str(self.numberOfCableCheckReq) + " Giving up.") self.addToTrace("CableCheck lasted too long. " + str(self.numberOfCableCheckReq) + " Giving up.")
self.enterState(stateSequenceTimeout) self.enterState(stateSequenceTimeout)
else: else: