-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional documentation for powermeter start sequence or after commu…
…nication loss (#1019) Signed-off-by: florinmihut <[email protected]> Co-authored-by: Kai Hermann <[email protected]>
- Loading branch information
1 parent
be31e96
commit b65b846
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
```mermaid | ||
sequenceDiagram | ||
autonumber | ||
participant Powermeter | ||
participant EvseManager | ||
title Start of Powermeter or recovery after communication loss | ||
Note over Powermeter: Device communication (re)established | ||
Powermeter->>Powermeter: Request status from device | ||
Powermeter->>Powermeter: Detects a running transaction | ||
Powermeter->>Powermeter: Mark need_to_stop_transaction to true | ||
alt Next command is startTransaction | ||
EvseManager->>Powermeter: startTransaction | ||
Powermeter-->>Powermeter: stopTransaction | ||
Note over Powermeter: internal triggered stopTransaction will not send <br>a response to EvseManager since no stopTransaction was issued | ||
Powermeter->>Powermeter: Mark need_to_stop_transaction to false | ||
Powermeter-->>EvseManager: startTransaction Response (OK/ID) | ||
Powermeter->>Powermeter: Mark need_to_stop_transaction to true | ||
Note over EvseManager: Transaction started successfully | ||
else Next command is stopTransaction | ||
EvseManager->>Powermeter: stopTransaction | ||
Powermeter-->>EvseManager: stopTransaction Response (OK/OCMF) | ||
Powermeter->>Powermeter: Mark need_to_stop_transaction to false | ||
end | ||
Note over Powermeter: In case of CommunicationError during start/stop<br> transaction please check the start/stop transaction diagrams | ||
``` |