Kiprotich Dominic

>Case study · Dev tool · EV charging · 2026

EV Charger Simulator (OCPP 1.6J, 2.0.1, 2.1)

Python, built on the open-source ocpp library.

The problem

Testing against a real charger is slow, sometimes impossible, and you can’t make it fail on demand. Two online simulators also sent messages the spec doesn’t allow.

What I built

A charger in a browser tab. You can plug in a cable, tap a card and watch the meter count up, then drop the network and see what the charger does. It keeps charging, holds its messages, and sends them in order when it reconnects. You can also cut power with or without the session saved and watch it recover after reboot. Every message shows live on the page.

How it’s tested

It runs in automated tests, so every scenario is checked in both OCPP 1.6J and 2.0.1. OCPP 2.1 support reuses the 2.0.1 code with the 2.1 schemas, which kept the change small.

PythonocppFastAPIWebSocketsOCPP 1.6JOCPP 2.0.1OCPP 2.1