Docs › OCPP 1.6 › SetChargingProfile

SetChargingProfile OCPP 1.6

Der Simulator beantwortet diese Anfrage des Backends.

Auch in: OCPP 2.0.1, OCPP 2.1

Request

FeldTypEinschränkungen / Beschreibung
connectorIdintegerPflicht
csChargingProfilesobjectPflicht
csChargingProfiles.chargingProfileIdintegerPflicht
csChargingProfiles.transactionIdinteger
csChargingProfiles.stackLevelintegerPflicht
csChargingProfiles.chargingProfilePurposestringPflichtenum: ChargePointMaxProfile, TxDefaultProfile, TxProfile
csChargingProfiles.chargingProfileKindstringPflichtenum: Absolute, Recurring, Relative
csChargingProfiles.recurrencyKindstringenum: Daily, Weekly
csChargingProfiles.validFromstringformat date-time
csChargingProfiles.validTostringformat date-time
csChargingProfiles.chargingScheduleobjectPflicht
csChargingProfiles.chargingSchedule.durationinteger
csChargingProfiles.chargingSchedule.startSchedulestringformat date-time
csChargingProfiles.chargingSchedule.chargingRateUnitstringPflichtenum: A, W
csChargingProfiles.chargingSchedule.chargingSchedulePeriodarray<object>Pflicht
csChargingProfiles.chargingSchedule.chargingSchedulePeriod[].startPeriodintegerPflicht
csChargingProfiles.chargingSchedule.chargingSchedulePeriod[].limitnumberPflicht
csChargingProfiles.chargingSchedule.chargingSchedulePeriod[].numberPhasesinteger
csChargingProfiles.chargingSchedule.minChargingRatenumber
JSON-Schema (Request)
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "SetChargingProfileRequest",
  "type": "object",
  "properties": {
    "connectorId": {
      "type": "integer"
    },
    "csChargingProfiles": {
      "type": "object",
      "properties": {
        "chargingProfileId": {
          "type": "integer"
        },
        "transactionId": {
          "type": "integer"
        },
        "stackLevel": {
          "type": "integer"
        },
        "chargingProfilePurpose": {
          "type": "string",
          "additionalProperties": false,
          "enum": [
            "ChargePointMaxProfile",
            "TxDefaultProfile",
            "TxProfile"
          ]
        },
        "chargingProfileKind": {
          "type": "string",
          "additionalProperties": false,
          "enum": [
            "Absolute",
            "Recurring",
            "Relative"
          ]
        },
        "recurrencyKind": {
          "type": "string",
          "additionalProperties": false,
          "enum": [
            "Daily",
            "Weekly"
          ]
        },
        "validFrom": {
          "type": "string",
          "format": "date-time"
        },
        "validTo": {
          "type": "string",
          "format": "date-time"
        },
        "chargingSchedule": {
          "type": "object",
          "properties": {
            "duration": {
              "type": "integer"
            },
            "startSchedule": {
              "type": "string",
              "format": "date-time"
            },
            "chargingRateUnit": {
              "type": "string",
              "additionalProperties": false,
              "enum": [
                "A",
                "W"
              ]
            },
            "chargingSchedulePeriod": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "startPeriod": {
                    "type": "integer"
                  },
                  "limit": {
                    "type": "number",
                    "multipleOf": 0.1
                  },
                  "numberPhases": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false,
                "required": [
                  "startPeriod",
                  "limit"
                ]
              }
            },
            "minChargingRate": {
              "type": "number",
              "multipleOf": 0.1
            }
          },
          "additionalProperties": false,
          "required": [
            "chargingRateUnit",
            "chargingSchedulePeriod"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "chargingProfileId",
        "stackLevel",
        "chargingProfilePurpose",
        "chargingProfileKind",
        "chargingSchedule"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "connectorId",
    "csChargingProfiles"
  ]
}

Response

FeldTypEinschränkungen / Beschreibung
statusstringPflichtenum: Accepted, Rejected, NotSupported
JSON-Schema (Response)
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "SetChargingProfileResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "Accepted",
        "Rejected",
        "NotSupported"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "status"
  ]
}

Quelle: Open Charge Alliance, OCPP 1.6 – 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.