GetDiagnostics

Asks the charge point to upload a diagnostics file to a location you supply.

Version
OCPP 1.6
Direction
CSMS → Charge Point
Feature profile
Firmware Management

GetDiagnostics is the remote log pull. You give the charge point somewhere to upload to; it gathers its diagnostics and pushes them there, reporting progress via DiagnosticsStatusNotification.

The upload target is usually a pre-signed HTTP PUT URL or an FTP endpoint. The charger uploads directly, so the destination must be reachable from the charger's network.

Request

FieldTypeRequiredDescription
locationanyURIRequiredWhere the charge point should upload the file.
startTimedateTimeOptionalInclude log entries from this time onward.
stopTimedateTimeOptionalInclude log entries up to this time.
retriesintegerOptionalHow many times to retry a failed upload.
retryIntervalintegerOptionalSeconds between retries.
json
[2, "19223201", "GetDiagnostics", {
  "location": "https://diagnostics.example.com/upload/CP001",
  "startTime": "2026-09-08T00:00:00.000Z",
  "stopTime": "2026-09-09T00:00:00.000Z",
  "retries": 2
}]

Response

FieldTypeRequiredDescription
fileNameCiString255OptionalThe name of the file that will be uploaded. Absent means no diagnostics are available.
json
[3, "19223201", {
  "fileName": "CP001-diagnostics-20260909.tar.gz"
}]

Implementation notes

An empty response means there is nothing to upload. No fileName is not an error — it means the charger has no diagnostics for the requested window.

The file format is entirely vendor-defined. Nothing in OCPP says what is inside it.

Upload progress arrives through DiagnosticsStatusNotification, not through this response.