GetReport OCPP 2.1
Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.
Auch in: OCPP 2.0.1
Request
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
componentVariable | array<object> | minItems 1 | |
componentVariable[].component | object | Pflicht | A physical or logical component |
componentVariable[].component.evse | object | Electric Vehicle Supply Equipment | |
componentVariable[].component.evse.id | integer | Pflicht | minimum 0.0 EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station. |
componentVariable[].component.evse.connectorId | integer | minimum 0.0 An id to designate a specific connector (on an EVSE) by connector index number. | |
componentVariable[].component.name | string | Pflicht | maxLength 50 Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case. |
componentVariable[].component.instance | string | maxLength 50 Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case. | |
componentVariable[].variable | object | Reference key to a component-variable. | |
componentVariable[].variable.name | string | Pflicht | maxLength 50 Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case. |
componentVariable[].variable.instance | string | maxLength 50 Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case. | |
requestId | integer | Pflicht | The Id of the request. |
componentCriteria | array<string> | minItems 1; maxItems 4; enum: Active, Available, Enabled, Problem This field contains criteria for components for which a report is requested |
JSON-Schema (Request)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:GetReportRequest",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"ComponentCriterionEnumType": {
"javaType": "ComponentCriterionEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Active",
"Available",
"Enabled",
"Problem"
]
},
"ComponentType": {
"description": "A physical or logical component\r\n",
"javaType": "Component",
"type": "object",
"additionalProperties": false,
"properties": {
"evse": {
"$ref": "#/definitions/EVSEType"
},
"name": {
"description": "Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"instance": {
"description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"name"
]
},
"ComponentVariableType": {
"description": "Class to report components, variables and variable attributes and characteristics.\r\n",
"javaType": "ComponentVariable",
"type": "object",
"additionalProperties": false,
"properties": {
"component": {
"$ref": "#/definitions/ComponentType"
},
"variable": {
"$ref": "#/definitions/VariableType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"component"
]
},
"EVSEType": {
"description": "Electric Vehicle Supply Equipment\r\n",
"javaType": "EVSE",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"description": "EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station.\r\n",
"type": "integer",
"minimum": 0.0
},
"connectorId": {
"description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
"type": "integer",
"minimum": 0.0
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"id"
]
},
"VariableType": {
"description": "Reference key to a component-variable.\r\n",
"javaType": "Variable",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"instance": {
"description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
"type": "string",
"maxLength": 50
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"name"
]
},
"CustomDataType": {
"description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
"javaType": "CustomData",
"type": "object",
"properties": {
"vendorId": {
"type": "string",
"maxLength": 255
}
},
"required": [
"vendorId"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"componentVariable": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/ComponentVariableType"
},
"minItems": 1
},
"requestId": {
"description": "The Id of the request.\r\n",
"type": "integer"
},
"componentCriteria": {
"description": "This field contains criteria for components for which a report is requested\r\n",
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/ComponentCriterionEnumType"
},
"minItems": 1,
"maxItems": 4
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"requestId"
]
}Response
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
status | string | Pflicht | enum: Accepted, Rejected, NotSupported, EmptyResultSet This field indicates whether the Charging Station was able to accept the request. |
statusInfo | object | Element providing more information about the status. | |
statusInfo.reasonCode | string | Pflicht | maxLength 20 A predefined code for the reason why the status is returned in this response. The string is case-insensitive. |
statusInfo.additionalInfo | string | maxLength 1024 Additional text to provide detailed information. |
JSON-Schema (Response)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:GetReportResponse",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"GenericDeviceModelStatusEnumType": {
"description": "This field indicates whether the Charging Station was able to accept the request.\r\n",
"javaType": "GenericDeviceModelStatusEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected",
"NotSupported",
"EmptyResultSet"
]
},
"StatusInfoType": {
"description": "Element providing more information about the status.\r\n",
"javaType": "StatusInfo",
"type": "object",
"additionalProperties": false,
"properties": {
"reasonCode": {
"description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
"type": "string",
"maxLength": 20
},
"additionalInfo": {
"description": "Additional text to provide detailed information.\r\n",
"type": "string",
"maxLength": 1024
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"reasonCode"
]
},
"CustomDataType": {
"description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
"javaType": "CustomData",
"type": "object",
"properties": {
"vendorId": {
"type": "string",
"maxLength": 255
}
},
"required": [
"vendorId"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/definitions/GenericDeviceModelStatusEnumType"
},
"statusInfo": {
"$ref": "#/definitions/StatusInfoType"
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"status"
]
}Quelle: Open Charge Alliance, OCPP 2.1 – JSON-Schemas, unverändert wiedergegeben. © Open Charge Alliance. Lizenz: CC BY-ND 4.0. Die vollständige Spezifikation gibt es bei der Open Charge Alliance. ocpp-sim ist nicht mit der OCA verbunden.