Open Utility Stack

Docs / Background

E-mobility

From the car to the charger to the backend to the roaming hub and the invoice: the chain emob runs, and the rules that shape it.

The charging chain

A single public charging session crosses five protocols and three companies:

  EV ──ISO 15118 / DIN 70121──► charger ──OCPP──► CSMS (CPO) ──OCPI / OICP──► eMSP ──► driver
   │                              │                    │                                │
   │ Plug & Charge certificates    │ signed meter value │ CDR, tariff                    │ invoice
   └──────────────────────────────┴──── OCMF ──────────┴──── Eichrecht: verifiable kWh ─┘
Car to charger to backend to roaming partner. Every arrow is a member crate; emob runs the backend.
LinkProtocolMember
Car ↔ chargerISO 15118-2 / -20 (incl. bidirectional charging, Plug & Charge), DIN SPEC 70121 for older DC chargersiso15118
Charger ↔ backendOCPP 1.6J, 2.0.1, 2.1ocpp-kit
Signed meter valuesOCMF (Open Charge Metering Format)ocmf
Backend ↔ roaming partnersOCPI 2.1.1–2.3.0 (peer-to-peer or hub), OICP 2.3 (Hubject)ocpi-kit, oicp-kit
Backend ↔ the publicDATEX II (AFIR recharging profile) to the national access pointdatex2
Backend ↔ the home and gridEEBUS, §14aeebus
Invoice, payment, booksEN 16931, SEPA, ledgeren16931, sepa, doubleentry

The roles

  • CPO (charge point operator): owns and runs chargers and sets the price at the pole.
  • eMSP (e-mobility service provider): issues charging cards or apps to drivers and bills them, including at other operators’ chargers through roaming.
  • Roaming hub: a clearing house between many CPOs and eMSPs (Hubject with OICP, others with OCPI).

Many Stadtwerke are both CPO and eMSP. emob runs both roles in one estate: CSMS, eMSP, tariff engine, roaming, billing, an operator desk (“Heute”) and a driver portal.

Eichrecht: you must be able to check your kilowatt-hours

German measurement law (MessEG/MessEV) requires that the energy a driver pays for is verifiable by the driver. Chargers sign their meter readings, and the driver must be able to check the signature with the public key, typically using the S.A.F.E. transparency software. ocmf parses and verifies these signed records without re-serialising the signed bytes, across all seven signature curves of the format. emob shows the meter key and verification on every receipt.

AFIR and German rules

RuleWhat it requiresIn the stack
AFIR (EU Alternative Fuels Infrastructure Regulation)Ad-hoc payment by card at new fast chargers, price transparency, static and dynamic data published through a national access pointemob rules; DATEX II feed via datex2
Ladesäulenverordnung (LSV)Technical and payment requirements for public chargersemob rules
PAngVPrice display: a kWh price must be clear before chargingemob tariffs
THG-QuoteGreenhouse-gas quota trading for charged energyemob THG module
NIS2Security duties for larger operatorsemob operations
§14a EnWGPrivate and depot wallboxes as controllable devicesems, eebus, ocpp-kit

Charging and the energy market

Public charging is also an energy market problem. The energy delivered at a charger must be balanced in some supplier’s balancing group, quarter hour by quarter hour. The BNetzA’s NZR-EMob rules let a driver bring their own supplier to a public charger (“Modell 2”), with charging points aggregated in a virtual balancing area. emob splits each session into quarter-hour slots with their measurement provenance; mako-emob handles the market side. Bidirectional charging (V2G) adds feed-in to the same chain.

Money is never a float

Charging tariffs combine energy, time, parking and flat fees, sometimes with day-of-week and power-level rules. Rounding errors add up across millions of sessions and between roaming partners. Every price, energy value and tax in ocpi-kit, oicp-kit, ocmf and emob is an exact decimal, and CI fails if a floating-point type appears.