open-ocpp icon indicating copy to clipboard operation
open-ocpp copied to clipboard

handle empty id tag in stopTransaction

Open HMNoureldin opened this issue 1 year ago • 1 comments

  • according to OCTT , TestCase 032_2 when the powerless occurred while the vehicle is charging and you don't have a backup power source then the charging point should send stop transaction to the back-end to close the opened session when powerless happened , but in this case the charging-point doesn't have the id-tag that corresponds to that opened session as we keep it as part of the session in the run time , so the only way to stop the session is to get this id-tag from the cache data base.

image

@mahdidadashi65 @thom-gh @SiarheiVolkau @ruudvd

HMNoureldin avatar Apr 18 '24 12:04 HMNoureldin

Hi, I'm not sure you have to send an idTag in this case since no user has presented physically nor remotely an idTag to stop the transaction. The StopReason::PowerLoss should be sufficient.

c-jimenez avatar May 20 '24 11:05 c-jimenez

@c-jimenez there was already an IdTag presented by the user and was ongoing transaction , then powerloss happens , so i need to stop transcation when the system start again but I don't have the idTag for this session and you don't provide any API to get the IDTag , do you have any suggestion to stop transaction without the IdTag ?

HMNoureldin avatar Jun 25 '24 08:06 HMNoureldin

Hi, In your case, you must call the ChargePoint::stopTransaction() method with an empty string for the id_tag parameter and Reason::PowerLoss for the reason parameter.

c-jimenez avatar Jun 25 '24 08:06 c-jimenez