NotifyEVChargingSchedule 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 | |
|---|---|---|---|
timeBase | string | Pflicht | format date-time Periods contained in the charging profile are relative to this point in time. |
chargingSchedule | object | Pflicht | Charging_ Schedule urn:x-oca:ocpp:uid:2:233256 Charging schedule structure defines a list of charging periods, as used in: GetCompositeSchedule.conf and ChargingProfile. |
chargingSchedule.id | integer | Pflicht | Identifies the ChargingSchedule. |
chargingSchedule.startSchedule | string | format date-time Charging_ Schedule. Start_ Schedule. Date_ Time urn:x-oca:ocpp:uid:1:569237 Starting point of an absolute schedule. If absent the schedule will be relative to start of charging. | |
chargingSchedule.duration | integer | Charging_ Schedule. Duration. Elapsed_ Time urn:x-oca:ocpp:uid:1:569236 Duration 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. | |
chargingSchedule.chargingRateUnit | string | Pflicht | enum: W, A Charging_ Schedule. Charging_ Rate_ Unit. Charging_ Rate_ Unit_ Code urn:x-oca:ocpp:uid:1:569238 The unit of measure Limit is expressed in. |
chargingSchedule.chargingSchedulePeriod | array<object> | Pflicht | minItems 1; maxItems 1024 |
chargingSchedule.chargingSchedulePeriod[].startPeriod | integer | Pflicht | Charging_ Schedule_ Period. Start_ Period. Elapsed_ Time urn:x-oca:ocpp:uid:1:569240 Start of the period, in seconds from the start of schedule. The value of StartPeriod also defines the stop time of the previous period. |
chargingSchedule.chargingSchedulePeriod[].limit | number | Pflicht | Charging_ Schedule_ Period. Limit. Measure urn:x-oca:ocpp:uid:1:569241 Charging 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). |
chargingSchedule.chargingSchedulePeriod[].numberPhases | integer | Charging_ Schedule_ Period. Number_ Phases. Counter urn:x-oca:ocpp:uid:1:569242 The 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. | |
chargingSchedule.chargingSchedulePeriod[].phaseToUse | integer | 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. | |
chargingSchedule.minChargingRate | number | Charging_ Schedule. Min_ Charging_ Rate. Numeric urn:x-oca:ocpp:uid:1:569239 Minimum 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) | |
chargingSchedule.salesTariff | object | Sales_ Tariff urn:x-oca:ocpp:uid:2:233272 NOTE: This dataType is based on dataTypes from <<ref-ISOIEC15118-2,ISO 15118-2>>. | |
chargingSchedule.salesTariff.id | integer | Pflicht | Identified_ Object. MRID. Numeric_ Identifier urn:x-enexis:ecdm:uid:1:569198 SalesTariff identifier used to identify one sales tariff. An SAID remains a unique identifier for one schedule throughout a charging session. |
chargingSchedule.salesTariff.salesTariffDescription | string | maxLength 32 Sales_ Tariff. Sales. Tariff_ Description urn:x-oca:ocpp:uid:1:569283 A human readable title/short description of the sales tariff e.g. for HMI display purposes. | |
chargingSchedule.salesTariff.numEPriceLevels | integer | Sales_ Tariff. Num_ E_ Price_ Levels. Counter urn:x-oca:ocpp:uid:1:569284 Defines the overall number of distinct price levels used across all provided SalesTariff elements. | |
chargingSchedule.salesTariff.salesTariffEntry | array<object> | Pflicht | minItems 1; maxItems 1024 |
chargingSchedule.salesTariff.salesTariffEntry[].relativeTimeInterval | object | Pflicht | Relative_ Timer_ Interval urn:x-oca:ocpp:uid:2:233270 |
chargingSchedule.salesTariff.salesTariffEntry[].relativeTimeInterval.start | integer | Pflicht | Relative_ Timer_ Interval. Start. Elapsed_ Time urn:x-oca:ocpp:uid:1:569279 Start of the interval, in seconds from NOW. |
chargingSchedule.salesTariff.salesTariffEntry[].relativeTimeInterval.duration | integer | Relative_ Timer_ Interval. Duration. Elapsed_ Time urn:x-oca:ocpp:uid:1:569280 Duration of the interval, in seconds. | |
chargingSchedule.salesTariff.salesTariffEntry[].ePriceLevel | integer | minimum 0.0 Sales_ Tariff_ Entry. E_ Price_ Level. Unsigned_ Integer urn:x-oca:ocpp:uid:1:569281 Defines 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. | |
chargingSchedule.salesTariff.salesTariffEntry[].consumptionCost | array<object> | minItems 1; maxItems 3 | |
chargingSchedule.salesTariff.salesTariffEntry[].consumptionCost[].startValue | number | Pflicht | Consumption_ Cost. Start_ Value. Numeric urn:x-oca:ocpp:uid:1:569246 The lowest level of consumption that defines the starting point of this consumption block. The block interval extends to the start of the next interval. |
chargingSchedule.salesTariff.salesTariffEntry[].consumptionCost[].cost | array<object> | Pflicht | minItems 1; maxItems 3 |
chargingSchedule.salesTariff.salesTariffEntry[].consumptionCost[].cost[].costKind | string | Pflicht | enum: CarbonDioxideEmission, RelativePricePercentage, RenewableGenerationPercentage Cost. Cost_ Kind. Cost_ Kind_ Code urn:x-oca:ocpp:uid:1:569243 The kind of cost referred to in the message element amount |
chargingSchedule.salesTariff.salesTariffEntry[].consumptionCost[].cost[].amount | integer | Pflicht | Cost. Amount. Amount urn:x-oca:ocpp:uid:1:569244 The estimated or actual cost per kWh |
chargingSchedule.salesTariff.salesTariffEntry[].consumptionCost[].cost[].amountMultiplier | integer | Cost. Amount_ Multiplier. Integer urn:x-oca:ocpp:uid:1:569245 Values: -3..3, The amountMultiplier defines the exponent to base 10 (dec). The final value is determined by: amount * 10 ^ amountMultiplier | |
evseId | integer | Pflicht | The charging schedule contained in this notification applies to an EVSE. EvseId must be > 0. |
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"
]
},
"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"
]
}Response
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
status | string | Pflicht | enum: Accepted, Rejected Returns whether the CSMS has been able to process the message successfully. It does not imply any approval of the charging schedule. |
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 512 Additional text to provide detailed information. |
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"
]
},
"GenericStatusEnumType": {
"description": "Returns whether the CSMS has been able to process the message successfully. It does not imply any approval of the charging schedule.\r\n",
"javaType": "GenericStatusEnum",
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected"
]
},
"StatusInfoType": {
"description": "Element providing more information about the status.\r\n",
"javaType": "StatusInfo",
"type": "object",
"additionalProperties": false,
"properties": {
"customData": {
"$ref": "#/definitions/CustomDataType"
},
"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": 512
}
},
"required": [
"reasonCode"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"customData": {
"$ref": "#/definitions/CustomDataType"
},
"status": {
"$ref": "#/definitions/GenericStatusEnumType"
},
"statusInfo": {
"$ref": "#/definitions/StatusInfoType"
}
},
"required": [
"status"
]
}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.