Skip to content

Commit

Permalink
Additional documentation for powermeter start sequence or after commu…
Browse files Browse the repository at this point in the history
…nication loss (#1019)

Signed-off-by: florinmihut <[email protected]>
Co-authored-by: Kai Hermann <[email protected]>
  • Loading branch information
florinmihut and hikinggrass authored Jan 30, 2025
1 parent be31e96 commit b65b846
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions doc/ocmf/powermeter_start.md
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
```

0 comments on commit b65b846

Please sign in to comment.