NotifyDisplayMessages OCPP 2.0.1
Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.
Auch in: OCPP 2.1
Request
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
messageInfo | array<object> | minItems 1 | |
messageInfo[].display | object | A physical or logical component | |
messageInfo[].display.evse | object | EVSE urn:x-oca:ocpp:uid:2:233123 Electric Vehicle Supply Equipment | |
messageInfo[].display.evse.id | integer | Pflicht | Identified_ Object. MRID. Numeric_ Identifier urn:x-enexis:ecdm:uid:1:569198 EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station. |
messageInfo[].display.evse.connectorId | integer | An id to designate a specific connector (on an EVSE) by connector index number. | |
messageInfo[].display.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. |
messageInfo[].display.instance | string | maxLength 50 Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case. | |
messageInfo[].id | integer | Pflicht | Identified_ Object. MRID. Numeric_ Identifier urn:x-enexis:ecdm:uid:1:569198 Master resource identifier, unique within an exchange context. It is defined within the OCPP context as a positive Integer value (greater or equal to zero). |
messageInfo[].priority | string | Pflicht | enum: AlwaysFront, InFront, NormalCycle Message_ Info. Priority. Message_ Priority_ Code urn:x-enexis:ecdm:uid:1:569253 With what priority should this message be shown |
messageInfo[].state | string | enum: Charging, Faulted, Idle, Unavailable Message_ Info. State. Message_ State_ Code urn:x-enexis:ecdm:uid:1:569254 During what state should this message be shown. When omitted this message should be shown in any state of the Charging Station. | |
messageInfo[].startDateTime | string | format date-time Message_ Info. Start. Date_ Time urn:x-enexis:ecdm:uid:1:569256 From what date-time should this message be shown. If omitted: directly. | |
messageInfo[].endDateTime | string | format date-time Message_ Info. End. Date_ Time urn:x-enexis:ecdm:uid:1:569257 Until what date-time should this message be shown, after this date/time this message SHALL be removed. | |
messageInfo[].transactionId | string | maxLength 36 During which transaction shall this message be shown. Message SHALL be removed by the Charging Station after transaction has ended. | |
messageInfo[].message | object | Pflicht | Message_ Content urn:x-enexis:ecdm:uid:2:234490 Contains message details, for a message to be displayed on a Charging Station. |
messageInfo[].message.format | string | Pflicht | enum: ASCII, HTML, URI, UTF8 Message_ Content. Format. Message_ Format_ Code urn:x-enexis:ecdm:uid:1:570848 Format of the message. |
messageInfo[].message.language | string | maxLength 8 Message_ Content. Language. Language_ Code urn:x-enexis:ecdm:uid:1:570849 Message language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>. | |
messageInfo[].message.content | string | Pflicht | maxLength 512 Message_ Content. Content. Message urn:x-enexis:ecdm:uid:1:570852 Message contents. |
requestId | integer | Pflicht | The id of the <<getdisplaymessagesrequest,GetDisplayMessagesRequest>> that requested this message. |
tbc | boolean | "to be continued" indicator. Indicates whether another part of the report follows in an upcoming NotifyDisplayMessagesRequest message. Default value when omitted is false. |
JSON-Schema (Request)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"comment": "OCPP 2.0.1 FINAL",
"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"
]
},
"MessageFormatEnumType": {
"description": "Message_ Content. Format. Message_ Format_ Code\r\nurn:x-enexis:ecdm:uid:1:570848\r\nFormat of the message.\r\n",
"javaType": "MessageFormatEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"ASCII",
"HTML",
"URI",
"UTF8"
]
},
"MessagePriorityEnumType": {
"description": "Message_ Info. Priority. Message_ Priority_ Code\r\nurn:x-enexis:ecdm:uid:1:569253\r\nWith what priority should this message be shown\r\n",
"javaType": "MessagePriorityEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"AlwaysFront",
"InFront",
"NormalCycle"
]
},
"MessageStateEnumType": {
"description": "Message_ Info. State. Message_ State_ Code\r\nurn:x-enexis:ecdm:uid:1:569254\r\nDuring what state should this message be shown. When omitted this message should be shown in any state of the Charging Station.\r\n",
"javaType": "MessageStateEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Charging",
"Faulted",
"Idle",
"Unavailable"
]
},
"ComponentType": {
"description": "A physical or logical component\r\n",
"javaType": "Component",
"type": "object",
"additionalProperties": false,
"properties": {
"customData": {
"$ref": "#/definitions/CustomDataType"
},
"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
}
},
"required": [
"name"
]
},
"EVSEType": {
"description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n",
"javaType": "EVSE",
"type": "object",
"additionalProperties": false,
"properties": {
"customData": {
"$ref": "#/definitions/CustomDataType"
},
"id": {
"description": "Identified_ Object. MRID. Numeric_ Identifier\r\nurn:x-enexis:ecdm:uid:1:569198\r\nEVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station.\r\n",
"type": "integer"
},
"connectorId": {
"description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
"type": "integer"
}
},
"required": [
"id"
]
},
"MessageContentType": {
"description": "Message_ Content\r\nurn:x-enexis:ecdm:uid:2:234490\r\nContains message details, for a message to be displayed on a Charging Station.\r\n\r\n",
"javaType": "MessageContent",
"type": "object",
"additionalProperties": false,
"properties": {
"customData": {
"$ref": "#/definitions/CustomDataType"
},
"format": {
"$ref": "#/definitions/MessageFormatEnumType"
},
"language": {
"description": "Message_ Content. Language. Language_ Code\r\nurn:x-enexis:ecdm:uid:1:570849\r\nMessage language identifier. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.\r\n",
"type": "string",
"maxLength": 8
},
"content": {
"description": "Message_ Content. Content. Message\r\nurn:x-enexis:ecdm:uid:1:570852\r\nMessage contents.\r\n\r\n",
"type": "string",
"maxLength": 512
}
},
"required": [
"format",
"content"
]
},
"MessageInfoType": {
"description": "Message_ Info\r\nurn:x-enexis:ecdm:uid:2:233264\r\nContains message details, for a message to be displayed on a Charging Station.\r\n",
"javaType": "MessageInfo",
"type": "object",
"additionalProperties": false,
"properties": {
"customData": {
"$ref": "#/definitions/CustomDataType"
},
"display": {
"$ref": "#/definitions/ComponentType"
},
"id": {
"description": "Identified_ Object. MRID. Numeric_ Identifier\r\nurn:x-enexis:ecdm:uid:1:569198\r\nMaster resource identifier, unique within an exchange context. It is defined within the OCPP context as a positive Integer value (greater or equal to zero).\r\n",
"type": "integer"
},
"priority": {
"$ref": "#/definitions/MessagePriorityEnumType"
},
"state": {
"$ref": "#/definitions/MessageStateEnumType"
},
"startDateTime": {
"description": "Message_ Info. Start. Date_ Time\r\nurn:x-enexis:ecdm:uid:1:569256\r\nFrom what date-time should this message be shown. If omitted: directly.\r\n",
"type": "string",
"format": "date-time"
},
"endDateTime": {
"description": "Message_ Info. End. Date_ Time\r\nurn:x-enexis:ecdm:uid:1:569257\r\nUntil what date-time should this message be shown, after this date/time this message SHALL be removed.\r\n",
"type": "string",
"format": "date-time"
},
"transactionId": {
"description": "During which transaction shall this message be shown.\r\nMessage SHALL be removed by the Charging Station after transaction has\r\nended.\r\n",
"type": "string",
"maxLength": 36
},
"message": {
"$ref": "#/definitions/MessageContentType"
}
},
"required": [
"id",
"priority",
"message"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"customData": {
"$ref": "#/definitions/CustomDataType"
},
"messageInfo": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/MessageInfoType"
},
"minItems": 1
},
"requestId": {
"description": "The id of the <<getdisplaymessagesrequest,GetDisplayMessagesRequest>> that requested this message.\r\n",
"type": "integer"
},
"tbc": {
"description": "\"to be continued\" indicator. Indicates whether another part of the report follows in an upcoming NotifyDisplayMessagesRequest message. Default value when omitted is false.\r\n",
"type": "boolean",
"default": false
}
},
"required": [
"requestId"
]
}Response
Leeres Objekt {}.
JSON-Schema (Response)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"comment": "OCPP 2.0.1 FINAL",
"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.0.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.