Firmware updates are how charging stations get bug fixes, security patches, and new features over time. Without remote firmware update capability, every issue would need a technician visit, which is economically impossible across a network of hundreds or thousands of chargers.

OCPP provides the protocol mechanism for remote firmware updates. This article covers how it works, the security considerations, and the operational realities of running firmware updates across a real fleet.

Why firmware updates matter

A typical charger’s firmware controls:

  • The OCPP communication layer.
  • The contactor and relay logic.
  • Safety interlocks.
  • The display and user interface.
  • The metering and reporting logic.
  • The ISO 15118 stack (if supported).
  • Smart-charging behavior.
  • Security and certificate management.

Bugs in any of these cause real problems: chargers that will not start sessions, miscount energy, fail safety checks, or expose security holes. Firmware updates are how those get fixed.

In production fleets, firmware updates happen routinely. Typical cadence: monthly to quarterly. Critical security patches go out immediately when needed.

The basic flow

A typical firmware update:

  1. The CSMS decides to update a specific charger (or batch of chargers) to a specific firmware version.
  2. The CSMS sends UpdateFirmware (1.6 and 2.0.1) or SignedUpdateFirmware (the 1.6 security extension) to the charger. The message includes the URL where the charger can download the firmware, the signature, the retry policy, the install window.
  3. The charger validates the request. Is the URL trusted, and for signed updates, is the signature valid?
  4. The charger downloads the firmware from the specified URL.
  5. The charger sends a firmware status notification at each stage (Downloading, Downloaded, Installing, Installed, or a failure status).
  6. The charger applies the firmware, which normally requires a reboot.
  7. The charger reboots and sends BootNotification with the new firmware version.
  8. The CSMS confirms the new firmware version is what was expected.
sequenceDiagram
    participant CSMS
    participant Charger
    participant Server as Firmware Server
    CSMS->>Charger: UpdateFirmware
    Charger-->>CSMS: Response
    Charger->>CSMS: Status Downloading
    Charger->>Server: Download firmware
    Charger->>CSMS: Status Downloaded
    Charger->>Charger: Verify signature
    Charger->>CSMS: Status Installing
    Charger->>Charger: Apply and reboot
    Charger->>CSMS: BootNotification new version
    Charger->>CSMS: Status Installed

The user (if there’s a session in progress when the update arrives) typically experiences either no impact (update is scheduled for after the session ends) or a brief outage during the reboot. The BootNotification message that follows a reboot is how the CSMS confirms the new firmware version actually took effect.

OCPP 1.6: UpdateFirmware

The basic 1.6 message:

[2, "fw-1", "UpdateFirmware", {
  "location": "https://firmware.example.com/charger/v1.4.7.bin",
  "retrieveDate": "2026-06-26T22:00:00Z",
  "retries": 3,
  "retryInterval": 300
}]

The response has an empty payload, [3, "fw-1", {}]. The charger can’t refuse; you learn what happened only from the FirmwareStatusNotification messages that follow, and they carry no request id.

  • location: URL to download the firmware.
  • retrieveDate: when to start the download.
  • retries / retryInterval: what to do if download fails.

This is unsigned. The charger trusts the URL and downloads whatever is there. This is a major security weakness. An attacker who can compromise the firmware server, or DNS, can push arbitrary firmware to every charger that receives the URL.

For this reason, the Open Charge Alliance’s security extension for OCPP 1.6 (the “Improved security for OCPP 1.6-J” white paper) added SignedUpdateFirmware and its own status message, SignedFirmwareStatusNotification. Many production deployments use the security-extension version exclusively.

OCPP 1.6 Security Extensions: SignedUpdateFirmware

The secure version:

[2, "fw-2", "SignedUpdateFirmware", {
  "retries": 3,
  "retryInterval": 300,
  "requestId": 12345,
  "firmware": {
    "location": "https://firmware.example.com/charger/v1.4.7.bin",
    "retrieveDateTime": "2026-06-26T22:00:00Z",
    "installDateTime": "2026-06-27T03:00:00Z",
    "signingCertificate": "-----BEGIN CERTIFICATE-----\nMIIC2jCCAcKgAwIBAgIUY3Rm...\n-----END CERTIFICATE-----\n",
    "signature": "kV8v2mQJ0r5n...base64...Zx4="
  }
}]

The certificate and signature are shortened here; real ones run to about 1 to 2 kB and a few hundred characters. In this message both are required, and the limits are 5,500 characters for the PEM certificate and 800 for the Base64 signature.

