Activity for OpenV2G

  • Daniel Peintner Daniel Peintner posted a comment on ticket #26

    The XSDs we used for ISO2 version in OpenV2G where an intermediary version on the way to -20. It was used for TestFests only (as far as I know). Hence, I don't know whether this kind of schema can be acquired at ISO. The final version ISO 15118-20:2022 can be acquired at ISO, as usual. Note: openV2G implementation for ISO 15118-20:2022 will not be available as Open Source.

  • Jeffrey Johannessen Jeffrey Johannessen posted a comment on ticket #26

    Daniel, thanks for the information. How would I go about acquiring the XSD file?

  • Daniel Peintner Daniel Peintner posted a comment on ticket #26

    Hi, Sorry, we are not allowed to share XSDs that are part of the standard and need to be acquired. Unfortunately, there is no easy way to get the XSDs out of the source code (at least not in a 100% manner) -- Daniel

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    duplicate of https://sourceforge.net/p/openv2g/tickets/26/

  • Daniel Peintner Daniel Peintner posted a comment on ticket #25

    OpenV2G uses static memory allocation (no malloc is used) with a fixed set of entries for arrays etc. Everyone using the library (source code) can configure it according to the needs, see #define XYZ_ARRAY_SIZE 5 entries in https://sourceforge.net/p/openv2g/code/HEAD/tree/trunk/src/iso1/iso1EXIDatatypes.h Defining the possible maximum for each would result in a huge static memory allocation. I hope this helps to understand the rational. -- Daniel

  • Jeffrey Johannessen Jeffrey Johannessen posted a comment on discussion Open Discussion

    Hi, I am working with Vector to develop a charging simulator based on their Emobility Charging System. The system works with ISO15118-20 and ISO15118-2:2013. It does not work with the 2018 draft for ISO15118-2. In order to develop the simulator, they need the XDS files for the draft version. Unfortunately, our latest EV offering was developed using the open V2G platform; we must be able to test this but cannot since the charging simulator does not support openV2G. Would it be possible to get the...

  • Anonymous created ticket #26

    XSD Schema Files for Draft 2018 ISO15118-2

  • Anonymous created ticket #25

    ChargeParameterDiscoveryRes - Schedule array size greater than 5

  • Jordan Sautreau Jordan Sautreau modified a comment on discussion Open Discussion

    Hi Daniel, I am using iso1 codec. The issue is not encoding/decoding directly but on computing the signature. The payload is encoded and received by a server using exificient. When receiving the request, the server decodes successfully the request. Then it has to encode the payload (without the signature) to check if the signature is correct. So it encodes back the content to compute a hash. That is when we face the issue because the payload is different (1 byte more for each root certificate) so...

  • Jordan Sautreau Jordan Sautreau posted a comment on discussion Open Discussion

    Hi Daniel, I am using iso1 codec. The issue is not encoding/decoding directly but on computing the signature. The payload is encoded and received by a server using exificient. When receiving the request, the server decodes successfully the request. Then it has to encode the payload (without the signature) to check if the signature is correct. So it encodes back the content to compute a hash. That is when we face the issue because the payload is different (1 byte more for each root certificate) so...

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Do you have an example XML (or EXI) message that you would like to encode and can point us to to where something goes wrong. Honestly I doubt that there is a problem since it is used for a very long time now without any issues. Note: please also let us know what codec you are using (e.g. iso1) etc Thanks!

  • Jordan Sautreau Jordan Sautreau posted a comment on discussion Open Discussion

    Hello, We have found an issue in the encoding. It indeed adds a byte because of the encoding on 7 bits and 1 bit more to indicate if the encoding is done or not. For example, if the serial number is 9: This is 0b00001001 in binary. So we need 4 bits to encode it. Then openv2g considers that we need a byte, then 8 bits. As the bits are encoded 7 by 7, openv2g considers that we need 2 bytes to encode this number. We have patched this and tested it sucessfully. We might share a fix proposal for this...

  • Daniel Peintner Daniel Peintner posted a comment on ticket #24

    Hi, Is there any protocol version after urn:iso:15118:2? As mentioned on our homepage the most recent versions will not be available as Open Source anymore. see https://openv2g.sourceforge.net/ -- Daniel

  • Anonymous created ticket #24

    Questions About the ISO15118 Protocol

  • Daniel Peintner Daniel Peintner modified ticket #22

    Invalid test data used in main_example.c?

  • Daniel Peintner Daniel Peintner posted a comment on ticket #22

    fixed with https://sourceforge.net/p/openv2g/code/121/

  • Daniel Peintner Daniel Peintner committed [r121] on Code

    fix: use minimum length of 7

  • Gravis Gravis posted a comment on ticket #23

    Yes, it's in src/test/main_example.c. Not to worry though because I'm not using it for production purposes, I'm merely debugging my own dynamic EXI encoder by comparing outputs. Comparing the I/O for the example code seemed like a nice starting point and thusly I'm running into bugs in the example code.

  • Daniel Peintner Daniel Peintner posted a comment on ticket #23

    Your statements are correct. The struct is not properly initialized. Having said that, the code you are referring to is from the "test" folder which is meant to provide a simple overview and examples how to use the code... As such main_example.c illustrates both sides EV and charging side. This is NO code you should/can ever use in production! Anyhow, it should be fixed. Thanks for reporting.

  • Gravis Gravis created ticket #23

    Uninitialized data in main_example.c

  • Gravis Gravis modified a comment on ticket #22

    I hadn't even considered a fix because I wasn't 100% sure it was wrong or if I had missed something. I think a simple string like "abcdefg" would suffice. However, if what meant to ask if I was going to provide a patch for input validation, I'm not.

  • Gravis Gravis posted a comment on ticket #22

    I hadn't even considered a fix because I wasn't 100% sure it was wrong or if I had missed something. I think a simple string like "abcdefg" would suffice.

  • Daniel Peintner Daniel Peintner posted a comment on ticket #22

    You are correct, the test example is simply wrong. Note: I think this limitation evolved over time and the example did not reflect it accordingly. FYI: the EXI codec does not check for min/max character lengths. Do you plan to provide a fix (increasing size to min 3 and add proper characters)?

  • Gravis Gravis created ticket #22

    Invalid test data used in main_example.c?

  • Daniel Peintner Daniel Peintner modified ticket #21

    encode_iso1PGPDataType always fails

  • Daniel Peintner Daniel Peintner posted a comment on ticket #21

    I think you should be able to close it yourself but I can do it for you.

  • Gravis Gravis posted a comment on ticket #21

    Oops.... spoke too soon. I see it now. Just close this ticket.

  • Gravis Gravis created ticket #21

    encode_iso1PGPDataType always fails

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Do you miss anything? OpenV2G supports ISO IEC 15118 (Edition 1). Note: the V2G implementation for ISO 15118-20:2022 will not be available as Open Source. If you are interested in a commercial license solution, please contact us via exi.ct@siemens.com.

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    XML schema attributes are optional by default.

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: ``` <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> ``` but in the c file, openv2g define iso1CertificateChainType as below: ``` struct iso1CertificateChainType { struct { exi_string_character_t characters[iso1CertificateChainType_Id_CHARACTERS_SIZE];...

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    i have an question, that is openv2g is fully meet iso15118-2014 ?

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: ``` <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> ``` but in the c file, openv2g define iso1CertificateChainType as below: ``` struct iso1CertificateChainType { struct { exi_string_character_t characters[iso1CertificateChainType_Id_CHARACTERS_SIZE];...

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: ``` <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> ``` but in the c file, openv2g define iso1CertificateChainType as below: ``` struct iso1CertificateChainType { struct { exi_string_character_t characters[iso1CertificateChainType_Id_CHARACTERS_SIZE];...

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> but in the c file, openv2g define iso1CertificateChainType as below: struct iso1CertificateChainType { struct { exi_string_character_t characters[iso1CertificateChainType_Id_CHARACTERS_SIZE];...

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: ``` <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> ``` but in the c file, openv2g define iso1CertificateChainType as below: ` struct iso1CertificateChainType { struct { exi_string_character_t characters[iso1CertificateChainType_Id_CHARACTERS_SIZE];...

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: ` <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> ` but in the c file, openv2g define iso1CertificateChainType as below: ` struct iso1CertificateChainType { struct { exi_string_character_t characters[iso1CertificateChainType_Id_CHARACTERS_SIZE];...

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: ` <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> ` but in the c file, openv2g define iso1CertificateChainType as below: ``` struct iso1CertificateChainType { struct { exi_string_character_t characters[iso1CertificateChainType_Id_CHARACTERS_SIZE];...

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> but in the c file, openv2g define iso1CertificateChainType as below: struct iso1CertificateChainType { struct { exi_string_character_t characters[iso1CertificateChainType_Id_CHARACTERS_SIZE];...

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> but in the c file, openv2g define iso1CertificateChainType as below: struct iso1CertificateChainType { struct { exi_string_character_t characters[iso1CertificateChainType_Id_CHARACTERS_SIZE];...

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> but in the c file, openv2g define iso1CertificateChainType as below: struct iso1CertificateChainType { /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID} */ struct...

  • BinWatson BinWatson posted a comment on discussion Open Discussion

    i have an question, that is openv2g is fully meet iso15118-2015 ?

  • BinWatson BinWatson posted a comment on discussion Open Discussion

    Hi, In V2G_CI_MsgDataTypes.xsd define CertificateChainType as below: xsd <xs:complexType name="CertificateChainType"> <xs:sequence> <xs:element name="Certificate" type="certificateType" /> <xs:element name="SubCertificates" type="SubCertificatesType" minOccurs="0" /> </xs:sequence> <xs:attribute name="Id" type="xs:ID" /> </xs:complexType> but in the c file, openv2g define iso1CertificateChainType as below: c struct iso1CertificateChainType { /* attribute: Id {http://www.w3.org/2001/XMLSchema,ID}...

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, Correct, I think you "found" the answer. The data exchange uses the EXI [1] format. Since we use the schema-informed EXI mode you need to understand the way EXI grammars are created and work. Anyhow, the OpenV2G project is exactly about that. Using the C structs you do not need to understand the internals. -- Daniel [1] https://www.w3.org/TR/exi/

  • BinWatson BinWatson modified a comment on discussion Open Discussion

    Hi, I may have fix this issue from https://www.w3.org/TR/exi-primer/#encoding: Note that AT(category) is accepted before AT(date) even though their order is reversed in the schema. This is because attributes in schema-informed grammars must be sorted lexicographically, first by local name and then by namespace URI. Attribute sorting reduces the number of options which, in turn, greatly simplifies grammar creation and improves compactness. Since this automaton does not include transitions on AT()...

  • BinWatson BinWatson posted a comment on discussion Open Discussion

    Hi, I may have fix this issue from https://www.w3.org/TR/exi-primer/#encoding: Note that AT(category) is accepted before AT(date) even though their order is reversed in the schema. This is because attributes in schema-informed grammars must be sorted lexicographically, first by local name and then by namespace URI. Attribute sorting reduces the number of options which, in turn, greatly simplifies grammar creation and improves compactness. Since this automaton does not include transitions on AT(*)...

  • BinWatson BinWatson posted a comment on discussion Open Discussion

    Hi, In the function encode_iso1ExiDocument ```c int encode_iso1ExiDocument(bitstream_t stream, struct iso1EXIDocument exiDoc) { errn = writeEXIHeader(stream); if(errn == 0) { /* DocContent[START_ELEMENT({urn:iso:15118:2:2013:MsgDataTypes}AC_EVChargeParameter), START_ELEMENT({urn:iso:15118:2:2013:MsgDataTypes}AC_EVSEChargeParameter), START_ELEMENT({urn:iso:15118:2:2013:MsgDataTypes}AC_EVSEStatus), START_ELEMENT({urn:iso:15118:2:2013:MsgBody}AuthorizationReq), START_ELEMENT({urn:iso:15118:2:2013:MsgBody}AuthorizationRes),...

  • Gravis Gravis created ticket #20

    Resource exhaustion code paths in genated code.

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, There is the possibility to encode EXI messages in byte-aligned mode (see https://sourceforge.net/p/openv2g/code/HEAD/tree/trunk/src/codec/EXIOptions.h#l57) as described by the EXI specification (see https://www.w3.org/TR/exi/#key-bytealignment) Anyhow, this is NOT following the rules for ISO 15118 which require bit-aligned encoding. Hence, this might be of interest for debugging purposes only. -- Daniel

  • Gravis Gravis posted a comment on discussion Open Discussion

    I'm working toward making an MCU-based solution to communicate ISO 15118-2 messages (TCP included) and one hurdle to this making compact code for EXI messages (your generated code is built for speed not reduced size). The EXI spec seems to indicate that there is the option for byte-alignment for certain parts. My question is if the generated code is utilizing this byte-alignment (I'm not an EXI expert) and if not, does the spec allow for it (I couldn't find anything definitive)?

  • Gravis Gravis posted a comment on discussion Open Discussion

    Thank you. This explains a lot of things.

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, The iso2 was an intermediary step to iso dash 20 ( aka "-20"). Hence they have never been part of of an official specification an were completely replaced by -20. The XDS files are usually part of the ISO specification. The ones for version: 15118-20-ed-1 can be found here: https://standards.iso.org/iso/15118/-20/ed-1/en/ -- Daniel

  • Gravis Gravis posted a comment on discussion Open Discussion

    So I have an interest in the updated ISO 15118-2 from 2016 (aka Iso2) and have been unable to locate the xsd files. If someone could point me in the right direction, that would be great.

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, I ask you to investigate a bit yourself. I assume you are writing to a byte array that is not large enough. I guess somehow here https://sourceforge.net/p/openv2g/code/HEAD/tree/trunk/src/test/main_databinder.c#l61 or similar code. This is the last time I answer questions were you just share some error codes. Please try to understand that is just guessing. -- Daniel

  • amy amy posted a comment on discussion Open Discussion

    error comming from writeBits() api as error code EXI_ERROR_OUTPUT_STREAM_EOF -11 file name : OpenV2G_0.9.5/src/codec/BitOutputStream.c

  • amy amy posted a comment on discussion Open Discussion

    error comming from writeBits() api as error code EXI_ERROR_OUTPUT_STREAM_EOF -11 file name : OpenV2G_0.9.5/src/codec/BitOutputStream.c

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    This means that the encode was asked to encode something that is not valid. OpenV2G allows for encoding only valid XML portions. In most of the cases the C structs take care that the content is valid but there are still situation where this is not possible. e.g., the codec expects element a, b or c. IF none is given.. the codec will fail with -109. There are many more such cases. I suggest you to use the debugger and see what causes the issue.

  • amy amy posted a comment on discussion Open Discussion

    I got error code as "#define EXI_ERROR_UNKOWN_EVENT -109" from "encode_iso1ExiDocument()" api file name : OpenV2G_0.9.5/src/iso1/iso1EXIDatatypesEncoder.c

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, I guess you need to share more details. * Source Code as images, grrr * What is the error code.. the number tells you the reason, see https://sourceforge.net/p/openv2g/code/HEAD/tree/trunk/src/codec/ErrorCodes.h * Which file are you using? * .... -- Daniel

  • amy amy posted a comment on discussion Open Discussion

    Hi , I am doing the encoding and decoding few request and response using https://sourceforge.net/projects/openv2g/files/ here I have to encode CertificateUpdateReq and I am using "serialize1EXI2Stream()" API, but I am getting error. here I have attached the method which I have doing for encode.

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Note: If you are interested in a commercial license, please contact us via exi.ct@siemens.com. To facilitate communication please use your company email address for requesting a quotation.

  • Godfrey Godfrey posted a comment on discussion Open Discussion

    Hello liu We are trying best to contact. But no reply and little progress got. Can you tell me which V2G project for 15118-20 you are using? Regards Godfrey

  • zuxiang liu zuxiang liu posted a comment on discussion Open Discussion

    Hello Godfrey, Had you got info from exi.ct@siemens.com? I had not got any reply that i had sent 5 emails to exi.ct during the past 2 months. It is a disaster if no persons works for exi.ct@siemens.com. I still hope this opeV2G project is active even though i still switch to another V2G project for 15118-2.0.

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, This aspect relates to the EXI specification. If you want to know/understand all the details I urge you to read the spec. see https://www.w3.org/TR/exi/ The openV2G library is exactly about not knowing all the details and simply using the provided interfaces. To put it simple. The document grammar is about encoding valid XML/EXI documents. Not all elements are valid root elements. SessionSetupReq is a valid element while ChargingComplete is apparently not. The fragment grammar is the entry point...

  • Godfrey Godfrey posted a comment on discussion Open Discussion

    Hi Daniel Thank you for your reply. I take two examples in ISO15118-2 and OpenV2G code to express my puzzlement. 1. SessionSetupReq only appear once in the xsd file, but this field exist in the document and fragment struct both. 2. ChargingComplete appeared twice in the xsd file, this field only exist in fragment struct. I can't see the difference between this field and other fields. Can you give me some more help, thank you! Regards Godfrey

  • Godfrey Godfrey posted a comment on discussion Open Discussion

    Hi Daniel Thank you, I've recieved your message. Can you tell me the product name of the EXI solution for ISO15118-20. Is it also called OpenV2G? I'll let the buyer of our company to contact Siemens. Regards Godfrey

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, EXI differs between "documents" and "fragments". see https://www.w3.org/TR/exi/#streams [Definition:] EXI documents are EXI bodies with a single root element that conform to the Built-in Document Grammar (See 8.4.1 Built-in Document Grammar) or Schema-informed Document Grammar (See 8.5.1 Schema-informed Document Grammar). [Definition:] EXI fragments are EXI bodies with zero or more root elements that conform to the Built-in Fragment Grammar (See 8.4.2 Built-in Fragment Grammar) or Schema-informed...

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi Godfrey, I sent you a private message. -- Daniel

  • Godfrey Godfrey posted a comment on discussion Open Discussion

    Hello Tom Have you got touch with Siemens? Is there a solution for you from Siemens? I have sent my request to exi.ct@siemens.com, but no reply. Regards Godfrey

  • Godfrey Godfrey modified a comment on discussion Open Discussion

    Dear Daniel I would like to convert the XML schemas to the C file-structure with the XSD files which provided by ISO. I can see that in OpenV2G project, there are documents and fragments structure in the EXI codes. But when I use the tools to do the convert, I found that the fragment structure is not generated. I see into the XSD file, there are no the 'fragment' field in the XSD files. But there are generated fragment structure in OpenV2G. Can you explain how to get the fragment information from...

  • Godfrey Godfrey posted a comment on discussion Open Discussion

    Dear Daniel I would like to convert the XML schemas to the C file-structure with the XSD files which provided by ISO. I can see that in OpenV2G project, there are document and fragment structure in the EXI codes. But when I use the tools to generate the C files, I find the fragment structure was not generated. I see into the XSD file, there are not the 'fragment' fields inthe XSD file. But there are generated fragment structure in OpenV2G. Can you explain how to get the fragment information from...

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, Once again, openV2G handshake implementation exists to setup up-front which data exchange version is supported by both (car & charger).. based on the outcome you can for example pick the data exchange for DIN, ISO, ISO2 etc . I don't think there is more I can add this... -- Daniel

  • Akash Agarwal Akash Agarwal posted a comment on discussion Open Discussion

    Hi Daniel Peintner, I think major/minor versions have something to do with XML schema namespaces. You can please confirm which namespaces does OpenV2G 0.9.4 support

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, OpenV2G lets you use the handshake protocol to "agree" on a given version up-front to be sure that both speak the "same" language. I think you may need to look into the dedicated specifications which major/minor version means what. We don't have a full list handy we can share.. -- Daniel

  • Akash Agarwal Akash Agarwal posted a comment on discussion Open Discussion

    Hi folks, I'm trying to use OpenV2G, it works really good.. but encountered a hurdle in appHandshake request. The Major Version and Minor Version numbers. So currently I believe that Major version 1 and Minor Version 0 is for iso:11518-2-2010 which is DIN specification and Major version 2 and Minor Version 0 is for iso:11518-2-2013 which is iso1 specification. I also believe that Minor Version can vary. Therefore could you please throw some light on how these versions are decided and how many exist.....

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    Thank you very much for your reply, following your method does work, thanks again!

  • Daniel Peintner Daniel Peintner modified a comment on discussion Open Discussion

    EXI stream. Note, you need to set the XSD schema in the GUI!

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    EXI stream

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, I seem to have managed to delete (instead of download) your exi file. I might have mentioned the wrong option.. please set exiFactory.setValuePartitionCapacity(0); // no string table GUI see attached image File see attachemend also. -- Daniel

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, I seem to have managed to delete (instead of download) your exi file. I might have mentioned the wrong option.. please set exiFactory.setValuePartitionCapacity(0); // no string table GUI see attached image File see attachemend also. -- Daniel

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    Thank you very much for your patient answer. For the error code number I already know the relevant h file. But as a developer who is new to V2G, I still don't quite understand many parts of it. I have done the response configuration in EXIficient java GUI as you said, and generated a new .exi file (the exi data did change), and when I decode it by OpenV2G, it still returns EXI_ERROR_STRINGVALUES_NOT_SUPPORTED error at the same position. This makes me confused, is there something wrong with the content...

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, I pointed you already to the error codes https://sourceforge.net/p/openv2g/code/HEAD/tree/trunk/src/codec/ErrorCodes.h #define EXI_ERROR_STRINGVALUES_NOT_SUPPORTED -160 In the ISO 15118 specification specific EXI options are used. One of the setting is not to use string tables. By default any EXI implementation uses them to get better performance. see https://github.com/EXIficient/exificient#command-line-interface --> "-noLocalValuePartitions" You also need to set maximumNumberOfBuiltInProductions...

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    Thank you very much for your reply and it was very helpful to me. We used EXIficient to encoder the XML (see fu for details), then used OpenV2G to parse it and found that it reported a -160 error. Tracing to the location of the error return, the code hint is: iso1TransformType->Algorithm.charactersLen = 0, which does not meet the condition of iso1TransformType->Algorithm.charactersLen >= 2, how can we solve the problem? Also I would like to know if EXIficient java GUI is compatible with OpenV2G?

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, Do you have any good tools for XML and EXI conversion, and if so, I hope you can recommend them? There are some publicly available, see https://www.w3.org/XML/EXI/#implementations e.g, EXIficient provides a command line tool and a GUI if needed. http://exificient.github.io/java/ Disclaimer: I am the author of EXIficient. I hope this helps, -- Daniel

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    Thanks a lot for your reply! Do you have any good tools for XML and EXI conversion, and if so, I hope you can recommend them?

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    OpenV2G allows one to encode/decode valid XML data. Deviant data is possible in EXI, but not implemented in OpenV2G. In the case you are describing <signaturevalue> expects base64 data. In your case there is no data and some EXI encoders may choose to encode the sequence as follows: 1. StartElement("SignatureValue") 2. EndElement // Note: this is not the expected EndElement but the EndElement for deviant data</signaturevalue> The proper EXI sequence would be: 1. StartElement("SignatureValue") 2....

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    The attachment is indeed an XML file, I gave the EXI data in the reply, and the -110 error is returned when I use OpenV2G to decoder the EXI data. Through debugging, it was found that during parsing, an error value was returned during the parsing of the SignatureValue element. And through the XML file, you can see that "<ns5:signaturevalue></ns5:signaturevalue>" is empty, I don't know if it is related to this, I hope to give some guidance.

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    The attachment is indeed an XML file, I gave the EXI data in the reply, and the -110 error is returned when I use OpenV2G to parse the EXI data. Through debugging, it was found that during parsing, an error value was returned during the parsing of the SignatureValue element. And through the XML file, you can see that "<ns5:signaturevalue></ns5:signaturevalue>" is empty, I don't know if it is related to this, I hope to give some guidance.

  • Daniel Peintner Daniel Peintner posted a comment on discussion Open Discussion

    Hi, you are sharing an XML instance. OpenV2G works with EXI only. w.r.t. error codes, here you can find the information what each code means https://sourceforge.net/p/openv2g/code/HEAD/tree/trunk/src/codec/ErrorCodes.h e.g., #define EXI_ERROR_UNKOWN_EVENT_CODE -110 Hope this helps, -- Daniel

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    exi: 8098022B9C35B47683EB4D8A895A1D1D1C0E8BCBDDDDDDCB9DCCCB9BDC99CBD5148BD8D85B9BDB9A58D85B0B595E1A4BD0D5A1D1D1C0E8BCBDDDDDDCB9DCCCB9BDC99CBCC8C0C0C4BCC0D0BDE1B5B191CDA59CB5B5BDC9948D958D91CD84B5CDA184C8D4D910311A4A218812B43A3A381D1797BBBBBB973B999737B93397AA2917B1B0B737B734B1B0B616B2BC3497A429687474703A2F2F7777772E77332E6F72672F323030312F30342F786D6C656E6323736861323536420B67C079DD3E44BCC07B2C2D0C41B8D69379AA45C1AF0DE1C92BC16BF5B0EA2B31420A00000000000280E018500B0802A4A21880080008012044071008409...

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    exi: 8098022B9C35B47683EB4D8A895A1D1D1C0E8BCBDDDDDDCB9DCCCB9BDC99CBD5148BD8D85B9BDB9A58D85B0B595E1A4BD0D5A1D1D1C0E8BCBDDDDDDCB9DCCCB9BDC99CBCC8C0C0C4BCC0D0BDE1B5B191CDA59CB5B5BDC9948D958D91CD84B5CDA184C8D4D910311A4A218812B43A3A381D1797BBBBBB973B999737B93397AA2917B1B0B737B734B1B0B616B2BC3497A429687474703A2F2F7777772E77332E6F72672F323030312F30342F786D6C656E6323736861323536420B67C079DD3E44BCC07B2C2D0C41B8D69379AA45C1AF0DE1C92BC16BF5B0EA2B31420A00000000000280E018500B0802A4A21880080008012044071008409...

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    exi: 8098022B9C35B47683EB4D8A895A1D1D1C0E8BCBDDDDDDCB9DCCCB9BDC99CBD5148BD8D85B9BDB9A58D85B0B595E1A4BD0D5A1D1D1C0E8BCBDDDDDDCB9DCCCB9BDC99CBCC8C0C0C4BCC0D0BDE1B5B191CDA59CB5B5BDC9948D958D91CD84B5CDA184C8D4D910311A4A218812B43A3A381D1797BBBBBB973B999737B93397AA2917B1B0B737B734B1B0B616B2BC3497A429687474703A2F2F7777772E77332E6F72672F323030312F30342F786D6C656E6323736861323536420B67C079DD3E44BCC07B2C2D0C41B8D69379AA45C1AF0DE1C92BC16BF5B0EA2B31420A00000000000280E018500B0802A4A21880080008012044071008409...

  • junjie chang junjie chang posted a comment on discussion Open Discussion

    When I use errn = decode_iso1ExiDocument(&iStream, &exiDoc) (variables have been initialized, version 0.9.3, iso1), when I decode ChargeParameterDiscoveryRes (see attachment): "", a -110 error is reported, and an error is returned when decoding the SignatureValue element , how can I solve this?

  • Daniel Peintner Daniel Peintner posted a comment on ticket #19

    Hi, The OpenV2G library does not automatically fill data from one struct to the other or anything else that might be related to state-machine logic. OpenV2G expects you to fill data you want to transmit and it will encode it in EXI. I hope this helps, -- Daniel

  • zhan yong zhan yong posted a comment on ticket #19

    hi, thanks for your reply. Sorry, my problems, I build environment using openv2g v0.95 ,run environment using openv2g V0.94. both using V0.94 is right. And I want to make sure "AuthorizationReq.GenChallenge" fill origina data("Some Random Data"),ISO15118-2:2014 AnnexJ using base64 encode data ("Some Random Data" base64 encode).Did openv2g make this logic(base64 encode)? "SignedInfo.Reference.array[0].DigestValue" need fill origina data when using openv2g? "V2G_Message.Header.Signature.SignatureValue"...

  • Daniel Peintner Daniel Peintner posted a comment on ticket #19

    Hi, You are building a C struct that you pass to encode_iso1ExiFragment(...); Can you share the code for that or a reproducible example that allows me to look into... Thanks, -- Daniel

  • zhan yong zhan yong posted a comment on ticket #19

    Hi, you are right,but I using "ISO15118-2:2014 Annex J Overview on XML Signatures" The resulting EXI data mismatching. I use method "encode_iso1ExiFragment". original data: AuthorizationReq.id=ID1 AuthorizationReq.GenChallenge :0x53,0x6f,0x6d,0x65,0x20,0x52,0x61,0x6e,0x64,0x6f,0x6d,0x20,0x44,0x61,0x74,0x61, Output results using encode_iso1ExiFragment methods. test output :0x80,0x82,0x20,0xa9,0x28,0x86,0x2b,0xd0, right output:0x80, 0x04, 0x01, 0x52, 0x51, 0x0C, 0x40, 0x82, 0x9B, 0x7B, 0x6B, 0x29,...

  • Daniel Peintner Daniel Peintner posted a comment on ticket #19

    Hi, Do you mean the following test method xmldsig_test() ? https://sourceforge.net/p/openv2g/code/HEAD/tree/trunk/src/test/main_example.c#l2343 Using a different schema (e.g, ISO1 vs ISO2) changes the the result and also the digest value etc. -- Daniel

  • zhan yong zhan yong modified a comment on ticket #19

    Hi, Daniel thanks for your reply. ISO2 will begin the development phase of the initiative to contact you. I want to know why the "XMLsig test demo" test fails in ISO1? The ISO2 API in the test case has been replaced with ISO1. Best, zhan

  • zhan yong zhan yong posted a comment on ticket #19

    Hi, Daniel thanks for your reply. ISO2 will begin the development phase of the initiative to contact you. I want to know why the "XMLsig test deme" test fails in ISO1. The ISO2 API in the test case has been replaced with ISO1. Best, zhan

1 >