What Is OCPP? A Practical Guide for Charger Buyers and Integrators
OCPP without the marketing: what the protocol does, which version to ask for, what "supports OCPP" means on a datasheet, and how to test it yourself.
Also available in 简体中文
Most articles about OCPP start with the Open Charge Alliance and a list of message names. That is not what a buyer needs. What a buyer needs to know is: what does this protocol let the backend actually do, and how do I tell whether a charger really implements it?
This guide answers that. It is written from the integration side — the people who get handed a charger, a datasheet and a deadline.
The one-paragraph definition
OCPP — Open Charge Point Protocol — is the language a charging station uses to talk to the central system that manages it. The station asks “may I start a session?”, reports meter values every minute, tells the backend when a connector is occupied, and accepts commands like “stop this transaction” or “unlock connector 2”. The backend is usually called a CSMS (Charging Station Management System).
That is the whole scope. OCPP does not move money, does not handle roaming between networks, and does not talk to the driver’s phone. Those are separate layers:
| Layer | Protocol | What it does |
|---|---|---|
| Charger ↔ backend | OCPP | Sessions, meter values, commands, firmware, configuration |
| Backend ↔ backend (roaming) | OCPI | Publishes locations and sessions between operators |
| Charger ↔ vehicle | ISO 15118 / IEC 61851 | Physical charging, and Plug & Charge authentication |
| Backend ↔ driver app | Your own REST API | Shows the driver what is happening |
When someone says “our app supports OCPP”, they usually mean the app talks to a backend that speaks OCPP. Worth clarifying early — the confusion costs projects weeks.
What OCPP actually lets you do
Once a charger is properly connected, an OCPP backend can:
- Authorise a session by RFID tag, app user or local whitelist, and reject it with a reason code the driver can act on (
Invalid,Blocked,Expired,ConcurrentTx). - Start and stop remotely — the feature that makes an app possible at all.
- Read meter values — energy in Wh, power in W, current per phase, state of charge, and a timestamp for each sample.
- Watch connector state — available, preparing, charging, suspended, faulted.
- Change configuration remotely: heartbeat interval, max current, local auth list, whether a plug-in starts a session automatically.
- Push firmware and confirm the version after reboot.
- Apply a charging profile — the load-balancing primitive: “never draw more than 40 A across these three connectors”.
- Diagnose — trigger a status notification on demand, pull a log file, reset the station.
If a supplier’s OCPP implementation cannot do these, the “smart” part of your product does not exist, no matter how good the app looks.
The two versions you will actually be offered
OCPP 1.6J (2015, JSON over WebSocket) is what 90% of the installed base speaks. “J” means JSON — you will also see “1.6S” for the older SOAP variant, which you should avoid; nobody builds new SOAP integrations.
OCPP 2.0.1 (2020) is the current standard. It replaces the flat key-value configuration of 1.6 with a structured device model, replaces StartTransaction/StopTransaction with a single TransactionEvent, and adds proper certificate management for Plug & Charge.
A detail that trips people up: 2.0.1 is not backward compatible with 1.6J. Different message names, different payload shapes, a different subprotocol string in the WebSocket handshake. A backend supports both by running two protocol handlers side by side, which is what we do — but a single charger runs one or the other, decided by its firmware. There is no runtime switch.
For a side-by-side decision table, see OCPP 1.6J vs 2.0.1: which should your chargers run.
What “supports OCPP” means on a datasheet
This phrase is doing a lot of work. In practice it can mean any of five very different things:
- Full 1.6J core + smart charging + firmware management. Rare at the low end, normal for tier-one hardware.
- Core profile only. Boot, heartbeat, authorise, start, stop, meter values. No remote configuration, no firmware update. You will be sending someone to site with a laptop.
- A vendor-specific dialect. Messages present, semantics different — for example
MeterValuesonly sent every five minutes, orStopTransactionmissing the final meter reading, so your invoice is wrong. - Only the charger side of a demo. Works against the vendor’s own backend, fails against anyone else’s.
- A gateway bolted on. The charger speaks a proprietary protocol to a small box that translates to OCPP. Works, but the box is another failure point and often lacks remote firmware for the charger itself.
The only reliable test is to connect it to a backend that is not the vendor’s. Which brings us to the practical part.
How to verify a charger in about 20 minutes
You need a backend the vendor has never seen, and a way to watch the WebSocket traffic.
Step 1 — point the charger at a test CSMS. Set the charge point’s OCPP URL to something like wss://your-test-host/ocpp/CP-TEST-01 and its identity to CP-TEST-01. The identity must match the last path segment exactly; case matters.
Step 2 — watch the handshake. With wscat or any WebSocket client on the server side, confirm three things:
- the request upgrades with
Sec-WebSocket-Protocol: ocpp1.6(orocpp2.0.1); - the path is exactly what you configured — a trailing slash mismatch is the single most common cause of “it will not connect”;
- the first message is a
BootNotificationwith vendor, model, serial number and firmware version.
Step 3 — answer it properly. Reply Accepted, then send a ChangeConfiguration (1.6) or SetVariables (2.0.1) and see whether the charger accepts it. A charger that returns NotSupported for everything is telling you which profile tier it actually implements.
Step 4 — run one real session. Authorise, start, charge for two minutes, stop. Check that you received meter values during the session and a final reading in the stop message. Then check whether the numbers add up — a 2-minute session at 7 kW should be roughly 0.23 kWh, not zero.
If you have no backend handy, our free OCPP simulator does the first three steps in a browser: it creates a virtual charge point, connects it outbound to any CSMS, and shows the raw JSON in both directions.
The five things that actually break integrations
Almost every failed integration we have debugged is one of these, in roughly this order of frequency:
- URL path mismatch.
wss://host/ocpp/CP001versuswss://host/ocpp/CP001/are different resources. Same for.../ocpp16/versus.../ocpp/. - Subprotocol not negotiated. The charger requests
ocpp1.6, the server answers without the header, the connection opens and then dies. Always check the upgrade response. - TLS trust. Old firmware with an outdated CA bundle rejects a valid Let’s Encrypt certificate — usually reported by the charger as a generic network error with no detail.
- Identity contains characters the backend rejects. Slashes, spaces, uppercase-only prefixes, non-ASCII vendor names. Keep identities to
[A-Za-z0-9_-]. - The charger never sends
BootNotificationafter a network loss. It reconnects the socket but skips boot, so the backend keeps it in an unknown state. This one is worth monitoring explicitly — see Charger shows online, platform says offline.
Where OCPP stops, and what you have to build
OCPP gives you the pipe. It does not give you:
- Pricing. Tariffs, idle fees, tax rules and invoicing live in your backend.
- Payments. Card acquiring, wallets, invoicing — outside the protocol.
- Metering law. If you invoice on OCPP meter values, understand that these are not revenue-grade. For billing in regulated markets you need a certified meter, and OCPP is only carrying its readings.
- Driver experience. Apps, QR codes, support flows.
- Roaming. That is OCPI, and it is a separate integration with its own certification.
A CSMS is therefore OCPP plus billing plus operations plus an API. When you compare vendors, compare the part above the protocol — because the protocol part is, by now, a solved problem.
A short buying checklist
Copy this into your RFQ:
- Which OCPP version, and is it certified by the Open Charge Alliance (ask for the certificate ID)?
- Which profiles are implemented: Core, Smart Charging, Firmware Management, Local Auth List, Reservation, Remote Trigger?
- Is the subprotocol string
ocpp1.6/ocpp2.0.1(not a vendor prefix)? - Can the OCPP URL and charge point identity be changed in the field, including the port and path?
- Which security profile is supported: 1 (TLS), 2 (TLS + client certificate), 3 (certificate + security extension)?
- How many transactions can it queue while offline, and for how long?
- Does firmware update work over OCPP, and can it roll back?
- What is the behaviour if the backend is unreachable at plug-in — does it fall back to local authorisation?
If a supplier cannot answer these from memory, that is your answer.
The bottom line
OCPP is the least interesting and most consequential part of an EV charging product. It is boring, well-specified, and everything above it — billing, operations, driver experience — depends on it being right.
Two practical conclusions:
- Do not accept “supports OCPP” as a specification. Demand the version, the profile list, and a live test against a backend that is not the vendor’s.
- Choose the protocol version by what you plan to sell in three years, not by what is cheapest today. Moving from 1.6J to 2.0.1 is a firmware and hardware decision that is very hard to reverse later.
If you are evaluating a platform, you can open our read-only demo and see what an OCPP CSMS actually looks like in operation — station list, sessions, meter values, remote commands — before you commit to anything.