The signingCertificate and signature let the charger verify that the firmware was signed by a trusted authority before installing. Unlike plain UpdateFirmware, this one has a real answer: Accepted, Rejected, AcceptedCanceled (a running update was cancelled for this one), InvalidCertificate or RevokedCertificate. The certificate is checked before the charger accepts the request, so a bad signing certificate fails immediately instead of after a 50 MB download.

The flow:

  1. Charger downloads the firmware from the URL.
  2. Charger validates the signature using the signingCertificate.
  3. Validates that the certificate chains to a trusted root: the ManufacturerRootCertificate installed on the charger, not the CSMS root.
  4. If validation passes, applies the firmware. If not, rejects.

This prevents attackers from pushing rogue firmware even if they compromise the URL.

Production OCPP 1.6 deployments should use SignedUpdateFirmware exclusively. Plain UpdateFirmware should be disabled.

OCPP 2.0.1: UpdateFirmwareRequest

OCPP 2.0.1 folds the security extension into the base spec: the message is called UpdateFirmware again, but it has the SignedUpdateFirmware shape. For a broader look at how the versions differ, see the OCPP version comparison. The message:

[2, "fw-3", "UpdateFirmware", {
  "retries": 3,
  "retryInterval": 300,
  "requestId": 12346,
  "firmware": {
    "location": "https://firmware.example.com/charger/v2.1.0.bin",
    "retrieveDateTime": "2026-06-26T22:00:00Z",
    "installDateTime": "2026-06-27T03:00:00Z",
    "signingCertificate": "-----BEGIN CERTIFICATE-----\nMIIC2jCCAcKgAwIBAgIUY3Rm...\n-----END CERTIFICATE-----\n",
    "signature": "kV8v2mQJ0r5n...base64...Zx4="
  }
}]
[3, "fw-3", { "status": "Accepted" }]

Two details trip people up. requestId is an integer, and every FirmwareStatusNotification for this update must echo it. And signingCertificate and signature are optional in the 2.0.1 schema, because 2.0.1 still defines a non-secure firmware update (use case L02) next to the secure one (L01). For a secure update the CSMS must include the signing certificate (L01.FR.11). installDateTime lets you schedule the install separately from the download; it already existed in the 1.6 SignedUpdateFirmware.

What the charger does while sessions are running

The download can run during a session; the install usually can’t. In 2.0.1, if the station cannot install while a transaction is ongoing, it waits until all transactions have ended (L01.FR.06). While it waits, it sets every idle EVSE to Unavailable so no new session starts, unless its AllowNewSessionsPendingFirmwareUpdate variable is true (L01.FR.07). On a busy site that can mean connectors quietly going Unavailable one by one for hours. If you see that pattern after a rollout, check for an update waiting to install before you suspect a fault.

After the install, the station reboots, sends a BootNotification with reason FirmwareUpdate and the new firmwareVersion, and reports Installed. Compare that version string with what you sent; Installed alone is not proof.

The status notifications

During an update, the charger sends FirmwareStatusNotification (1.6 and 2.0.1) or SignedFirmwareStatusNotification (1.6 security extension) at each stage. The set of statuses depends on which one:

Status1.6 FirmwareStatus1.6 security ext. and 2.0.1Meaning
DownloadScheduledNoYesWaiting for retrieveDateTime, or busy charging
DownloadingYesYesDownload in progress
DownloadPausedNoYesPaused, for example for a higher-priority task
DownloadedYesYesFile received
DownloadFailedYesYesDownload failed after all retries
SignatureVerifiedNoYesSignature checked and valid
InvalidSignatureNoYesSignature did not verify; a security event InvalidFirmwareSignature follows
InstallScheduledNoYesWaiting for installDateTime
InstallingYesYesInstall in progress (may be skipped if the bootloader can’t speak OCPP)
InstallRebootingNoYesAbout to reboot to apply
InstalledYesYesNew firmware running
InstallationFailedYesYesInstall failed
InstallVerificationFailedNoYesVerification of the new firmware (a checksum, for example) failed; installation will not proceed
IdleYesYesNo firmware activity; only in reply to a TriggerMessage

A clean secure update in 2.0.1 reads: Downloading, Downloaded, SignatureVerified, InstallScheduled (if you set an install time), Installing, InstallRebooting, then BootNotification and Installed. InvalidCertificate and RevokedCertificate are not in this list: they are answers to the UpdateFirmware request itself.

If you trigger a FirmwareStatusNotification on 2.0.1, the station repeats the last status it sent, or Idle if that was Installed. So a triggered DownloadFailed from last week is old news, not a new failure.

The CSMS tracks these status updates and presents them in an operations dashboard. A charger that’s been “Downloading” for an hour is probably stuck and needs investigation.

