This commit is contained in:
171
OCPP.Core.Server/bin/Debug/net8.0/Schema20/AuthorizeRequest.json
Normal file
171
OCPP.Core.Server/bin/Debug/net8.0/Schema20/AuthorizeRequest.json
Normal file
@@ -0,0 +1,171 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:AuthorizeRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"HashAlgorithmEnumType": {
|
||||
"description": "Used algorithms for the hashes provided.\r\n",
|
||||
"javaType": "HashAlgorithmEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"SHA256",
|
||||
"SHA384",
|
||||
"SHA512"
|
||||
]
|
||||
},
|
||||
"IdTokenEnumType": {
|
||||
"description": "Enumeration of possible idToken types.\r\n",
|
||||
"javaType": "IdTokenEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Central",
|
||||
"eMAID",
|
||||
"ISO14443",
|
||||
"ISO15693",
|
||||
"KeyCode",
|
||||
"Local",
|
||||
"MacAddress",
|
||||
"NoAuthorization"
|
||||
]
|
||||
},
|
||||
"AdditionalInfoType": {
|
||||
"description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
|
||||
"javaType": "AdditionalInfo",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"additionalIdToken": {
|
||||
"description": "This field specifies the additional IdToken.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 36
|
||||
},
|
||||
"type": {
|
||||
"description": "This defines the type of the additionalIdToken. This is a custom type, so the implementation needs to be agreed upon by all involved parties.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"additionalIdToken",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"IdTokenType": {
|
||||
"description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
|
||||
"javaType": "IdToken",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"additionalInfo": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/AdditionalInfoType"
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"idToken": {
|
||||
"description": "IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 36
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/definitions/IdTokenEnumType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"idToken",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"OCSPRequestDataType": {
|
||||
"javaType": "OCSPRequestData",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"hashAlgorithm": {
|
||||
"$ref": "#/definitions/HashAlgorithmEnumType"
|
||||
},
|
||||
"issuerNameHash": {
|
||||
"description": "Hashed value of the Issuer DN (Distinguished Name).\r\n\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 128
|
||||
},
|
||||
"issuerKeyHash": {
|
||||
"description": "Hashed value of the issuers public key\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 128
|
||||
},
|
||||
"serialNumber": {
|
||||
"description": "The serial number of the certificate.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 40
|
||||
},
|
||||
"responderURL": {
|
||||
"description": "This contains the responder URL (Case insensitive). \r\n\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 512
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"hashAlgorithm",
|
||||
"issuerNameHash",
|
||||
"issuerKeyHash",
|
||||
"serialNumber",
|
||||
"responderURL"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"idToken": {
|
||||
"$ref": "#/definitions/IdTokenType"
|
||||
},
|
||||
"certificate": {
|
||||
"description": "The X.509 certificated presented by EV and encoded in PEM format.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 5500
|
||||
},
|
||||
"iso15118CertificateHashData": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/OCSPRequestDataType"
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 4
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"idToken"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:BootNotificationRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"BootReasonEnumType": {
|
||||
"description": "This contains the reason for sending this message to the CSMS.\r\n",
|
||||
"javaType": "BootReasonEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"ApplicationReset",
|
||||
"FirmwareUpdate",
|
||||
"LocalReset",
|
||||
"PowerUp",
|
||||
"RemoteReset",
|
||||
"ScheduledReset",
|
||||
"Triggered",
|
||||
"Unknown",
|
||||
"Watchdog"
|
||||
]
|
||||
},
|
||||
"ChargingStationType": {
|
||||
"description": "Charge_ Point\r\nurn:x-oca:ocpp:uid:2:233122\r\nThe physical system where an Electrical Vehicle (EV) can be charged.\r\n",
|
||||
"javaType": "ChargingStation",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"serialNumber": {
|
||||
"description": "Device. Serial_ Number. Serial_ Number\r\nurn:x-oca:ocpp:uid:1:569324\r\nVendor-specific device identifier.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 25
|
||||
},
|
||||
"model": {
|
||||
"description": "Device. Model. CI20_ Text\r\nurn:x-oca:ocpp:uid:1:569325\r\nDefines the model of the device.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 20
|
||||
},
|
||||
"modem": {
|
||||
"$ref": "#/definitions/ModemType"
|
||||
},
|
||||
"vendorName": {
|
||||
"description": "Identifies the vendor (not necessarily in a unique manner).\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
},
|
||||
"firmwareVersion": {
|
||||
"description": "This contains the firmware version of the Charging Station.\r\n\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"model",
|
||||
"vendorName"
|
||||
]
|
||||
},
|
||||
"ModemType": {
|
||||
"description": "Wireless_ Communication_ Module\r\nurn:x-oca:ocpp:uid:2:233306\r\nDefines parameters required for initiating and maintaining wireless communication with other devices.\r\n",
|
||||
"javaType": "Modem",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"iccid": {
|
||||
"description": "Wireless_ Communication_ Module. ICCID. CI20_ Text\r\nurn:x-oca:ocpp:uid:1:569327\r\nThis contains the ICCID of the modem’s SIM card.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 20
|
||||
},
|
||||
"imsi": {
|
||||
"description": "Wireless_ Communication_ Module. IMSI. CI20_ Text\r\nurn:x-oca:ocpp:uid:1:569328\r\nThis contains the IMSI of the modem’s SIM card.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 20
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"chargingStation": {
|
||||
"$ref": "#/definitions/ChargingStationType"
|
||||
},
|
||||
"reason": {
|
||||
"$ref": "#/definitions/BootReasonEnumType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"reason",
|
||||
"chargingStation"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:ClearedChargingLimitRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"ChargingLimitSourceEnumType": {
|
||||
"description": "Source of the charging limit.\r\n",
|
||||
"javaType": "ChargingLimitSourceEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"EMS",
|
||||
"Other",
|
||||
"SO",
|
||||
"CSO"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"chargingLimitSource": {
|
||||
"$ref": "#/definitions/ChargingLimitSourceEnumType"
|
||||
},
|
||||
"evseId": {
|
||||
"description": "EVSE Identifier.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"chargingLimitSource"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:DataTransferRequest",
|
||||
"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"
|
||||
},
|
||||
"messageId": {
|
||||
"description": "May be used to indicate a specific message or implementation.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
},
|
||||
"data": {
|
||||
"description": "Data without specified length or format. This needs to be decided by both parties (Open to implementation).\r\n"
|
||||
},
|
||||
"vendorId": {
|
||||
"description": "This identifies the Vendor specific implementation\r\n\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"vendorId"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:FirmwareStatusNotificationRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"FirmwareStatusEnumType": {
|
||||
"description": "This contains the progress status of the firmware installation.\r\n",
|
||||
"javaType": "FirmwareStatusEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Downloaded",
|
||||
"DownloadFailed",
|
||||
"Downloading",
|
||||
"DownloadScheduled",
|
||||
"DownloadPaused",
|
||||
"Idle",
|
||||
"InstallationFailed",
|
||||
"Installing",
|
||||
"Installed",
|
||||
"InstallRebooting",
|
||||
"InstallScheduled",
|
||||
"InstallVerificationFailed",
|
||||
"InvalidSignature",
|
||||
"SignatureVerified"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/FirmwareStatusEnumType"
|
||||
},
|
||||
"requestId": {
|
||||
"description": "The request id that was provided in the\r\nUpdateFirmwareRequest that started this firmware update.\r\nThis field is mandatory, unless the message was triggered by a TriggerMessageRequest AND there is no firmware update ongoing.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"status"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:HeartbeatRequest",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:LogStatusNotificationRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"UploadLogStatusEnumType": {
|
||||
"description": "This contains the status of the log upload.\r\n",
|
||||
"javaType": "UploadLogStatusEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"BadMessage",
|
||||
"Idle",
|
||||
"NotSupportedOperation",
|
||||
"PermissionDenied",
|
||||
"Uploaded",
|
||||
"UploadFailure",
|
||||
"Uploading",
|
||||
"AcceptedCanceled"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/UploadLogStatusEnumType"
|
||||
},
|
||||
"requestId": {
|
||||
"description": "The request id that was provided in GetLogRequest that started this log upload. This field is mandatory,\r\nunless the message was triggered by a TriggerMessageRequest AND there is no log upload ongoing.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"status"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,251 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:MeterValuesRequest",
|
||||
"description": "Request_ Body\r\nurn:x-enexis:ecdm:uid:2:234744\r\n",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"LocationEnumType": {
|
||||
"description": "Sampled_ Value. Location. Location_ Code\r\nurn:x-oca:ocpp:uid:1:569265\r\nIndicates where the measured value has been sampled. Default = \"Outlet\"\r\n\r\n",
|
||||
"javaType": "LocationEnum",
|
||||
"type": "string",
|
||||
"default": "Outlet",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Body",
|
||||
"Cable",
|
||||
"EV",
|
||||
"Inlet",
|
||||
"Outlet"
|
||||
]
|
||||
},
|
||||
"MeasurandEnumType": {
|
||||
"description": "Sampled_ Value. Measurand. Measurand_ Code\r\nurn:x-oca:ocpp:uid:1:569263\r\nType of measurement. Default = \"Energy.Active.Import.Register\"\r\n",
|
||||
"javaType": "MeasurandEnum",
|
||||
"type": "string",
|
||||
"default": "Energy.Active.Import.Register",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Current.Export",
|
||||
"Current.Import",
|
||||
"Current.Offered",
|
||||
"Energy.Active.Export.Register",
|
||||
"Energy.Active.Import.Register",
|
||||
"Energy.Reactive.Export.Register",
|
||||
"Energy.Reactive.Import.Register",
|
||||
"Energy.Active.Export.Interval",
|
||||
"Energy.Active.Import.Interval",
|
||||
"Energy.Active.Net",
|
||||
"Energy.Reactive.Export.Interval",
|
||||
"Energy.Reactive.Import.Interval",
|
||||
"Energy.Reactive.Net",
|
||||
"Energy.Apparent.Net",
|
||||
"Energy.Apparent.Import",
|
||||
"Energy.Apparent.Export",
|
||||
"Frequency",
|
||||
"Power.Active.Export",
|
||||
"Power.Active.Import",
|
||||
"Power.Factor",
|
||||
"Power.Offered",
|
||||
"Power.Reactive.Export",
|
||||
"Power.Reactive.Import",
|
||||
"SoC",
|
||||
"Voltage"
|
||||
]
|
||||
},
|
||||
"PhaseEnumType": {
|
||||
"description": "Sampled_ Value. Phase. Phase_ Code\r\nurn:x-oca:ocpp:uid:1:569264\r\nIndicates how the measured value is to be interpreted. For instance between L1 and neutral (L1-N) Please note that not all values of phase are applicable to all Measurands. When phase is absent, the measured value is interpreted as an overall value.\r\n",
|
||||
"javaType": "PhaseEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"L1",
|
||||
"L2",
|
||||
"L3",
|
||||
"N",
|
||||
"L1-N",
|
||||
"L2-N",
|
||||
"L3-N",
|
||||
"L1-L2",
|
||||
"L2-L3",
|
||||
"L3-L1"
|
||||
]
|
||||
},
|
||||
"ReadingContextEnumType": {
|
||||
"description": "Sampled_ Value. Context. Reading_ Context_ Code\r\nurn:x-oca:ocpp:uid:1:569261\r\nType of detail value: start, end or sample. Default = \"Sample.Periodic\"\r\n",
|
||||
"javaType": "ReadingContextEnum",
|
||||
"type": "string",
|
||||
"default": "Sample.Periodic",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Interruption.Begin",
|
||||
"Interruption.End",
|
||||
"Other",
|
||||
"Sample.Clock",
|
||||
"Sample.Periodic",
|
||||
"Transaction.Begin",
|
||||
"Transaction.End",
|
||||
"Trigger"
|
||||
]
|
||||
},
|
||||
"MeterValueType": {
|
||||
"description": "Meter_ Value\r\nurn:x-oca:ocpp:uid:2:233265\r\nCollection of one or more sampled values in MeterValuesRequest and TransactionEvent. All sampled values in a MeterValue are sampled at the same point in time.\r\n",
|
||||
"javaType": "MeterValue",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"sampledValue": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/SampledValueType"
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"timestamp": {
|
||||
"description": "Meter_ Value. Timestamp. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569259\r\nTimestamp for measured value(s).\r\n",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"timestamp",
|
||||
"sampledValue"
|
||||
]
|
||||
},
|
||||
"SampledValueType": {
|
||||
"description": "Sampled_ Value\r\nurn:x-oca:ocpp:uid:2:233266\r\nSingle sampled value in MeterValues. Each value can be accompanied by optional fields.\r\n\r\nTo save on mobile data usage, default values of all of the optional fields are such that. The value without any additional fields will be interpreted, as a register reading of active import energy in Wh (Watt-hour) units.\r\n",
|
||||
"javaType": "SampledValue",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"value": {
|
||||
"description": "Sampled_ Value. Value. Measure\r\nurn:x-oca:ocpp:uid:1:569260\r\nIndicates the measured value.\r\n\r\n",
|
||||
"type": "number"
|
||||
},
|
||||
"context": {
|
||||
"$ref": "#/definitions/ReadingContextEnumType"
|
||||
},
|
||||
"measurand": {
|
||||
"$ref": "#/definitions/MeasurandEnumType"
|
||||
},
|
||||
"phase": {
|
||||
"$ref": "#/definitions/PhaseEnumType"
|
||||
},
|
||||
"location": {
|
||||
"$ref": "#/definitions/LocationEnumType"
|
||||
},
|
||||
"signedMeterValue": {
|
||||
"$ref": "#/definitions/SignedMeterValueType"
|
||||
},
|
||||
"unitOfMeasure": {
|
||||
"$ref": "#/definitions/UnitOfMeasureType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"SignedMeterValueType": {
|
||||
"description": "Represent a signed version of the meter value.\r\n",
|
||||
"javaType": "SignedMeterValue",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"signedMeterData": {
|
||||
"description": "Base64 encoded, contains the signed data which might contain more then just the meter value. It can contain information like timestamps, reference to a customer etc.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 2500
|
||||
},
|
||||
"signingMethod": {
|
||||
"description": "Method used to create the digital signature.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
},
|
||||
"encodingMethod": {
|
||||
"description": "Method used to encode the meter values before applying the digital signature algorithm.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
},
|
||||
"publicKey": {
|
||||
"description": "Base64 encoded, sending depends on configuration variable _PublicKeyWithSignedMeterValue_.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 2500
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"signedMeterData",
|
||||
"signingMethod",
|
||||
"encodingMethod",
|
||||
"publicKey"
|
||||
]
|
||||
},
|
||||
"UnitOfMeasureType": {
|
||||
"description": "Represents a UnitOfMeasure with a multiplier\r\n",
|
||||
"javaType": "UnitOfMeasure",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"unit": {
|
||||
"description": "Unit of the value. Default = \"Wh\" if the (default) measurand is an \"Energy\" type.\r\nThis field SHALL use a value from the list Standardized Units of Measurements in Part 2 Appendices. \r\nIf an applicable unit is available in that list, otherwise a \"custom\" unit might be used.\r\n",
|
||||
"type": "string",
|
||||
"default": "Wh",
|
||||
"maxLength": 20
|
||||
},
|
||||
"multiplier": {
|
||||
"description": "Multiplier, this value represents the exponent to base 10. I.e. multiplier 3 means 10 raised to the 3rd power. Default is 0.\r\n",
|
||||
"type": "integer",
|
||||
"default": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"evseId": {
|
||||
"description": "Request_ Body. EVSEID. Numeric_ Identifier\r\nurn:x-enexis:ecdm:uid:1:571101\r\nThis contains a number (>0) designating an EVSE of the Charging Station. ‘0’ (zero) is used to designate the main power meter.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"meterValue": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/MeterValueType"
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"evseId",
|
||||
"meterValue"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,323 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:NotifyChargingLimitRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"ChargingLimitSourceEnumType": {
|
||||
"description": "Charging_ Limit. Charging_ Limit_ Source. Charging_ Limit_ Source_ Code\r\nurn:x-enexis:ecdm:uid:1:570845\r\nRepresents the source of the charging limit.\r\n",
|
||||
"javaType": "ChargingLimitSourceEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"EMS",
|
||||
"Other",
|
||||
"SO",
|
||||
"CSO"
|
||||
]
|
||||
},
|
||||
"ChargingRateUnitEnumType": {
|
||||
"description": "Charging_ Schedule. Charging_ Rate_ Unit. Charging_ Rate_ Unit_ Code\r\nurn:x-oca:ocpp:uid:1:569238\r\nThe unit of measure Limit is expressed in.\r\n",
|
||||
"javaType": "ChargingRateUnitEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"W",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
"CostKindEnumType": {
|
||||
"description": "Cost. Cost_ Kind. Cost_ Kind_ Code\r\nurn:x-oca:ocpp:uid:1:569243\r\nThe kind of cost referred to in the message element amount\r\n",
|
||||
"javaType": "CostKindEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"CarbonDioxideEmission",
|
||||
"RelativePricePercentage",
|
||||
"RenewableGenerationPercentage"
|
||||
]
|
||||
},
|
||||
"ChargingLimitType": {
|
||||
"description": "Charging_ Limit\r\nurn:x-enexis:ecdm:uid:2:234489\r\n",
|
||||
"javaType": "ChargingLimit",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"chargingLimitSource": {
|
||||
"$ref": "#/definitions/ChargingLimitSourceEnumType"
|
||||
},
|
||||
"isGridCritical": {
|
||||
"description": "Charging_ Limit. Is_ Grid_ Critical. Indicator\r\nurn:x-enexis:ecdm:uid:1:570847\r\nIndicates whether the charging limit is critical for the grid.\r\n",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"chargingLimitSource"
|
||||
]
|
||||
},
|
||||
"ChargingSchedulePeriodType": {
|
||||
"description": "Charging_ Schedule_ Period\r\nurn:x-oca:ocpp:uid:2:233257\r\nCharging schedule period structure defines a time period in a charging schedule.\r\n",
|
||||
"javaType": "ChargingSchedulePeriod",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"startPeriod": {
|
||||
"description": "Charging_ Schedule_ Period. Start_ Period. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569240\r\nStart of the period, in seconds from the start of schedule. The value of StartPeriod also defines the stop time of the previous period.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"limit": {
|
||||
"description": "Charging_ Schedule_ Period. Limit. Measure\r\nurn:x-oca:ocpp:uid:1:569241\r\nCharging rate limit during the schedule period, in the applicable chargingRateUnit, for example in Amperes (A) or Watts (W). Accepts at most one digit fraction (e.g. 8.1).\r\n",
|
||||
"type": "number"
|
||||
},
|
||||
"numberPhases": {
|
||||
"description": "Charging_ Schedule_ Period. Number_ Phases. Counter\r\nurn:x-oca:ocpp:uid:1:569242\r\nThe number of phases that can be used for charging. If a number of phases is needed, numberPhases=3 will be assumed unless another number is given.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"phaseToUse": {
|
||||
"description": "Values: 1..3, Used if numberPhases=1 and if the EVSE is capable of switching the phase connected to the EV, i.e. ACPhaseSwitchingSupported is defined and true. It’s not allowed unless both conditions above are true. If both conditions are true, and phaseToUse is omitted, the Charging Station / EVSE will make the selection on its own.\r\n\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"startPeriod",
|
||||
"limit"
|
||||
]
|
||||
},
|
||||
"ChargingScheduleType": {
|
||||
"description": "Charging_ Schedule\r\nurn:x-oca:ocpp:uid:2:233256\r\nCharging schedule structure defines a list of charging periods, as used in: GetCompositeSchedule.conf and ChargingProfile. \r\n",
|
||||
"javaType": "ChargingSchedule",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"id": {
|
||||
"description": "Identifies the ChargingSchedule.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"startSchedule": {
|
||||
"description": "Charging_ Schedule. Start_ Schedule. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569237\r\nStarting point of an absolute schedule. If absent the schedule will be relative to start of charging.\r\n",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"duration": {
|
||||
"description": "Charging_ Schedule. Duration. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569236\r\nDuration of the charging schedule in seconds. If the duration is left empty, the last period will continue indefinitely or until end of the transaction if chargingProfilePurpose = TxProfile.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"chargingRateUnit": {
|
||||
"$ref": "#/definitions/ChargingRateUnitEnumType"
|
||||
},
|
||||
"chargingSchedulePeriod": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/ChargingSchedulePeriodType"
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1024
|
||||
},
|
||||
"minChargingRate": {
|
||||
"description": "Charging_ Schedule. Min_ Charging_ Rate. Numeric\r\nurn:x-oca:ocpp:uid:1:569239\r\nMinimum charging rate supported by the EV. The unit of measure is defined by the chargingRateUnit. This parameter is intended to be used by a local smart charging algorithm to optimize the power allocation for in the case a charging process is inefficient at lower charging rates. Accepts at most one digit fraction (e.g. 8.1)\r\n",
|
||||
"type": "number"
|
||||
},
|
||||
"salesTariff": {
|
||||
"$ref": "#/definitions/SalesTariffType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"chargingRateUnit",
|
||||
"chargingSchedulePeriod"
|
||||
]
|
||||
},
|
||||
"ConsumptionCostType": {
|
||||
"description": "Consumption_ Cost\r\nurn:x-oca:ocpp:uid:2:233259\r\n",
|
||||
"javaType": "ConsumptionCost",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"startValue": {
|
||||
"description": "Consumption_ Cost. Start_ Value. Numeric\r\nurn:x-oca:ocpp:uid:1:569246\r\nThe lowest level of consumption that defines the starting point of this consumption block. The block interval extends to the start of the next interval.\r\n",
|
||||
"type": "number"
|
||||
},
|
||||
"cost": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/CostType"
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 3
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"startValue",
|
||||
"cost"
|
||||
]
|
||||
},
|
||||
"CostType": {
|
||||
"description": "Cost\r\nurn:x-oca:ocpp:uid:2:233258\r\n",
|
||||
"javaType": "Cost",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"costKind": {
|
||||
"$ref": "#/definitions/CostKindEnumType"
|
||||
},
|
||||
"amount": {
|
||||
"description": "Cost. Amount. Amount\r\nurn:x-oca:ocpp:uid:1:569244\r\nThe estimated or actual cost per kWh\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"amountMultiplier": {
|
||||
"description": "Cost. Amount_ Multiplier. Integer\r\nurn:x-oca:ocpp:uid:1:569245\r\nValues: -3..3, The amountMultiplier defines the exponent to base 10 (dec). The final value is determined by: amount * 10 ^ amountMultiplier\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"costKind",
|
||||
"amount"
|
||||
]
|
||||
},
|
||||
"RelativeTimeIntervalType": {
|
||||
"description": "Relative_ Timer_ Interval\r\nurn:x-oca:ocpp:uid:2:233270\r\n",
|
||||
"javaType": "RelativeTimeInterval",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"start": {
|
||||
"description": "Relative_ Timer_ Interval. Start. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569279\r\nStart of the interval, in seconds from NOW.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"duration": {
|
||||
"description": "Relative_ Timer_ Interval. Duration. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569280\r\nDuration of the interval, in seconds.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"start"
|
||||
]
|
||||
},
|
||||
"SalesTariffEntryType": {
|
||||
"description": "Sales_ Tariff_ Entry\r\nurn:x-oca:ocpp:uid:2:233271\r\n",
|
||||
"javaType": "SalesTariffEntry",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"relativeTimeInterval": {
|
||||
"$ref": "#/definitions/RelativeTimeIntervalType"
|
||||
},
|
||||
"ePriceLevel": {
|
||||
"description": "Sales_ Tariff_ Entry. E_ Price_ Level. Unsigned_ Integer\r\nurn:x-oca:ocpp:uid:1:569281\r\nDefines the price level of this SalesTariffEntry (referring to NumEPriceLevels). Small values for the EPriceLevel represent a cheaper TariffEntry. Large values for the EPriceLevel represent a more expensive TariffEntry.\r\n",
|
||||
"type": "integer",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"consumptionCost": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/ConsumptionCostType"
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 3
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"relativeTimeInterval"
|
||||
]
|
||||
},
|
||||
"SalesTariffType": {
|
||||
"description": "Sales_ Tariff\r\nurn:x-oca:ocpp:uid:2:233272\r\nNOTE: This dataType is based on dataTypes from <<ref-ISOIEC15118-2,ISO 15118-2>>.\r\n",
|
||||
"javaType": "SalesTariff",
|
||||
"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\nSalesTariff identifier used to identify one sales tariff. An SAID remains a unique identifier for one schedule throughout a charging session.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"salesTariffDescription": {
|
||||
"description": "Sales_ Tariff. Sales. Tariff_ Description\r\nurn:x-oca:ocpp:uid:1:569283\r\nA human readable title/short description of the sales tariff e.g. for HMI display purposes.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 32
|
||||
},
|
||||
"numEPriceLevels": {
|
||||
"description": "Sales_ Tariff. Num_ E_ Price_ Levels. Counter\r\nurn:x-oca:ocpp:uid:1:569284\r\nDefines the overall number of distinct price levels used across all provided SalesTariff elements.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"salesTariffEntry": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/SalesTariffEntryType"
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1024
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"salesTariffEntry"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"chargingSchedule": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/ChargingScheduleType"
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"evseId": {
|
||||
"description": "The charging schedule contained in this notification applies to an EVSE. evseId must be > 0.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"chargingLimit": {
|
||||
"$ref": "#/definitions/ChargingLimitType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"chargingLimit"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,289 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:NotifyEVChargingScheduleRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"ChargingRateUnitEnumType": {
|
||||
"description": "Charging_ Schedule. Charging_ Rate_ Unit. Charging_ Rate_ Unit_ Code\r\nurn:x-oca:ocpp:uid:1:569238\r\nThe unit of measure Limit is expressed in.\r\n",
|
||||
"javaType": "ChargingRateUnitEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"W",
|
||||
"A"
|
||||
]
|
||||
},
|
||||
"CostKindEnumType": {
|
||||
"description": "Cost. Cost_ Kind. Cost_ Kind_ Code\r\nurn:x-oca:ocpp:uid:1:569243\r\nThe kind of cost referred to in the message element amount\r\n",
|
||||
"javaType": "CostKindEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"CarbonDioxideEmission",
|
||||
"RelativePricePercentage",
|
||||
"RenewableGenerationPercentage"
|
||||
]
|
||||
},
|
||||
"ChargingSchedulePeriodType": {
|
||||
"description": "Charging_ Schedule_ Period\r\nurn:x-oca:ocpp:uid:2:233257\r\nCharging schedule period structure defines a time period in a charging schedule.\r\n",
|
||||
"javaType": "ChargingSchedulePeriod",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"startPeriod": {
|
||||
"description": "Charging_ Schedule_ Period. Start_ Period. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569240\r\nStart of the period, in seconds from the start of schedule. The value of StartPeriod also defines the stop time of the previous period.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"limit": {
|
||||
"description": "Charging_ Schedule_ Period. Limit. Measure\r\nurn:x-oca:ocpp:uid:1:569241\r\nCharging rate limit during the schedule period, in the applicable chargingRateUnit, for example in Amperes (A) or Watts (W). Accepts at most one digit fraction (e.g. 8.1).\r\n",
|
||||
"type": "number"
|
||||
},
|
||||
"numberPhases": {
|
||||
"description": "Charging_ Schedule_ Period. Number_ Phases. Counter\r\nurn:x-oca:ocpp:uid:1:569242\r\nThe number of phases that can be used for charging. If a number of phases is needed, numberPhases=3 will be assumed unless another number is given.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"phaseToUse": {
|
||||
"description": "Values: 1..3, Used if numberPhases=1 and if the EVSE is capable of switching the phase connected to the EV, i.e. ACPhaseSwitchingSupported is defined and true. It’s not allowed unless both conditions above are true. If both conditions are true, and phaseToUse is omitted, the Charging Station / EVSE will make the selection on its own.\r\n\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"startPeriod",
|
||||
"limit"
|
||||
]
|
||||
},
|
||||
"ChargingScheduleType": {
|
||||
"description": "Charging_ Schedule\r\nurn:x-oca:ocpp:uid:2:233256\r\nCharging schedule structure defines a list of charging periods, as used in: GetCompositeSchedule.conf and ChargingProfile. \r\n",
|
||||
"javaType": "ChargingSchedule",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"id": {
|
||||
"description": "Identifies the ChargingSchedule.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"startSchedule": {
|
||||
"description": "Charging_ Schedule. Start_ Schedule. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569237\r\nStarting point of an absolute schedule. If absent the schedule will be relative to start of charging.\r\n",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"duration": {
|
||||
"description": "Charging_ Schedule. Duration. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569236\r\nDuration of the charging schedule in seconds. If the duration is left empty, the last period will continue indefinitely or until end of the transaction if chargingProfilePurpose = TxProfile.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"chargingRateUnit": {
|
||||
"$ref": "#/definitions/ChargingRateUnitEnumType"
|
||||
},
|
||||
"chargingSchedulePeriod": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/ChargingSchedulePeriodType"
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1024
|
||||
},
|
||||
"minChargingRate": {
|
||||
"description": "Charging_ Schedule. Min_ Charging_ Rate. Numeric\r\nurn:x-oca:ocpp:uid:1:569239\r\nMinimum charging rate supported by the EV. The unit of measure is defined by the chargingRateUnit. This parameter is intended to be used by a local smart charging algorithm to optimize the power allocation for in the case a charging process is inefficient at lower charging rates. Accepts at most one digit fraction (e.g. 8.1)\r\n",
|
||||
"type": "number"
|
||||
},
|
||||
"salesTariff": {
|
||||
"$ref": "#/definitions/SalesTariffType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"chargingRateUnit",
|
||||
"chargingSchedulePeriod"
|
||||
]
|
||||
},
|
||||
"ConsumptionCostType": {
|
||||
"description": "Consumption_ Cost\r\nurn:x-oca:ocpp:uid:2:233259\r\n",
|
||||
"javaType": "ConsumptionCost",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"startValue": {
|
||||
"description": "Consumption_ Cost. Start_ Value. Numeric\r\nurn:x-oca:ocpp:uid:1:569246\r\nThe lowest level of consumption that defines the starting point of this consumption block. The block interval extends to the start of the next interval.\r\n",
|
||||
"type": "number"
|
||||
},
|
||||
"cost": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/CostType"
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 3
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"startValue",
|
||||
"cost"
|
||||
]
|
||||
},
|
||||
"CostType": {
|
||||
"description": "Cost\r\nurn:x-oca:ocpp:uid:2:233258\r\n",
|
||||
"javaType": "Cost",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"costKind": {
|
||||
"$ref": "#/definitions/CostKindEnumType"
|
||||
},
|
||||
"amount": {
|
||||
"description": "Cost. Amount. Amount\r\nurn:x-oca:ocpp:uid:1:569244\r\nThe estimated or actual cost per kWh\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"amountMultiplier": {
|
||||
"description": "Cost. Amount_ Multiplier. Integer\r\nurn:x-oca:ocpp:uid:1:569245\r\nValues: -3..3, The amountMultiplier defines the exponent to base 10 (dec). The final value is determined by: amount * 10 ^ amountMultiplier\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"costKind",
|
||||
"amount"
|
||||
]
|
||||
},
|
||||
"RelativeTimeIntervalType": {
|
||||
"description": "Relative_ Timer_ Interval\r\nurn:x-oca:ocpp:uid:2:233270\r\n",
|
||||
"javaType": "RelativeTimeInterval",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"start": {
|
||||
"description": "Relative_ Timer_ Interval. Start. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569279\r\nStart of the interval, in seconds from NOW.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"duration": {
|
||||
"description": "Relative_ Timer_ Interval. Duration. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569280\r\nDuration of the interval, in seconds.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"start"
|
||||
]
|
||||
},
|
||||
"SalesTariffEntryType": {
|
||||
"description": "Sales_ Tariff_ Entry\r\nurn:x-oca:ocpp:uid:2:233271\r\n",
|
||||
"javaType": "SalesTariffEntry",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"relativeTimeInterval": {
|
||||
"$ref": "#/definitions/RelativeTimeIntervalType"
|
||||
},
|
||||
"ePriceLevel": {
|
||||
"description": "Sales_ Tariff_ Entry. E_ Price_ Level. Unsigned_ Integer\r\nurn:x-oca:ocpp:uid:1:569281\r\nDefines the price level of this SalesTariffEntry (referring to NumEPriceLevels). Small values for the EPriceLevel represent a cheaper TariffEntry. Large values for the EPriceLevel represent a more expensive TariffEntry.\r\n",
|
||||
"type": "integer",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"consumptionCost": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/ConsumptionCostType"
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 3
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"relativeTimeInterval"
|
||||
]
|
||||
},
|
||||
"SalesTariffType": {
|
||||
"description": "Sales_ Tariff\r\nurn:x-oca:ocpp:uid:2:233272\r\nNOTE: This dataType is based on dataTypes from <<ref-ISOIEC15118-2,ISO 15118-2>>.\r\n",
|
||||
"javaType": "SalesTariff",
|
||||
"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\nSalesTariff identifier used to identify one sales tariff. An SAID remains a unique identifier for one schedule throughout a charging session.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"salesTariffDescription": {
|
||||
"description": "Sales_ Tariff. Sales. Tariff_ Description\r\nurn:x-oca:ocpp:uid:1:569283\r\nA human readable title/short description of the sales tariff e.g. for HMI display purposes.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 32
|
||||
},
|
||||
"numEPriceLevels": {
|
||||
"description": "Sales_ Tariff. Num_ E_ Price_ Levels. Counter\r\nurn:x-oca:ocpp:uid:1:569284\r\nDefines the overall number of distinct price levels used across all provided SalesTariff elements.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"salesTariffEntry": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/SalesTariffEntryType"
|
||||
},
|
||||
"minItems": 1,
|
||||
"maxItems": 1024
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"salesTariffEntry"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"timeBase": {
|
||||
"description": "Periods contained in the charging profile are relative to this point in time.\r\n",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"chargingSchedule": {
|
||||
"$ref": "#/definitions/ChargingScheduleType"
|
||||
},
|
||||
"evseId": {
|
||||
"description": "The charging schedule contained in this notification applies to an EVSE. EvseId must be > 0.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"timeBase",
|
||||
"evseId",
|
||||
"chargingSchedule"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:ResetRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"ResetEnumType": {
|
||||
"description": "This contains the type of reset that the Charging Station or EVSE should perform.\r\n",
|
||||
"javaType": "ResetEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Immediate",
|
||||
"OnIdle"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/definitions/ResetEnumType"
|
||||
},
|
||||
"evseId": {
|
||||
"description": "This contains the ID of a specific EVSE that needs to be reset, instead of the entire Charging Station.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:StatusNotificationRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"ConnectorStatusEnumType": {
|
||||
"description": "This contains the current status of the Connector.\r\n",
|
||||
"javaType": "ConnectorStatusEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Available",
|
||||
"Occupied",
|
||||
"Reserved",
|
||||
"Unavailable",
|
||||
"Faulted"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"timestamp": {
|
||||
"description": "The time for which the status is reported. If absent time of receipt of the message will be assumed.\r\n",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"connectorStatus": {
|
||||
"$ref": "#/definitions/ConnectorStatusEnumType"
|
||||
},
|
||||
"evseId": {
|
||||
"description": "The id of the EVSE to which the connector belongs for which the the status is reported.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"connectorId": {
|
||||
"description": "The id of the connector within the EVSE for which the status is reported.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"timestamp",
|
||||
"connectorStatus",
|
||||
"evseId",
|
||||
"connectorId"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,497 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:TransactionEventRequest",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"ChargingStateEnumType": {
|
||||
"description": "Transaction. State. Transaction_ State_ Code\r\nurn:x-oca:ocpp:uid:1:569419\r\nCurrent charging state, is required when state\r\nhas changed.\r\n",
|
||||
"javaType": "ChargingStateEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Charging",
|
||||
"EVConnected",
|
||||
"SuspendedEV",
|
||||
"SuspendedEVSE",
|
||||
"Idle"
|
||||
]
|
||||
},
|
||||
"IdTokenEnumType": {
|
||||
"description": "Enumeration of possible idToken types.\r\n",
|
||||
"javaType": "IdTokenEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Central",
|
||||
"eMAID",
|
||||
"ISO14443",
|
||||
"ISO15693",
|
||||
"KeyCode",
|
||||
"Local",
|
||||
"MacAddress",
|
||||
"NoAuthorization"
|
||||
]
|
||||
},
|
||||
"LocationEnumType": {
|
||||
"description": "Sampled_ Value. Location. Location_ Code\r\nurn:x-oca:ocpp:uid:1:569265\r\nIndicates where the measured value has been sampled. Default = \"Outlet\"\r\n\r\n",
|
||||
"javaType": "LocationEnum",
|
||||
"type": "string",
|
||||
"default": "Outlet",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Body",
|
||||
"Cable",
|
||||
"EV",
|
||||
"Inlet",
|
||||
"Outlet"
|
||||
]
|
||||
},
|
||||
"MeasurandEnumType": {
|
||||
"description": "Sampled_ Value. Measurand. Measurand_ Code\r\nurn:x-oca:ocpp:uid:1:569263\r\nType of measurement. Default = \"Energy.Active.Import.Register\"\r\n",
|
||||
"javaType": "MeasurandEnum",
|
||||
"type": "string",
|
||||
"default": "Energy.Active.Import.Register",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Current.Export",
|
||||
"Current.Import",
|
||||
"Current.Offered",
|
||||
"Energy.Active.Export.Register",
|
||||
"Energy.Active.Import.Register",
|
||||
"Energy.Reactive.Export.Register",
|
||||
"Energy.Reactive.Import.Register",
|
||||
"Energy.Active.Export.Interval",
|
||||
"Energy.Active.Import.Interval",
|
||||
"Energy.Active.Net",
|
||||
"Energy.Reactive.Export.Interval",
|
||||
"Energy.Reactive.Import.Interval",
|
||||
"Energy.Reactive.Net",
|
||||
"Energy.Apparent.Net",
|
||||
"Energy.Apparent.Import",
|
||||
"Energy.Apparent.Export",
|
||||
"Frequency",
|
||||
"Power.Active.Export",
|
||||
"Power.Active.Import",
|
||||
"Power.Factor",
|
||||
"Power.Offered",
|
||||
"Power.Reactive.Export",
|
||||
"Power.Reactive.Import",
|
||||
"SoC",
|
||||
"Voltage"
|
||||
]
|
||||
},
|
||||
"PhaseEnumType": {
|
||||
"description": "Sampled_ Value. Phase. Phase_ Code\r\nurn:x-oca:ocpp:uid:1:569264\r\nIndicates how the measured value is to be interpreted. For instance between L1 and neutral (L1-N) Please note that not all values of phase are applicable to all Measurands. When phase is absent, the measured value is interpreted as an overall value.\r\n",
|
||||
"javaType": "PhaseEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"L1",
|
||||
"L2",
|
||||
"L3",
|
||||
"N",
|
||||
"L1-N",
|
||||
"L2-N",
|
||||
"L3-N",
|
||||
"L1-L2",
|
||||
"L2-L3",
|
||||
"L3-L1"
|
||||
]
|
||||
},
|
||||
"ReadingContextEnumType": {
|
||||
"description": "Sampled_ Value. Context. Reading_ Context_ Code\r\nurn:x-oca:ocpp:uid:1:569261\r\nType of detail value: start, end or sample. Default = \"Sample.Periodic\"\r\n",
|
||||
"javaType": "ReadingContextEnum",
|
||||
"type": "string",
|
||||
"default": "Sample.Periodic",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Interruption.Begin",
|
||||
"Interruption.End",
|
||||
"Other",
|
||||
"Sample.Clock",
|
||||
"Sample.Periodic",
|
||||
"Transaction.Begin",
|
||||
"Transaction.End",
|
||||
"Trigger"
|
||||
]
|
||||
},
|
||||
"ReasonEnumType": {
|
||||
"description": "Transaction. Stopped_ Reason. EOT_ Reason_ Code\r\nurn:x-oca:ocpp:uid:1:569413\r\nThis contains the reason why the transaction was stopped. MAY only be omitted when Reason is \"Local\".\r\n",
|
||||
"javaType": "ReasonEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"DeAuthorized",
|
||||
"EmergencyStop",
|
||||
"EnergyLimitReached",
|
||||
"EVDisconnected",
|
||||
"GroundFault",
|
||||
"ImmediateReset",
|
||||
"Local",
|
||||
"LocalOutOfCredit",
|
||||
"MasterPass",
|
||||
"Other",
|
||||
"OvercurrentFault",
|
||||
"PowerLoss",
|
||||
"PowerQuality",
|
||||
"Reboot",
|
||||
"Remote",
|
||||
"SOCLimitReached",
|
||||
"StoppedByEV",
|
||||
"TimeLimitReached",
|
||||
"Timeout"
|
||||
]
|
||||
},
|
||||
"TransactionEventEnumType": {
|
||||
"description": "This contains the type of this event.\r\nThe first TransactionEvent of a transaction SHALL contain: \"Started\" The last TransactionEvent of a transaction SHALL contain: \"Ended\" All others SHALL contain: \"Updated\"\r\n",
|
||||
"javaType": "TransactionEventEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Ended",
|
||||
"Started",
|
||||
"Updated"
|
||||
]
|
||||
},
|
||||
"TriggerReasonEnumType": {
|
||||
"description": "Reason the Charging Station sends this message to the CSMS\r\n",
|
||||
"javaType": "TriggerReasonEnum",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Authorized",
|
||||
"CablePluggedIn",
|
||||
"ChargingRateChanged",
|
||||
"ChargingStateChanged",
|
||||
"Deauthorized",
|
||||
"EnergyLimitReached",
|
||||
"EVCommunicationLost",
|
||||
"EVConnectTimeout",
|
||||
"MeterValueClock",
|
||||
"MeterValuePeriodic",
|
||||
"TimeLimitReached",
|
||||
"Trigger",
|
||||
"UnlockCommand",
|
||||
"StopAuthorized",
|
||||
"EVDeparted",
|
||||
"EVDetected",
|
||||
"RemoteStop",
|
||||
"RemoteStart",
|
||||
"AbnormalCondition",
|
||||
"SignedDataReceived",
|
||||
"ResetCommand"
|
||||
]
|
||||
},
|
||||
"AdditionalInfoType": {
|
||||
"description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
|
||||
"javaType": "AdditionalInfo",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"additionalIdToken": {
|
||||
"description": "This field specifies the additional IdToken.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 36
|
||||
},
|
||||
"type": {
|
||||
"description": "This defines the type of the additionalIdToken. This is a custom type, so the implementation needs to be agreed upon by all involved parties.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"additionalIdToken",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"IdTokenType": {
|
||||
"description": "Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.\r\n",
|
||||
"javaType": "IdToken",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"additionalInfo": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/AdditionalInfoType"
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"idToken": {
|
||||
"description": "IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 36
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/definitions/IdTokenEnumType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"idToken",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"MeterValueType": {
|
||||
"description": "Meter_ Value\r\nurn:x-oca:ocpp:uid:2:233265\r\nCollection of one or more sampled values in MeterValuesRequest and TransactionEvent. All sampled values in a MeterValue are sampled at the same point in time.\r\n",
|
||||
"javaType": "MeterValue",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"sampledValue": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/SampledValueType"
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"timestamp": {
|
||||
"description": "Meter_ Value. Timestamp. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569259\r\nTimestamp for measured value(s).\r\n",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"timestamp",
|
||||
"sampledValue"
|
||||
]
|
||||
},
|
||||
"SampledValueType": {
|
||||
"description": "Sampled_ Value\r\nurn:x-oca:ocpp:uid:2:233266\r\nSingle sampled value in MeterValues. Each value can be accompanied by optional fields.\r\n\r\nTo save on mobile data usage, default values of all of the optional fields are such that. The value without any additional fields will be interpreted, as a register reading of active import energy in Wh (Watt-hour) units.\r\n",
|
||||
"javaType": "SampledValue",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"value": {
|
||||
"description": "Sampled_ Value. Value. Measure\r\nurn:x-oca:ocpp:uid:1:569260\r\nIndicates the measured value.\r\n\r\n",
|
||||
"type": "number"
|
||||
},
|
||||
"context": {
|
||||
"$ref": "#/definitions/ReadingContextEnumType"
|
||||
},
|
||||
"measurand": {
|
||||
"$ref": "#/definitions/MeasurandEnumType"
|
||||
},
|
||||
"phase": {
|
||||
"$ref": "#/definitions/PhaseEnumType"
|
||||
},
|
||||
"location": {
|
||||
"$ref": "#/definitions/LocationEnumType"
|
||||
},
|
||||
"signedMeterValue": {
|
||||
"$ref": "#/definitions/SignedMeterValueType"
|
||||
},
|
||||
"unitOfMeasure": {
|
||||
"$ref": "#/definitions/UnitOfMeasureType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"SignedMeterValueType": {
|
||||
"description": "Represent a signed version of the meter value.\r\n",
|
||||
"javaType": "SignedMeterValue",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"signedMeterData": {
|
||||
"description": "Base64 encoded, contains the signed data which might contain more then just the meter value. It can contain information like timestamps, reference to a customer etc.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 2500
|
||||
},
|
||||
"signingMethod": {
|
||||
"description": "Method used to create the digital signature.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
},
|
||||
"encodingMethod": {
|
||||
"description": "Method used to encode the meter values before applying the digital signature algorithm.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
},
|
||||
"publicKey": {
|
||||
"description": "Base64 encoded, sending depends on configuration variable _PublicKeyWithSignedMeterValue_.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 2500
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"signedMeterData",
|
||||
"signingMethod",
|
||||
"encodingMethod",
|
||||
"publicKey"
|
||||
]
|
||||
},
|
||||
"TransactionType": {
|
||||
"description": "Transaction\r\nurn:x-oca:ocpp:uid:2:233318\r\n",
|
||||
"javaType": "Transaction",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"transactionId": {
|
||||
"description": "This contains the Id of the transaction.\r\n",
|
||||
"type": "string",
|
||||
"maxLength": 36
|
||||
},
|
||||
"chargingState": {
|
||||
"$ref": "#/definitions/ChargingStateEnumType"
|
||||
},
|
||||
"timeSpentCharging": {
|
||||
"description": "Transaction. Time_ Spent_ Charging. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569415\r\nContains the total time that energy flowed from EVSE to EV during the transaction (in seconds). Note that timeSpentCharging is smaller or equal to the duration of the transaction.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"stoppedReason": {
|
||||
"$ref": "#/definitions/ReasonEnumType"
|
||||
},
|
||||
"remoteStartId": {
|
||||
"description": "The ID given to remote start request (<<requeststarttransactionrequest, RequestStartTransactionRequest>>. This enables to CSMS to match the started transaction to the given start request.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"transactionId"
|
||||
]
|
||||
},
|
||||
"UnitOfMeasureType": {
|
||||
"description": "Represents a UnitOfMeasure with a multiplier\r\n",
|
||||
"javaType": "UnitOfMeasure",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"unit": {
|
||||
"description": "Unit of the value. Default = \"Wh\" if the (default) measurand is an \"Energy\" type.\r\nThis field SHALL use a value from the list Standardized Units of Measurements in Part 2 Appendices. \r\nIf an applicable unit is available in that list, otherwise a \"custom\" unit might be used.\r\n",
|
||||
"type": "string",
|
||||
"default": "Wh",
|
||||
"maxLength": 20
|
||||
},
|
||||
"multiplier": {
|
||||
"description": "Multiplier, this value represents the exponent to base 10. I.e. multiplier 3 means 10 raised to the 3rd power. Default is 0.\r\n",
|
||||
"type": "integer",
|
||||
"default": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"customData": {
|
||||
"$ref": "#/definitions/CustomDataType"
|
||||
},
|
||||
"eventType": {
|
||||
"$ref": "#/definitions/TransactionEventEnumType"
|
||||
},
|
||||
"meterValue": {
|
||||
"type": "array",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"$ref": "#/definitions/MeterValueType"
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"timestamp": {
|
||||
"description": "The date and time at which this transaction event occurred.\r\n",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"triggerReason": {
|
||||
"$ref": "#/definitions/TriggerReasonEnumType"
|
||||
},
|
||||
"seqNo": {
|
||||
"description": "Incremental sequence number, helps with determining if all messages of a transaction have been received.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"offline": {
|
||||
"description": "Indication that this transaction event happened when the Charging Station was offline. Default = false, meaning: the event occurred when the Charging Station was online.\r\n",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"numberOfPhasesUsed": {
|
||||
"description": "If the Charging Station is able to report the number of phases used, then it SHALL provide it. When omitted the CSMS may be able to determine the number of phases used via device management.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"cableMaxCurrent": {
|
||||
"description": "The maximum current of the connected cable in Ampere (A).\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"reservationId": {
|
||||
"description": "This contains the Id of the reservation that terminates as a result of this transaction.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"transactionInfo": {
|
||||
"$ref": "#/definitions/TransactionType"
|
||||
},
|
||||
"evse": {
|
||||
"$ref": "#/definitions/EVSEType"
|
||||
},
|
||||
"idToken": {
|
||||
"$ref": "#/definitions/IdTokenType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"eventType",
|
||||
"timestamp",
|
||||
"triggerReason",
|
||||
"seqNo",
|
||||
"transactionInfo"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-06/schema#",
|
||||
"$id": "urn:OCPP:Cp:2:2020:3:UnlockConnectorRequest",
|
||||
"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"
|
||||
},
|
||||
"evseId": {
|
||||
"description": "This contains the identifier of the EVSE for which a connector needs to be unlocked.\r\n",
|
||||
"type": "integer"
|
||||
},
|
||||
"connectorId": {
|
||||
"description": "This contains the identifier of the connector that needs to be unlocked.\r\n",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"evseId",
|
||||
"connectorId"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user