Engineering library

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.

01 · Protocols

Protocol references

How the messages actually flow, message anatomy with real examples, and the common implementation mistakes we've fixed in the field.

OCPP

Live

The reference: message types, BootNotification, Heartbeat, MeterValues, StatusNotification.

OCPI

Planned

OCPI 2.2.1 modules, CDRs, tariff and location sharing between CPOs and eMSPs.

ISO 15118

Planned

Plug-and-Charge certificates, 15118-2 vs 15118-20, SLAC pairing.

IEC 61851

Planned

Control pilot states A-F, PWM signalling, proximity pilot.

Modbus in EVSE

Planned

Modbus RTU energy meter integration for AC and DC chargers.

CAN in EV charging

Planned

CAN bus to DC fast charger power modules, CHAdeMO protocols.

BLE for EVSE

Planned

GATT services, HMAC challenge-response, offline authorization.

MQTT for charging infra

Planned

MQTT vs OCPP for telemetry pipelines and edge integrations.

02 · Hardware

Hardware engineering notes

Schematic-level guidance for PCB, thermal, EMC and metering design in EV charging hardware.

EV charger PCB design

Planned

Creepage, clearance, layout for 240V/3-phase, EMC-aware routing.

Relay selection for EVSE

Planned

Contactor vs relay, inrush, weld resistance, lifetime ratings.

RCD and ground fault protection

Planned

Type A vs B, 6mA DC detection, self-resettable RCD.

Current sensing and metering

Planned

Shunt vs CT vs Hall, class accuracy, MID/Eichrecht implications.

EVSE power supply design

Planned

AC/DC aux supplies, brownout behavior, surge immunity.

EMC for EV chargers

Planned

Pre-compliance, common failures, filtering, shielding.

Thermal design

Planned

Derating, connector heat, enclosure strategy for 50°C ambient.

Three-phase architecture

Planned

Phase balancing, neutral handling, 1P/3P switching.

03 · Firmware

Firmware engineering notes

Deep-dive companions to the firmware pillar. Bootloaders, OTA, NVS, watchdogs, memory architecture.

How an EV charger bootloader works

Planned

Boot flow, image selection, recovery mode.

Secure OTA for EVSE

Planned

Dual-bank flash, signing, rollback.

Power-fail recovery

Planned

NVS journaling, transaction integrity, brownout handling.

Firmware signing and certificate rotation

Planned

Key hierarchy, rotation without bricking.

Event logging architecture

Planned

Ring buffers, severity design, remote retrieval.

Flash wear in charger firmware

Planned

NVS wear leveling, write budgets over 10-year life.

Charger memory architecture

Planned

Partition maps on Xtensa and ARM Cortex-M platforms, OTA + journal + config.

RTOS patterns for EVSE

Planned

FreeRTOS task design, state machine isolation, watchdogs.

04 · Failure analysis

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

Planned

The WebSocket, keepalive, TLS and NAT failures we've seen.

Why relays weld in EV chargers

Planned

Contact wear signatures, inrush events, precursor patterns.

Ground fault failures in the field

Planned

Real RCD trip patterns and what they mean.

Meter drift and revenue loss

Planned

Class-1 meter drift over years, calibration strategies.

LTE and 4G problems at charging sites

Planned

Tower handoff, dead zones, coverage patterns.

BLE pairing failures

Planned

Phone-side quirks, cache issues, connection intervals.

IEC 61851 state machine bugs we have seen

Planned

Real firmware bugs stuck at state B, D or F.

05 · Comparisons

A vs B, honestly

Comparison tables and honest recommendations for the choices engineers actually face.

OCPP vs OCPI

Planned

Different protocols, different jobs. When to use each.

OCPP 1.6 vs 2.0.1

Planned

Device model, security, ISO 15118 support.

BLE vs RFID for charger access

Planned

Security, offline capability, deployment cost.

AC vs DC charging architecture

Planned

Onboard charger vs off-board, use cases and cost.

IEC 61851 vs ISO 15118

Planned

Signalling vs communication, coexistence.

Xtensa vs ARM Cortex-M for EVSE

Planned

Comms, RTOS, cost, certification implications.

Offline vs cloud-dependent charging

Planned

What each approach can and can't do.

MQTT vs WebSocket for charger telemetry

Planned

Where each fits, latency and reliability.

06 · Calculators

Engineering calculators

Interactive tools with methodology text below each. INR / USD / EUR where money is involved.

EV charging power calculator

Planned

kW from voltage, phases, current; charge time from battery size.

Cable sizing calculator

Planned

Conductor size from current, length, temperature.

Voltage drop calculator

Planned

Drop over run length per conductor size.

Load balancing simulator

Planned

Chargers vs site supply, dynamic allocation demo.

Charging cost calculator

Planned

Cost per session/month from tariff and usage.

Fleet charging TCO calculator

Planned

Estimate depot charging costs and smart-scheduling savings.

Charger ROI calculator

Planned

Payback for site hosts from utilization and tariff.

Transformer loading calculator

Planned

Depot transformer headroom vs charger count.

07 · Reports

Annual benchmark reports

Field data on uptime and reliability from RIOD deployments, with US and EU comparisons.

State of EV Charger Uptime (annual)

Planned

RIOD field data with US/EU benchmark comparisons.

EV Charging Reliability and Failure Report

Planned

Aggregated failure-mode stats from the intelligence layer.

08 · Open source

Tools we open source

Small, genuinely useful tools we've written for our own work and made public.

Open source tools

Planned

OCPP 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