OCPP.Core icon indicating copy to clipboard operation
OCPP.Core copied to clipboard

OCPPMiddleware: Support for Remote Start and Stop

Open danielnord opened this issue 3 years ago • 4 comments

Add support for:

  • RemoteStartTransaction
  • RemoteStopTransaction

danielnord avatar Jun 16 '22 22:06 danielnord

Hi, @danielnord Thanks for the implementation. How can I trigger the RemoteStartTransaction / RemoteStopTransaction from Central System?

axen2u avatar Jun 20 '22 10:06 axen2u

@danielnord You haven't handle the RemoteStartTransaction and RemoteStopTransaction, and you don't get any result back from them even they work actually but this line here string apiResult = await msgOut.TaskCompletionSource.Task; will wait forever because it never completes, I tried a solution on my own, however things get messy as the msgOut can't be passed from a HandlerMethod to another as they get reinitialized and completing the task on RemoteStartTransactionHandler wasn't a good idea as the StartTransaction command starts afterward and the result should be returned from the HandleStartTransaction method which returns the TransactionId :). I am still trying to figure out how to make it work, I will leave a reply in case I make it :)

ximki avatar Jun 25 '23 10:06 ximki

Any news regarding the implementation of RemoteStartTransaction and RemoteStopTransaction ?

pbonato avatar Apr 28 '24 20:04 pbonato

Any news regarding the implementation of RemoteStartTransaction and RemoteStopTransaction ?

I did an ugly solution for myself, forgot the details but I remember I created a "tracker" class to know when to end the await of task completion, it worked when I tested it but as I said I don't remember details.

ximki avatar Apr 28 '24 20:04 ximki