Docs › OCPP 2.0.1 › SetNetworkProfile

SetNetworkProfile OCPP 2.0.1

Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.

Auch in: OCPP 2.1

Request

FeldTypEinschränkungen / Beschreibung
configurationSlotintegerPflichtSlot in which the configuration should be stored.
connectionDataobjectPflichtCommunication_ Function urn:x-oca:ocpp:uid:2:233304 The NetworkConnectionProfile defines the functional and technical parameters of a communication link.
connectionData.apnobjectAPN urn:x-oca:ocpp:uid:2:233134 Collection of configuration data needed to make a data-connection over a cellular network. NOTE: When asking a GSM modem to dial in, it is possible to specify which mobile operator should be used. This can be done with the mobile country code (MCC) in combination with a mobile network code (MNC). Example: If your preferred network is Vodafone Netherlands, the MCC=204 and the MNC=04 which means the key PreferredNetwork = 20404 Some modems allows to specify a preferred network, which means, if this network is not available, a different network is used. If you specify UseOnlyPreferredNetwork and this network is not available, the modem will not dial in.
connectionData.apn.apnstringPflichtmaxLength 512
APN. APN. URI urn:x-oca:ocpp:uid:1:568814 The Access Point Name as an URL.
connectionData.apn.apnUserNamestringmaxLength 20
APN. APN. User_ Name urn:x-oca:ocpp:uid:1:568818 APN username.
connectionData.apn.apnPasswordstringmaxLength 20
APN. APN. Password urn:x-oca:ocpp:uid:1:568819 APN Password.
connectionData.apn.simPinintegerAPN. SIMPIN. PIN_ Code urn:x-oca:ocpp:uid:1:568821 SIM card pin code.
connectionData.apn.preferredNetworkstringmaxLength 6
APN. Preferred_ Network. Mobile_ Network_ ID urn:x-oca:ocpp:uid:1:568822 Preferred network, written as MCC and MNC concatenated. See note.
connectionData.apn.useOnlyPreferredNetworkbooleanAPN. Use_ Only_ Preferred_ Network. Indicator urn:x-oca:ocpp:uid:1:568824 Default: false. Use only the preferred Network, do not dial in when not available. See Note.
connectionData.apn.apnAuthenticationstringPflichtenum: CHAP, NONE, PAP, AUTO
APN. APN_ Authentication. APN_ Authentication_ Code urn:x-oca:ocpp:uid:1:568828 Authentication method.
connectionData.ocppVersionstringPflichtenum: OCPP12, OCPP15, OCPP16, OCPP20
Communication_ Function. OCPP_ Version. OCPP_ Version_ Code urn:x-oca:ocpp:uid:1:569355 Defines the OCPP version used for this communication function.
connectionData.ocppTransportstringPflichtenum: JSON, SOAP
Communication_ Function. OCPP_ Transport. OCPP_ Transport_ Code urn:x-oca:ocpp:uid:1:569356 Defines the transport protocol (e.g. SOAP or JSON). Note: SOAP is not supported in OCPP 2.0, but is supported by other versions of OCPP.
connectionData.ocppCsmsUrlstringPflichtmaxLength 512
Communication_ Function. OCPP_ Central_ System_ URL. URI urn:x-oca:ocpp:uid:1:569357 URL of the CSMS(s) that this Charging Station communicates with.
connectionData.messageTimeoutintegerPflichtDuration in seconds before a message send by the Charging Station via this network connection times-out. The best setting depends on the underlying network and response times of the CSMS. If you are looking for a some guideline: use 30 seconds as a starting point.
connectionData.securityProfileintegerPflichtThis field specifies the security profile used when connecting to the CSMS with this NetworkConnectionProfile.
connectionData.ocppInterfacestringPflichtenum: Wired0, Wired1, Wired2, Wired3, Wireless0, Wireless1, Wireless2, Wireless3
Applicable Network Interface.
connectionData.vpnobjectVPN urn:x-oca:ocpp:uid:2:233268 VPN Configuration settings
connectionData.vpn.serverstringPflichtmaxLength 512
VPN. Server. URI urn:x-oca:ocpp:uid:1:569272 VPN Server Address
connectionData.vpn.userstringPflichtmaxLength 20
VPN. User. User_ Name urn:x-oca:ocpp:uid:1:569273 VPN User
connectionData.vpn.groupstringmaxLength 20
VPN. Group. Group_ Name urn:x-oca:ocpp:uid:1:569274 VPN group.
connectionData.vpn.passwordstringPflichtmaxLength 20
VPN. Password. Password urn:x-oca:ocpp:uid:1:569275 VPN Password.
connectionData.vpn.keystringPflichtmaxLength 255
VPN. Key. VPN_ Key urn:x-oca:ocpp:uid:1:569276 VPN shared secret.
connectionData.vpn.typestringPflichtenum: IKEv2, IPSec, L2TP, PPTP
VPN. Type. VPN_ Code urn:x-oca:ocpp:uid:1:569277 Type of VPN
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"
      ]
    },
    "APNAuthenticationEnumType": {
      "description": "APN. APN_ Authentication. APN_ Authentication_ Code\r\nurn:x-oca:ocpp:uid:1:568828\r\nAuthentication method.\r\n",
      "javaType": "APNAuthenticationEnum",
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "CHAP",
        "NONE",
        "PAP",
        "AUTO"
      ]
    },
    "OCPPInterfaceEnumType": {
      "description": "Applicable Network Interface.\r\n",
      "javaType": "OCPPInterfaceEnum",
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "Wired0",
        "Wired1",
        "Wired2",
        "Wired3",
        "Wireless0",
        "Wireless1",
        "Wireless2",
        "Wireless3"
      ]
    },
    "OCPPTransportEnumType": {
      "description": "Communication_ Function. OCPP_ Transport. OCPP_ Transport_ Code\r\nurn:x-oca:ocpp:uid:1:569356\r\nDefines the transport protocol (e.g. SOAP or JSON). Note: SOAP is not supported in OCPP 2.0, but is supported by other versions of OCPP.\r\n",
      "javaType": "OCPPTransportEnum",
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "JSON",
        "SOAP"
      ]
    },
    "OCPPVersionEnumType": {
      "description": "Communication_ Function. OCPP_ Version. OCPP_ Version_ Code\r\nurn:x-oca:ocpp:uid:1:569355\r\nDefines the OCPP version used for this communication function.\r\n",
      "javaType": "OCPPVersionEnum",
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "OCPP12",
        "OCPP15",
        "OCPP16",
        "OCPP20"
      ]
    },
    "VPNEnumType": {
      "description": "VPN. Type. VPN_ Code\r\nurn:x-oca:ocpp:uid:1:569277\r\nType of VPN\r\n",
      "javaType": "VPNEnum",
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "IKEv2",
        "IPSec",
        "L2TP",
        "PPTP"
      ]
    },
    "APNType": {
      "description": "APN\r\nurn:x-oca:ocpp:uid:2:233134\r\nCollection of configuration data needed to make a data-connection over a cellular network.\r\n\r\nNOTE: When asking a GSM modem to dial in, it is possible to specify which mobile operator should be used. This can be done with the mobile country code (MCC) in combination with a mobile network code (MNC). Example: If your preferred network is Vodafone Netherlands, the MCC=204 and the MNC=04 which means the key PreferredNetwork = 20404 Some modems allows to specify a preferred network, which means, if this network is not available, a different network is used. If you specify UseOnlyPreferredNetwork and this network is not available, the modem will not dial in.\r\n",
      "javaType": "APN",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "customData": {
          "$ref": "#/definitions/CustomDataType"
        },
        "apn": {
          "description": "APN. APN. URI\r\nurn:x-oca:ocpp:uid:1:568814\r\nThe Access Point Name as an URL.\r\n",
          "type": "string",
          "maxLength": 512
        },
        "apnUserName": {
          "description": "APN. APN. User_ Name\r\nurn:x-oca:ocpp:uid:1:568818\r\nAPN username.\r\n",
          "type": "string",
          "maxLength": 20
        },
        "apnPassword": {
          "description": "APN. APN. Password\r\nurn:x-oca:ocpp:uid:1:568819\r\nAPN Password.\r\n",
          "type": "string",
          "maxLength": 20
        },
        "simPin": {
          "description": "APN. SIMPIN. PIN_ Code\r\nurn:x-oca:ocpp:uid:1:568821\r\nSIM card pin code.\r\n",
          "type": "integer"
        },
        "preferredNetwork": {
          "description": "APN. Preferred_ Network. Mobile_ Network_ ID\r\nurn:x-oca:ocpp:uid:1:568822\r\nPreferred network, written as MCC and MNC concatenated. See note.\r\n",
          "type": "string",
          "maxLength": 6
        },
        "useOnlyPreferredNetwork": {
          "description": "APN. Use_ Only_ Preferred_ Network. Indicator\r\nurn:x-oca:ocpp:uid:1:568824\r\nDefault: false. Use only the preferred Network, do\r\nnot dial in when not available. See Note.\r\n",
          "type": "boolean",
          "default": false
        },
        "apnAuthentication": {
          "$ref": "#/definitions/APNAuthenticationEnumType"
        }
      },
      "required": [
        "apn",
        "apnAuthentication"
      ]
    },
    "NetworkConnectionProfileType": {
      "description": "Communication_ Function\r\nurn:x-oca:ocpp:uid:2:233304\r\nThe NetworkConnectionProfile defines the functional and technical parameters of a communication link.\r\n",
      "javaType": "NetworkConnectionProfile",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "customData": {
          "$ref": "#/definitions/CustomDataType"
        },
        "apn": {
          "$ref": "#/definitions/APNType"
        },
        "ocppVersion": {
          "$ref": "#/definitions/OCPPVersionEnumType"
        },
        "ocppTransport": {
          "$ref": "#/definitions/OCPPTransportEnumType"
        },
        "ocppCsmsUrl": {
          "description": "Communication_ Function. OCPP_ Central_ System_ URL. URI\r\nurn:x-oca:ocpp:uid:1:569357\r\nURL of the CSMS(s) that this Charging Station  communicates with.\r\n",
          "type": "string",
          "maxLength": 512
        },
        "messageTimeout": {
          "description": "Duration in seconds before a message send by the Charging Station via this network connection times-out.\r\nThe best setting depends on the underlying network and response times of the CSMS.\r\nIf you are looking for a some guideline: use 30 seconds as a starting point.\r\n",
          "type": "integer"
        },
        "securityProfile": {
          "description": "This field specifies the security profile used when connecting to the CSMS with this NetworkConnectionProfile.\r\n",
          "type": "integer"
        },
        "ocppInterface": {
          "$ref": "#/definitions/OCPPInterfaceEnumType"
        },
        "vpn": {
          "$ref": "#/definitions/VPNType"
        }
      },
      "required": [
        "ocppVersion",
        "ocppTransport",
        "ocppCsmsUrl",
        "messageTimeout",
        "securityProfile",
        "ocppInterface"
      ]
    },
    "VPNType": {
      "description": "VPN\r\nurn:x-oca:ocpp:uid:2:233268\r\nVPN Configuration settings\r\n",
      "javaType": "VPN",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "customData": {
          "$ref": "#/definitions/CustomDataType"
        },
        "server": {
          "description": "VPN. Server. URI\r\nurn:x-oca:ocpp:uid:1:569272\r\nVPN Server Address\r\n",
          "type": "string",
          "maxLength": 512
        },
        "user": {
          "description": "VPN. User. User_ Name\r\nurn:x-oca:ocpp:uid:1:569273\r\nVPN User\r\n",
          "type": "string",
          "maxLength": 20
        },
        "group": {
          "description": "VPN. Group. Group_ Name\r\nurn:x-oca:ocpp:uid:1:569274\r\nVPN group.\r\n",
          "type": "string",
          "maxLength": 20
        },
        "password": {
          "description": "VPN. Password. Password\r\nurn:x-oca:ocpp:uid:1:569275\r\nVPN Password.\r\n",
          "type": "string",
          "maxLength": 20
        },
        "key": {
          "description": "VPN. Key. VPN_ Key\r\nurn:x-oca:ocpp:uid:1:569276\r\nVPN shared secret.\r\n",
          "type": "string",
          "maxLength": 255
        },
        "type": {
          "$ref": "#/definitions/VPNEnumType"
        }
      },
      "required": [
        "server",
        "user",
        "password",
        "key",
        "type"
      ]
    }
  },
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "customData": {
      "$ref": "#/definitions/CustomDataType"
    },
    "configurationSlot": {
      "description": "Slot in which the configuration should be stored.\r\n",
      "type": "integer"
    },
    "connectionData": {
      "$ref": "#/definitions/NetworkConnectionProfileType"
    }
  },
  "required": [
    "configurationSlot",
    "connectionData"
  ]
}

Response

FeldTypEinschränkungen / Beschreibung
statusstringPflichtenum: Accepted, Rejected, Failed
Result of operation.
statusInfoobjectElement providing more information about the status.
statusInfo.reasonCodestringPflichtmaxLength 20
A predefined code for the reason why the status is returned in this response. The string is case-insensitive.
statusInfo.additionalInfostringmaxLength 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"
      ]
    },
    "SetNetworkProfileStatusEnumType": {
      "description": "Result of operation.\r\n",
      "javaType": "SetNetworkProfileStatusEnum",
      "type": "string",
      "additionalProperties": false,
      "enum": [
        "Accepted",
        "Rejected",
        "Failed"
      ]
    },
    "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/SetNetworkProfileStatusEnumType"
    },
    "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.