日韩在线不卡免费视频一区,日韩欧美精品一区二区三区经典,日产精品码2码三码四码区,人妻无码一区二区三区免费,日本feerbbwdh少妇丰满

歐標充電樁OCPP1.6-j協(xié)議代碼功能設計-第1篇

1. Authorize授權

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "urn:OCPP:1.6:2019:12:AuthorizeRequest",
    "title": "AuthorizeRequest",
    "type": "object",
    "properties": {
        "idTag": {   //這包含需要授權的 idtag
            "type": "string",
            "maxLength": 20
        }
    },
    "additionalProperties": false,
    "required": [
        "idTag"
    ]
}

發(fā)上列代碼執(zhí)行查詢 idTag

2. Authorize授權反饋

{
    "$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",                //已接受/同時發(fā)送Tx
                        "Blocked",                 //"已阻止
                        "Expired",                 //已過期
                        "Invalid",                 //無效
                        "ConcurrentTx"             //同時發(fā)送Tx
                    ]
                }
            },
            "additionalProperties": false,         //附加屬性
            "required": [
                "status"
            ]
        }
    },
    "additionalProperties": false,
    "required": [
        "idTagInfo"
    ]
}

本地授權列表中的身份標識可以標記為有效、過期、(暫時)阻止或列入黑名單,分別對應于idTagInfo 狀態(tài)值 "已接受/同時發(fā)送Tx"、"已過期"、"已阻止"和"無效"。

3. BootNotification啟動通知

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "urn:OCPP:1.6:2019:12:BootNotificationRequest",
    "title": "BootNotificationRequest",
    "type": "object",
    "properties": {
        "chargePointVendor": {         //充電樁供應商
            "type": "string",
            "maxLength": 20
        },
        "chargePointModel": {          //充電樁模式
            "type": "string",
            "maxLength": 20
        },
        "chargePointSerialNumber": {     // 充電樁序列號

            "type": "string",
            "maxLength": 25
        },
        "chargeBoxSerialNumber": {  //充電盒序列號
            "type": "string",
            "maxLength": 25
        },
        "firmwareVersion": {         //固件版本
            "type": "string",
            "maxLength": 50
        },
        "iccid": {                     // 集成電路卡ID 硬件ID卡
            "type": "string",
            "maxLength": 20
        },
        "imsi": {                    //國際移動用戶識別碼
            "type": "string",
            "maxLength": 20
        },
        "meterType": {               //儀表類型


            "type": "string",
            "maxLength": 25
        },
        "meterSerialNumber": {   //儀表序列號
            "type": "string",
            "maxLength": 25
        }
    },
    "additionalProperties": false,
    "required": [
        "chargePointVendor",    //充電點供應商
        "chargePointModel"      //充電點模型
    ]
}

4. BootNotificationResponse 啟動通知響應

{
    "$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": {               //當前時間
            "type": "string",
            "format": "date-time"
        },
        "interval": {                 //間隔
            "type": "integer"
        }
    },
    "additionalProperties": false,
    "required": [
        "status",
        "currentTime",
        "interval"
    ]
}

5. CancelReservation取消預約

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "urn:OCPP:1.6:2019:12:CancelReservationRequest",
    "title": "CancelReservationRequest",
    "type": "object",
    "properties": {
        "reservationId": {   //預定ID
            "type": "integer"
        }
    },
    "additionalProperties": false,
    "required": [
        "reservationId"
    ]
}

6. CancelReservationResponse 取消預約回應

{
    "$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)響應

{
    "$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"          //日程列表 記錄當前狀態(tài)和進行充電排序。
            ]
        }
    },
    "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 改變配置響應

{
    "$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",     //需要重新啟動(重啟)
                "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 清楚緩存響應

{
    "$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默認配置文件
                "TxProfile"                     //Tx配置文件
            ]
        },
        "stackLevel": {                         // 堆疊級別
            "type": "integer"
        }
    },
    "additionalProperties": false
}

14. ClearChargingProfileResponse  清除充電配置文件響應

{
    "$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": {                    // 供應商ID
            "type": "string",
            "maxLength": 255
        },
        "messageId": {                  //消息ID
            "type": "string",
            "maxLength": 50
        },
        "data": {
            "type": "string"
        }
    },
    "additionalProperties": false,
    "required": [
        "vendorId"
    ]
}

16. DataTransferResponse 數(shù)據(jù)傳輸響應

{
    "$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"        //未知供應商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ā)送一個通知,通知中央管理系統(tǒng)診斷上傳的狀態(tài)。充電樁要發(fā)送“DiagnosticsStatusNotification.req” PDU, 通知中央管理系統(tǒng)診斷上傳正忙或已經(jīng)成功完成或失敗。充電樁只有在收到診斷狀態(tài)通知的 “TriggerMessage”后,且非診斷上傳正忙狀態(tài)時,發(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"
    ]
}

一個充電樁發(fā)送通知,通知平臺固件更新的進展。充電樁應該發(fā)送“FirmwareStatusNotification.req”PDU, 通知中央管理系統(tǒng)下載和安裝固件更新的進展。充電樁只有在收到固件狀態(tài)通知的“TriggerMessage”后,并 且不在固件下載/安裝正忙狀態(tài)時,發(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ù)時間
        "type": "integer"
    },
    "chargingRateUnit": {               //收費率單位
        "type": "string",
        "additionalProperties": false,
        "enum": [
            "A",
            "W"
            ]
        }
    },
    "additionalProperties": false,
    "required": [
        "connectorId",
        "duration"
    ]
}

平 臺 可以通過發(fā)送 GetCompositeSchedule.req PDU 請求充電 樁 報 告 組 合 充 電 排 期 表 。 GetCompositeSchedule.conf PDU 中報告的計劃是對所有充電計劃和充電樁中可能存在的本地限制的計算結果。還可以考慮 IEC 15118 限制。

收到 GetCompositeSchedule.req 后,充電樁應計算達到 Duration 的計劃時間間隔,并將它們發(fā)送到平臺。如果請求中的 ConnectorId 設置為“0”,充電樁應報告請求時間段內(nèi)充電樁的總預期充電量。

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": {                   //槍口號
        "type": "integer"
        },
    "scheduleStart": {                 //預約充電時間
        "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",               //數(shù)組
                "items": {
                    "type": "object",
                    "properties": {
                        "startPeriod": {          //啟動時間
                            "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",                //收費率單位
            "chargingSchedulePeriod"           //收費時間
        ]
        }
    },
    "additionalProperties": false,
    "required": [
        "status"
    ]
}
聲明:本內(nèi)容為作者獨立觀點,不代表電子星球立場。未經(jīng)允許不得轉載。授權事宜與稿件投訴,請聯(lián)系:editor@netbroad.com
覺得內(nèi)容不錯的朋友,別忘了一鍵三連哦!
贊 2
收藏 3
關注 7
成為作者 賺取收益
全部留言
0/200
成為第一個和作者交流的人吧