SecurityEventNotification OCPP 2.1
Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.
Auch in: OCPP 1.6, OCPP 2.0.1
Request
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
type | string | Pflicht | maxLength 50 Type of the security event. This value should be taken from the Security events list. |
timestamp | string | Pflicht | format date-time Date and time at which the event occurred. |
techInfo | string | maxLength 255 Additional information about the occurred security event. |
JSON-Schema (Request)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:SecurityEventNotificationRequest",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"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": {
"type": {
"description": "Type of the security event. This value should be taken from the Security events list.\r\n",
"type": "string",
"maxLength": 50
},
"timestamp": {
"description": "Date and time at which the event occurred.\r\n",
"type": "string",
"format": "date-time"
},
"techInfo": {
"description": "Additional information about the occurred security event.\r\n",
"type": "string",
"maxLength": 255
},
"customData": {
"$ref": "#/definitions/CustomDataType"
}
},
"required": [
"type",
"timestamp"
]
}Response
Leeres Objekt {}.
JSON-Schema (Response)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2025:1:SecurityEventNotificationResponse",
"comment": "OCPP 2.1 Edition 1 (c) OCA, Creative Commons Attribution-NoDerivatives 4.0 International Public License",
"definitions": {
"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": {
"customData": {
"$ref": "#/definitions/CustomDataType"
}
}
}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.