Jérôme Benoit [Fri, 12 Feb 2021 21:10:33 +0000 (22:10 +0100)]
Merge branch 'master' of github.com:LucasBrazi06/ev-simulator into rollup
Jérôme Benoit [Fri, 12 Feb 2021 20:27:56 +0000 (21:27 +0100)]
Improve vscode debug setup.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 11 Feb 2021 10:05:29 +0000 (11:05 +0100)]
Merge branch 'master' of github.com:LucasBrazi06/ev-simulator into rollup
Jérôme Benoit [Thu, 11 Feb 2021 10:02:07 +0000 (11:02 +0100)]
Update TS to latest.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 11 Feb 2021 09:59:14 +0000 (10:59 +0100)]
Initial rollup integration.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 10 Feb 2021 18:54:42 +0000 (19:54 +0100)]
Specify the npm version supported.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 10 Feb 2021 18:51:07 +0000 (19:51 +0100)]
Dependencies update.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 6 Feb 2021 13:18:57 +0000 (14:18 +0100)]
Logic fixlet to the control flow.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 6 Feb 2021 12:47:37 +0000 (13:47 +0100)]
Cleanups to message queue handling code.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 5 Feb 2021 20:52:56 +0000 (21:52 +0100)]
Remove uneeded intermediate variable.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 5 Feb 2021 19:37:58 +0000 (20:37 +0100)]
Cleanups.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 3 Feb 2021 22:27:06 +0000 (23:27 +0100)]
Fix charging station initialisation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 3 Feb 2021 21:22:25 +0000 (22:22 +0100)]
Update dependencies, with high CPU consumption.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 2 Feb 2021 08:10:19 +0000 (09:10 +0100)]
Move message buffer code to charging station.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 2 Feb 2021 07:48:01 +0000 (08:48 +0100)]
Rename types definition files for the sake of namespace consitency.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 1 Feb 2021 19:36:41 +0000 (20:36 +0100)]
Update submodule
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 1 Feb 2021 15:35:52 +0000 (16:35 +0100)]
Cleanup logic code flow.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 1 Feb 2021 08:13:24 +0000 (09:13 +0100)]
Cleanups: log msg refinements, ...
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 1 Feb 2021 01:36:09 +0000 (02:36 +0100)]
Dependencies update.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 1 Feb 2021 01:29:32 +0000 (02:29 +0100)]
Add debug log for CPs.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 1 Feb 2021 00:18:13 +0000 (01:18 +0100)]
Fix connectors status at reset.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 31 Jan 2021 23:53:42 +0000 (00:53 +0100)]
Remove void before async call.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 31 Jan 2021 22:33:08 +0000 (23:33 +0100)]
Make modular the SRPC call chain code.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 29 Jan 2021 22:04:52 +0000 (23:04 +0100)]
scripts: use db from connection string.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 29 Jan 2021 12:19:57 +0000 (13:19 +0100)]
Use require in node.js scripts.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 29 Jan 2021 12:10:01 +0000 (13:10 +0100)]
Make scripts really node.js scripts
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 29 Jan 2021 10:29:27 +0000 (11:29 +0100)]
Cleanups: renaming.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 29 Jan 2021 07:42:50 +0000 (08:42 +0100)]
Fix Wrk default options.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 27 Jan 2021 13:18:30 +0000 (14:18 +0100)]
Cleanup: renaming.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 27 Jan 2021 12:54:22 +0000 (13:54 +0100)]
Bootstrap: Avoid a direct call on an attribute.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 27 Jan 2021 12:44:46 +0000 (13:44 +0100)]
Initial support for main configuration file changes handling.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 26 Jan 2021 19:11:06 +0000 (20:11 +0100)]
Use generic for worker data type.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 26 Jan 2021 18:36:54 +0000 (19:36 +0100)]
Fix workerSet process mode.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 26 Jan 2021 11:07:42 +0000 (12:07 +0100)]
Dependency update.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 26 Jan 2021 10:10:32 +0000 (11:10 +0100)]
Make the authorization tags file a template.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 22:39:52 +0000 (23:39 +0100)]
Fix worker thread exit message.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 22:03:56 +0000 (23:03 +0100)]
Display worker process mode at startup.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 20:49:39 +0000 (21:49 +0100)]
Type properly station worker data.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 20:30:29 +0000 (21:30 +0100)]
Switch to poolifier worker threads pool implementation.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 16:16:16 +0000 (17:16 +0100)]
Add ClearChargingProfile OCPP command support.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 11:17:08 +0000 (12:17 +0100)]
Add proper worker set elements reference counting.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 08:50:27 +0000 (09:50 +0100)]
Add missed file.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 08:44:50 +0000 (09:44 +0100)]
Add WorkerEvents enum.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 25 Jan 2021 08:28:13 +0000 (09:28 +0100)]
Make filename = default exported class name.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 24 Jan 2021 23:44:30 +0000 (00:44 +0100)]
Use object factory design pattern for code handling workers.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 24 Jan 2021 21:12:13 +0000 (22:12 +0100)]
Move workers handling code in its own directory.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 24 Jan 2021 19:22:57 +0000 (20:22 +0100)]
Fix charging stations counting.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 24 Jan 2021 18:56:26 +0000 (19:56 +0100)]
Cleanup workers handling classes.
And various assorted fixes.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 23 Jan 2021 06:55:53 +0000 (07:55 +0100)]
Make some Wrk attributes conditionally initialized.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 23 Jan 2021 06:52:53 +0000 (07:52 +0100)]
Add WorkerPool file
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 23 Jan 2021 06:51:56 +0000 (07:51 +0100)]
Rename private attributes and methods.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 22 Jan 2021 21:24:50 +0000 (22:24 +0100)]
Rename ChargingStationInfo.name -> ChargingStationInfo.chargingStationId
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 23:14:29 +0000 (00:14 +0100)]
Fix type cast
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 21:38:47 +0000 (22:38 +0100)]
Refine comment.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 21:29:06 +0000 (22:29 +0100)]
Add a default value for workerPoolMaxSize.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 17:57:31 +0000 (18:57 +0100)]
Add some sanity checks to Wrk class.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 17:22:38 +0000 (18:22 +0100)]
Don't access singleton instance attribute directly
And sone cleanups.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jakob [Thu, 21 Jan 2021 15:01:57 +0000 (16:01 +0100)]
Fixed counters + start workers with delay
Jakob [Thu, 21 Jan 2021 14:59:25 +0000 (15:59 +0100)]
renaming (pool size != max pool size)
Jakob [Thu, 21 Jan 2021 14:55:22 +0000 (15:55 +0100)]
remove setMaxListener (not longer needed)
Jérôme Benoit [Thu, 21 Jan 2021 12:51:58 +0000 (13:51 +0100)]
Fix worker startup and cleanup some attributes in Wrk class.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 12:10:16 +0000 (13:10 +0100)]
Fix worker with pool handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 10:35:03 +0000 (11:35 +0100)]
Cleanups.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 21 Jan 2021 08:49:01 +0000 (09:49 +0100)]
Merge pull request #6 from LucasBrazi06/memory-optimization
Jakob [Wed, 20 Jan 2021 16:00:56 +0000 (17:00 +0100)]
Memory optimization + worker configuration
Jakob [Wed, 20 Jan 2021 15:54:37 +0000 (16:54 +0100)]
Authorize Request added
Jakob [Wed, 20 Jan 2021 15:36:23 +0000 (16:36 +0100)]
scripts to set CS public or delete CS
Jérôme Benoit [Tue, 19 Jan 2021 10:12:00 +0000 (11:12 +0100)]
Add git submodules init script.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 18 Jan 2021 18:57:29 +0000 (19:57 +0100)]
Dependencies update and cleanups.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 18 Jan 2021 18:26:57 +0000 (19:26 +0100)]
Force ATG stop is the charging station is unavailable.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 18 Jan 2021 16:33:36 +0000 (17:33 +0100)]
Fix worker pool superfluous creation by using a singleton class.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 17 Jan 2021 16:44:15 +0000 (17:44 +0100)]
Handle availability and registration properly.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 15 Jan 2021 17:48:11 +0000 (18:48 +0100)]
Avoid code duplicatiom.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 14 Jan 2021 22:28:23 +0000 (23:28 +0100)]
Update dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 14 Jan 2021 22:22:21 +0000 (23:22 +0100)]
Handle missing interval in boot notification response.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 14 Jan 2021 21:15:17 +0000 (22:15 +0100)]
Fix type conversion to string.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 13 Jan 2021 21:35:19 +0000 (22:35 +0100)]
Type OCPP requests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 13 Jan 2021 18:16:46 +0000 (19:16 +0100)]
Update dependencies and submodules.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 9 Jan 2021 21:11:44 +0000 (22:11 +0100)]
Typing.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 8 Jan 2021 20:51:16 +0000 (21:51 +0100)]
Update dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 8 Jan 2021 16:28:07 +0000 (17:28 +0100)]
Sync with SAP GitHub.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 8 Jan 2021 16:25:07 +0000 (17:25 +0100)]
Merge branch 'master' of github.com:LucasBrazi06/ev-simulator into master-enterprise
Jérôme Benoit [Sun, 3 Jan 2021 15:43:02 +0000 (16:43 +0100)]
Initial support to the change availability command.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 3 Jan 2021 12:38:47 +0000 (13:38 +0100)]
Fix log messsage.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 3 Jan 2021 12:34:02 +0000 (13:34 +0100)]
Remove _heartbeatInterval attribute.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 3 Jan 2021 00:41:41 +0000 (01:41 +0100)]
Untangle internal configuration key type from the OCPP one.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 2 Jan 2021 23:48:06 +0000 (00:48 +0100)]
Add enum for standard OCPP parameters key.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 2 Jan 2021 00:58:02 +0000 (01:58 +0100)]
Cleanups.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 23:48:17 +0000 (00:48 +0100)]
Type cast
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 19:48:43 +0000 (20:48 +0100)]
More typing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 18:53:53 +0000 (19:53 +0100)]
Type all requests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 18:15:26 +0000 (19:15 +0100)]
Add enum list for request command name.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 12:22:43 +0000 (13:22 +0100)]
Rename a constant.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 12:17:11 +0000 (13:17 +0100)]
Improve OCPP types.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 01:00:49 +0000 (02:00 +0100)]
Refine log messages.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 00:57:12 +0000 (01:57 +0100)]
Add comment
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 00:21:57 +0000 (01:21 +0100)]
Spell fix.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 1 Jan 2021 00:02:27 +0000 (01:02 +0100)]
Remove some useless attributes to ChargingStation class.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 31 Dec 2020 23:34:36 +0000 (00:34 +0100)]
Improve charging station registration handling.
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 27 Dec 2020 10:37:59 +0000 (11:37 +0100)]
Dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>