OCPP (Open Charge Point Protocol) implementation in C++. Built on base Apostol.
The software stack consists of a compilation of source code, libraries and scripts.
Open Charge Point Protocol OCPP is a communication protocol between multiple charging stations ("charge points") and a single management software ("central system").
Currently, two versions of OCPP (1.5 and 1.6) are released. A draft is being prepared for the new version (2.0). Version 1.5 uses SOAP over HTTP as the RPC/transport protocol. Version 1.6 uses SOAP and JSON over WebSocket protocol.
Build required:
- Compiler C++;
- CMake;
- Library libdelphi (Delphi classes for C++);
- Library libpq-dev (libraries and headers for C language frontend development);
- Library postgresql-server-dev-10 (libraries and headers for C language backend development).
ATTENTION: You do not need to install libdelphi, just download and put it in the src/lib
directory of the project.
To install the C ++ compiler and necessary libraries in Ubuntu, run:
sudo apt-get install build-essential libssl-dev libcurl4-openssl-dev make cmake gcc g++
To install PostgreSQL, use the instructions for this link.
A detailed description of the installation of C ++, CMake, IDE, and other components necessary for building the project is not included in this guide.
To install (without Git) you need:
- Download OCPP Central System Service;
- Unpack;
- Download libdelphi;
- Unpack in
src/lib/delphi
; - Configure
CMakeLists.txt
(of necessity); - Build and compile (see below).
To install (with Git) you need:
git clone https://github.com/ufocomp/apostol-ocpp.git
To add libdelphi to a project using Git, do:
cd apostol-ocpp/src/lib
git clone https://github.com/ufocomp/libdelphi.git delphi
cd ../../../
cd apostol-ocpp
cmake -DCMAKE_BUILD_TYPE=Release . -B cmake-build-release
cd cmake-build-release
make
sudo make install
By default ocpp will be set to:
/usr/sbin
The configuration file and the necessary files for operation, depending on the installation option, will be located in:
/etc/apostol-ocpp
or
~/apostol-ocpp
ocpp
- it is a Linux system service (daemon).
To manage ocpp
use standard service management commands.
To start, run:
sudo service ocpp start
To check the status, run:
sudo service ocpp status