Skip to content

Feature: Interactive Web Dashboard, OCPP 2.1 V2G/ISO 15118, Advanced EV Simulation, and mTLS Security#32

Open
Bravos-hub wants to merge 11 commits intosolidstudiosh:mainfrom
Bravos-hub:main
Open

Feature: Interactive Web Dashboard, OCPP 2.1 V2G/ISO 15118, Advanced EV Simulation, and mTLS Security#32
Bravos-hub wants to merge 11 commits intosolidstudiosh:mainfrom
Bravos-hub:main

Conversation

@Bravos-hub
Copy link
Copy Markdown

This pull request brings an extensive suite of enhancements to the OCPP Virtual Charge Point, transforming it into a fully-featured, interactive, and advanced testing simulator for modern EV Charging scenarios.

Major Features Included:

  1. Interactive Web Dashboard 🌐
    Added a responsive, modern React-based Admin UI running alongside the VCP (accessible via browser).
    Features a Trace Viewer to monitor incoming/outgoing OCPP messages and payloads in real-time.
    Allows sending Admin commands (Auth, Start, Stop) directly from the interface instead of via terminal scripts.
  2. Advanced EV Simulation Modes 🔋
    Dynamic Battery Curve:
    MeterValues
    generation now incorporates a simulated Electric Vehicle Battery (Battery Capacity, Target SoC%). Uncapped charging curves are applied automatically to mimic real-world energy draws.
    Smart Charging Compatibility: Handles incoming
    SetChargingProfile
    requests to dynamically throttle the simulator's charging consumption based on CSMS-defined limits.
    Chaos Mode: Added a toggle to simulate deterministic physical hardware faults and randomized WebSocket connection drops to test CSMS resilience and offline persistence behavior.
  3. Enhanced Security (OCPP Security Profile 3) 🔒
    Mutual TLS (mTLS): Implemented full client-side certificate support to establish secure TLS connections to the CSMS.
    Certificate Lifecycle Management: Added native workflows to automatically generate Certificate Signing Requests (CSR) via the
    SignCertificate
    and
    CertificateSigned
    events.
    Security Events: Introduced persistent storage and transmission of anomalous network events via
    SecurityEventNotification
    .
  4. Full OCPP 2.1 Support (V2G & ISO 15118) ⚡
    Plug & Charge (ISO 15118): Deeply integrated support for simulating eMAID identity tokens and ISO15118CertificateHashData during the .Authorize and
    Get15118EVCertificate
    exchanges.
    Vehicle-to-Grid (V2G/V2H): The EV Battery simulator now safely handles bidirectional power flows (i.e. negative charging limits) to discharge into the grid. Mapped native UI controls to negotiate complex V2G requirements via
    NotifyEVChargingNeeds
    .
    Extended Device Model: Fully wired the
    GetVariables
    ,
    SetVariables
    , and
    GetBaseReport
    handlers to map strictly to persistent SQLite storage representing physical controllers (e.g. AuthCtrlr, OCPPCommCtrlr).
    Technical Changes
    Initialized an integrated Vite/React ui/ layer built to serve statically from the main backend.
    Migrated core temporary states to a local persistent better-sqlite3 data layer (
    vcp.db
    ) to withstand hard reboots without losing transaction context, configurations, or certificates.
    Extensively reworked the
    TransactionManager
    logic loop to be more robust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant