What breaks when a charger meets a new CMS: 10 common OCPP 1.6J issues

Short answer: When a charger is moved to a new CMS, the same OCPP 1.6J problems come up again and again: identity and password mismatches, boot loops, missed reconnects, lost offline transactions, wrong transaction ids, bad meter values, status that does not match reality and strict message parsing. Nearly all of them can be found with a structured test run before go-live.

Moving a charger to a new charging management system (CMS, also called a CSMS or back office) should be a configuration change. In practice it often means weeks of log reading, because each back office reads the OCPP 1.6J specification a little differently and each firmware has its own habits.

Here are ten issues that cause most of that pain, and how to test for each before go-live.

The ten issues at a glance

# Issue What the operator sees
1 Identity or URL mismatch Charger never comes online; 404 or refused connection
2 Security settings mismatch 401 errors or TLS handshake failures
3 Boot loop or early messages Charger shows as unknown, or status appears before registration
4 Heartbeat and clock Charger marked offline; wrong session times
5 No reconnect after a silent drop Charger “online” but not answering commands
6 Offline queue problems Missing or duplicated sessions after an outage
7 Transaction id handling Sessions that never close, or two open sessions
8 Meter values Wrong bills, energy going backwards
9 Status out of step with reality Connector stuck in Charging or Finishing
10 Strict or fragile message parsing Charger drops the connection on an unexpected message

1. Identity or URL mismatch

The chargeBoxId at the end of the WebSocket URL must match what the new CMS registered, character for character. Typical slips: changed case, a trailing slash or the old CMS’s path. Test: connect with the exact production identity and check the CMS shows the charger online.

2. Security settings mismatch

If the new CMS uses security profile 1, the charger sends a password with HTTP Basic authentication; one wrong character gives a 401. With profile 2, the charger has to trust the CMS’s TLS certificate, and many chargers ship with a limited set of root certificates. Test: connect with the real profile, then check the charger refuses an untrusted, expired or wrong-host certificate instead of connecting anyway.

3. Boot loop or early messages

A new CMS may answer BootNotification with Pending while it finishes onboarding. Chargers that only expect Accepted stop trying or retry far too fast; others send StatusNotification or start sessions before they are accepted, which a strict CMS rejects. Test: answer Pending and Rejected and check the charger retries at the interval it was given and stays quiet until it is accepted.

4. Heartbeat and clock

The CMS sets the heartbeat interval and the current time in its boot answer. Firmware with a fixed interval can be marked offline by a stricter CMS, and a charger that ignores the time stamps sessions wrongly. Test: give a different interval and a different time, and check the charger follows both.

5. No reconnect after a silent drop

When a mobile network stops passing traffic, the charger’s socket can stay open with nothing on the other end. If the charger relies only on the server closing the connection, it can sit “connected” for hours. Test: drop the connection without a close frame and measure how long the charger takes to notice and reconnect, and that it waits between attempts instead of hammering the server.

6. Offline queue problems

During an outage the charger must store StartTransaction, MeterValues and StopTransaction and send them in order once it is back. Typical faults are sending Stop before Start, giving up after the first failed attempt, ignoring the retry settings, sending several requests at once, or replaying old status messages that confuse the CMS. Test: cut the link in the middle of a session, end the session offline, reconnect and check what arrives and in which order.

7. Transaction id handling

The CMS assigns the transactionId in its answer to StartTransaction, and the charger must use that id on stop. Problems appear when a session started offline: the charger has to link the offline stop to the id it receives later. Some chargers also send an extra StartTransaction after a reconnect, which leaves two open sessions on one connector. Test: run sessions online and offline and check every stop closes the right session.

8. Meter values

Billing depends on meter values. Watch for missing measurands, the wrong context (periodic versus clock-aligned readings), an energy register that resets after a reboot or power loss, and a meterStop that does not fit the energy delivered. Test: configure the measurands the new CMS needs, run a session across a reboot and compare the register before and after.

9. Status out of step with reality

A connector that reports Charging with no open transaction, or stays in Finishing after unplugging, blocks the next driver. Connector 0 (the whole charger) is often forgotten. Test: walk through plug in, start, stop and unplug, and check every StatusNotification matches what happened.

10. Strict or fragile message parsing

A robust charger ignores harmless extra fields, answers an unknown action with a proper error instead of crashing, copes with unusual idTag values, and does not drop the WebSocket because one message was malformed. Test: send unexpected but valid messages and a few broken ones, and check the connection survives.

How to catch these before go-live

You can reproduce each case by hand with a test CMS, but it is slow and easy to skip under deadline pressure. ChargeBench by Tecell is a hosted OCPP 1.6J test lab that acts as the central system and runs more than 200 automated charger test cases covering all ten areas above, including offline, field regression and robustness checks. Each failure includes a likely root cause and a fix hint, and the report can be shared with the CPO who is onboarding the charger. You can start on the Free plan with one charger.

For a full step-by-step test plan, read How to test an OCPP 1.6J charger before deployment.

Frequently asked questions

Why does a charger work with one CMS and fail with another?

The OCPP 1.6J specification leaves room for interpretation and has many optional parts. One CMS may tolerate behaviour that another rejects, so a charger that was never tested against strict behaviour can fail after a switch.

Who should test, the charger maker or the CPO?

Both: the charger maker on every firmware release, the CPO before rolling out a new model.

Which of these issues costs the most?

Offline queue, transaction id and meter value problems, because they affect billing and are often found only after sessions have been lost or charged wrongly.

Can these problems be fixed in the CMS instead of the charger?

Some can be worked around, but the fix usually belongs in the firmware; a workaround in one CMS does not help the next operator.

Is a test lab result the same as a guarantee?

No. It shows how the charger behaved in a defined set of tests; every new integration still needs a short live check.

Scroll to Top