EVerest Charging Stack

Introduction to EVerest

EVerest is an open-source modular framework designed to create a comprehensive software stack for electric vehicle (EV) charging.

The modular software architecture promotes flexibility and customization, allowing users to configure specific charging scenarios using interchangeable modules. This architecture is integrated and coordinated using MQTT (Message Queuing Telemetry Transport). EVerest aims to standardize and simplify the development of EV charging infrastructure, making it easier for developers and companies to implement robust and scalable charging solutions. The project includes support for various protocols like ISO 15118, OCPP, and IEC 61851, ensuring broad compatibility and future-proofing of the charging systems.

For more information, visit the EVerest GitHub repository.

Basic Configuration

In order to test EVerest, you need to build it either natively on host Linux machine or integrate it into a firmware suitable for a specific target platform using Yocto. To build it natively, follow the instructions found in the main EVerest repository “everest-core”. Additionally, there is a quickstart guide to EVerest, which presents the different EVerest tools, build instructions, and a dive into simulating EVerest.

For Yocto, EVerest offers “meta-everest”; a Yocto meta layer that can be used to integrate the EVerest charging stack into a platform-specific firmware image. chargebyte utilizes this layer to produce firmware images suitable for chargebyte hardware platforms. Detailed instructions on how to integrate EVerest into a chargebyte firmware image can be found on GitHub.

For setting up a use case with EVerest, such as basic setups for AC or DC charging, a YAML configuration file is needed. Various example configurations, including those for software-in-the-loop tests, can be found in the “config” folder of the everest-core repository.

Below is an example configuration file provided by chargebyte in its images:

# This configuration is for an EVSE supporting ISO15118-20 DC with
# a simulated authorization, isolation monitor and power supply.
# Please ensure that a complete PKI is installed under "/etc/everest/certs".
# Otherwise, the Evse15118D20 module cannot start successfully.
# Create a folder under /srv and name it 'everest' to save your
# traces, or change the 'logging_path' and 'session_logging_path' accordingly.

active_modules:
  evse_security:
    module: EvseSecurity
    config_module:
      private_key_password: "123456"
  iso15118_charger:
    module: Evse15118D20
    config_module:
      device: eth1
      logging_path: /srv/everest
      tls_negotiation_strategy: ACCEPT_CLIENT_OFFER
      enable_tls_key_logging: true
    connections:
      security:
        - module_id: evse_security
          implementation_id: main
  packet_sniffer:
    module: PacketSniffer
    config_module:
      session_logging_path: /srv/everest
    connections:
      evse_manager:
        - module_id: connector
          implementation_id: evse
  auth:
    module: Auth
    config_module:
      connection_timeout: 20
      prioritize_authorization_over_stopping_transaction: true
      selection_algorithm: PlugEvents
    connections:
      token_provider:
        - module_id: token_provider
          implementation_id: main
      token_validator:
        - module_id: token_validator
          implementation_id: main
      evse_manager:
        - module_id: connector
          implementation_id: evse
      kvs:
        - module_id: persistent_store
          implementation_id: main
  persistent_store:
    module: PersistentStore
    config_module:
      sqlite_db_file_path: /var/lib/everest/everest_persistent_store.db
  bsp:
    module: CbParsleyDriver
  energy_manager:
    module: EnergyManager
    connections:
      energy_trunk:
        - module_id: grid_connection_point
          implementation_id: energy_grid
  connector:
    module: EvseManager
    mapping:
      module:
        evse: 1
    config_module:
      charge_mode: DC
      connector_id: 1
      has_ventilation: false
      dbg_hlc_auth_after_tstep: false
      ev_receipt_required: false
      evse_id: DE*CHB*E123456*1
      evse_id_din: 49A80737A45678
      session_logging: true
      session_logging_path: /srv/everest
      session_logging_xml: false
      payment_enable_contract: false
      mcs_enable: true
      cable_check_enable_imd_self_test: false
      cable_check_wait_below_60V_before_finish: false
    connections:
      bsp:
        - module_id: bsp
          implementation_id: evse_board_support
      powersupply_DC:
        - module_id: powersupply_dc
          implementation_id: main
      powermeter_car_side:
        - module_id: powersupply_dc
          implementation_id: powermeter
      imd:
        - module_id: imd
          implementation_id: main
      hlc:
        - module_id: iso15118_charger
          implementation_id: charger
  powersupply_dc:
    module: DCSupplySimulator
  imd:
    module: IMDSimulator
  grid_connection_point:
    module: EnergyNode
    mapping:
      module:
        evse: 1
    config_module:
      fuse_limit_A: 63
      phase_count: 3
    connections:
      energy_consumer:
        - implementation_id: energy_grid
          module_id: connector
  token_provider:
    module: DummyTokenProvider
    config_implementation:
      main:
        timeout: 10
        token: DEADBEEF
        type: RFID
    connections:
      evse:
        - module_id: connector
          implementation_id: evse
  token_validator:
    module: DummyTokenValidator
    config_implementation:
      main:
        sleep: 0.25
        validation_reason: Token seems valid
        validation_result: Accepted
  error_history:
    module: ErrorHistory
    config_implementation:
      error_history:
        database_path: /tmp/error_history.db

