Docs › OCPP-Ladepunkte

OCPP-Ladepunkte

Jeder Ladepunkt ist ein eigener OCPP-Client mit WebSocket-Verbindung, Zählern, Fahrzeug und Zustandsautomat. Er läuft auf unserem Server weiter, auch wenn Sie den Browser schließen.

Einstellungen

KennungCharge Point ID bzw. Station-ID. Wird an die CSMS-Adresse gehängt (abschaltbar: „Kennung an die Adresse hängen“).
OCPP-Version1.6 (OCPP-J), 2.0.1 oder 2.1. Subprotokoll im WebSocket-Handshake: ocpp1.6, ocpp2.0.1, ocpp2.1.
CSMS-Adressews:// oder wss://. Adressen im privaten Netz (192.168…, 10…, localhost) sind aus Sicherheitsgründen gesperrt – Ihr Backend muss aus dem Internet erreichbar sein.
PasswortHTTP Basic Auth beim Verbindungsaufbau: Security Profile 1 mit ws://, Profile 2 mit wss://. Wird verschlüsselt gespeichert und nie wieder angezeigt.
Hersteller, Modell, Seriennummer, FirmwareGehen in die BootNotification.
Anschlüsse, Art, Leistung, Phasen, Spannung, Steckertyp1–8 Anschlüsse, AC oder DC. Bestimmen die Ladeleistung und die OCPI-Standortdaten.
FahrzeugAkkugröße, Ladestand beim Stecken, Ziel-Ladestand, max. AC/DC-Leistung. Wie bei echten Fahrzeugen sinkt die Ladeleistung ab etwa 50 % Ladestand, über 80 % deutlich; beim Ziel-Ladestand hört das Fahrzeug auf zu laden.
BetriebOCPP: verbindet sich mit Ihrem CSMS. Intern: gehört zu einem OCPI-CPO und braucht kein Backend.

„Speichern und neu starten“ trennt die Verbindung und baut sie mit den neuen Werten wieder auf.

Bedienung

Verbinden / TrennenVerbindung zum Backend auf- bzw. abbauen. Getrennt bleibt der Ladepunkt auch nach einem Neustart unseres Servers getrennt.
NeustartWie ein Soft-Reset: laufende Vorgänge werden mit Grund Reset beendet, danach neue BootNotification.
Kabel stecken / ziehenStatusNotification Preparing bzw. Available (2.x: Occupied und TransactionEvent). Ziehen während des Ladens beendet den Vorgang mit EVDisconnected.
Karte vorhaltenAuthorize mit der eingestellten Karte (idTag). Bei Accepted startet der Vorgang, sobald ein Kabel steckt. Nochmals vorhalten beendet ihn.
LadenStecken und Karte vorhalten in einem Schritt.
StoppBeendet den Vorgang mit Grund Local.
Fehler auslösen / behebenStatusNotification Faulted mit Fehlercode, ein laufender Vorgang wird beendet.

Was Ihr Backend anfragen kann

Der Simulator beantwortet unter anderem Fernstart und -stopp, Reset, ChangeAvailability, Konfiguration (1.6: GetConfiguration/ChangeConfiguration, 2.x: GetVariables/SetVariables/GetBaseReport), TriggerMessage, UnlockConnector, Reservierungen, lokale Listen, Ladeprofile (SetChargingProfile, ClearChargingProfile, GetCompositeSchedule), DataTransfer sowie Firmware- und Diagnose-/Log-Anfragen. Ladeprofile wirken wirklich: die Ladeleistung folgt dem Limit. Was genau je Version unterstützt wird, zeigt die Nachrichten-Referenz (Markierung „beantwortet“). Alle anderen Anfragen bekommen NotSupported – geprüft werden sie trotzdem.

Messwerte: Während des Ladens kommen MeterValues (1.6) bzw. TransactionEvent Updated (2.x) im eingestellten Intervall (1.6: MeterValueSampleInterval, Standard 60 s) mit Energie, Leistung und Ladestand.

Zeitraffer

Mit „Zeitraffer“ (1–60×) lädt das Fahrzeug schneller als in Echtzeit – eine Stunde Laden dauert bei 60× eine Minute. Die gemeldeten Zählerstände passen dazu; Zeitstempel bleiben echt.

Offline, Warteschlange und Wiederanlauf

Fehlerinjektion

Um zu prüfen, wie Ihr Backend mit schlechten Ladepunkten umgeht:

Antworten verzögern (ms)Jede Antwort auf eine Anfrage Ihres Backends kommt so viel später.
Antworten verschlucken (0–1)Anteil der Anfragen, auf die gar keine Antwort kommt (Timeout auf Ihrer Seite).
Fernstart/-stopp ablehnenFernstart und -stopp werden mit Rejected beantwortet.
Ungültige Anfragen mit CALLERROR beantwortenAn (Standard): Anfragen, die das Schema verletzen, bekommen eine CALLERROR wie bei strenger Firmware. Aus: sie werden trotzdem verarbeitet.
Zeitlimit eigene Anfragen (s)So lange wartet der Ladepunkt auf Antworten Ihres Backends.
Roh sendenBeliebigen Text als WebSocket-Frame senden – auch absichtlich kaputtes JSON.

Eigene Nachrichten senden

