-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/evsemanager ocpp errorhandling #764
Conversation
bbb3bf6
to
5ef39ba
Compare
824bfe1
to
5ca8be5
Compare
f85090f
to
97b7a3e
Compare
modules/OCPP/OCPP.cpp
Outdated
const auto evse_id = error.origin.mapping.has_value() ? error.origin.mapping.value().evse : 0; | ||
|
||
if (this->started) { | ||
// TODO: Report correct evse_id once Error type includes it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
modules/OCPP/OCPP.cpp
Outdated
const auto evse_id = error.origin.mapping.has_value() ? error.origin.mapping.value().evse : 0; | ||
const auto error_info = get_error_info(error); | ||
if (this->started) { | ||
// TODO: Report correct evse_id once Error type includes it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
456f7d1
to
931ccbd
Compare
Signed-off-by: Cornelius Claussen <[email protected]>
Signed-off-by: Cornelius Claussen <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: Cornelius Claussen <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: Cornelius Claussen <[email protected]>
…201 modules: * added enable_global_errors to OCPP and OCPP201 module to be able to subscribe to all errors reported in EVerest * added error_mapping.hpp to OCPP module to be able to convert to MREC errors * removed SessionEvent handling for ::Error and ::PermanentFault because this is replaced by subscribing to errors using the new tools of everest-framework Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: Cornelius Claussen <[email protected]>
Signed-off-by: pietfried <[email protected]>
…error Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
…or. Added retrieval of evse id from error and use this for reporting. Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: Piet Gömpel <[email protected]>
Signed-off-by: Piet Gömpel <[email protected]>
Signed-off-by: pietfried <[email protected]>
…th module Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
40bfcd1
to
6b80948
Compare
config/config-sil-ocpp-pnc.yaml
Outdated
config_module: | ||
connector_id: 1 | ||
yeti_driver_2: | ||
module: JsYetiSimulator | ||
evse: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should be evse: 2 ?
dependencies.yaml
Outdated
cmake_condition: "EVEREST_DEPENDENCY_ENABLED_LIBEVSE_SECURITY" | ||
|
||
# OCPP | ||
libocpp: | ||
git: https://github.com/EVerest/libocpp.git | ||
git_tag: 01f064f45f6d0ff44605db07373e4b9ea02b63b8 | ||
git_tag: feature/refactor-ocpp16-error-state-machine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: update before merge
Signed-off-by: pietfried <[email protected]>
Signed-off-by: Piet Gömpel <[email protected]>
Describe your changes
Refactored Error Handling in EvseManager
The following SessionEventEnums have been removed from the evse_manager interface:
The EvseManager now uses the error handling provided by the everest-framework to raise/report errors. A
PermanentFault
error raised by the EvseManager indicates that charging is not possible.Refactored Error Handling in OCPP and OCPP201 modules
The OCPP modules where listening to the removed SessionEvents and were therefore refactored to be able to retrieve the errors raised by the new mechanism from the everest-framework.
Make use of everest-framework error handling feature in OCPP and OCPP201 modules:
Issue ticket number and link
Companion PR in libocpp: EVerest/libocpp#673
Checklist before requesting a review