KopherBit
Back to / Embedded Systems

KopherV2G Vehicle-Side V2G Stack

Released Version 0.1.0

KopherV2G is a complete vehicle-side V2G stack, not a sample application or AUTOSAR-bound module. It packages the ISO 15118 / DIN 70121 charging communication core as an integrable software stack so customers can focus on BMS, OBC, PLC modem, CP/PP, and vehicle-control integration.

Overview

A complete V2G stack for EVCC charging communication

KopherV2G provides the vehicle-side EVCC communication core: SLAC, SDP, TCP/TLS, V2GTP, EXI codec, ISO 15118-2, ISO 15118-20, DIN 70121, and Plug & Charge security flows. KopherBit can provide AUTOSAR BSW as the lower software baseline, or customers can connect the V2G module to their own AUTOSAR BSW, Linux, RTOS, or existing platform adapter; customer work mainly maps BMS / OBC / VCU data, PLC modem, CP/PP, and certificate storage.

Complete communication core

SLAC, SDP, TLS, V2GTP, EXI, and ISO / DIN charging state machines are handled by the stack.

AUTOSAR BSW compatible

The lower layer can use KopherBit AUTOSAR BSW, or customers can map the V2G module to their own BSW, Linux, or RTOS adapter.

Clear integration boundary

Separates stack responsibilities from BMS, OBC, CP/PP, VCU, and certificate-storage integration work.

Production-oriented validation

Supports charger interoperability planning, vehicle-specific behavior, PnC / EIM strategy, and trace evidence.

V2G Stack Architecture

KopherV2G
KopherV2G vehicle-side V2G stack architecture and customer integration boundary diagram

Product Highlights

Vehicle-side EVCC core: SLAC, SDP, V2GTP, EXI, TLS, and ISO 15118 / DIN 70121 session state machines.

Security flows: Plug & Charge, EIM, contract certificates, OEM / MO certificate chains, certificate storage interface, and TLS session handling.

Integration interfaces: BMS / OBC power data, VCU charging permission, CP/PP state, PLC modem driver, and time / crypto / storage abstraction.

Core Capabilities

Charging-session state machines

Handles SessionSetup, ServiceDiscovery, Authorization, ChargeParameterDiscovery, CableCheck, PreCharge, PowerDelivery, CurrentDemand, WeldingDetection, SessionStop, and related flows.

Multiple protocol versions

Supports ISO 15118-2, ISO 15118-20, and DIN 70121, with enablement scoped by SECC / EVSE capability and project requirements.

PnC / EIM security flows

Supports TLS, contract certificates, certificate-chain validation, Plug & Charge, and External Identification Means flows.

Vehicle data interface

Defines exchange points for BMS / OBC / VCU data such as SoC, target voltage and current, limits, charging permission, and fault states.

PLC modem and CP/PP boundary

The stack consumes SLAC / link state and CP/PP state through interfaces; modem driver, GPIO / ADC, and hardware control remain platform integration items.

Platform abstraction layer

Time, network socket, crypto, certificate storage, logging, memory, and tasking are isolated as portable interfaces for customer platforms.

Typical Integration Workflow

Integration starts from target market, charging mode, PnC / EIM strategy, and vehicle power architecture, then connects the stack to the customer platform and hardware before validating against real EVSE / SECC equipment.

1

Define charging requirements

Confirm CCS1 / CCS2, AC / DC, ISO 15118-2 / -20, DIN 70121, PnC / EIM, bidirectional charging, and market requirements.

2

Connect platform interfaces

Integrate OS, socket, time, crypto, certificate storage, logging, memory, tasking, and error-handling interfaces.

3

Connect vehicle and hardware

Integrate BMS, OBC, VCU, PLC modem, CP/PP, HV interlock, contactor, and charging-permission conditions.

4

Validate interoperability

Use target EVSE / SECC equipment to verify session flow, PnC, fault handling, traces, recovery, and boundary conditions.

Where It Fits

Fits OEM, Tier 1, and system integration teams developing EVCC software, OBC / BMS charging integration, commercial EV CCS charging, ISO 15118 PnC, or V2G / V2H / V2L functions.

EVCC software integration

Start with the vehicle-side V2G communication core, then integrate the customer ECU, PLC modem, and vehicle signals.

PnC and certificate flow

Implement ISO 15118 Plug & Charge, contract certificates, TLS, and secure session handling.

Commercial EV CCS charging

Supports AC / DC charging communication for electric buses, trucks, specialty vehicles, and commercial EV platforms.

Bidirectional charging readiness

Prepares an extensible stack and vehicle data interface for ISO 15118-20 and V2G / V2H / V2L requirements.

Interoperability testing

Use charger traces, session logs, and state-machine events to locate SECC / EVCC interoperability issues.

Supported Formats & Standards

ISO 15118-2 ISO 15118-20 DIN 70121 CCS AC / DC SLAC SDP V2GTP EXI TLS PnC / EIM PLC / HPGP