Skip to content
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

Doc/powermeter error handling #834

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

florinmihut
Copy link
Contributor

Describe your changes

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

modules/LemDCBM400600/main/lem_dcbm_400600_controller.cpp Outdated Show resolved Hide resolved
modules/LemDCBM400600/main/lem_dcbm_400600_controller.cpp Outdated Show resolved Hide resolved
modules/LemDCBM400600/main/lem_dcbm_400600_controller.cpp Outdated Show resolved Hide resolved
modules/LemDCBM400600/main/lem_dcbm_400600_controller.cpp Outdated Show resolved Hide resolved
modules/LemDCBM400600/main/lem_dcbm_400600_controller.cpp Outdated Show resolved Hide resolved
modules/LemDCBM400600/main/lem_dcbm_400600_controller.cpp Outdated Show resolved Hide resolved
} else {
EVLOG_info << "LEM DCBM 400/600: The last known transaction has the id:" << this->current_transaction_id;
}
} catch (json::exception& json_error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

catch const ref, i.e. const json::exception& json_error)

Comment on lines 1 to 16
@startuml
actor User
participant Powermeter
participant Error_Manager
participant EVSE_Manager
participant OCPP

User -> EVSE_Manager: startChargingSession
alt successful case
EVSE_Manager -> Powermeter: startTransaction
Powermeter -> EVSE_Manager: startTransaction Response (OK/ID)
EVSE_Manager -> OCPP: persistTransaction (ID)
else startTransaction failing due to power loss
EVSE_Manager -> Powermeter: startTransaction
Powermeter -> EVSE_Manager: startTransaction Response (FAIL)
EVSE_Manager -> User: stopChargingSession
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really nice that you've created these puml files, maybe we should come up with a guideline, whether rendered versions (jpeg, png) should be created - because it is quite some work to manually create a picture out of it

doc/powermeter_stop_transaction_without_error copy.puml Outdated Show resolved Hide resolved
@Pietfried Pietfried self-assigned this Sep 3, 2024
@corneliusclaussen corneliusclaussen force-pushed the doc/powermeter_error_handling branch from 9ca144a to 1ecf197 Compare September 5, 2024 10:27
florinmihut and others added 5 commits October 1, 2024 09:17
…entical to init. Subsequent StopTransactions will be handled correctly since we know if a transaction is open or not

Signed-off-by: florinmihut <florinmihut1@gmail.com>
Signed-off-by: florinmihut <florinmihut1@gmail.com>
Signed-off-by: florinmihut <florinmihut1@gmail.com>
…er and OCPP covering handling of OCMF/Eichrecht

Signed-off-by: pietfried <pietgoempel@gmail.com>
Signed-off-by: pietfried <pietgoempel@gmail.com>
@corneliusclaussen corneliusclaussen force-pushed the doc/powermeter_error_handling branch from d5def77 to 60c75b5 Compare October 1, 2024 07:17
@florinmihut florinmihut deleted the doc/powermeter_error_handling branch October 16, 2024 16:30
@Pietfried Pietfried restored the doc/powermeter_error_handling branch December 18, 2024 09:03
@Pietfried Pietfried reopened this Dec 18, 2024
Pietfried and others added 4 commits December 18, 2024 10:03
Signed-off-by: florinmihut <florinmihut1@gmail.com>
Signed-off-by: florinmihut <florinmihut1@gmail.com>
Signed-off-by: florinmihut <florinmihut1@gmail.com>
Copy link
Contributor

@barsnick barsnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor grammar nitpicking

doc/ocmf/powermeter_start_transaction.md Outdated Show resolved Hide resolved
doc/ocmf/powermeter_stop_transaction.md Outdated Show resolved Hide resolved
Pietfried and others added 2 commits January 6, 2025 08:58
Co-authored-by: barsnick <barsnick@users.noreply.github.com>
Signed-off-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com>
Co-authored-by: barsnick <barsnick@users.noreply.github.com>
Signed-off-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com>
Copy link
Contributor

@Pietfried Pietfried left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on how we decide about #993 we might need to change the documentation here. I would suggest to move this PR into #993

EvseManager->>Powermeter: startTransaction
Powermeter-->>EvseManager: startTransaction Response (FAIL)

EvseManager->>OCPP: Event(Deauthorized)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my comment here which would change this flow.
#993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants