Back to / Embedded Systems

Vehicle-Side V2G Stack

KopherV2G

Released Version 0.1.0

A vehicle-side EVCC core for ISO 15118 / DIN protocols, EXI and charging state machines, with Kopher AUTOSAR, proprietary and third-party AUTOSAR integration paths.

One communication core, three deployment paths

KopherV2G brings DIN SPEC 70121, ISO 15118-2 and ISO 15118-20 session logic, message parsing and EXI into a vehicle-side EVCC core. Choose the integration path for your ECU platform while keeping a consistent vehicle application interface.

Shared communication coreKopherV2G
DIN SPEC 70121ISO 15118-2ISO 15118-20

Session · EXI · SDP / V2GTP

Consistent vehicle application interface

Choose integration for your ECU platform

01Kopher AUTOSAR

KopherSAR BSW integration
Target platformKCU EVCC / reference hardware

Use Kopher AUTOSAR BSW with KCU EVCC or reference hardware as an integrated platform.

02Non-AUTOSAR / proprietary

Platform adapters
Target platformExisting OS / network / security

Connect existing OS, networking, timers, storage and security services. Select third-party components against the target BOM and licenses.

03Third-party AUTOSAR

AUTOSAR integration adapter
Target platformCustomer SoAd / TcpIp / TLS / Crypto

Reuse customer SoAd, TcpIp, TLS and Crypto services, with bindings matched to the BSW release and interface capabilities.

Protocol modules and shared EVCC runtime

ProtocolProduct scope and flow
DIN SPEC 70121DC baseline flow with a shared vehicle application integration boundary.
ISO 15118-2Charging sessions, EIM / PnC branches and applicable certificate flows.
ISO 15118-20Updated sessions and DC charge-loop model; TLS 1.3 with project-selected services.

How the runtime handles a message

Decode → Validate → Time → Decide → Recover: parse messages and EXI, check sequence and timers, correlate vehicle state, then advance or recover.

Vehicle integration

BMS / OBC / VCU supply SoC, charging permission, voltage/current limits and status. The application owns charging policy and physical actions.

Confirm protocol versions, AC/DC, EIM/PnC and bidirectional services at project kickoff. Stage counts are not conformance or certification claims.

Vehicle application and protocol services

AUTOSAR Classic integration example: charging policy stays in the application, while KopherV2G protocol services run below the RTE in BSW / middleware. Bindings depend on the target platform.

V2G Application

Charging policy, charging permission and BMS / OBC / VCU coordination

RTE / V2G Application API
BSW / MIDDLEWAREKopherV2G Protocol Services
  • Session state machines & timers
  • Message parsing & V2G data model
  • EXI encoding / decoding
  • SDP / V2GTP

Communication path

  1. SoAd
  2. TcpIp + TLS
  3. EthIf / Eth Driver
  4. PLC modem / physical link

Security service path

  1. KeyM: certificates & key management
  2. CSM: cryptographic jobs
  3. CryIf → Crypto Driver
  4. HSM / HSE or target software implementation
EVSE / SECC · IPv6 / TCP / TLS

Module and configuration reference

Integration pointConfiguration / responsibility
EcuC / PDUPDU definitions and ID binding configure module relationships.
SoAdSDP/APP routes, PduRoute/SocketRoute, SoConGroup and socket lifecycle.
TcpIp / TLSUDP/TCP, IPv6 LocalAddr, TCPIP_CTRL, TLS/TLS_GROUP; SDP supplies the TCP endpoint.
EthIf / driverNetwork controller, MII/QCA7K and PLC driver binding.
KeyM / CSM / CryIfCertificate chain and key metadata; sign/verify/KDF/MAC/key-exchange jobs; driver routing.

Configuration & bindings:EcuC PDU IDs, SoAd routes / socket groups, TcpIp controllers, timers and Crypto references define module bindings. EcuC is outside the runtime packet path.

TLS uses KeyM certificate services and CSM cryptographic jobs. Verify key protection and algorithm support against the target hardware and driver. SLAC establishes PLC link pairing. Responsibilities across the modem and driver depend on the platform.

