Coder Social home page Coder Social logo

Comments (2)

matth-x avatar matth-x commented on June 24, 2024 1

You can use the OccupiedInput to manually keep the connector in Finishing state:

void setOccupiedInput(std::function<bool()> occupied, unsigned int connectorId = 1); //Input if instead of Available, send StatusNotification Preparing / Finishing

More precisely, this callback puts the connector into an Occupied state, i.e. if the connector is Available, it becomes Preparing and if it's about to end charging (i.e. states Charging/SuspendedEV/-EVSE) it becomes Finishing (or remains Finishing if the state was already Finishing).

I think setting a timer which keeps the connector occupied for one second after unplugging should do the trick.

I'm surprised that this is mandatory. Will make this the default behavior in a future release.

from microocpp.

JungHeum-Park avatar JungHeum-Park commented on June 24, 2024

Hi.
I'm stuck with same test case.
I add timer acting like @matth-x said.
Now there is no problem about Available state.
My new problem is when server send RemoteStopTransaction, library send 'Rejected. To pass the testcase, it should send Accepted`.

This is log from octt

[09:49:40:967] [info]  ========================== Starting Main Testcase Steps ==========================
[09:49:40:967] [prompt]  Please make the EV stop charging.
[09:49:45:139] [REQUEST]
[09:49:45:139] [msg-in]  [2,"1000008","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"SuspendedEV","timestamp":"2024-06-21T09:49:44.715Z"}]
[09:49:49:279] [info]  Got 'Continue' on the previous API request, continuing.
[09:49:49:279] [api_dismissed]  1691cdd2-5538-4d1e-ab30-660eb06e1a6c
[09:49:49:279] [prompt]  Please unplug your cable on EV side.
[09:49:52:775] [info]  Got 'Continue' on the previous API request, continuing.
[09:49:52:775] [api_dismissed]  82460c1b-bc98-4037-8974-279005698adc
[09:49:52:775] [info]  Waiting for request message of type StatusNotificationRequest
[09:49:52:775] [info]  Received request message of the expected type.
[09:49:52:775] [RESPONSE]
[09:49:52:775] [msg-out]  [3, "1000008", {}]
[09:49:52:776] [REQUEST]
[09:49:52:776] [msg-out]  [2, "671a784b-508c-4328-adca-3643d58a9ff1", "RemoteStopTransaction", {"transactionId":1718953096}]
[09:49:52:776] [info]  Waiting for response message of type RemoteStopTransactionResponse
[09:49:53:575] [REQUEST]
[09:49:53:575] [msg-in]  [2,"1000009","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"SuspendedEVSE","timestamp":"2024-06-21T09:49:45.135Z"}]
[09:49:53:577] [RESPONSE]
[09:49:53:577] [msg-out]  [3, "1000009", {}]
[09:49:53:577] [info]  Automatically replying to StatusNotification request (will not be picked up by the testcase): status has to do with SuspendedEV(SE).
[09:49:53:596] [RESPONSE]
[09:49:53:596] [msg-in]  [3,"671a784b-508c-4328-adca-3643d58a9ff1",{"status":"Rejected"}]
[09:49:53:598] [info]  Received response message of the expected type.
[09:49:53:598] [info]  RemoteStopTransactionResponse.status should be 'Accepted'
[09:49:53:598] [info]  The value of 'Reset CS after testcase' is false
[09:49:53:698] [verdict]  FAIL
[09:49:53:699] [info]  The test case has ended.
[09:49:53:700] [stopped_testcase]  


Test case result : FAIL

from microocpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.