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 ─┘
| Link | Protocol | Member |
|---|---|---|
| Car ↔ charger | ISO 15118-2 / -20 (incl. bidirectional charging, Plug & Charge), DIN SPEC 70121 for older DC chargers | iso15118 |
| Charger ↔ backend | OCPP 1.6J, 2.0.1, 2.1 | ocpp-kit |
| Signed meter values | OCMF (Open Charge Metering Format) | ocmf |
| Backend ↔ roaming partners | OCPI 2.1.1–2.3.0 (peer-to-peer or hub), OICP 2.3 (Hubject) | ocpi-kit, oicp-kit |
| Backend ↔ the public | DATEX II (AFIR recharging profile) to the national access point | datex2 |
| Backend ↔ the home and grid | EEBUS, §14a | eebus |
| Invoice, payment, books | EN 16931, SEPA, ledger | en16931, 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
| Rule | What it requires | In 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 point | emob rules; DATEX II feed via datex2 |
| Ladesäulenverordnung (LSV) | Technical and payment requirements for public chargers | emob rules |
| PAngV | Price display: a kWh price must be clear before charging | emob tariffs |
| THG-Quote | Greenhouse-gas quota trading for charged energy | emob THG module |
| NIS2 | Security duties for larger operators | emob operations |
| §14a EnWG | Private and depot wallboxes as controllable devices | ems, 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.