Scheduling matters

Firmware updates cause downtime. Plan them.

Schedule for low-utilization windows. Overnight in residential locations; early morning before commuter rush; weekends for retail sites.

Pre-announce to users where possible. Some networks display “scheduled maintenance” messages on the charger before the window.

Batch rather than all at once. Never update an entire fleet simultaneously. A bad build caught in batch one is an incident; the same build across every charger you own is a business event.

Reserve time for download. A cellular-connected charger may take 20 minutes to download a 50 MB firmware. Account for this in scheduling.

Failure modes

A list of things that go wrong with firmware updates.

Download fails. Network outage, server unavailable, file too large for the cellular plan. Charger retries; eventually gives up. Need to reschedule.

Signature validation fails. Signing cert wrong, cert revoked, signing process error. Charger rejects. Operators need to fix the signing infrastructure.

Install fails. The firmware does not apply correctly, whether from a bug in the build, a hardware incompatibility, or insufficient flash space. The charger either rolls back, where that is supported, or stays on the old version.

Install succeeds but boot fails. New firmware has a bug that prevents the charger from starting normally. If hardware has rollback, it returns to the previous firmware after a watchdog timeout. If no rollback, charger is bricked until physical recovery.

Update completes but feature regression. Update applied successfully but a previously-working feature is broken in the new version. Discovered later by operators or users.

Mitigations:

  • Test firmware on a small fleet first. Pilot on 10-50 chargers before broader rollout. Catch issues with limited blast radius.
  • Hardware-level rollback. Some chargers support A/B firmware slots. The new build goes to slot B, becomes active on a successful boot, and reverts to slot A on failure. This is the production-grade pattern, and it is worth making a procurement requirement.
  • Pre-release validation. Run the firmware in a lab, test against your CSMS, verify OCPP interactions work.
  • Quick rollback plan. Be ready to push the previous version back to chargers if a new version turns out to have problems.

Security beyond signatures

Beyond signed updates, a few other security practices.

TLS for the download URL. HTTPS, modern cipher suites. Don’t allow firmware download over plain HTTP.

Pin the trusted root. Don’t let the charger trust any random CA for firmware signing. In OCPP the firmware signing certificate has to chain to a ManufacturerRootCertificate installed on the charger, so control who can install one of those (InstallCertificate) as tightly as who can push firmware. 2.0.1 also fixes the algorithm: the signature covers the whole firmware file, using RSA-PSS or ECSchnorr with SHA-256.

Audit firmware deployments. Log every UpdateFirmware sent. Log every FirmwareStatusNotification received. Operations team should be able to answer “what firmware is on which charger as of when.”

Limit who can initiate firmware updates. In your CSMS, restrict the “push firmware” action to specific roles. Don’t let any operator update any charger.

Code signing infrastructure. The signing process itself needs security. HSM-protected keys, multi-person approval, audit logs.

Operational best practices

A short list for CPOs running firmware updates at scale.

  1. Maintain a per-charger firmware inventory. Know what’s running where.
  2. Plan updates in waves (canary → small group → broader rollout).
  3. Monitor BootNotification frequency post-update. A spike of reboots means something’s wrong.
  4. Have a rollback plan for every firmware push.
  5. Coordinate with OEMs on firmware compatibility, because some updates need matching CSMS changes to land at the same time.
  6. Document expected behavior changes so support teams aren’t surprised.
  7. Audit firmware status regularly, because chargers stranded on old versions do not announce themselves.

What this means for CSMS implementers

If you’re building a CSMS, your firmware update implementation should:

Support both signed and unsigned modes (for backward compatibility, but default to signed).

Implement scheduled installs (don’t force operators to push during business hours).

Track firmware status per charger with full audit log.

Handle stuck updates. Alert when a charger has been “Downloading” for too long.

Support batch operations. Push firmware to many chargers at once with appropriate concurrency limits.

Integrate with the OEM’s firmware signing infrastructure. Your CSMS should pull the latest signed firmware from a trusted source automatically.

Provide rollback capability in your operator UI.

The honest summary

OCPP firmware updates are the mechanism that makes long-term operation of remote chargers viable. Use signed updates only, schedule deliberately, monitor obsessively, and have a rollback plan you have actually tested.

The asymmetry here is what makes firmware different from every other OCPP operation. Almost everything else in this protocol fails one charger at a time, and a bad firmware push fails all of them at once, remotely, in a way that can require someone to physically visit each site. That is the only OCPP operation with that property. It deserves a change process closer to the one you would use for a database migration than for a configuration change, and the batching, staging, and rollback discipline should reflect that rather than your general appetite for risk.