Skip to content
Documentation Menu

Set Variable Monitoring

Source: OCPP 2.0.1 Part 2 — Specification (Edition 2, 2022-12-15) — Section 1.56 (Messages); Use Case N04 — Set Variable Monitoring (Functional Block N. Diagnostics)

Overview

The CSMS sends SetVariableMonitoringRequest to install one or more monitors on Device Model variables. Each monitor specifies the threshold/delta value, a type (UpperThreshold, LowerThreshold, Delta, Periodic, PeriodicClockAligned), and a severity level.

When a monitor fires, the CS sends a NotifyEvent message to the CSMS.

The CS replies with one SetMonitoringResultType per requested monitor.

Sequence Diagram

CSMS  ──── SetVariableMonitoringRequest ────▶  Charging Station
            (setMonitoringData[])
CSMS  ◀─── SetVariableMonitoringResponse ────  Charging Station
            (setMonitoringResult[])

Initiator

CSMS → Charging Station

Fields

Field NameField TypeCard.Description
setMonitoringDataSetMonitoringDataType1..*Required. List of monitors to install.

SetMonitoringDataType (selected fields)

FieldTypeCard.Description
idinteger0..1Monitor id (when updating an existing monitor).
transactionboolean0..1Whether the monitor is transaction-related.
valuedecimal1..1Threshold or delta value.
typeMonitorEnumType1..1UpperThreshold / LowerThreshold / Delta / Periodic / PeriodicClockAligned.
severityinteger (0..9)1..1Severity (0 highest – 9 lowest).
componentComponentType1..1Component being monitored.
variableVariableType1..1Variable being monitored.

SetMonitoringStatusEnumType values

Accepted, UnknownComponent, UnknownVariable, UnsupportedMonitorType, Rejected, Duplicate.

Examples

{
  "setMonitoringData": [
    {
      "type": "UpperThreshold",
      "value": 80.0,
      "severity": 4,
      "component": { "name": "EVSE", "evse": { "id": 1 } },
      "variable": { "name": "Temperature" }
    }
  ]
}

Schema

Source: schemas/SetVariableMonitoringRequest.json, schemas/SetVariableMonitoringResponse.json (OCPP 2.0.1 FINAL)

Request schema (JSON Schema)
Response schema (JSON Schema)