Jérôme Benoit [Thu, 26 Jan 2023 23:42:04 +0000 (00:42 +0100)]
Fix nullish checks
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 23:31:03 +0000 (00:31 +0100)]
UTs cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 22:42:51 +0000 (23:42 +0100)]
Improve log messages prefixing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 21:45:30 +0000 (22:45 +0100)]
Use arrow function for log messages prefixing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 19:54:55 +0000 (20:54 +0100)]
Version 1.1.92
Jérôme Benoit [Thu, 26 Jan 2023 19:44:15 +0000 (20:44 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 19:38:27 +0000 (20:38 +0100)]
Improve isIterable() UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 18:27:54 +0000 (19:27 +0100)]
Improve isIterable() UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 15:34:07 +0000 (16:34 +0100)]
Factor out JSON schemas parsing with per OCPP stack version
specialisation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 00:33:34 +0000 (01:33 +0100)]
Add error handling to JSON schemas file reading
Close #369
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 23:17:18 +0000 (00:17 +0100)]
Revert incorrect isEmptyString() semantic change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 23:07:26 +0000 (00:07 +0100)]
Fix isEmptyString() UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 23:02:59 +0000 (00:02 +0100)]
Fix isEmptyString() semantic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 22:42:33 +0000 (23:42 +0100)]
Empty string handling fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 22:24:54 +0000 (23:24 +0100)]
Improve empty file name handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 22:05:13 +0000 (23:05 +0100)]
Fix a null or undefined condition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 21:36:43 +0000 (22:36 +0100)]
Falsy/truthy test fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 20:16:23 +0000 (21:16 +0100)]
README.md: fix some default values
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 19:08:54 +0000 (20:08 +0100)]
Revert wrong type change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 18:37:20 +0000 (19:37 +0100)]
Strict null check fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 16:41:15 +0000 (17:41 +0100)]
Fix build
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 16:27:47 +0000 (17:27 +0100)]
Strict null check fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 13:58:44 +0000 (14:58 +0100)]
Fix UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 13:47:06 +0000 (14:47 +0100)]
Strict null type check fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 11:40:12 +0000 (12:40 +0100)]
Refine code formatting rules
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 24 Jan 2023 20:41:35 +0000 (21:41 +0100)]
Apply depedencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 22:09:38 +0000 (23:09 +0100)]
Fix extra whitespace in log messages prefix
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 21:43:03 +0000 (22:43 +0100)]
Avoid strings concatenation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 20:22:08 +0000 (21:22 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 14:06:25 +0000 (15:06 +0100)]
Fix log message conversion to string literal
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 13:49:47 +0000 (14:49 +0100)]
Fix file error handling propagation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 23 Jan 2023 12:50:55 +0000 (13:50 +0100)]
Switch log messages to string literal
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 22 Jan 2023 19:32:29 +0000 (20:32 +0100)]
Use crypto unbiased random integer generator
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 22 Jan 2023 12:18:00 +0000 (13:18 +0100)]
Improve OCPP message type logging
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Jan 2023 09:30:16 +0000 (10:30 +0100)]
Evaluate OCPP messages buffer flush performance
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Jan 2023 00:15:32 +0000 (01:15 +0100)]
Silence rollup warning
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 21 Jan 2023 00:11:44 +0000 (01:11 +0100)]
Version 1.1.91
Jérôme Benoit [Fri, 20 Jan 2023 15:28:52 +0000 (16:28 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 20 Jan 2023 15:16:23 +0000 (16:16 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 20 Jan 2023 14:46:52 +0000 (15:46 +0100)]
Fix OCPP messages buffering handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 19 Jan 2023 22:01:55 +0000 (23:01 +0100)]
Fix and add log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 19 Jan 2023 20:40:29 +0000 (21:40 +0100)]
Ensure a transaction is always stopped, whatever is the CSMS response.
OCPP specs compliance
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 18 Jan 2023 21:05:41 +0000 (22:05 +0100)]
README.md: document firmware upgrade template section
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 17 Jan 2023 22:37:19 +0000 (23:37 +0100)]
Silence rollup warnings
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 16 Jan 2023 22:58:39 +0000 (23:58 +0100)]
CHANGELOG.md: more spell fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 16 Jan 2023 21:02:25 +0000 (22:02 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 16 Jan 2023 20:12:27 +0000 (21:12 +0100)]
CHANGELOG.md: spell fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 16 Jan 2023 19:53:00 +0000 (20:53 +0100)]
Version 1.1.90
Jérôme Benoit [Sun, 15 Jan 2023 17:07:08 +0000 (18:07 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Jan 2023 16:33:53 +0000 (17:33 +0100)]
Move OCPP log message formatting helper into static helpers class
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Jan 2023 16:16:56 +0000 (17:16 +0100)]
Cleanups
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Jan 2023 13:42:56 +0000 (14:42 +0100)]
Factor out power limitation code into static helper
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 15 Jan 2023 11:52:30 +0000 (12:52 +0100)]
Ensure start transaction payload is always compliant with OCA specs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 23:21:20 +0000 (00:21 +0100)]
Fix timestamping at OCPP firmware update command handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 23:10:08 +0000 (00:10 +0100)]
Cleanup and optimize OCPP request payload building
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 21:47:59 +0000 (22:47 +0100)]
Fix OCPP request handler arguments usage in the inter-workers
communication code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 20:16:59 +0000 (21:16 +0100)]
Display the complete matching power limitation result in log
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 19:37:57 +0000 (20:37 +0100)]
Improve charging profiles handling debug logs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 19:00:41 +0000 (20:00 +0100)]
Fix all misused promises
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 18:36:34 +0000 (19:36 +0100)]
Cleanup some helpers defaults values
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 13:49:24 +0000 (14:49 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 14 Jan 2023 00:29:44 +0000 (01:29 +0100)]
Fix OCPP request payloads building
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 13 Jan 2023 20:03:57 +0000 (21:03 +0100)]
Cleanup CF manifest template
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 13 Jan 2023 19:56:46 +0000 (20:56 +0100)]
Allow to specify more OCPP command payload fields while using the UI
server
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 13 Jan 2023 10:37:19 +0000 (11:37 +0100)]
Allow to specify timestamp in OCPP commands payload with the UI Server
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 12 Jan 2023 18:59:43 +0000 (19:59 +0100)]
Linter fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 12 Jan 2023 18:52:22 +0000 (19:52 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 12 Jan 2023 10:27:41 +0000 (11:27 +0100)]
Remove unneeded intermediate variable
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 12 Jan 2023 10:14:02 +0000 (11:14 +0100)]
Properly build once the firmwareUpgrade default values
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 11 Jan 2023 20:08:04 +0000 (21:08 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 11 Jan 2023 19:57:12 +0000 (20:57 +0100)]
Fix firmware update OCPP command handling and simulation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 11 Jan 2023 18:57:39 +0000 (19:57 +0100)]
Implement firmwareUpgrade CS template section support
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 11 Jan 2023 16:25:50 +0000 (17:25 +0100)]
Cleanup OCPP types namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 10 Jan 2023 23:19:38 +0000 (00:19 +0100)]
Convert some type definitions to type syntax
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 10 Jan 2023 22:33:53 +0000 (23:33 +0100)]
Initial cleanup at loading JSON schemas
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 10 Jan 2023 21:14:19 +0000 (22:14 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 9 Jan 2023 23:36:59 +0000 (00:36 +0100)]
Add StatusNotification command to OCPP 2.0.1 stack
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 9 Jan 2023 21:46:56 +0000 (22:46 +0100)]
Add Hearbeat command to OCPP 2.0.1
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 9 Jan 2023 21:03:39 +0000 (22:03 +0100)]
Factor out some common code between OCPP 1.6 and 2.0.1 stack
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 9 Jan 2023 20:37:50 +0000 (21:37 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 9 Jan 2023 16:45:02 +0000 (17:45 +0100)]
CHANGELOG.md: spell fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 9 Jan 2023 16:34:12 +0000 (17:34 +0100)]
Version 1.1.89
Jérôme Benoit [Mon, 9 Jan 2023 16:24:28 +0000 (17:24 +0100)]
README.md: fix configuration path links
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 9 Jan 2023 16:19:04 +0000 (17:19 +0100)]
README.md: update to reflect enableStatistics default value change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 9 Jan 2023 15:48:31 +0000 (16:48 +0100)]
Fix error propagation into the UI server
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 9 Jan 2023 12:42:49 +0000 (13:42 +0100)]
Bump patch level is firmware version at reboot at firmware update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 8 Jan 2023 23:34:26 +0000 (00:34 +0100)]
Disable performance statistics by default
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 8 Jan 2023 23:14:16 +0000 (00:14 +0100)]
Add stop transaction reason at firmware update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 8 Jan 2023 23:09:05 +0000 (00:09 +0100)]
Add initial support for OCPP 1.6 firmware update simulation
Reference #169 and #36
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 8 Jan 2023 19:26:55 +0000 (20:26 +0100)]
Buffer OCPP message when an error occur at sending it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 8 Jan 2023 15:04:42 +0000 (16:04 +0100)]
Add incoming request response sent payloads validatio
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 8 Jan 2023 12:54:22 +0000 (13:54 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 8 Jan 2023 11:48:58 +0000 (12:48 +0100)]
Add OCA security whitepaper JSON schemas
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 8 Jan 2023 11:37:21 +0000 (12:37 +0100)]
Rename the variable used to build CS hashId
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 8 Jan 2023 08:33:18 +0000 (09:33 +0100)]
Fixes to OCPP commands PDU validation code:
+ Validate helper for sent response
+ Simplify JSON schemas handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 7 Jan 2023 22:27:54 +0000 (23:27 +0100)]
Add missing OCPP 1.6 command payload OCA JSON schemas
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 7 Jan 2023 19:52:30 +0000 (20:52 +0100)]
Fixes to OCA OCPP 2.0.1 JSON schemas
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 7 Jan 2023 16:49:52 +0000 (17:49 +0100)]
README.md: Refine list of OCPP versions
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 7 Jan 2023 16:43:51 +0000 (17:43 +0100)]
README.md: refine tunable values
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 7 Jan 2023 16:38:33 +0000 (17:38 +0100)]
Move date conversion to ISO string helper to utils class
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>