Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Ocpp 2.0.1. Interim Kpi Calculator

Software ·
DOI:https://doi.org/10.11578/dc.20250610.1· OSTI ID:code-156514 · Code ID:156514

The project is split into four pieces. The first is a raw OCPP log parser. The second is a file splitter. The third is a message parser. The final piece is the Interim KPI calculator. The OCPP log parser was created from two different formats of raw OCPP 2.0.1 data. Its intended purpose is to extract device IDs and OCPP event messages from nontabular text logs. The parser looks for specific substrings in the logs to identify which of the two "standards" it should select from. The KPI generator does not perform any of its calculations in parallel. Instead, we opt for a naive batching approach. The splitter takes the file generated from the parser and creates many smaller files for each of the device IDs in the dataset. This allows the pandas queries in the log formatter to be iterate over a significantly smaller slice of data, increasing performance significantly. The message parser step takes messages from each of the files (containing distinct device IDs) and breaks the message out into pieces. The final result is a file with different columns specifying different attributes of the JSON message. The file is an aggregation of all different devices. This is the most complex portion of the code. The KPI calculator takes the parsed messages, as a single file, and calculates the KPI from that data. An excel file is produced with four sheets. These contain the metrics for Session Success, Charge Start Success, Charge End Success, and Charge Start Time. It includes the metrics for the different equations in the Interim KPI Implementation Guide as well as a weighted sum of the different equations for each KPI (excluding Charge End Success and Charge Start Time).

Short Name / Acronym:
OCPP 2.0.1. Interim KPI Calculator
Software Type:
Scientific
License(s):
MIT License
Research Organization:
Idaho National Laboratory (INL), Idaho Falls, ID (United States)
Sponsoring Organization:
USDOE Office of Nuclear Energy (NE)

Primary Award/Contract Number:
AC07-05ID14517
DOE Contract Number:
AC07-05ID14517
Code ID:
156514
OSTI ID:
code-156514
Country of Origin:
United States

Similar Records

Related Subjects