The use case described in this configuration file includes the following:

  • MCS DC charging mode

  • Simulation of the IMD (Insulation Monitoring Device)

  • Simulation of the DC Supply Device

An overview of the EVerest modules is shown in the next section.

Overview of EVerest modules

As seen from the previous configuration file, some modules are required in order to use EVerest. Which modules are required is highly dependent on the use case you want to release. The following is a list of modules that are part of the chargebyte EVerest charging software:

EvseManager (view on GitHub)

The main module in a charging infrastructure EVerest setup. It manages a single EVSE (i.e., one connector for charging a car) and may control multiple connectors under some circumstances. It handles charging logic (basic charging and HLC), gathers all relevant data for the charging session, such as energy delivered during the session, and provides control over the charging port/session. For more information about its capabilities, refer to the module documentation.

EnergyManager (view on GitHub)

This module is the global Energy Manager for all EVSE/Charging stations in a building.

API (view on GitHub)

This module is not mandatory for a simple EVSE setup in EVerest. However, the module API is responsible for providing a simple MQTT based API to EVerest internals. Please note that this module will be removed in future releases and replaced by the RpcApi module.

RpcApi (view on GitHub Pull Request)

This module is not mandatory for a simple EVSE setup in EVerest, but it is required by the CB Energy Management System introduction_nymea service. This module provides a standardized interface for external applications to interact with an EVerest-based charge point. It uses JSON-RPC over WebSocket to allow clients to perform various operations, such as starting or stopping a charging session, retrieving status information, and configuring settings.

ErrorHistory (view on GitHub)

This module is not mandatory for an EVSE setup in EVerest. This module is responsible for storing EVerest error events in a database file. The location of the database file can be defined via a configuration parameter.

ChargerInfo (view on GitHub)

This module provides a charger information interface, backed by simple key-value storage interface. With the optional dependency to another charger information node, it is possible to chain multiple sources of information. The module uses a YAML file to read charger information like manufacturer, model, serial number, firmware version, etc.. This file is located in /etc/everest/charger_info.yaml by default.

YamlStore (view on GitHub)

This module provides a read-only key-value store interface, backed by a simple YAML file. This module is used by the ChargerInfo module to read charger information from a YAML file.

DummyTokenProvider (view on GitHub)

This module is used for automatically providing an authorization token, instead of requiring e.g. an actual RFID reader. It listens to the AuthRequired event from evse_manager module and then publishes one token.

DummyTokenValidator (view on GitHub)

This module always returns the same configured token validation result for every token. The validation result is a configuration key in the manifest of the module.

CbSystem (view on GitHub)

This module is an adaptation of the “System” module in EVerest. It implements the “system” interface and, like the System module, is responsible for performing system-wide operations but tailored for chargebyte’s hardware platforms. The use of this module depends on the specific use case, such as if OCPP is required. In such cases, the CbSystem module is responsible for executing commands from OCPP e.g. UpdateFirmware.

OCPP (view on GitHub)

This module implements and integrates OCPP 1.6 support within EVerest.

OCPP201 (view on GitHub)

This module implements and integrates OCPP 2.0.1 support within EVerest.

AuthListValidator

This module validates if an incoming token exists in a predefined list of authorized tokens.

DCSupplySimulator (view on GitHub)

This module simulates a DC power supply device.

CbParsleyDriver (view on GitHub)

This is the Hardware Abstraction Layer (HAL) for Charge Control Y in EVerest. It implements the evse_board_support interface, enabling communication with the EvseManager and control of the board. The EVerest community often refers to these HAL modules as BSPs, such as MicroMegaWattBSP and PhyVersoBSP. This module is essential for controlling the Charge Control Y.

Further Reading

For more information on getting started with EVerest, including an overview of the necessary tools and instructions on writing your own modules, please refer to the official EVerest documentation.

EVerest consists of multiple repositories, such as “everest-core” and “libocpp”. Each repository has its own documentation detailing its specific role within EVerest. It should be noted that Pionix GmbH and the EVerest community maintain all repositories that are a part of the EVerest GitHub organization. Only the EVerest modules that chargebyte implemented and that are located in “everest-chargebyte” are maintained by chargebyte.

For interesting discussions and solutions to common problems, visit the EVerest community’s Zulip channels.

For support and issues related to the EVerest modules developed by chargebyte, please check the Troubleshooting section of the documentation first. If you can’t find the answer, please don’t hesitate to contact chargebyte’s support team (Contact).