Skip to content

Commit

Permalink
fix: increase timeout for chargeParamDiscovery and CableCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
uhi22 committed May 12, 2023
1 parent 82f08c7 commit 01c7c06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fsmPev.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def stateFunctionWaitForChargeParameterDiscoveryResponse(self):
self.enterState(stateWaitForConnectorLock)
else:
# 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.enterState(stateSequenceTimeout)
else:
Expand Down Expand Up @@ -427,7 +427,7 @@ def stateFunctionWaitForCableCheckResponse(self):
self.Tcp.transmit(msg)
self.enterState(stateWaitForPreChargeResponse)
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.enterState(stateSequenceTimeout)
else:
Expand Down

0 comments on commit 01c7c06

Please sign in to comment.