SECC discovery and the charging session

An ISO 15118-20 DC example showing messages, transport and integration outcomes. The sequence varies with services, authorization and error branches.

Vehicle EVCC ↔ Charger SECCISO 15118-20 · DC
  1. 01Discover

    Messages and transport
    SLACIPv6 link-localUDP SDP

    0x9000 request / 0x9001 response

    Runtime / integration outcomeff02::1, UDP 15118; obtain SECC IPv6, port and security/transport settings. SDP does not assign the EVCC IP.

  2. 02Connect

    Messages and transport
    TCPTLS 1.3SupportedAppProtocol

    SAP 0x8001

    Runtime / integration outcomeConnect to the SDP endpoint and negotiate the protocol. Part 20 uses TLS 1.3 for both EIM and PnC.

  3. 03Session / authorization

    Messages and transport
    Session setupservicesEIM / PnC

    Part 20 common 0x8002

    Runtime / integration outcomeEstablish the session, select services and authorize. Vehicle policy determines charging permission.

  4. 04Transfer

    Messages and transport
    DC_CableCheckDC_PreChargePowerDeliveryDC_ChargeLoop

    DC-specific 0x8004 · common 0x8002

    Runtime / integration outcomeCheck message timing, vehicle state and charging limits. The message family determines the payload type.

  5. 05Stop / recover

    Messages and transport
    Stop energy transferapplicable welding detectionSessionStop

    Runtime / integration outcomeCorrelate stop reasons, timeouts, faults and recovery with BMS/OBC/VCU state and controller I/O.

Deliverables and acceptance evidence

The delivered integration package

Software package, Vehicle API, EcuC PDU definitions, SoAd/TcpIp bindings, platform adapters, TLS/certificate and Crypto hooks, reference configuration, integration guide, test cases and message traces.

Define → Configure → Integrate → Prove

Requirements and vehicle policy → signal/network/security configuration → runtime and controller API adaptation → EVSE, bench/HIL, traces and project acceptance.

DeliverableScopeAcceptance evidence
Protocol coreDIN / ISO state machines, SDP, V2GTP, EXIProtocol trace and flow review
Platform adapterNetwork, timers, storage, security and PDU / socket configurationTarget integration tests
Vehicle integrationBMS / OBC / VCU, CP / PP, PLC / SLACBench / HIL and I/O evidence
PnC securityCertificates, KeyM / CSM, keys and provisioningCertificate-chain and target security tests
InteroperabilityTarget EVSE / SECC, faults, stop and recoverySession traces and project acceptance
Hardware platformKCU EVCC / KCU GEN2On-target test

Acceptance aligns protocol traces, vehicle state and controller behavior. Evidence for selected EVSE configurations has a different scope from full conformance or certification.

Delivery can include the software package, reference configuration, integration guide, test cases and traces. The project agreement and BOM define source or binary rights, target adaptation, support and third-party licenses.

Choose the target hardware

PlatformHardware and use case
KCU EVCC ↗NXP S32K344 Cortex-M7; QCA7006AQ PLC; CAN0/1/2, CAN FD and wake-up; CP/PP and protected outputs. Combines KopherV2G, UDS and vehicle applications for dedicated CCS EVCC programs.
KCU GEN2 ↗AURIX TC387, four TriCore cores / 300 MHz, 10 MB Flash; 4 × CAN/CAN FD, LIN, Ethernet, analog/digital/frequency/power I/O; 9–36 V. For VCU, energy management and domain control; PLC depends on configuration.

GEN2 PLC and charging interfaces depend on the hardware configuration. Bidirectional power transfer also requires compatible power hardware, vehicle policy and EVSE support.

Read the KopherV2G technical guide →
KopherV2G Engineering Guide

Engineering guide · v1.1

Download the engineering guide

Review deployment choices, AUTOSAR architecture, charging sessions, security services, vehicle interfaces and acceptance evidence with your engineering team.

KB-V2G-EG-001 · English · 13 pages · 2026-09-11

Download engineering guide (PDF) ↓