Unter „Nachricht an das Backend senden“ jede Aktion der gewählten Version mit eigenem Inhalt verschicken. Der Inhalt wird vorher gegen das Schema geprüft; zum Testen von Fehlerbehandlung kann die Prüfung abgeschaltet werden.

Protokoll und Schemaprüfung

Jeder Frame wird mit Zeit, Richtung, Typ (CALL, CALLRESULT, CALLERROR) und Inhalt gespeichert und gegen das offizielle JSON-Schema der OCA geprüft. Bei Antworten prüft der Simulator das Schema der passenden Anfrage. Verstöße stehen am Eintrag (⚠) mit Pfad und Grund. Das Protokoll wird nach 7 Tagen gelöscht.

TLS

Mit wss:// wird das Zertifikat Ihres Backends geprüft. Für Testumgebungen mit selbstsigniertem Zertifikat gibt es die Option „selbstsigniertes TLS-Zertifikat annehmen“. Ohne Zertifikatsprüfung ist die Verbindung nicht vor Mitlesen geschützt – nur für Testsysteme.

OCPP charge points

Each charge point is a real OCPP client with its own WebSocket connection, meters, vehicle and state machine. It keeps running on our server even when you close the browser.

Settings

IdentityCharge point ID / station ID. Appended to the CSMS URL (can be switched off: “append identity to the URL”).
OCPP version1.6 (OCPP-J), 2.0.1 or 2.1. WebSocket subprotocol: ocpp1.6, ocpp2.0.1, ocpp2.1.
CSMS URLws:// or wss://. Private network addresses (192.168…, 10…, localhost) are blocked for security reasons – your backend must be reachable from the internet.
PasswordHTTP Basic Auth when connecting: security profile 1 with ws://, profile 2 with wss://. Stored encrypted and never shown again.
Vendor, model, serial number, firmwareSent in the BootNotification.
Connectors, type, power, phases, voltage, plug type1–8 connectors, AC or DC. They define the charging power and the OCPI location data.
VehicleBattery size, state of charge when plugged in, target SoC, max AC/DC power. As with real vehicles, charging power drops from about 50 % state of charge, sharply above 80 %; the vehicle stops at the target SoC.
ModeOCPP: connects to your CSMS. Internal: belongs to an OCPI CPO and needs no backend.

“Save and restart” closes the connection and reconnects with the new values.

Operation

Connect / DisconnectOpen or close the connection to the backend. A disconnected charge point stays disconnected even after our server restarts.
RestartLike a soft reset: running transactions end with reason Reset, then a new BootNotification.
Plug in / unplugStatusNotification Preparing or Available (2.x: Occupied and TransactionEvent). Unplugging while charging ends the transaction with EVDisconnected.
Present cardAuthorize with the configured card (idTag). On Accepted, the transaction starts as soon as a cable is plugged in. Presenting it again stops it.
ChargePlug in and present the card in one step.
StopEnds the transaction with reason Local.
Trigger / clear faultStatusNotification Faulted with an error code; a running transaction is ended.

What your backend can request

The simulator answers remote start and stop, Reset, ChangeAvailability, configuration (1.6: GetConfiguration/ ChangeConfiguration, 2.x: GetVariables/SetVariables/GetBaseReport), TriggerMessage, UnlockConnector, reservations, local lists, charging profiles (SetChargingProfile, ClearChargingProfile, GetCompositeSchedule), DataTransfer and firmware and diagnostics/log requests, among others. Charging profiles really apply: the charging power follows the limit. The exact list per version is in the message reference (marked “answers”). All other requests get NotSupported – but they are still validated.

Meter values: while charging, MeterValues (1.6) or TransactionEvent Updated (2.x) are sent at the configured interval (1.6: MeterValueSampleInterval, default 60 s) with energy, power and state of charge.

Time lapse

With “time lapse” (1–60×) the vehicle charges faster than real time – at 60× one hour of charging takes one minute. Reported meter values match; timestamps stay real.

Offline, queue and recovery

Fault injection

To check how your backend copes with misbehaving charge points:

Delay responses (ms)Every response to a request from your backend arrives this much later.
Drop responses (0–1)Share of requests that never get a response (timeout on your side).
Reject remote start/stopRemote start and stop are answered with Rejected.
Answer invalid requests with CALLERROROn (default): requests violating the schema get a CALLERROR, like strict firmware. Off: they are processed anyway.
Timeout for own requests (s)How long the charge point waits for your backend's responses.
Send rawSend any text as a WebSocket frame – including deliberately broken JSON.

Sending custom messages

Under “Send message to the backend” you can send any action of the selected version with your own payload. It is validated against the schema first; switch validation off to test your error handling.

Log and schema validation

Every frame is stored with time, direction, type (CALL, CALLRESULT, CALLERROR) and payload, and validated against the official OCA JSON schema. For responses, the simulator uses the schema of the matching request. Violations are shown on the entry (⚠) with path and reason. The log is deleted after 7 days.

TLS

With wss:// your backend's certificate is verified. For test environments with a self-signed certificate there is the option “accept self-signed TLS certificate”. Without certificate verification the connection is not protected against interception – test systems only.

Fehlt etwas oder ist etwas unklar? Fragen Sie im Forum.