OcppPilot
The OCPP Protocol Engine
The shared Go library that powers every Pilot product. OCPP-J adapter over WebSocket with frame encoding/decoding, subprotocol negotiation (1.6 + 2.0.1 + 2.1), CALL/CALLRESULT/CALLERROR correlation by uniqueId, and one handler interface for every incoming call.
Why OcppPilot?
The protocol layer, solved once — so every product built on top just works.
OCPP-J wire codec
Encode and decode OCPP-J frames — CALL, CALLRESULT, CALLERROR. A malformed frame is answered with a FormationViolation automatically, and a schema validator ships alongside for the messages you choose to check.
WebSocket server
The CSMS side of the connection: a standard Go http.Handler that negotiates the subprotocol, picks the charger's preferred version, and refuses a charger that offers none you support. Put it behind your own TLS.
Frame correlation by uniqueId
Every CALL gets a uniqueId. OcppPilot tracks pending requests and matches each CALLRESULT or CALLERROR back to its originating call.
Raw frame capture
A frame observer sees the raw bytes of every frame in both directions — including the malformed ones — for logging and debugging.
1.6 + 2.0.1 + 2.1 action catalog
Every OCPP 1.6 action, the core of 2.0.1 — BootNotification, Authorize, TransactionEvent and more — and 2.1's settlement, DER control and periodic event stream actions, named and grouped by direction.
Embeddable Go library
Import OcppPilot as a Go module into your own application. Build a CSMS or a test harness — the protocol layer is handled.
How it works
Embed the engine, handle the protocol.
Import the Go module
Add OcppPilot to your Go project. It provides the WebSocket server, the frame codec and the action catalog out of the box.
Implement one handler
Every incoming call reaches a single OnCall method with its action name and payload — switch on BootNotification, StartTransaction, MeterValues and whatever else you support.
Let OcppPilot handle the wire
Subprotocol negotiation, frame correlation, command timeouts — the engine takes care of it. You focus on business logic.
Be among the first
We're working with teams building on OCPP to shape OcppPilot into the definitive protocol engine. Bring your use case — we'll bring the library.
Request a demoOr join the waitlist for early access: