1. Authorize授權(quán)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:AuthorizeRequest",
"title": "AuthorizeRequest",
"type": "object",
"properties": {
"idTag": { //這包含需要授權(quán)的 idtag
"type": "string",
"maxLength": 20
}
},
"additionalProperties": false,
"required": [
"idTag"
]
}
發(fā)上列代碼執(zhí)行查詢 idTag
2. Authorize授權(quán)反饋
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:AuthorizeResponse",
"title": "AuthorizeResponse",
"type": "object",
"properties": {
"idTagInfo": {
"type": "object",
"properties": {
"expiryDate": { // 有效期限
"type": "string",
"format": "date-time"
},
"parentIdTag": {
"type": "string",
"maxLength": 20
},
"status": {
"type": "string",
"additionalProperties": false,
"enum": [ //列舉型別
"Accepted", //已接受/同時(shí)發(fā)送Tx
"Blocked", //"已阻止
"Expired", //已過期
"Invalid", //無效
"ConcurrentTx" //同時(shí)發(fā)送Tx
]
}
},
"additionalProperties": false, //附加屬性
"required": [
"status"
]
}
},
"additionalProperties": false,
"required": [
"idTagInfo"
]
}
本地授權(quán)列表中的身份標(biāo)識(shí)可以標(biāo)記為有效、過期、(暫時(shí))阻止或列入黑名單,分別對(duì)應(yīng)于idTagInfo 狀態(tài)值 "已接受/同時(shí)發(fā)送Tx"、"已過期"、"已阻止"和"無效"。
3. BootNotification啟動(dòng)通知
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:BootNotificationRequest",
"title": "BootNotificationRequest",
"type": "object",
"properties": {
"chargePointVendor": { //充電樁供應(yīng)商
"type": "string",
"maxLength": 20
},
"chargePointModel": { //充電樁模式
"type": "string",
"maxLength": 20
},
"chargePointSerialNumber": { // 充電樁序列號(hào)
"type": "string",
"maxLength": 25
},
"chargeBoxSerialNumber": { //充電盒序列號(hào)
"type": "string",
"maxLength": 25
},
"firmwareVersion": { //固件版本
"type": "string",
"maxLength": 50
},
"iccid": { // 集成電路卡ID 硬件ID卡
"type": "string",
"maxLength": 20
},
"imsi": { //國際移動(dòng)用戶識(shí)別碼
"type": "string",
"maxLength": 20
},
"meterType": { //儀表類型
"type": "string",
"maxLength": 25
},
"meterSerialNumber": { //儀表序列號(hào)
"type": "string",
"maxLength": 25
}
},
"additionalProperties": false,
"required": [
"chargePointVendor", //充電點(diǎn)供應(yīng)商
"chargePointModel" //充電點(diǎn)模型
]
}
4. BootNotificationResponse 啟動(dòng)通知響應(yīng)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:BootNotificationResponse",
"title": "BootNotificationResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted", //接受
"Pending", //待定
"Rejected" //拒絕
]
},
"currentTime": { //當(dāng)前時(shí)間
"type": "string",
"format": "date-time"
},
"interval": { //間隔
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"status",
"currentTime",
"interval"
]
}
5. CancelReservation取消預(yù)約
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:CancelReservationRequest",
"title": "CancelReservationRequest",
"type": "object",
"properties": {
"reservationId": { //預(yù)定ID
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"reservationId"
]
}
6. CancelReservationResponse 取消預(yù)約回應(yīng)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:CancelReservationResponse",
"title": "CancelReservationResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted", //接受
"Rejected" //拒絕
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
7. ChangeAvailability切換可用狀態(tài)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ChangeAvailabilityRequest",
"title": "ChangeAvailabilityRequest",
"type": "object",
"properties": {
"connectorId": { //槍口ID
"type": "integer"
},
"type": {
"type": "string",
"additionalProperties": false,
"enum": [
"Inoperative", //不工作
"Operative" //工作
]
}
},
"additionalProperties": false,
"required": [
"connectorId",
"type"
]
}
8. ChangeAvailabilityResponse 切換可用狀態(tài)響應(yīng)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ChangeAvailabilityResponse",
"title": "ChangeAvailabilityResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected",
"Scheduled" //日程列表 記錄當(dāng)前狀態(tài)和進(jìn)行充電排序。
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
9. ChangeConfiguration改變配置
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ChangeConfigurationRequest",
"title": "ChangeConfigurationRequest",
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 50
},
"value": {
"type": "string",
"maxLength": 500
}
},
"additionalProperties": false,
"required": [
"key",
"value"
]
}
10. ChangeConfigurationResponse 改變配置響應(yīng)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ChangeConfigurationResponse",
"title": "ChangeConfigurationResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected",
"RebootRequired", //需要重新啟動(dòng)(重啟)
"NotSupported" //不支持
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
11. ClearCache清除緩存
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ClearCacheRequest",
"title": "ClearCacheRequest",
"type": "object",
"properties": {},
"additionalProperties": false
}
12. ClearCacheResponse 清楚緩存響應(yīng)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ClearCacheResponse",
"title": "ClearCacheResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected"
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
13. ClearChargingProfile清除充電配置文件
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ClearChargingProfileRequest",
"title": "ClearChargingProfileRequest",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"connectorId": { //槍口ID
"type": "integer"
},
"chargingProfilePurpose": { //充電配置文件用途
"type": "string",
"additionalProperties": false,
"enum": [
"ChargePointMaxProfile", // 充電樁最大配置文件
"TxDefaultProfile", //Tx默認(rèn)配置文件
"TxProfile" //Tx配置文件
]
},
"stackLevel": { // 堆疊級(jí)別
"type": "integer"
}
},
"additionalProperties": false
}
14. ClearChargingProfileResponse 清除充電配置文件響應(yīng)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:ClearChargingProfileResponse",
"title": "ClearChargingProfileResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Unknown" // 未知
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
15. DataTransfer數(shù)據(jù)傳輸
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:DataTransferRequest",
"title": "DataTransferRequest",
"type": "object",
"properties": {
"vendorId": { // 供應(yīng)商ID
"type": "string",
"maxLength": 255
},
"messageId": { //消息ID
"type": "string",
"maxLength": 50
},
"data": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"vendorId"
]
}
16. DataTransferResponse 數(shù)據(jù)傳輸響應(yīng)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:DataTransferResponse",
"title": "DataTransferResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected",
"UnknownMessageId", //未知消息ID
"UnknownVendorId" //未知供應(yīng)商ID
]
},
"data": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"status"
]
}
17. DiagnosticsStatusNotification診斷狀態(tài)通知
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:DiagnosticsStatusNotificationRequest",
"title": "DiagnosticsStatusNotificationRequest",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Idle",
"Uploaded",
"UploadFailed",
"Uploading"
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
充電樁發(fā)送一個(gè)通知,通知中央管理系統(tǒng)診斷上傳的狀態(tài)。充電樁要發(fā)送“DiagnosticsStatusNotification.req” PDU, 通知中央管理系統(tǒng)診斷上傳正忙或已經(jīng)成功完成或失敗。充電樁只有在收到診斷狀態(tài)通知的 “TriggerMessage”后,且非診斷上傳正忙狀態(tài)時(shí),發(fā)送“Idle”狀態(tài)。
18. DiagnosticsStatusNotificationResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:DiagnosticsStatusNotificationResponse",
"title": "DiagnosticsStatusNotificationResponse",
"type": "object",
"properties": {},
"additionalProperties": false
}
19. FirmwareStatusNotification固件狀態(tài)通知
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:FirmwareStatusNotificationRequest",
"title": "FirmwareStatusNotificationRequest",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false, //附加屬性
"enum": [
"Downloaded",
"DownloadFailed",
"Downloading",
"Idle",
"InstallationFailed",
"Installing",
"Installed"
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}
一個(gè)充電樁發(fā)送通知,通知平臺(tái)固件更新的進(jìn)展。充電樁應(yīng)該發(fā)送“FirmwareStatusNotification.req”PDU, 通知中央管理系統(tǒng)下載和安裝固件更新的進(jìn)展。充電樁只有在收到固件狀態(tài)通知的“TriggerMessage”后,并 且不在固件下載/安裝正忙狀態(tài)時(shí),發(fā)送“Idle”狀態(tài)。
20. FirmwareStatusNotificationResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:FirmwareStatusNotificationResponse",
"title": "FirmwareStatusNotificationResponse",
"type": "object",
"properties": {},
"additionalProperties": false
}
21. GetCompositeSchedule 獲取日程安排
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetCompositeScheduleRequest",
"title": "GetCompositeScheduleRequest",
"type": "object",
"properties": {
"connectorId": { //槍口ID
"type": "integer"
},
"duration": { //持續(xù)時(shí)間
"type": "integer"
},
"chargingRateUnit": { //收費(fèi)率單位
"type": "string",
"additionalProperties": false,
"enum": [
"A",
"W"
]
}
},
"additionalProperties": false,
"required": [
"connectorId",
"duration"
]
}
平 臺(tái) 可以通過發(fā)送 GetCompositeSchedule.req PDU 請(qǐng)求充電 樁 報(bào) 告 組 合 充 電 排 期 表 。 GetCompositeSchedule.conf PDU 中報(bào)告的計(jì)劃是對(duì)所有充電計(jì)劃和充電樁中可能存在的本地限制的計(jì)算結(jié)果。還可以考慮 IEC 15118 限制。
收到 GetCompositeSchedule.req 后,充電樁應(yīng)計(jì)算達(dá)到 Duration 的計(jì)劃時(shí)間間隔,并將它們發(fā)送到平臺(tái)。如果請(qǐng)求中的 ConnectorId 設(shè)置為“0”,充電樁應(yīng)報(bào)告請(qǐng)求時(shí)間段內(nèi)充電樁的總預(yù)期充電量。
22. GetCompositeScheduleResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetCompositeScheduleResponse",
"title": "GetCompositeScheduleResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected"
]
},
"connectorId": { //槍口號(hào)
"type": "integer"
},
"scheduleStart": { //預(yù)約充電時(shí)間
"type": "string",
"format": "date-time"
},
"chargingSchedule": { //充電時(shí)間
"type": "object",
"properties": {
"duration": {
"type": "integer"
},
"startSchedule": { //開始充電時(shí)間表
"type": "string",
"format": "date-time"
},
"chargingRateUnit": { //收費(fèi)率單位
"type": "string",
"additionalProperties": false,
"enum": [
"A",
"W"
]
},
"chargingSchedulePeriod": { //充電時(shí)間段
"type": "array", //數(shù)組
"items": {
"type": "object",
"properties": {
"startPeriod": { //啟動(dòng)時(shí)間
"type": "integer"
},
"limit": {
"type": "number",
"multipleOf" : 0.1 //倍數(shù)
},
"numberPhases": { //階段數(shù)
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"startPeriod",
"limit"
]
}
},
"minChargingRate": { //最小充電速率
"type": "number",
"multipleOf" : 0.1
}
},
"additionalProperties": false,
"required": [
"chargingRateUnit", //收費(fèi)率單位
"chargingSchedulePeriod" //收費(fèi)時(shí)間
]
}
},
"additionalProperties": false,
"required": [
"status"
]
}