1.GetConfiguration獲得配置項(xiàng)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetConfigurationRequest",
"title": "GetConfigurationRequest",
"type": "object",
"properties": {
"key": {
"type": "array",
"items": {
"type": "string",
"maxLength": 50
}
}
},
"additionalProperties": false
}
2.GetConfigurationResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetConfigurationResponse",
"title": "GetConfigurationResponse",
"type": "object",
"properties": {
"configurationKey": { //配置密鑰
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 50
},
"readonly": {
"type": "boolean"
//如果可以使用“更改 配置”消息設(shè)置該值,則為false。
},
"value": {
"type": "string",
"maxLength": 500
}
},
"additionalProperties": false,
"required": [
"key",
"readonly"
]
}
},
"unknownKey": { //可選。請(qǐng)求的未知密鑰
"type": "array",
"items": {
"type": "string",
"maxLength": 50
}
}
},
"additionalProperties": false
}
3.GetConfiguration獲得配置項(xiàng)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetConfigurationRequest",
"title": "GetConfigurationRequest",
"type": "object",
"properties": {
"key": {
"type": "array",
"items": {
"type": "string",
"maxLength": 50
}
}
},
"additionalProperties": false
}
如果請(qǐng)求 PDU 中的密鑰列表為空或丟失(可選),則充電樁應(yīng)返回 GetConfiguration.conf 中所有配置設(shè)置的列表。否則,充電樁應(yīng)返回已識(shí)別密鑰及其相應(yīng)值和只讀狀態(tài)的列表。無(wú)法識(shí)別的密鑰應(yīng)作為 GetConfiguration.conf 的可選未知密鑰列表元素的一部分放置在響應(yīng) PDU 中.
4.GetConfigurationResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetConfigurationResponse",
"title": "GetConfigurationResponse",
"type": "object",
"properties": {
"configurationKey": { //可選。請(qǐng)求或已知密鑰的列表
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 50
},
"readonly": {
"type": "boolean"
},
"value": {
"type": "string",
"maxLength": 500
}
},
"additionalProperties": false,
"required": [
"key",
"readonly"
]
}
},
"unknownKey": { //可選。請(qǐng)求的未知密鑰
"type": "array",
"items": {
"type": "string",
"maxLength": 50
}
}
},
"additionalProperties": false
}
5.GetDiagnostics獲得診斷信息
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetDiagnosticsRequest",
"title": "GetDiagnosticsRequest",
"type": "object",
"properties": {
"location": {
"type": "string",
"format": "uri"
},
"retries": {
"type": "integer"
},
"retryInterval": {
//可以使用 TransactionMessageAttempts 和 TransactionMessageRetryInterval 配置鍵配置充電樁重試此類失敗的transaction相關(guān)消息的次數(shù)和間隔。
"type": "integer"
},
"startTime": {
"type": "string",
"format": "date-time"
},
"stopTime": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false,
"required": [
"location"
]
}
平臺(tái)可以請(qǐng)求充電樁以獲取診斷信息。平臺(tái)應(yīng)發(fā)送 GetDiagnostics.req PDU,用于獲取充電樁的診斷信息,充電樁必須將其診斷數(shù)據(jù)上傳到該位置,并可選擇請(qǐng)求的診斷信息的開始和結(jié)束時(shí)間。
6.GetDiagnosticsResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetDiagnosticsResponse",
"title": "GetDiagnosticsResponse",
"type": "object",
"properties": {
"fileName": {
//可選。它包含文件的名稱以及將要上傳的診斷信息。 當(dāng)沒(méi)有可用的診斷信息時(shí),此字段不存在
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
7.GetLocalListVersion獲取本地列表版本
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetLocalListVersionRequest",
"title": "GetLocalListVersionRequest",
"type": "object",
"properties": {},
"additionalProperties": false
}
充電樁應(yīng) 使用包含其本地授權(quán)列表版本號(hào)的 GetLocalListVersion.conf PDU 進(jìn)行響應(yīng)版本號(hào) 0(零)應(yīng)用于指示本地授權(quán)列表為空,版本號(hào) -1 應(yīng)用于指示充電點(diǎn)不支持本地授權(quán)列表。
8.GetLocalListVersionResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:GetLocalListVersionResponse",
"title": "GetLocalListVersionResponse",
"type": "object",
"properties": {
"listVersion": {
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"listVersion"
]
}
9.Heartbeat心跳
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:HeartbeatRequest",
"title": "HeartbeatRequest",
"type": "object",
"properties": {},
"additionalProperties": false
}
當(dāng)平臺(tái)響應(yīng)BootNotfication.conf且狀態(tài)為已接受時(shí),充電樁要依據(jù)PDU響應(yīng)間隔調(diào)整心跳間隔,建議使內(nèi)部時(shí)鐘和平臺(tái)的當(dāng)前時(shí)間同步。如果平臺(tái)返回的不是Accepted(已接受),那么間隔區(qū)的值指的是下次發(fā)送BootNotification請(qǐng)求之前的最小等待時(shí)間。如果interval值為0,充電樁則自行選擇等待間隔,要避免平臺(tái)收到大量請(qǐng)求。充電樁不能提前發(fā)送BootNotification.req,除非通過(guò)TriggerMessage.req被要求這么做。
10.HeartbeatResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:HeartbeatResponse",
"title": "HeartbeatResponse",
"type": "object",
"properties": {
"currentTime": { //當(dāng)前時(shí)間
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false,
"required": [
"currentTime"
]
}
11.MeterValues電表值
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:MeterValuesRequest",
"title": "MeterValuesRequest",
"type": "object",
"properties": {
"connectorId": { //槍口ID
"type": "integer"
},
"transactionId": { //交易編號(hào),訂單編號(hào)
"type": "integer"
},
"meterValue": //儀表值
"type": "array",
"items": {
"type": "object",
"properties": {
"timestamp": { //時(shí)間戳
"type": "string",
"format": "date-time"
},
"sampledValue": { //采樣值
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"context": {
//可選的上下文字段指定了等處罰讀取的原因/事件。
"type": "string",
"additionalProperties": false,
"enum": [
"Interruption.Begin", //在中斷開始時(shí)取的值。
"Interruption.End", //中斷后恢復(fù)時(shí)取的值。
"Sample.Clock", //在時(shí)鐘對(duì)齊間隔處取的值。
"Sample.Periodic",//作為相對(duì)于事務(wù)開始時(shí)間的定期樣本獲取的值。
"Transaction.Begin",//充電交易開始時(shí)的值。
"Transaction.End",//充電交易結(jié)束時(shí)的值
"Trigger", //為響應(yīng) TriggerMessage.req 而采用的值
"Other" //適用于任何其他情況。
]
},
"format": {
"type": "string",
"additionalProperties": false,
"enum": [
"Raw", //值為“原始”
"SignedData"http://簽字?jǐn)?shù)據(jù)
(十進(jìn)制)數(shù)字或“簽名數(shù)據(jù)”。 字段類型為“字符串”,以允許數(shù)字簽名數(shù)據(jù)讀取。十進(jìn)制數(shù)值也是可以接受的,以允許溫度和電流等測(cè)量值的小數(shù)值。
]
},
"measurand": {
"type": "string",
"additionalProperties": false,
"enum": [
"Energy.Active.Export.Register", //電動(dòng)汽車輸出的能源(瓦時(shí)或千瓦時(shí))
"Energy.Active.Import.Register",//電動(dòng)汽車輸入的能源(瓦時(shí)或千瓦時(shí))"Energy.Reactive.Export.Register",//電動(dòng)汽車輸出的無(wú)功電能
"Energy.Reactive.Import.Register",//EV進(jìn)口的輸入電能
"Energy.Active.Export.Interval",//電動(dòng)汽車輸出的能源(Wh或KWh)
"Energy.Active.Import.Interval",
"Energy.Reactive.Export.Interval",
"Energy.Reactive.Import.Interval",
"Power.Active.Export",
"Power.Active.Import",
"Power.Offered",
"Power.Reactive.Export",
"Power.Reactive.Import",
"Power.Factor",
"Current.Import",
"Current.Export",
"Current.Offered",
"Voltage",
"Frequency",
"Temperature",
"SoC",
"RPM"
]
},
"phase": {
"type": "string",
"additionalProperties": false,
"enum": [
"L1",
"L2",
"L3",
"N",
"L1-N",
"L2-N",
"L3-N",
"L1-L2",
"L2-L3",
"L3-L1"
]
},
"location": {
"type": "string",
"additionalProperties": false,
"enum": [
"Cable",
"EV",
"Inlet",
"Outlet",
"Body"
]
},
"unit": {
"type": "string",
"additionalProperties": false,
"enum": [
"Wh",
"kWh",
"varh",
"kvarh",
"W",
"kW",
"VA",
"kVA",
"var",
"kvar",
"A",
"V",
"K",
"Celcius",
"Celsius",
"Fahrenheit",
"Percent"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"additionalProperties": false,
"required": [
"timestamp",
"sampledValue"
]
}
}
},
"additionalProperties": false,
"required": [
"connectorId",
"meterValue"
]
}
充電樁可以對(duì)電表或其他傳感器/變頻器硬件進(jìn)行采樣,來(lái)提供電表值的額外信息。由充電樁決定何時(shí)發(fā)送數(shù)值。這可以用“ChangeConfiguration.req“獲取數(shù)據(jù)間隔來(lái)配置,并指定要獲取和報(bào)告的數(shù)據(jù)。
12.MeterValuesResponse
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "urn:OCPP:1.6:2019:12:MeterValuesResponse",
"title": "MeterValuesResponse",
"type": "object",
"properties": {},
"additionalProperties": false
}