Skip to content

About

OCPP 1.6J / 2.0.1 charge point simulator & mock CSMS — free, offline, no signup. Desktop app for debugging chargers and platforms (Rust + Tauri).

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

OCPP Simulator

License: MIT Platform: Windows

A free, local OCPP 1.6J / 2.0.1 integration console. No signup, no cloud, no hardware required.

Verify every frame between a charge point and a CSMS on your own machine — before you deploy, before you ship, before you blame the network.

简体中文 · Website · Online OCPP tester · Live demo

A mock CSMS receiving BootNotification, Authorize, StartTransaction, MeterValues and StopTransaction from a charger

Local mock CSMS mode: a charger connects in, every frame lands in the log with its raw JSON — 21 frames in a few seconds.


Why

Anyone integrating OCPP eventually hits the same question: is the problem in my charger, my platform, or the way they talk to each other?

Setting up a real CSMS (Java + database + Docker) just to check one BootNotification is expensive. So is shipping a charger to a customer and finding out its TransactionEvent is malformed.

This tool gives you both ends of the wire, locally:

  • Virtual charge point — your machine acts as a charger and connects to your CSMS. Useful if you build or operate a platform.
  • Local mock CSMS — your machine listens on ws://127.0.0.1:<port>/<cpId> and a real charger connects to it. Useful if you manufacture or debug chargers.

No account, no telemetry, no cloud relay. Everything runs in a desktop window on your computer.

Features

Protocols OCPP 1.6J and OCPP 2.0.1 (WebSocket / JSON)
Two directions Virtual charge point (outbound) and local mock CSMS (inbound)
Smoke test One click sends BootNotification → Heartbeat → StatusNotification → Authorize → Start → MeterValues → Stop, and checks each response
Live frame log Every CALL / CALLRESULT / CALLERROR with direction, timestamp and raw JSON
Manual actions Click to send individual messages from either side and watch the response
Self-check Shows which charger reports you have actually observed (BootNotification, Heartbeat, StatusNotification, Authorize, TransactionEvent)
Export Save the full frame log locally
Diagnostic report One-click report with automatic redaction: credentials masked, charge point IDs obfuscated, URL query parameters stripped
Basic auth Supports CSMS endpoints behind HTTP Basic Auth (e.g. SteVe, gateways)
Bilingual UI Chinese / English, defaulting to your system language
Local only No data leaves your machine unless you explicitly submit a diagnostic report

Boundary: this is software only. We do not build chargers, sell chargers, do site work, or take a cut of your revenue. See LinkChargeHub.

Download

Ready-to-run Windows installers are published on the Releases page.

Requirements: Windows 10 1803 or newer (WebView2 runtime).

Build from source

Prerequisites:

  • Node.js 20 LTS or newer
  • Rust 1.77 or newer (Visual Studio C++ Build Tools on Windows)
  • Windows 10 1803+ for the WebView2 runtime
git clone https://github.com/cuckooabcli-tech/ocpp-simulator.git
cd ocpp-simulator

npm install

# frontend only (fast iteration at http://localhost:1420)
npm run dev

# full desktop app -> src-tauri/target/release/bundle/nsis/
npx tauri build

Workspace layout:

src/                 React + TypeScript UI
src-tauri/           Tauri shell, commands, local WebSocket server (Rust)
crates/ocpp-core/    OCPP frame codec, action catalogue, response builder, redaction

Quick start

Test your CSMS (virtual charge point)

  1. New test → mode Virtual charge point → protocol 1.6J or 2.0.1
  2. Fill in the charge point ID (must match what your CSMS expects) and your CSMS URL, e.g. wss://your-domain/ocpp/CP-001
  3. Click Create & connect — the frame log shows the outbound handshake and BootNotification
  4. Click Run smoke test and read the PASS / FAIL results

Test a real charger (local mock CSMS)

  1. New test → mode Local mock CSMS → choose the protocol → pick a local port (default 8888)
  2. Click Create & connect and copy the generated address: ws://127.0.0.1:<port>/<cpId>
  3. Set that as the charger's CSMS URL (OCPP subprotocol ocpp1.6 or ocpp2.0.1)
  4. Power-cycle or reconnect the charger, then watch its reports appear in the log and the self-check list

Local addresses are only reachable from the same machine. For a charger on another network you need a tunnel, or use the hosted tester which gives you a public wss:// endpoint.

Privacy

The app runs locally and makes no network calls by default. The only outbound requests are:

  • an optional version check, and
  • the diagnostic report you choose to submit.

Before a report is sent, the text is redacted locally — Basic auth credentials, ID tags / charge point IDs and URL query parameters are masked. You can preview the whole thing before deciding.

Status

v0.1.6, Windows x64. Protocol coverage is deliberately partial, and honest about it:

  • Covered — the core message set for both versions: boot, heartbeat, status, authorize, start/stop, meter values, remote commands, configuration read/write, firmware status, security events, data transfer.
  • Not covered — smart charging profiles, certificate management, and ISO 15118 Plug & Charge. If your integration depends on those, this tool will not answer them yet.

Missing coverage is usually one entry in crates/ocpp-core/src/actions.rs plus a response body, which makes it a reasonable first pull request.

macOS and Linux builds are planned but not started. The protocol core is platform-independent; only packaging differs.

Contributing

Bug reports and frame dumps are as valuable as patches — see CONTRIBUTING.md for what a useful report contains, how to run the tests, and which parts of the tree to touch.

If this tool saved you an afternoon, a star helps other integration engineers find it. That is the entire growth plan.

License

MIT — use it, fork it, ship it, commercially or otherwise. No attribution beyond the license notice is required.


Maintained by LinkChargeHub. Built for people who would rather debug a protocol than babysit a Docker container.

About

OCPP 1.6J / 2.0.1 charge point simulator & mock CSMS — free, offline, no signup. Desktop app for debugging chargers and platforms (Rust + Tauri).

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages