over_voltage_monitor_API

version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestover voltage monitor

EVerest API definition for the implementation of over voltage monitoring

API for EVerest for over voltage monitoring. Commands without arguments carry an empty JSON object ({}) as payload. This EVerest API defines a fast over voltage monitoring device according to IEC61851-23:2023 6.3.1.106.2 and 6.3.1.106.3 for DC charging.

6.3.1.106.2 An emergency shutdown needs to be triggered if the DC output voltage is above the limit of Table 103 for 9ms. The actual shutdown needs to be handled in a lower layer outside of EVerest, but this interface sets the correct voltage limit during the power transfer and stops monitoring at the end of the session. After the actual emergency shutdown was already performed, report an MREC5OverVoltage error with severity set to high. 6.3.1.106.3 An error shutdown needs to be triggered if the DC output voltage is above the limits of Table 104:

  • Present voltage > negotiated maximum for >400ms: Trigger error shutdown in <50ms.

  • Present voltage > negotiated maximum for <400ms and >200ms: Allow energy transfer or error shutdown

  • Present voltage > negotiated maximum for <200ms: Allow energy transfer

To trigger an error shutdown, raise the error MREC5OverVoltage with severity set to medium or low. After raising the error, wait for 2.5s according to CC.3.4.2 and verify the CP signal has been switched to state X1 or F. If not, trigger an emergency shutdown. Once an MREC5OverVoltage error was raised, it shall only be cleared when the reset_over_voltage_error command is called. All other errors shall be raised/cleared when they occur/are no longer active immediately. The voltage_measurement_V should be published in regular intervals, e.g. 1 second. The over voltage detection has to be done in the OVM device itself; while charging, EVerest compares voltage_measurement_V with the limits only as a slow backup. It is also used to validate that all voltage sources of the charging port see the same voltage to ensure they are correctly wired to the same charging port. If it is not available in hardware, do not publish the voltage_measurement_V at all.

Specification: over_voltage_monitor_API.yaml · pionix:de:everest:over_voltage_monitor

send the client publishes, EVerest consumes (4) receive EVerest publishes, the client consumes (5)

Servers

default mqtt

default local MQTT

Host
localhost:1883
Topic prefix
everest_api/1/over_voltage_monitor/{module_id}
{module_id}

The ID of the module as defined in the EVerest config file.

Operations

Client to EVerest

send_voltage_measurement_V

send Send measured voltage in V
Topic
everest_api/1/over_voltage_monitor/{module_id}/m2e/voltage_measurement_V

Direction: Module to EVerest

Message Send voltage measurement application/json

Message send_voltage_measurement_V

Send the current voltage measurement to EVerest

Payload

The voltage measurement should be published in regular intervals, e.g. 1 second. The over voltage detection has to be done in the OVM device itself; while charging, EVerest compares it with the limits only as a slow backup and validates that all voltage sources of the charging port see the same voltage. If it is not available in hardware, do not publish the voltage_measurement_V at all.

Example

Example 1
500

send_raise_error

send Send raise error
Topic
everest_api/1/over_voltage_monitor/{module_id}/m2e/raise_error

Direction: Module to EVerest

Message Send raise error application/json

Message send_raise_error

Signal to EVerest that an error happened.

Payload

object Error

Errors for Over Voltage Monitor Note that the actual shutdown needs to be performed by lower layers outside of EVerest. In the event of a shutdown, this error needs to be raised to indicate the nature of the shutdown to EVerest after the fact.

Definition of Error

Example

Raise error example
{
  "type": "MREC5OverVoltage",
  "sub_type": "subtype",
  "message": "message",
  "severity": "High"
}

send_clear_error

send Send clear error
Topic
everest_api/1/over_voltage_monitor/{module_id}/m2e/clear_error
Message Send clear error application/json

Message send_clear_error

Signal to EVerest that a previously raised error is no longer active.

Payload

object Error

