Commit Graph

168 Commits

Author SHA1 Message Date
Marc Mültin d3485324fe Modified pom.xml files to reflect new version 1.2.4 of RISE V2G 2019-03-21 09:34:42 +01:00
Marc Mültin df3838b3f6 Updated pom.xml files to reflect the new version 1.2.4 2019-03-20 20:59:42 +01:00
Marc Mültin 693fbcc97a Addressed ISO 15118 User Group issue #50 (http://extmgmt.kn.e-technik.tu-dortmund.de/issues/50): the SECC will wait 5 seconds after sending a SessionStopRes or any response message with a negative response code before closing the TCP/TLS socket connection.
Also fixed an issue with reading the moSubCA2.pkcs8.der file (an encrypted private key which is provided in a PKCS#8 DER-encoded container.
2019-03-20 20:53:25 +01:00
Marc Mültin 09a3f30123
Update README.md
Minor editorial changes
2019-03-08 09:00:41 +01:00
Marc Mültin 36bf3cbc73
Update README.md
Small adaptations
2019-02-19 17:55:38 +01:00
Marc Mültin fb78192c98
Update README.md
Fixed image errors
2019-02-19 17:43:16 +01:00
Marc Mültin 4a406cbb78
Update README.md
Updated information about related online courses
2019-02-19 17:22:00 +01:00
Marc Mültin 0bf6d51748
Merge pull request #30 from mrbig/f/dynamic_implementation_loader
Made implementation classes configurable from the respective properties file
2019-02-09 18:15:59 +01:00
Marc Mültin 950e27d5af
Merge pull request #28 from poohsen/master
make signature of encryptContractCertPrivateKey more specific
2019-02-09 18:08:08 +01:00
poohsen 5c1c2428ce
remove unnecessary whitespace 2019-02-09 08:33:29 +01:00
Nagy Attila Gabor 6e1d7fbcb7 Refactored controllers to use a default constructor
This makes the instantiation much cleaner, and also makes the
responsibility of the controller more clear.

Now we pass the communication session to the controller right
after instantiation inside the ImplementationFactory
2019-02-08 22:10:45 +01:00
Nagy Attila Gabor 5ccf4ceaad Fixed typos in documentation and exception 2019-02-07 20:25:08 +01:00
Marc Mültin cd7ea29fda
Merge pull request #29 from mrbig/master
Fixing warnings
2019-02-07 17:19:45 +01:00
Nagy Attila Gabor 339cc722ac Made implementation classes configurable from the respective properties file
This way implementation classes for EV/SE side controllers could be
replaced without touching the mainline code. I believe this will
simplify forking and extending the project.
2019-01-26 18:07:48 +01:00
Nagy Attila Gabor 4fbe208e6b Added suppresswarnings to setJaxbContext
I don't think we could do any better here, without unnecessarily reorganizing
the message model classes.
2019-01-25 00:46:55 +01:00
Nagy Attila Gabor c85a1a8520 Made signedinfo related methods type safe 2019-01-25 00:33:49 +01:00
Nagy Attila Gabor 121e55a727 getJAXBElement made type safe 2019-01-25 00:30:11 +01:00
Nagy Attila Gabor 52d5ee093b Removed unused removeV2GCommunicationSession method
It was never used, and it contained an error, that could cause problems
if someone were using this method.
2019-01-24 18:50:55 +01:00
Nagy Attila Gabor d559f168d9 Addedd suppresswarnings to some of the unused fields and methods
These methods are likely to be used later or in actual implementations, so
the removal is not preferred at the moment
2019-01-24 18:40:00 +01:00
Nagy Attila Gabor 5c5b25eaef Removed unused general evseController
Seems like this is a leftover from an earlier version
2019-01-24 18:34:18 +01:00
Nagy Attila Gabor 691ba5e40d Removed unused import 2019-01-24 18:28:41 +01:00
Nagy Attila Gabor 39cb8a895b Fixed trivial raw type assignments 2019-01-24 18:15:56 +01:00
Marc Mültin 56c88f910e Added a check for an empty SASchedules in WaitForChargeParameterDiscoveryRes.java in case EVSEProcessing is set to FINISHED. In that case, SASchedules must be present. 2018-12-17 12:54:07 -03:00
Christoph Zwirello ebccfa5a06 make signature of encryptContractCertPrivateKey more specific 2018-11-15 12:18:13 +01:00
Marc Mültin cc26d2a239 The field 'ReceiptRequired' in the ChargingStatusRes message is optional. Fixed the code in EVCC's class WaitForChargingStatusRes.java so that it does not necessarily expect the field 'ReceiptRequired' to be set (otherwise a NullPointerException would be thrown). Also made sure that WaitForChargingStatusRes.java only sends a MeteringReceiptReq message if the connection is secured by TLS - as signed MeteringReceiptReq messages are only possible with Plug & Charge that demands TLS to be used. 2018-11-13 21:24:58 +01:00
Marc Mültin af4ad25f49 Merge branch 'master' of https://github.com/V2GClarity/RISE-V2G 2018-11-13 21:15:28 +01:00
Marc Mültin a74e0ad073 The field 'ReceiptRequired' in the CurrentDemandRes message is optional. Fixed the code in EVCC's class WaitForCurrentDemandRes.java so that it does not necessarily expect the field 'ReceiptRequired' to be set (otherwise a NullPointerException would be thrown). 2018-11-13 21:14:22 +01:00
Marc Mültin 25f3207f36
Update README.md
RISE V2G Basics course image restored
2018-09-15 18:38:12 +05:30
Marc Mültin 12ca0fdafa
Update README.md
RISE V2G logo restored
2018-09-15 18:36:57 +05:30
Marc Mültin 1ff1725ddb
Update README.md 2018-09-15 18:34:38 +05:30
Marc Mültin 3389c669af Corrected timeout value for supportedAppProtocolResponse. Value was set statically to 2 seconds. Now the value given in TimeRestrictions.java (located in package com.v2gclarity.risev2g.shared.misc) is taken instead. 2018-08-18 12:29:12 +02:00
Marc Mültin b82aa11b86 Updated content of folder signature-creation-testdata and corrected an error in the README.md file which stated that the signature for the CertificateInstallationRes message would be created with the private key of the MO sub-CA 2. Correct is that the signature is created with the private key of the CPS (certificate provisioning service) sub-CA 2. 2018-08-15 17:08:32 +02:00
Marc Mültin 9a3f2244eb Merge branch 'master' of https://github.com/V2GClarity/RISE-V2G
# Conflicts:
#	RISE-V2G-Certificates/generateCertificates.sh
2018-08-15 12:40:56 +02:00
Marc Mültin a15e4ff29e Rewrote the generateCertificates script 2018-08-15 12:30:36 +02:00
Marc Mültin 8b364c2c57
Merge pull request #24 from kssim/master
Fixes issues #23 Modify typos in the "generateCertificates.sh" file
2018-08-08 15:35:18 +02:00
KyeongSeob Sim bbaa57b25b Fixes issues #23 Modify typos in the "generateCertificates.sh" file 2018-08-08 22:23:04 +09:00
Marc Mültin b2b8ad07c2 - Updated the generateCertificates.sh script with slight modifications to the documentation and commands for generating all certificates needed for Plug & Charge
- Fixed a minor error in WaitForPowerDeliveryRes.java with regards to setting states B and C for WeldingDetectionReq
2018-07-31 17:18:21 +02:00
Marc Mültin cba5e041f6 - TargetCurrent in DummyEVController, used in PreChargeReq message, was set to 2A to comply to IEC 61851-23
- The necessary change from State C to State B during a renegotiation in DC charging is now correctly implemented
- Added the EV setting "voltage.accuracy" to allow for a percentage of deviation from the target current in PreCharge
2018-04-25 10:14:34 +02:00
Marc Mültin 0e4b838f8d Fixes issues #18 (chargingLoop counter was disregarded when sending MeteringReceiptRes) and #19 (error in DER encoding of ECDSA signature) 2018-01-12 10:32:30 +02:00
Marc Mültin d1056e6168 Fix for previous release v1.2. Still missed one additional instantiation of MessageHandler in V2GCommuicationSessionHandlerSECC that needs to be removed. 2018-01-03 09:57:11 +02:00
Marc Mültin 6f6be89a09 Improved the performance of RISE V2G by converting the MessageHandler into a Singleton. When instantiating the MessageHandler, the JAXB Context is set which is a pretty time-consuming task. Before the improvement, the MessageHandler was instantiated by the V2GCommunicationSessionHandlerSECC and the V2GCommunicationSessionHandlerSECC class.
Additionally, the MessageHandler was instantiated each time a new communication session was initiated by the EVCC.

Now, MessageHandler is initialized only once at startup of RISE V2G, saving a few seconds processing time on a slow embedded controller.
Credit goes to Advantics for pointing this out! Thanks. :)

