1.RemoteStartTransaction遠(yuǎn)程開始交易
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:RemoteStartTransactionRequest",
"title": "RemoteStartTransactionRequest",
"type": "object",
"properties": {
"connectorId": { //槍口ID
"type": "integer"
},
"idTag": {
"type": "string",
"maxLength": 20
},
"chargingProfile": { //充電配置
"type": "object",
"properties": {
"chargingProfileId": { //充電配置ID
"type": "integer"
},
"transactionId": { //與這些電表值相關(guān)的事務(wù)。
"type": "integer"
},
"stackLevel": {
//計(jì)費(fèi)配置文件的優(yōu)先級(jí)由其 StackLevel 參數(shù)的值確定。在任何時(shí)間點(diǎn),現(xiàn)行收費(fèi)配置文件應(yīng)為在該時(shí)間點(diǎn)有效的配置文件中具有最高堆棧級(jí)別的計(jì)費(fèi)配置文件來(lái)決定,由其 validFrom 和 validTo 參數(shù)確定。
"type": "integer"
},
"chargingProfilePurpose": {
//新交易事件的默認(rèn)計(jì)劃可用于實(shí)施收費(fèi)策略。例如,防止在白天充電的策略。對(duì)于此目的的時(shí)間表,ChargingProfilePurpose應(yīng)設(shè)置為"TxDefault profile"。
"type": "string",
"additionalProperties": false,
"enum": [
"ChargePointMaxProfile",
"TxDefaultProfile",
"TxProfile"
]
},
"chargingProfileKind": { //充電配置類型)
"type": "string",
"additionalProperties": false,
"enum": [
"Absolute",
"Recurring",
"Relative"
]
},
"recurrencyKind": { //(重復(fù)類型)
"type": "string",
"additionalProperties": false,
"enum": [
"Daily", //每天
"Weekly" //每周
]
},
"validFrom": {
//配置文件開始有效的時(shí)間點(diǎn)。如果不存在,則配置文件在充電樁收到后立即有效。當(dāng)
ChargingProfilePurpose是TxProfile時(shí),請(qǐng)勿使用。
"type": "string",
"format": "date-time"
},
"validTo": {
//可選。配置文件停止有效的時(shí)間點(diǎn)。如果不存在,則該配置文件在被另一個(gè) 配置文件替換之前一直有效。當(dāng)ChargingProfilePurpose是TxProfile時(shí),請(qǐng)勿使用。
"type": "string",
"format": "date-time"
},
"chargingSchedule": { //(充電計(jì)劃)
"type": "object",
"properties": {
"duration": { //持續(xù)時(shí)間
"type": "integer"
},
"startSchedule": {
"type": "string",
"format": "date-time"
},
"chargingRateUnit": { // 收費(fèi)率單位
"type": "string",
"additionalProperties": false,
"enum": [
"A",
"W"
]
},
"chargingSchedulePeriod": { //充電計(jì)劃時(shí)長(zhǎng)
"type": "array",
"items": {
"type": "object",
"properties": {
"startPeriod": {
"type": "integer"
},
"limit": {
"type": "number",
"multipleOf" : 0.1
},
"numberPhases": {
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"startPeriod",
"limit"
]
}
},
"minChargingRate": { //電動(dòng)汽車支持的最低充電速率。
"type": "number",
"multipleOf" : 0.1
}
},
"additionalProperties": false,
"required": [
"chargingRateUnit",
"chargingSchedulePeriod"
]
}
},
"additionalProperties": false,
"required": [
"chargingProfileId",
"stackLevel", //堆疊等級(jí)
"chargingProfilePurpose",
"chargingProfileKind",
"chargingSchedule"
]
}
},
"additionalProperties": false,
"required": [
"idTag"
]
}
2.RemoteStartTransactionResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:RemoteStartTransactionResponse",
"title": "RemoteStartTransactionResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected"
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
3.RemoteStopTransaction遠(yuǎn)程結(jié)束交易
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:RemoteStopTransactionRequest",
"title": "RemoteStopTransactionRequest",
"type": "object",
"properties": {
"transactionId": { //交易編號(hào)
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"transactionId"
]
}
4.RemoteStopTransactionResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:RemoteStopTransactionResponse",
"title": "RemoteStopTransactionResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected"
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
5.ReserveNow立即預(yù)約
{
//平臺(tái)可以向充電樁發(fā)出ReserveNow.req,以保留槍口供特定idTag使用。
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ReserveNowRequest",
"title": "ReserveNowRequest",
"type": "object",
"properties": {
"connectorId": { //槍口ID
"type": "integer"
},
"expiryDate": { //充電預(yù)約結(jié)束的日期和時(shí)間。
"type": "string",
"format": "date-time"
},
"idTag": {
"type": "string",
"maxLength": 20
},
"parentIdTag": {
"type": "string",
"maxLength": 20
},
"reservationId": { //預(yù)約ID
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"connectorId",
"expiryDate",
"idTag",
"reservationId"
]
}
6.ReserveNowResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ReserveNowResponse",
"title": "ReserveNowResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted", //接受
"Faulted", // 失敗
"Occupied", //以占用
"Rejected", //拒絕
"Unavailable" //不可用
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
7.Reset重置
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ResetRequest",
"title": "ResetRequest",
"type": "object",
"properties": {
"type": {
"type": "string",
"additionalProperties": false,
"enum": [
"Hard", //硬重置
"Soft" //軟重置
]
}
},
"additionalProperties": false,
"required": [
"type"
]}
平臺(tái)應(yīng)發(fā)送 Reset.req PDU 以請(qǐng)求充電樁自行重啟。平臺(tái)可以請(qǐng)求硬重置或軟重置。收到 Reset.req PDU 后,充電樁應(yīng)使用 Reset.conf PDU 進(jìn)行響應(yīng)。響應(yīng) 的PDU 應(yīng)包括充電樁是否將嘗試自行重置。
8.ResetResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ResetResponse",
"title": "ResetResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected"
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
9.SendLocalList發(fā)送本地列表
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:SendLocalListRequest",
"title": "SendLocalListRequest",
"type": "object",
"properties": {
"listVersion": { //列表版本號(hào)
"type": "integer"
},
"localAuthorizationList": { //獲取本地列表版本號(hào)
"type": "array",
"items": {
"type": "object",
"properties": {
"idTag": {
"type": "string",
"maxLength": 20
},
"idTagInfo": {
"type": "object",
"properties": {
"expiryDate": { //充電預(yù)約結(jié)束的日期和時(shí)間
"type": "string",
"format": "date-time"
},
"parentIdTag": {
"type": "string",
"maxLength": 20
},
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Blocked", //以阻止
"Expired", //過(guò)期
"Invalid", //無(wú)效
"ConcurrentTx" //同時(shí)發(fā)送TX
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
},
"additionalProperties": false,
"required": [
"idTag"
]
}
},
"updateType": { //更新類型
"type": "string",
"additionalProperties": false,
"enum": [
"Differential", //指示必須使用此消息中的值更新當(dāng)前本地授權(quán)列表。
"Full" //指示當(dāng)前本地授權(quán)列表必須替換為此消息中的值。
]
}
},
"additionalProperties": false,
"required": [
"listVersion",
"updateType"
]
}
10.SendLocalListResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:SendLocalListResponse",
"title": "SendLocalListResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Failed",
"NotSupported", //與充電樁支持的配置設(shè)置不匹配
"VersionMismatch" //版本不匹配
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
如果"key"與充電樁支持的配置設(shè)置不對(duì)應(yīng),則它應(yīng)以"notsupproted" 狀態(tài)進(jìn)行回復(fù)。如果更改已成功執(zhí)行,則充電點(diǎn)應(yīng)以"accepted"狀態(tài)進(jìn)行響應(yīng)。如果更改已成功執(zhí)行,但需要重新啟動(dòng)才能應(yīng)用更改,則充電點(diǎn)應(yīng)以"RebootRequired "狀態(tài)進(jìn)行響應(yīng)。如果無(wú)法進(jìn)行配置,充電點(diǎn)應(yīng)以"Rejected"狀態(tài)進(jìn)行響應(yīng)。
11.SetChargingProfile設(shè)置充電配置文件
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:SetChargingProfileRequest",
"title": "SetChargingProfileRequest",
"type": "object",
"properties": {
"connectorId": { //槍口ID
"type": "integer"
},
"csChargingProfiles": { //要在充電樁設(shè)置的充電配置文件。
"type": "object",
"properties": {
"chargingProfileId": { //充電配置ID
"type": "integer"
},
"transactionId": { //可選。僅當(dāng)“收費(fèi)配置文件用途”設(shè)置為“TxProfile”時(shí)才有效,transaction Id 可用于將配置文件與特定事務(wù)進(jìn)行匹配。
"type": "integer"
},
"stackLevel": { //堆棧級(jí)別
"type": "integer"
},
"chargingProfilePurpose": { //充電配置目的
"type": "string",
"additionalProperties": false,
"enum": [
"ChargePointMaxProfile",
"TxDefaultProfile", //TX默認(rèn)配置文件
"TxProfile" //TX配置文件
]
},
"chargingProfileKind": { //充電配置類型
"type": "string",
"additionalProperties": false,
"enum": [
"Absolute", //計(jì)劃期間相對(duì)于計(jì)劃中定義的固定時(shí)間點(diǎn)。
"Recurring", //計(jì)劃在第一個(gè)計(jì)劃期間定期重新啟動(dòng).
"Relative" //計(jì)劃周期相對(duì)于由充電樁確定的特定于情況的起始點(diǎn)(如充電會(huì)話的開始)。
]
},
"recurrencyKind": { //重復(fù)類型
"type": "string",
"additionalProperties": false,
"enum": [
"Daily",
"Weekly"
]
},
"validFrom": { //有效期至
"type": "string",
"format": "date-time"
},
"validTo": { // 配置文件停止有效的時(shí)間點(diǎn)。如果不存在,則該配置文件在被另一個(gè)配置文件替換之前一直有效。
"type": "string",
"format": "date-time"
},
"chargingSchedule": { //充電計(jì)劃
"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"
]
}
12.SetChargingProfileResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:SetChargingProfileResponse",
"title": "SetChargingProfileResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected",
"NotSupported"
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}