EvseV2G

This module includes a DIN70121 and ISO15118-2 implementation provided by chargebyte GmbH. DEPRECATED in 2026.10.0, earliest removal in 2027.04.0: superseded by the Evse15118D20 module, which runs DIN SPEC 70121, ISO 15118-2 and ISO 15118-20 on the C++ ISO 15118 stack. See the how-to guide “Migrate from EvseV2G and IsoMux to Evse15118D20” for the upgrade path.

Handwritten Documentation

This module includes a DIN70121 and ISO15118-2 implementation provided by chargebyte GmbH

Warning

Deprecated in 2026.10.0, earliest removal in 2027.04.0. Use Evse15118D20 instead, which runs DIN SPEC 70121, ISO 15118-2 and ISO 15118-20 on the C++ ISO 15118 stack. See the how-to guide Migrate from EvseV2G and IsoMux to Evse15118D20 for the config mapping and the behavioral differences. The module logs a deprecation warning at startup.

Feature List

This document contains feature lists for DIN70121 and ISO15118-2 features, which EvseV2G supports. These lists serve as a quick overview of which features are supported.

DIN70121

Feature

Supported

DC

✔️

ExternalPayment

✔️

ISO15118-2

Feature

Supported

AC

✔️

DC

✔️

TCP & TLS 1.2

✔️

ExternalPayment

✔️

Plug&Charge

✔️

CertificateInstallation

✔️

CertificateUpdate

Pause/Resume

✔️

Schedule Renegotation

Smart Charging

Internet Service

Welding detection

On a DC stop request (DIN 70121 PowerDeliveryReq with ReadyToChargeState false, ISO 15118-2 PowerDeliveryReq with ChargeProgress Stop), EvseV2G publishes dc_open_contactor and holds the PowerDeliveryRes until contactor_closed(false) reports the contactor open, so that side B is disabled before the EV learns of it (IEC 61851-23:2023 Table CC.9, t103 before t104): at most 1.4 s on DIN 70121 (1.5 s performance time) and 3 s on ISO 15118-2 (4.5 s), then it sends the response anyway and logs a warning. The wait ends early on an emergency shutdown, an HLC stop or a terminated connection.

The same stop publishes welding_detection Started; Finished follows on SessionStop or connection teardown, also when the EV sends no WeldingDetectionReq. Every WeldingDetectionRes waits for two update_dc_present_values with welding_detection set after its request, for at most 1.4 s, so it reports the voltage source EvseManager selected for welding detection, measured after the request (CC.6.3, CC.7.6.17, Table CC.9 t105 to t106): the first value after the request can still be a measurement taken just before it, the second was taken after it. With one value at the deadline the response carries it (info), with none the last present voltage (warning).

Auto-Generated Reference

Module Configuration

device: string <optional>
default: “eth0”
Ethernet device used for HLC. Any local interface that has an ipv6 link-local and a MAC addr will work
tcp_port: integer <optional>
default: 61341
TCP port used for unencrypted ISO 15118 communication
tls_port: integer <optional>
default: 64109
TCP port used for TLS-protected ISO 15118 communication
supported_DIN70121: boolean <optional>
default: True
The EVSE supports the DIN SPEC
supported_ISO15118_2: boolean <optional>
default: True
The EVSE supports ISO15118-2
tls_security: string <optional>
default: “allow”
Controls how to handle encrypted communication
enum:
- prohibit
- allow
- force
terminate_connection_on_failed_response: boolean <optional>
default: False
If true the V2G connection is terminated right after a FAILED response, as [V2G2-539] requires. If false the connection stays open so that the EV can run its own stop sequence. Independent of this setting, the connection is always terminated after FAILED_SequenceError and after a FAILED ISO 15118-2 PaymentDetailsRes or AuthorizationRes, so that a rejected identification is never followed by further requests.
tls_key_logging: boolean <optional>
default: False
Enable/Disable the export of TLS session keys (pre-master-secret) during a TLS handshake. This log file can be used to decrypt TLS sessions. Note that this option is for testing and simulation purpose only
tls_key_logging_path: string <optional>
default: “/tmp”
Output directory for the TLS key log file
tls_timeout: integer <optional>
default: 15000
Set the TLS timeout in ms when establishing a tls connection
verify_contract_cert_chain: boolean <optional>
default: False
Specifies if the EVSE should verify the contract certificate chain locally.
auth_timeout_pnc: integer <optional>
default: 55
Defines how many seconds the EVSE should wait for authorization in PnC case, before the charging session is aborted. Write 0 if the EVSE should wait indefinitely for PnC authorization.
auth_timeout_eim: integer <optional>
default: 300
Defines how many seconds the EVSE should wait for authorization in EIM case, before the charging session is aborted. Write 0 if the EVSE should wait indefinitely for EIM authorization.
enable_sdp_server: boolean <optional>
default: True
Enable the built-in SDP server
publish_telemetry_only_on_change: boolean <optional>
default: True
Only publish telemetry blocks when values changed.

Provides

This module implements the ISO15118-2 implementation of an AC or DC charger
This interface is used to share data between ISO15118 and OCPP modules to support the requirements of the OCPP protocol

Requirements

security: evse_security 1
iso15118_vas: ISO15118_vas 0..128

Metadata

Authors

Fabian Hartung
Mohannad Oraby
Sebastian Lukas

License