Further changes: minor editorial edits and an additional logging message in the ConnectionHandler stating the length of the V2GTP payload as stated by the V2GTP header (helps for debugging purposes)
2018-01-01 21:35:44 +02:00
Marc Mültin d31a6446ca
Update README.md
Added link to new RISE V2G Basics course
2017-11-09 20:06:32 +00:00
Marc Mültin babd2ee114 Changelog 13.10.17:
- Changed package name from org.v2gclarity.risev2g to com.v2gclarity.risev2g
- Changed pom.xml and bin.xml files for creating deployable .jar files with Maven
- Added RISE-V2G-Parent project folder for Maven to facilitate an easy build process that has now be reworked in this version
2017-10-13 12:30:15 +02:00
Marc Mültin 374e06e843 Changelog:
- Removed some unused imports
- Bugfix in MessageHandler's getJaxbElement when creating the JAXBElement for SalesTariff. Corrected the namespace to create the QName object from MsgBody to MsgDataTypes
- Removed the libs folder in RISE-V2G-SHARED as it is not needed with Maven
2017-09-26 12:26:50 +02:00
Marc Mültin d8c9fc7bcd Changelog commit 15.9.17
- Added copyNewCertsAndKeys.bat and generateCertificates.bat to RISE-V2G-Certificates in order to port the already existing Unix shell scripts to Windows systems
- Corrected an error in V2GCommunicationSessionHandlerEVCC.java which ensures that the SDP procedure continues to work correctly even if there is a false SDP response coming from the SECC
- Changed the signature of the method generateDigest() (in SecurityUtils.java) to have more logging information about the ID of the element for which the digest is generated
- Made sure that the PreCharge timeout and CableCheck timeout are triggered exactly (there was a possible delay of 2s)
- Changed logging level of TCP server and client from debug to info
- Added debugging logging functionality with new EVCC and SECC property HexAndBase64RepresentationOfMessages which will log the hexadecimal and Base64 encoding of each message being sent
- Small change in log4j2.xml files enabling highlighting of logging level (you need to have ANSI Console installed in Eclipse IDE for this change to take effect)
- Shifted the process of reading the MO Sub-CA 2 private key from the keystore from the method getMOSubCA2PrivateKey to the constructor of DummyBackendInterface.java in order to avoid timeouts when processing the ChargeParameterDiscoveryReq on embedded devices
- Updated the EXIficient_V2G_CI_MsgDef.java (serialized version of the XSD grammar) as there was an bug before that caused an incomplete deserialization of an EXI byte stream to an XML message
- Updated log4j from 2.1 to 2.9
2017-09-15 16:15:25 +02:00
Marc Mültin 75cb9ed392 Update README.md 2017-09-07 12:08:33 +02:00
Marc Mültin e216d7d072 This update is due to new findings regarding XML namespace settings for creating the XML reference elements of the parameters of CertificateInstallationRes and CertificateUpdateRes. The namespace "urn:iso:15118:2:2013:MsgBody" shall be used, whereas the empty namespace is not conform to the standard. 2017-09-07 12:06:37 +02:00
Marc Mültin 084320d6d6 Loading EXIficient is now much faster than before. XSD schema files have been converted to EXI grammar Java files. Also, JAXB context is now only set once at startup of SECC and EVCC respectively as setting the JAXB context is a very time consuming task. 2017-08-31 17:11:16 +02:00
Marc Mültin 47028b4bbd Merge pull request #10 from Sevenstax/win_network_interface_fix
Find the network interface by index on windows operating systems.
2017-08-30 19:18:15 +02:00
Marc Mültin 7cd067c118 Added property "EXICodec" in EVCCConfig.properties and SECCConfig.properties to set the EXI codec. Changed the handling in the constructor of the MessageHandler.java accordingly. 2017-08-30 18:32:09 +02:00