Menu

why CertificateChainType's Id is optional ?

BinWatson
2023-12-13
2023-12-13
  • BinWatson

    BinWatson - 2023-12-13

    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];
            uint16_t charactersLen;
        }  Id ;
        unsigned int Id_isUsed:1;
        struct {
            uint8_t bytes[iso1CertificateChainType_Certificate_BYTES_SIZE];
            uint16_t bytesLen;
        }  Certificate ;
        struct iso1SubCertificatesType SubCertificates ;
        unsigned int SubCertificates_isUsed:1;
    };
    ```
    

    is attribute Id define as an optional ?

     

    Last edit: BinWatson 2023-12-13
    • Daniel Peintner

      Daniel Peintner - 2023-12-13

      XML schema attributes are optional by default.

       
  • BinWatson

    BinWatson - 2023-12-13

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

     

    Last edit: BinWatson 2023-12-13
    • Daniel Peintner

      Daniel Peintner - 2023-12-13

      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.

       

Log in to post a comment.