Technology

What is OCPP? How EV chargers talk to the cloud

OCPP is the open protocol most EV charging stations use to talk to their back office. How the connection works, what the main messages do and what changed between versions.

  • By Systronium Team, Engineering & Delivery
  • November 24, 2026
An EV charging station exchanging OCPP BootNotification messages with a management system over WebSocket

Behind every public EV charger there is software running somewhere else that decides who may charge, records how much energy they used and tells the station when to update its firmware. The two sides need a common language, and for most of the industry that language is OCPP, the Open Charge Point Protocol.

OCPP is an open standard maintained by the Open Charge Alliance. Because it is open, a charging network can mix hardware from different manufacturers and still run everything from one back office, and an operator can change software providers without replacing its chargers. That interoperability is the main reason it became the default.

This post explains how OCPP works at the protocol level, for developers who are meeting it for the first time.

The two sides

OCPP describes a conversation between:

  • The charging station (called a Charge Point in OCPP 1.6): the physical unit with one or more connectors.
  • The CSMS, or Charging Station Management System (called the Central System in 1.6): the back office software that manages stations, drivers, sessions and billing.

The station is the client. It opens the connection to the CSMS, not the other way round. That matters in practice, because chargers often sit behind mobile networks or NAT, where nothing outside can reach them directly.

The transport: JSON over WebSocket

Modern OCPP runs as JSON over a WebSocket connection. Older deployments of 1.5 and 1.6 also used SOAP, but that is now rare. The station connects to a URL that ends with its own identity:

wss://csms.example.com/ocpp/STATION-0042

During the handshake, it requests a WebSocket subprotocol naming the OCPP version it speaks, such as ocpp1.6 or ocpp2.0.1. The CSMS confirms the version it accepts, and the connection then stays open for as long as possible. Either side can send a message at any time over that one connection.

The message format

Every OCPP message is a JSON array, and the first element says what kind it is. Here is a request from the station, using the OCPP 1.6 payload:

[2, "19223201", "BootNotification", {"chargePointVendor": "ExampleCo", "chargePointModel": "AC-22"}]

That is a CALL (type 2): a request with a unique message ID, an action name and a payload. The other side answers with a CALLRESULT (type 3) carrying the same ID:

[3, "19223201", {"status": "Accepted", "currentTime": "2026-11-24T09:25:00Z", "interval": 300}]

If something goes wrong, it answers with a CALLERROR (type 4) instead, containing an error code and a description. The message ID is what ties each response to its request.

One rule catches many first implementations: a sender should not send a new CALL until its previous one has been answered or has timed out. OCPP is not built for many parallel requests in the same direction, so both sides need an outgoing queue.

A typical session, step by step

Using OCPP 1.6 names, a normal charging session looks like this:

  1. BootNotification. When the station starts, it introduces itself with its vendor, model and firmware version. The CSMS replies Accepted, along with the heartbeat interval it wants. Until it has been accepted, the station should not start sessions.
  2. StatusNotification. The station reports the state of each connector, such as Available, Preparing, Charging or Faulted, and sends a new notification whenever a state changes.
  3. Heartbeat. At the agreed interval, the station sends a heartbeat so the CSMS knows it is still online. The response includes the current time, which the station uses to keep its clock correct.
  4. Authorize. A driver presents an RFID card or starts a session from an app. The station asks the CSMS whether that ID is allowed to charge.
  5. StartTransaction. When charging begins, the station reports the connector, the ID, a timestamp and the starting meter reading. The CSMS answers with a transaction ID.
  6. MeterValues. During the session, the station sends energy readings at a configured interval, and often power, current and the vehicle's state of charge as well.
  7. StopTransaction. When the session ends, the station sends the final meter reading and the reason it stopped. This is the record that billing is based on.

The CSMS can also start conversations of its own. It can start or stop a session remotely, reset the station, change its configuration, unlock a connector or tell it to download new firmware.

What changed in OCPP 2.0.1

OCPP 2.0 was published in 2018 and replaced by 2.0.1 in 2020, which fixed problems found in the original. It is not backward compatible with 1.6, and the differences are substantial:

  • Transactions are unified. StartTransaction, StopTransaction and transaction meter values are replaced by a single TransactionEvent message with Started, Updated and Ended event types.
  • A device model. Instead of a flat list of configuration keys, a station describes itself as a tree of components and variables that the CSMS can read and change with GetVariables and SetVariables. That makes very different hardware manageable in one consistent way.
  • Security is part of the standard. 2.0.1 defines three security profiles: basic authentication without TLS (profile 1, only suitable for closed networks), basic authentication over TLS (profile 2), and TLS with client certificates (profile 3). It also covers certificate management, security event logging and signed firmware updates. Some of this was later brought to 1.6 through a security whitepaper, but in 2.0.1 it is built in.
  • Better smart charging. Charging limits can come from the CSMS or a local energy controller, and support for ISO 15118 lets the station exchange charging needs with the vehicle itself. ISO 15118 also enables Plug and Charge, where the car identifies itself without a card or an app.
  • Display messages. Operators can show custom messages and tariff information on the station's screen.

OCPP 2.1, published in early 2025, builds on 2.0.1 rather than replacing it, adding features such as bidirectional charging. In the field, OCPP 1.6 is still extremely common, especially on older hardware, and many networks run several versions side by side.

Lessons for anyone building on OCPP

A few practical points that are easy to underestimate:

  • Chargers go offline all the time. Mobile connections drop, sites lose power and firmware restarts. A station is expected to keep working offline, queue its transaction messages and deliver them when the connection returns. The CSMS has to accept late, out-of-order and occasionally duplicated messages without counting a session twice.
  • Treat every message as a possible retry. If a response is lost, the station may send the same transaction message again. Handling it idempotently, keyed on the transaction and the event, avoids duplicate billing records.
  • Hardware varies more than the specification suggests. Manufacturers interpret optional fields, error codes and timing in different ways. Log the raw messages for every station. When something goes wrong, the exact JSON is usually the fastest route to an answer.
  • Time matters. Billing depends on timestamps, and a station with a drifting clock produces sessions that end before they start. Use the time in boot and heartbeat responses to keep stations in sync, and check timestamps when messages arrive.
  • Plan for more than one version. Most networks run a mix of hardware generations, so a CSMS usually needs to speak both 1.6 and 2.0.1 for years. Keeping version-specific handling at the edge and translating everything into one internal model keeps the rest of the system simple.

On paper, OCPP is not a complicated protocol. The difficulty is in the world around it: unreliable networks, varied hardware and money riding on every meter reading. Designing for those conditions from the first day is what separates a back office that works in a demo from one that can run a real network.

About our OCPP platform

We are building an OCPP Management Platform that negotiates OCPP 1.6J or 2.0.1 on each charger connection, handles the full inbound message sets of both versions, and sends 19 central system commands on 1.6 and 20 on 2.0.1. It is in development, and its product page lists which parts are complete and which have not been started. If you run or are planning an EV charging network, talk to us.

Let's build something reliable

Practical software. Reliable systems. Built to scale.

Tell us what you are building and where delivery is slowing down. We will map the shortest practical path to a working product.

A remote-first software studio building web platforms, desktop software, and scalable systems that keep working after launch.

  • Web platforms
  • Desktop software
  • Cloud & DevOps
info@systronium.com