This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"id": "urn:OCPP:1.6:2019:12:AuthorizeRequest",
|
||||
"title": "AuthorizeRequest",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"idTag": {
|
||||
"type": "string",
|
||||
"maxLength": 20
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"idTag"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"$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": {
|
||||
"type": "string",
|
||||
"maxLength": 20
|
||||
},
|
||||
"imsi": {
|
||||
"type": "string",
|
||||
"maxLength": 20
|
||||
},
|
||||
"meterType": {
|
||||
"type": "string",
|
||||
"maxLength": 25
|
||||
},
|
||||
"meterSerialNumber": {
|
||||
"type": "string",
|
||||
"maxLength": 25
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"chargePointVendor",
|
||||
"chargePointModel"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"id": "urn:OCPP:1.6:2019:12:DataTransferRequest",
|
||||
"title": "DataTransferRequest",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"vendorId": {
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
},
|
||||
"messageId": {
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
},
|
||||
"data": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"vendorId"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"id": "urn:OCPP:1.6:2019:12:HeartbeatRequest",
|
||||
"title": "HeartbeatRequest",
|
||||
"type": "object",
|
||||
"properties": {},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"id": "urn:OCPP:1.6:2019:12:MeterValuesRequest",
|
||||
"title": "MeterValuesRequest",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"connectorId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"transactionId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"meterValue": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"timestamp": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"sampledValue": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"value": {
|
||||
"type": "string"
|
||||
},
|
||||
"context": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Interruption.Begin",
|
||||
"Interruption.End",
|
||||
"Sample.Clock",
|
||||
"Sample.Periodic",
|
||||
"Transaction.Begin",
|
||||
"Transaction.End",
|
||||
"Trigger",
|
||||
"Other"
|
||||
]
|
||||
},
|
||||
"format": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Raw",
|
||||
"SignedData"
|
||||
]
|
||||
},
|
||||
"measurand": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Energy.Active.Export.Register",
|
||||
"Energy.Active.Import.Register",
|
||||
"Energy.Reactive.Export.Register",
|
||||
"Energy.Reactive.Import.Register",
|
||||
"Energy.Active.Export.Interval",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"$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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"id": "urn:OCPP:1.6:2019:12:StartTransactionRequest",
|
||||
"title": "StartTransactionRequest",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"connectorId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"idTag": {
|
||||
"type": "string",
|
||||
"maxLength": 20
|
||||
},
|
||||
"meterStart": {
|
||||
"type": "integer"
|
||||
},
|
||||
"reservationId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"timestamp": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"connectorId",
|
||||
"idTag",
|
||||
"meterStart",
|
||||
"timestamp"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"id": "urn:OCPP:1.6:2019:12:StatusNotificationRequest",
|
||||
"title": "StatusNotificationRequest",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"connectorId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"errorCode": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"ConnectorLockFailure",
|
||||
"EVCommunicationError",
|
||||
"GroundFailure",
|
||||
"HighTemperature",
|
||||
"InternalError",
|
||||
"LocalListConflict",
|
||||
"NoError",
|
||||
"OtherError",
|
||||
"OverCurrentFailure",
|
||||
"PowerMeterFailure",
|
||||
"PowerSwitchFailure",
|
||||
"ReaderFailure",
|
||||
"ResetFailure",
|
||||
"UnderVoltage",
|
||||
"OverVoltage",
|
||||
"WeakSignal"
|
||||
]
|
||||
},
|
||||
"info": {
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Available",
|
||||
"Preparing",
|
||||
"Charging",
|
||||
"SuspendedEVSE",
|
||||
"SuspendedEV",
|
||||
"Finishing",
|
||||
"Reserved",
|
||||
"Unavailable",
|
||||
"Faulted"
|
||||
]
|
||||
},
|
||||
"timestamp": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"vendorId": {
|
||||
"type": "string",
|
||||
"maxLength": 255
|
||||
},
|
||||
"vendorErrorCode": {
|
||||
"type": "string",
|
||||
"maxLength": 50
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"connectorId",
|
||||
"errorCode",
|
||||
"status"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"id": "urn:OCPP:1.6:2019:12:StopTransactionRequest",
|
||||
"title": "StopTransactionRequest",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"idTag": {
|
||||
"type": "string",
|
||||
"maxLength": 20
|
||||
},
|
||||
"meterStop": {
|
||||
"type": "integer"
|
||||
},
|
||||
"timestamp": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"transactionId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"EmergencyStop",
|
||||
"EVDisconnected",
|
||||
"HardReset",
|
||||
"Local",
|
||||
"Other",
|
||||
"PowerLoss",
|
||||
"Reboot",
|
||||
"Remote",
|
||||
"SoftReset",
|
||||
"UnlockCommand",
|
||||
"DeAuthorized"
|
||||
]
|
||||
},
|
||||
"transactionData": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"timestamp": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"sampledValue": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"value": {
|
||||
"type": "string"
|
||||
},
|
||||
"context": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Interruption.Begin",
|
||||
"Interruption.End",
|
||||
"Sample.Clock",
|
||||
"Sample.Periodic",
|
||||
"Transaction.Begin",
|
||||
"Transaction.End",
|
||||
"Trigger",
|
||||
"Other"
|
||||
]
|
||||
},
|
||||
"format": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Raw",
|
||||
"SignedData"
|
||||
]
|
||||
},
|
||||
"measurand": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Energy.Active.Export.Register",
|
||||
"Energy.Active.Import.Register",
|
||||
"Energy.Reactive.Export.Register",
|
||||
"Energy.Reactive.Import.Register",
|
||||
"Energy.Active.Export.Interval",
|
||||
"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",
|
||||
"Fahrenheit",
|
||||
"Percent"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"value"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"timestamp",
|
||||
"sampledValue"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"transactionId",
|
||||
"timestamp",
|
||||
"meterStop"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"id": "urn:OCPP:1.6:2019:12:UnlockConnectorResponse",
|
||||
"title": "UnlockConnectorResponse",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"enum": [
|
||||
"Unlocked",
|
||||
"UnlockFailed",
|
||||
"NotSupported"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"status"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user