Comments (4)
You can use the OccupiedInput to manually keep the connector in Finishing state:
Line 304 in 1bf4942
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.
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)
- Commercially Available Options HOT 4
- FreeVending Mode for Two conectors Simultaneously HOT 5
- cppcheck fail (cppcheck --force src/MicroOcpp) HOT 4
- Charge profile limiting not working if current is set (tested with the simulator) HOT 1
- First StatusNotification 1970-01-01 timestamp HOT 3
- [Firmware Update]How Can We do The Firmware update in ESP-IDF, there is no any document available how to implement it.. HOT 1
- Unable to Remote Start Transaction strangely one day HOT 3
- Server error, data loss! HOT 2
- Error compiling for board DOIT ESP32 DEVKIT V1
- What value do I measure with "L1" compared to "L1-N" and "L1-L2", according to the protocol specifications? What value do I get via "L1"? HOT 1
- ESP32-IDF ESP32C3 : How to test all the ocpp opetrations over esp32 module HOT 3
- GetDiagnostics‘s issue HOT 2
- Offline Start transaction using local list HOT 2
- Ethernet (W5500) Support with Mongoose WebSocket Adapter on Arduino platform HOT 2
- Error compiling for board DOIT ESP32 DEVKIT V1
- How to send 'Finishing' when receive 'SoftReset' during charging. Not 'Unableable' HOT 2
- Is OCPP 1.6 security whitepaper edition 3 planned HOT 2
- How to make specific feature not support HOT 1
- configuration key 'ChargingScheduleAllowedChargingRateUnit' accessibility is wrong, and some item is missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microocpp.