Errors for Over Voltage Monitor Note that the actual shutdown needs to be performed by lower layers outside of EVerest. In the event of a shutdown, this error needs to be raised to indicate the nature of the shutdown to EVerest after the fact.

Definition of Error

Example

Clear error example
{
  "type": "CommunicationFault",
  "sub_type": "subtype",
  "message": "message"
}

send_communication_check

send Send communication check
Topic
everest_api/1/over_voltage_monitor/{module_id}/m2e/communication_check
Message Send communication check application/json

Message send_communication_check

Signal to EVerest that communication is good or check shall be stopped

Payload

Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.

Example

CommunicationCheck
true

EVerest to client

receive_set_limits

receive Receive set over voltage limits command
Topic
everest_api/1/over_voltage_monitor/{module_id}/e2m/set_limits

Direction: EVerest to Module

Message Receive set overvoltage limits. application/json

Message receive_set_limits

It will be called any time the voltage limits change, independent of whether the monitoring is currently active or not. The values shall be cached, and the last value received shall be used as threshold while monitoring is active.

Example

Example 1
{
  "emergency_limit_V": 600,
  "error_limit_V": 500
}

receive_start

receive Receive start over voltage monitoring command
Topic
everest_api/1/over_voltage_monitor/{module_id}/e2m/start

Direction: EVerest to Module

Message Receive start over voltage monitoring command application/json

Message receive_start

Start monitoring. Called once at the beginning of power transfer. Use the last limits set by set_limits and make sure to update them when set_limits is called while monitoring is active. Trigger shutdowns and raise errors as needed.

Payload

No payload.

Example

receive_stop

receive Receive stop over voltage monitoring command
Topic
everest_api/1/over_voltage_monitor/{module_id}/e2m/stop

Direction: EVerest to Module

Message Receive stop over voltage monitoring command application/json

Message receive_stop

Stop monitoring. Called once at the end of power transfer. Do not raise any over voltage errors or trigger any shutdowns in this mode.

Payload

No payload.

Example

receive_reset_over_voltage_error

receive Receive reset command
Topic
everest_api/1/over_voltage_monitor/{module_id}/e2m/reset_over_voltage_error

Direction: EVerest to Module

Message Receive reset command application/json

Message receive_reset_over_voltage_error

Resets the detection logic to allow for new charging session after an over voltage error occured. This shall clear the over voltage error. If monitoring is still active, it shall be stopped.

Payload

No payload.

Example

receive_heartbeat

receive Receive heartbeat
Topic
everest_api/1/over_voltage_monitor/{module_id}/e2m/heartbeat

Direction: EVerest to Module

Message Receive heartbeat application/json

Message receive_heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

Payload

integer HeartBeatId

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Example

Heartbeat
42

Messages

MessageSummaryUsed by
receive_set_limits
Receive set overvoltage limits.

It will be called any time the voltage limits change, independent of whether the monitoring is currently active or not. The values shall be cached, and the last value received shall be used as threshold while monitoring is active.

receive_set_limits
receive_start
Receive start over voltage monitoring command

Start monitoring. Called once at the beginning of power transfer. Use the last limits set by set_limits and make sure to update them when set_limits is called while monitoring is active. Trigger shutdowns and raise errors as needed.

receive_start
receive_stop
Receive stop over voltage monitoring command

Stop monitoring. Called once at the end of power transfer. Do not raise any over voltage errors or trigger any shutdowns in this mode.

receive_stop
receive_reset_over_voltage_error
Receive reset command

Resets the detection logic to allow for new charging session after an over voltage error occured. This shall clear the over voltage error. If monitoring is still active, it shall be stopped.

receive_reset_over_voltage_error
send_voltage_measurement_V
Send voltage measurement

Send the current voltage measurement to EVerest

send_voltage_measurement_V
send_raise_error
Send raise error

Signal to EVerest that an error happened.

send_raise_error
send_clear_error
Send clear error

Signal to EVerest that a previously raised error is no longer active.

send_clear_error
receive_heartbeat
Receive heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

