Skip to content

Commit 0740a00

Browse files
authored
Merge pull request #218 from c-jimenez/dev/ocpp20
Added support of OCPP 2.0.1
2 parents ca2e2f5 + 54eee50 commit 0740a00

File tree

1,086 files changed

+89415
-4586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,086 files changed

+89415
-4586
lines changed

.vscode/launch.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
52
"version": "0.2.0",
63
"configurations": [
74
{
85
"type": "gdb",
96
"request": "launch",
107
"name": "x86 CP debug",
11-
"target": "${workspaceRoot}/bin/gcc_native/quick_start_chargepoint",
8+
"target": "${workspaceRoot}/bin/gcc_native/quick_start_chargepoint20",
9+
"cwd": "${workspaceRoot}/bin/gcc_native/",
10+
"arguments": "-r",
11+
"valuesFormatting": "parseText"
12+
},
13+
{
14+
"type": "gdb",
15+
"request": "launch",
16+
"name": "x86 Basic CP debug",
17+
"target": "${workspaceRoot}/bin/gcc_native/quick_start_basicchargepoint20",
1218
"cwd": "${workspaceRoot}/bin/gcc_native/",
1319
"arguments": "-r",
1420
"valuesFormatting": "parseText"
@@ -17,7 +23,7 @@
1723
"type": "gdb",
1824
"request": "launch",
1925
"name": "x86 CS debug",
20-
"target": "${workspaceRoot}/bin/gcc_native/quick_start_centralsystem",
26+
"target": "${workspaceRoot}/bin/gcc_native/quick_start_centralsystem20",
2127
"cwd": "${workspaceRoot}/bin/gcc_native/",
2228
"arguments": "-r",
2329
"valuesFormatting": "parseText"
@@ -26,7 +32,7 @@
2632
"type": "gdb",
2733
"request": "launch",
2834
"name": "x86 LC debug",
29-
"target": "${workspaceRoot}/bin/gcc_native/quick_start_localcontroller",
35+
"target": "${workspaceRoot}/bin/gcc_native/quick_start_localcontroller20",
3036
"cwd": "${workspaceRoot}/bin/gcc_native/",
3137
"arguments": "-r",
3238
"valuesFormatting": "parseText"
@@ -58,6 +64,13 @@
5864
"ignoreFailures": true
5965
}
6066
]
67+
},
68+
{
69+
"name": "json2cpp",
70+
"type": "debugpy",
71+
"request": "launch",
72+
"program": "${workspaceRoot}/tools/json2cpp/json2cpp.py",
73+
"args": ["-i", "${workspaceRoot}/schemas/ocpp20", "-o", "${workspaceRoot}/out", "-t", "${workspaceRoot}/tools/json2cpp/templates", "-v", "ocpp20"]
6174
}
6275
]
6376
}

CMakeLists.txt

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
cmake_minimum_required(VERSION 3.13)
66

7-
project(OpenOCPP DESCRIPTION "Open Source C++ implementation of the OCPP 1.6 protocol"
8-
VERSION 1.5.8
7+
project(OpenOCPP DESCRIPTION "Open Source C++ implementation of the OCPP 1.6 and 2.0.1 protocols"
8+
VERSION 2.0.0
99
)
1010

1111
# Definitions for Version.h file
@@ -72,9 +72,15 @@ if(${BUILD_STATIC_LIBRARY})
7272
centralsystem
7373
chargepoint
7474
localcontroller
75+
centralsystem20
76+
chargepoint20
77+
localcontroller20
7578
config
7679
database
7780
messages
81+
messages16
82+
messages20
83+
types20
7884
rpc
7985
helpers
8086
log
@@ -96,9 +102,15 @@ if (${BUILD_SHARED_LIBRARY})
96102
centralsystem
97103
chargepoint
98104
localcontroller
105+
centralsystem20
106+
chargepoint20
107+
localcontroller20
99108
config
100109
database
101110
messages
111+
messages16
112+
messages20
113+
types20
102114
rpc
103115
helpers
104116
log
@@ -121,16 +133,19 @@ include(GNUInstallDirs)
121133

122134
file(GLOB_RECURSE PUBLIC_HEADERS
123135
LIST_DIRECTORIES false RELATIVE ${CMAKE_SOURCE_DIR} "${CMAKE_SOURCE_DIR}/src/*.h")
124-
file(GLOB OCPP_SCHEMAS
125-
LIST_DIRECTORIES false RELATIVE ${CMAKE_SOURCE_DIR} "${CMAKE_SOURCE_DIR}/schemas/*.json")
136+
file(GLOB OCPP16_SCHEMAS
137+
LIST_DIRECTORIES false RELATIVE ${CMAKE_SOURCE_DIR} "${CMAKE_SOURCE_DIR}/schemas/ocpp16/*.json")
138+
file(GLOB OCPP20_SCHEMAS
139+
LIST_DIRECTORIES false RELATIVE ${CMAKE_SOURCE_DIR} "${CMAKE_SOURCE_DIR}/schemas/ocpp20/*.json")
126140

127141
install(TARGETS ${OPEN_OCPP_SHARED_TARGET} ${OPEN_OCPP_STATIC_TARGET}
128142
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
129143
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
130144
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
131145
)
132146
install(FILES ${PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openocpp)
133-
install(FILES ${OCPP_SCHEMAS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openocpp/schemas)
147+
install(FILES ${OCPP16_SCHEMAS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openocpp/schemas/ocpp16)
148+
install(FILES ${OCPP20_SCHEMAS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openocpp/schemas/ocpp20)
134149

135150
if(${INSTALL_RAPID_JSON})
136151
file(GLOB RAPIDJSON_HEADERS

0 commit comments

Comments
 (0)