From 316a09e31b40d3bc70eeb38dc2ca4c966ae0123a Mon Sep 17 00:00:00 2001
From: sepehr-safari
+ Convert any readable trace to the vendor-neutral Open OCPP Trace v1.1 format (JSONL), so it
+ can be consumed by other OCPP tools.
+ Example:
DebugKit accepts three trace formats. All formats use the OCPP 1.6 JSON message structure.
+ It also reads and writes the vendor-neutral Open OCPP Trace interchange format, described
+ below.
Direction is inferred; timestamps are null.
+ The vendor-neutral{' '}
+
+ Open OCPP Trace
+ {' '}
+ interchange format lets traces move between DebugKit and other OCPP tools. It is a stream of
+ records (JSONL or a JSON array), one frame per record:
+
+ Each record also carries a Three message types are supported:{`ocpp-debugkit diff trace-a.json trace-b.json`}
+ convert
+
+
+ {`ocpp-debugkit convert
+ Options
+
+
+ -o, --output <file> - Write converted trace to file (default: stdout)
+
+
+
{`ocpp-debugkit convert trace.json -o trace.openocpp.jsonl`}
+ Global Options
Trace Format
JSON Object Format
@@ -55,6 +57,30 @@ export default function TraceFormatPage() {
Open OCPP Trace Format
+
+
+ {`{"schemaVersion":"1.1","timestamp":"2024-01-15T10:30:00.000Z","transport":"json","direction":"cp-to-csms","messageType":"CALL","messageId":"msg-001","action":"BootNotification","payload":{"chargePointVendor":"SyntheticVendor","chargePointModel":"SM-100"}}
+{"schemaVersion":"1.1","timestamp":"2024-01-15T10:30:00.500Z","transport":"json","direction":"csms-to-cp","messageType":"CALLRESULT","messageId":"msg-001","payload":{"status":"Accepted"}}`}
+ raw field with the verbatim frame, so byte-exact or
+ malformed frames survive the round trip. The inspector auto-detects this format on paste;
+ write it back out with the convert CLI command. The parser and exporter are
+ checked against the format's conformance fixtures in CI.
+ OCPP 1.6 JSON Message Structure
diff --git a/src/app/page.tsx b/src/app/page.tsx
index ae9a2fa..df44279 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -126,6 +126,28 @@ export default function HomePage() {
+ The toolkit reads and writes the vendor-neutral{' '} + + Open OCPP Trace + {' '} + format, so a trace from a simulator, proxy, or CSMS test suite opens in + the inspector, and DebugKit can write the format back out for them. The + parser and exporter are checked against the format's conformance + fixtures in CI. +
+