receive_heartbeat
send_communication_check
Send communication check

Signal to EVerest that communication is good or check shall be stopped

send_communication_check

Schemas

OverVoltageLimits object
object

Additional properties allowed.

  • emergency_limit_Vnumber required

    Specifies the over voltage threshold [V] for emergency shutdown (based on IEC61851-23:2023 Table 103 and IEC61851-23-3:(DRAFT 2025) Table 202) An emergency shutdown shall be triggered if the DC output voltage is higher than this value.

  • error_limit_Vnumber required

    Specifies the over voltage threshold [V] for error shutdown (for use with IEC61851-23:2023 Table 104). An error shutdown shall be triggered if the DC output voltage is higher than this value. The OVM shall trigger an emergency shutdown if error shutdown does not work properly (after 2.5s, see CC.3.4.2).

VoltageMeasurementV number
number

The voltage measurement should be published in regular intervals, e.g. 1 second. The over voltage detection has to be done in the OVM device itself; while charging, EVerest compares it with the limits only as a slow backup and validates that all voltage sources of the charging port see the same voltage. If it is not available in hardware, do not publish the voltage_measurement_V at all.

Error object
object

Errors for Over Voltage Monitor Note that the actual shutdown needs to be performed by lower layers outside of EVerest. In the event of a shutdown, this error needs to be raised to indicate the nature of the shutdown to EVerest after the fact.

Additional properties allowed.

  • typestring requiredErrorEnum

    Type of error

    • MREC5OverVoltage: The output voltage was above IEC61851-23:2023 6.3.1.106.2 Table 103 limits for more than 9ms (severity high) or above Table 104 (medium or low severity).
    • DeviceFault: The over voltage monitoring device is no longer functional.
    • CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
    • VendorError: Vendor specific error code. Will stop charging session.
    • VendorWarning: Vendor specific error code. Charging may continue.
    enumMREC5OverVoltageDeviceFaultCommunicationFaultVendorErrorVendorWarning
  • sub_typestring

    The subtype of the error

  • severitystring ErrorSeverityEnum

    The severity of the error

    enumLowMediumHigh
  • messagestring

    Optional free-text detail about this specific occurrence of the error, e.g. a measured value or a diagnostic string from the hardware. Unlike the fixed per-error-type description, this is chosen by the caller. If an OCPP module is part of the EVerest configuration, the message is forwarded to the CSMS:

    • OCPP 1.6 (StatusNotification.req):
    • MREC errors: sent as info, truncated to 50 characters. Omitted entirely when the message is empty.
    • all other errors: sent as vendorId, truncated to 255 characters.
    • OCPP 2.x (NotifyEvent.req): sent as techInfo, truncated to 500 characters. When the message is empty, the error description is sent instead.
  • trigger_valueobject

    Optional value that caused this specific occurrence of the error, e.g. the measurement that crossed a limit.

    • text_reprstring

      Text representation of the value as the raising entity would print it, including a unit where one applies, e.g. 85.3 degC. EVerest passes it on as is and does not parse it. Longer values are truncated to 2500 characters.

      max length 2500
ErrorEnum string
string

Type of error

  • MREC5OverVoltage: The output voltage was above IEC61851-23:2023 6.3.1.106.2 Table 103 limits for more than 9ms (severity high) or above Table 104 (medium or low severity).
  • DeviceFault: The over voltage monitoring device is no longer functional.
  • CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
  • VendorError: Vendor specific error code. Will stop charging session.
  • VendorWarning: Vendor specific error code. Charging may continue.
enumMREC5OverVoltageDeviceFaultCommunicationFaultVendorErrorVendorWarning
ErrorSeverityEnum string
string

Severity of the error. For MREC5OverVoltage report with severity 'high' after an emergency shutdown and severity 'medium' or 'low' to trigger an error shutdown

enumLowMediumHigh
CommunicationCheck boolean
boolean

Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.

HeartBeatId integer
integer

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached