over_voltage_monitor_API¶
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
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¶
- 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
500
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.
Example
{
"type": "MREC5OverVoltage",
"sub_type": "subtype",
"message": "message",
"severity": "High"
}
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.
Example
{
"type": "CommunicationFault",
"sub_type": "subtype",
"message": "message"
}
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
true
EVerest to client¶
receive_set_limits¶
- 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.
Payload
Example
{
"emergency_limit_V": 600,
"error_limit_V": 500
}
receive_start¶
- 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¶
- 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¶
- 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¶
- 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
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Messages¶
Schemas¶
OverVoltageLimits 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¶
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¶
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.
-
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
-
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 astechInfo, truncated to 500 characters. When the message is empty, the error description is sent instead.
- OCPP 1.6 (
-
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¶
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.
MREC5OverVoltageDeviceFaultCommunicationFaultVendorErrorVendorWarningErrorSeverityEnum 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
LowMediumHighCommunicationCheck 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¶
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached