added some more checkpoints

This commit is contained in:
uhi22 2023-03-26 01:19:32 +01:00
parent 39db41bde4
commit 223c70dc86

View file

@ -226,7 +226,7 @@ class fsmPev():
# Or, the authorization is finished. This is shown by EVSEProcessing=Finished. # Or, the authorization is finished. This is shown by EVSEProcessing=Finished.
if (strConverterResult.find('"EVSEProcessing": "Finished"')>0): if (strConverterResult.find('"EVSEProcessing": "Finished"')>0):
self.publishStatus("Auth finished") self.publishStatus("Auth finished")
self.addToTrace("It is Finished. Will send ChargeParameterDiscoveryReq") self.addToTrace("Checkpoint538: Auth is Finished. Will send ChargeParameterDiscoveryReq")
self.sendChargeParameterDiscoveryReq() self.sendChargeParameterDiscoveryReq()
self.numberOfChargeParameterDiscoveryReq = 1 # first message self.numberOfChargeParameterDiscoveryReq = 1 # first message
self.enterState(stateWaitForChargeParameterDiscoveryResponse) self.enterState(stateWaitForChargeParameterDiscoveryResponse)
@ -264,7 +264,7 @@ class fsmPev():
# (B) The charger finished to tell the charge parameters. # (B) The charger finished to tell the charge parameters.
if (strConverterResult.find('"EVSEProcessing": "Finished"')>0): if (strConverterResult.find('"EVSEProcessing": "Finished"')>0):
self.publishStatus("ChargeParams discovered") self.publishStatus("ChargeParams discovered")
self.addToTrace("It is Finished. Will change to state C and send CableCheckReq.") self.addToTrace("Checkpoint550: It is Finished. Will change to state C and send CableCheckReq.")
# pull the CP line to state C here: # pull the CP line to state C here:
self.hardwareInterface.setStateC() self.hardwareInterface.setStateC()
self.sendCableCheckReq() self.sendCableCheckReq()
@ -387,7 +387,7 @@ class fsmPev():
if (strConverterResult.find("PowerDeliveryRes")>0): if (strConverterResult.find("PowerDeliveryRes")>0):
if (self.wasPowerDeliveryRequestedOn): if (self.wasPowerDeliveryRequestedOn):
self.publishStatus("PwrDelvy ON success") self.publishStatus("PwrDelvy ON success")
self.addToTrace("Starting the charging loop with CurrentDemandReq") self.addToTrace("Checkpoint700: Starting the charging loop with CurrentDemandReq")
self.sendCurrentDemandReq() self.sendCurrentDemandReq()
self.enterState(stateWaitForCurrentDemandResponse) self.enterState(stateWaitForCurrentDemandResponse)
else: else: