The EV Charging Engineering Library
Protocol references, hardware notes, failure analyses, comparisons, calculators and benchmark reports for the engineers building charging systems. Written and reviewed by RIOD engineering. Protocol and failure-analysis pieces include lab evidence where hardware testing applies.
Protocol references
How the messages actually flow, message anatomy with real examples, and the common implementation mistakes we've fixed in the field.
OCPP
LiveThe reference: message types, BootNotification, Heartbeat, MeterValues, StatusNotification.
OCPI
PlannedOCPI 2.2.1 modules, CDRs, tariff and location sharing between CPOs and eMSPs.
ISO 15118
PlannedPlug-and-Charge certificates, 15118-2 vs 15118-20, SLAC pairing.
IEC 61851
PlannedControl pilot states A-F, PWM signalling, proximity pilot.
Modbus in EVSE
PlannedModbus RTU energy meter integration for AC and DC chargers.
CAN in EV charging
PlannedCAN bus to DC fast charger power modules, CHAdeMO protocols.
BLE for EVSE
PlannedGATT services, HMAC challenge-response, offline authorization.
MQTT for charging infra
PlannedMQTT vs OCPP for telemetry pipelines and edge integrations.
Hardware engineering notes
Schematic-level guidance for PCB, thermal, EMC and metering design in EV charging hardware.
EV charger PCB design
PlannedCreepage, clearance, layout for 240V/3-phase, EMC-aware routing.
Relay selection for EVSE
PlannedContactor vs relay, inrush, weld resistance, lifetime ratings.
RCD and ground fault protection
PlannedType A vs B, 6mA DC detection, self-resettable RCD.
Current sensing and metering
PlannedShunt vs CT vs Hall, class accuracy, MID/Eichrecht implications.
EVSE power supply design
PlannedAC/DC aux supplies, brownout behavior, surge immunity.
EMC for EV chargers
PlannedPre-compliance, common failures, filtering, shielding.
Thermal design
PlannedDerating, connector heat, enclosure strategy for 50°C ambient.
Three-phase architecture
PlannedPhase balancing, neutral handling, 1P/3P switching.
Firmware engineering notes
Deep-dive companions to the firmware pillar. Bootloaders, OTA, NVS, watchdogs, memory architecture.
How an EV charger bootloader works
PlannedBoot flow, image selection, recovery mode.
Secure OTA for EVSE
PlannedDual-bank flash, signing, rollback.
Power-fail recovery
PlannedNVS journaling, transaction integrity, brownout handling.
Firmware signing and certificate rotation
PlannedKey hierarchy, rotation without bricking.
Event logging architecture
PlannedRing buffers, severity design, remote retrieval.
Flash wear in charger firmware
PlannedNVS wear leveling, write budgets over 10-year life.
Charger memory architecture
PlannedPartition maps on Xtensa and ARM Cortex-M platforms, OTA + journal + config.
RTOS patterns for EVSE
PlannedFreeRTOS task design, state machine isolation, watchdogs.
What actually breaks in the field
Symptom-titled articles with root cause, oscilloscope or log evidence from our lab, the fix, and how our stack prevents it.
Why OCPP chargers disconnect
PlannedThe WebSocket, keepalive, TLS and NAT failures we've seen.
Why relays weld in EV chargers
PlannedContact wear signatures, inrush events, precursor patterns.
Ground fault failures in the field
PlannedReal RCD trip patterns and what they mean.
Meter drift and revenue loss
PlannedClass-1 meter drift over years, calibration strategies.
LTE and 4G problems at charging sites
PlannedTower handoff, dead zones, coverage patterns.
BLE pairing failures
PlannedPhone-side quirks, cache issues, connection intervals.
IEC 61851 state machine bugs we have seen
PlannedReal firmware bugs stuck at state B, D or F.
A vs B, honestly
Comparison tables and honest recommendations for the choices engineers actually face.
OCPP vs OCPI
PlannedDifferent protocols, different jobs. When to use each.
OCPP 1.6 vs 2.0.1
PlannedDevice model, security, ISO 15118 support.
BLE vs RFID for charger access
PlannedSecurity, offline capability, deployment cost.
AC vs DC charging architecture
PlannedOnboard charger vs off-board, use cases and cost.
IEC 61851 vs ISO 15118
PlannedSignalling vs communication, coexistence.
Xtensa vs ARM Cortex-M for EVSE
PlannedComms, RTOS, cost, certification implications.
Offline vs cloud-dependent charging
PlannedWhat each approach can and can't do.
MQTT vs WebSocket for charger telemetry
PlannedWhere each fits, latency and reliability.
Engineering calculators
Interactive tools with methodology text below each. INR / USD / EUR where money is involved.
EV charging power calculator
PlannedkW from voltage, phases, current; charge time from battery size.
Cable sizing calculator
PlannedConductor size from current, length, temperature.
Voltage drop calculator
PlannedDrop over run length per conductor size.
Load balancing simulator
PlannedChargers vs site supply, dynamic allocation demo.
Charging cost calculator
PlannedCost per session/month from tariff and usage.
Fleet charging TCO calculator
PlannedEstimate depot charging costs and smart-scheduling savings.
Charger ROI calculator
PlannedPayback for site hosts from utilization and tariff.
Transformer loading calculator
PlannedDepot transformer headroom vs charger count.
Annual benchmark reports
Field data on uptime and reliability from RIOD deployments, with US and EU comparisons.
State of EV Charger Uptime (annual)
PlannedRIOD field data with US/EU benchmark comparisons.
EV Charging Reliability and Failure Report
PlannedAggregated failure-mode stats from the intelligence layer.
Tools we open source
Small, genuinely useful tools we've written for our own work and made public.
Open source tools
PlannedOCPP test client, CP signal analyzer, embedded partition tools.
Read the writing.
Engineering notes carry RIOD engineering review. Protocol and failure-analysis pieces include lab evidence where hardware testing applies.
Browse insights and blogs