SME OCPPSim¶
A free, open-source OCPP charging station simulator (a charge point / EV charger simulator) with a live web UI, for Windows, Linux and Docker. Use it to test a CSMS or an EMS. Simulate dozens to hundreds of AC chargers in one process, plug in virtual EVs, start and stop transactions, and watch how the charging power follows the Smart Charging profiles your CSMS sends.
- OCPP 1.6J and OCPP 2.0.1. Each simulated charger is a WebSocket client that connects out to your CSMS
(subprotocol
ocpp1.6orocpp2.0.1, chosen per charger, so one process can run a mixed site), boots, sends heartbeats, status notifications, transactions (1.6 StartTransaction / StopTransaction, 2.0.1 TransactionEvent) and meter values, and answers the CSMS commands listed in OCPP messages. OCPP 2.1 is planned (v0.3) and shown greyed out in the UI. - OCPP 2.0.1 Device Model and external limits. GetVariables / SetVariables / GetBaseReport on a minimal set
of standard variables plus your own (
variables:in the YAML file), shown read-only in the web UI; an external (EMS) limit per EVSE or station with NotifyChargingLimit / ClearedChargingLimit. - Smart Charging with a closed power loop (1.6 and 2.0.1). SetChargingProfile / ClearChargingProfile / GetCompositeSchedule; the limit applied to the simulated power is computed by the same function that answers GetCompositeSchedule, so what the CSMS is told and what the meter values show cannot diverge. See Smart Charging.
- EV and power model. Battery capacity, SoC, charging curve, phases, minimum current, ramps, Japanese 200 V single-phase and 3-phase delta supplies; status moves between Charging, SuspendedEV and SuspendedEVSE.
- Many chargers. 200+ chargers in one process; connect / disconnect them individually or in bulk.
- Authorization, reservations and maintenance (1.6 and 2.0.1). Local authorization list and authorization cache, ReserveNow / CancelReservation, and simulated firmware update, diagnostics and log upload with status notifications and failure injection. See OCPP messages.
- Security profiles 0 / 1 / 2 / 3. Plain
ws://, HTTP Basic authentication,wss://with Basic authentication andwss://with a TLS client certificate; certificate management and SecurityEventNotification. See Security profiles. - Built-in Mini CSMS. A simple OCPP 1.6J / 2.0.1 CSMS on port 9000 in the same process: try the simulator without an external CSMS and send any CALL from a JSON editor. See Mini CSMS.
- Excel and charger templates. Import / export the charger list as an Excel workbook and add many chargers at once from a template. See Excel import / export and charger templates.
- Frame log. Every OCPP frame, filterable by charger, action and direction, with JSON Lines export.
- YAML configuration. Edit chargers in the browser and save back to the file. See Configuration.
- English, Japanese and Simplified Chinese UI, light and dark theme.
SME OCPPSim is free and MIT-licensed, developed by smart-edge (智届科技) — custom development is available, see Commercial support & custom development.
Not OCA certified
SME OCPPSim implements the publicly available OCPP specification. It is not certified by the Open Charge Alliance and has not been tested with OCTT. See License.
Next steps¶
- Quick start: Windows exe, pip or Docker, and a first connection to SteVe
- Configuration: every YAML field
- HTTP API: drive the simulator from your test scripts
Typical uses¶
- Test a CSMS or EMS without real chargers. Point your CSMS at dozens of simulated chargers instead of hardware; see the quick start and OCPP messages.
- Verify the Smart Charging power loop. Send charging profiles and check that the meter values follow the limit, see Smart Charging.
- Test scale and reconnects. Run 200+ chargers in one process and exercise disconnect / reconnect scenarios, see Configuration and the HTTP API.
More simulators from smart-edge¶
SME OCPPSim is one of a series of free, MIT-licensed protocol simulators by smart-edge. They share the same web UI and conventions, so what you learn in one carries over to the others.
| Simulator | What it simulates | Docs |
|---|---|---|
| SME BACnetSim | BACnet/IP device simulator | Docs |
| SME ModbusSim | Modbus TCP / RTU / UDP / TLS slave (server) simulator | Docs |
| SME OCPPSim (this project) | OCPP 1.6J / 2.0.1 charging station (charge point) simulator | Docs |
All open-source tools from smart-edge: https://smartedge-tech.com/open-source/