Skip to content

Over current error code#63

Open
AravindSubramanian752 wants to merge 5 commits into
mainfrom
ErrorCode_OverCurrent
Open

Over current error code#63
AravindSubramanian752 wants to merge 5 commits into
mainfrom
ErrorCode_OverCurrent

Conversation

@AravindSubramanian752

Copy link
Copy Markdown
Collaborator

Definitions and telemetry push

Aravind Subramanian added 3 commits July 12, 2026 15:41
Definitions and telemetry push
Definitions and telemetry push
Definitions and telemetry push

EVSE definition : This error code is set when the EVSE detects the Side B current exceeds the
maximum allowed Side B current threshold of the EVSE.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Cannot include the scenario where the EVSE does not regulate current accurately to EV target, since as per iec that situation does not fall under "OverCurrent".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does IEC specify the error code or scenario name for such situation? So that we can introduce dedicated error code with aligned naming.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If we are separating Side B or Side A - (also is it site or side) - we should consider renaming this to be more specific to the error message.

************************
OverCurrent Location
************************

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Since we decided to make the side A fault as a different error code, i am making the location of the fault as if its set by the EV/ EVSE, rather than side or side b. Because as per definition this error code is only monitoring and measuring side B and will be set only if that side violates.

Trigger Conditions
==================

- The EVSE trigger conditions and thresholds are as defined in the IEC 61851-23 standard, section CC.6.4.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Should we include requirements related to chademo or gbt?

@knowack1 knowack1 Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Since this is CharIN, I think we should stay focused on CCS for now.

- **Description**: The actual current measured at the over current location at the time of the over current condition.
- **Values**: Any positive numeric value representing the current in amperes.
- **Unit**: Amperes (A)
- **Resolution**: 0.1 A

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Any thoughts on resolution?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't have any specific thoughts on this. 0.1 seems reasonably good, and we can always change it later.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Agreed

@knowack1 knowack1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@AravindSubramanian752 thank you for the patch. Please find some comments from me and my AI.

SPDX-License-Identifier: CC-BY-4.0
Copyright CharIN e.V. and Contributors

.. _error_overcurrent:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🟡 Label vs title inconsistency: label is _error_overcurrent while the title is OverCurrentFailure. The existing pattern keeps them aligned (ConnectorLockFailure_error_connectorlockfailure). So the label name should be — _error_overcurrentfailure.

.. _error_overcurrent:

**********************
OverCurrentFailure

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🟡 Filename convention: existing files follow definitions_<Title>.rst (e.g. definitions_ConnectorLockFailure.rst). This file is definitions_OverCurrent.rst but the title is OverCurrentFailure. Consider definitions_OverCurrentFailure.rst to match.

Description
===========

EVSE definition : This error code is set when the EVSE detects the Side B current exceeds the

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🟢 Trailing whitespace here and on lines 15, 17, 21. Please strip.


The following telemetry signals are required for analyzing this error:

- :ref:`telemetry_OverCurrent`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🟠 High: "Related Telemetry" lists only the Location signal, but this PR also defines Actual Current and Threshold Current — the essential values for an over-current diagnosis. Compare definitions_ConnectorLockFailure.rst, which references both of its signals. List all three (Location label per the naming note in the telemetry file):

-  :ref:`telemetry_fault_location`
-  :ref:`telemetry_OverCurrent_ActualCurrent`
-  :ref:`telemetry_OverCurrent_ThresholdCurrent`

SPDX-License-Identifier: CC-BY-4.0
Copyright CharIN e.V. and Contributors

.. _telemetry_OverCurrent:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🧭 Naming (supersedes an earlier suggestion of mine to nest this under _OverCurrent_): this Location signal — values EVSE / EV / unknown — is orthogonal to the fault type and reusable. ConnectorLockFailure ("either EV or EVSE") already wants the same thing. Give it a neutral label and title now, e.g. .. _telemetry_fault_location: / title "Fault Location" (or "Detection Side"), even while it physically stays in this file. Then promoting it to the generic definitions.rst later is a pure cut-and-paste with zero :ref: churn. Deferring the move is fine; deferring the name costs a breaking rename once refs point at it.

.. _telemetry_OverCurrent:

************************
OverCurrent Location

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🟢 Stylistic: existing telemetry files indent the title one space under the overline ( Connector Lock Position); these titles are flush-left. Worth matching for a clean diff.

- **Unit**: N/A
- **Resolution**: N/A

.. _telemetry_OverCurrent_ActualCurrent:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The convention is to keep labels lowercase: _telemetry_over_current_actual_current.

However, I like your approach, as it provides a clean separation between the error code name and the value being measured.

What is inconsistent is starting with a lowercase letter while the subsequent parts are capitalized. Maybe the right way would be:
_telemetry_overCurrent_actualCurrent (my preferred approach)
or
_Telemetry_OverCurrent_ActualCurrent

Same comment for other labels.

OverCurrent Location
************************

- **Description**: The location of the over current condition.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🟢 Trailing whitespace. Please strip.

@AravindSubramanian752 AravindSubramanian752 linked an issue Jul 13, 2026 that may be closed by this pull request
Aravind Subramanian added 2 commits July 14, 2026 09:48
Definitions and telemetry push
Definitions and telemetry push
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.

Hardware Definition: OverCurrent

3 participants