Codeofchina.com is in charge of this English translation. In case of any doubt about the English translation, the Chinese original shall be considered authoritative.
This standard is developed in accordance with the rules given in GB/T 1.1-2009.
Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. The issuing body of this document shall not be held responsible for identifying any or all such patent rights.
This standard is proposed by and is under the jurisdiction of China Electricity Council.
Introduction
Protocol conformance testing is a kind of functional test, which tests the implementation of the protocol under test by using a set of test sequences in a certain network environment, and judges the conformance degree between the implementation under test and the described standard by comparing the similarities and differences between the actual output and the expected output. Upon protocol conformance testing, the risk of errors when product is running in the field can be reduced.
There are certain differences in the implementation of different protocols due to 1) vague protocol standard description and ambiguous understanding; 2) different programming mode and implementation mode of protocol implementation; 3) different equipment selection and configuration of protocol implementation, and other reasons, so it is necessary to conduct protocol conformance testing.
Protocol conformance testing is carried out to test the existence of errors rather than verify that there is no error. Relying on conformance testing alone does not absolutely guarantee the interconnection and intercommunication of applications, and corresponding interoperability testing shall be carried out on this basis.
Protocol conformance testing is the basis of interoperability testing, and the interoperability testing is meaningful only for the products that have passed the protocol conformance testing and been proven to meet the requirements of the relevant protocol standards.
Protocol conformance testing does not include the design evaluation of the protocol standard itself or the performance, redundancy, robustness and reliability assessment of the specific protocol implementation body.
Conformance Test for Communication Protocols between Off-board Conductive Charger and Battery Management System for Electric Vehicle
1 Scope
This standard specifies the requirements, system and contents of conformance testing for communication protocols between off-board conductive charger (hereinafter referred to as the charger) and battery management system (hereinafter referred to as BMS) for electric vehicle.
This standard is applicable to protocol conformance testing for the products that are declared to comply with GB/T 27930-2015.
2 Normative References
The following documents for the application of this document are essential. Any dated reference, just dated edition applies to this document. For undated references, the latest edition of the normative document (including any amendments) applies.
GB/T 17178.1-1997 Information Technology - Open Systems Interconnection - Conformance Testing Methodology and Framework - Part 1: General Concepts
GB/T 27930-2015 Communication Protocols between Off-board Conductive Charger and Battery Management System for Electric Vehicle
3 Terms and Definitions
For the purposes of this document, the terms and definitions established in GB/T 17178.1-1997 and the following apply.
3.1
abstract test case
a kind of complete and independent specification defined at the abstract level of a particular abstract test method and used for the actions required to obtain a particular test purpose, which starts and ends in a stable test state
[GB/T 17178.1-1997, definition 3.3.3]
3.2
abstract test suite; ATS
test suite consisting of abstract test cases
[GB/T 17178.1-1997, definition 3.3.6]
3.3
implementation under test; IUT
a kind of implementation of a protocol with a provider relationship
Note: it is revised from the definition 3.3.43 in GB/T 17178.1-1997.
3.4
conformance testing
testing the degree to which the IUT is a conforming implementation
[GB/T 17178.1-1997, definition 3.3.23]
3.5
executable test case
implementation of abstract test case
[GB/T 17178.1-1997, definition 3.3.31]
3.6
executable test suite; ETS
test suite consisting of executable test cases
[GB/T 17178.1-1997, definition 3.3.33]
3.7
implementation conformance statement; ICS
statement made by the provider of the implementation or system that is claimed to conform to the given specification to state what the capabilities have been implemented
[GB/T 17178.1-1997, definition 3.3.39]
3.8
implementation conformance statement [ICS] proforma
document that appears in the form of a questionnaire and becomes an ICS when it is filled out for an implementation or system
[GB/T 17178.1-1997, definition 3.3.40]
3.9
implementation extra information for testing; IXIT
statement made by the IUT provider or implementer, which includes or references all information related to the IUT and its test environment (except for information given by ICS) and enables the test laboratory to run the appropriate test suite on the IUT
[GB/T 17178.1-1997, definition 3.3.41]
3.10
implementation extra information for testing [IXIT] proforma
document that appears in the form of a questionnaire and becomes the IXIT when it is filled out for an IUT
[GB/T 17178.1-1997, definition 3.3.42]
3.11
protocol implementation conformance statement; PICS
ICS claiming that an implementation or system conforms to the given protocol specification
[GB/T 17178.1-1997, definition 3.3.80]
3.12
protocol implementation extra information for testing; PIXIT
IXIT associated with a given protocol specification conformance testing
[GB/T 17178.1-1997, definition 3.3.81]
3.13
test case
abstract or executable test case
[GB/T 17178.1-1997, definition 3.3.107]
3.14
test laboratory
organization executing conformance testing
4 Abbreviations
For the purposes of this document, the following abbreviations apply.
ATS: abstract test case
BCL: BMS charging request message
BCP: BMS charging parameter message
BCS: BMS charging status message
BEM: BMS error message
BHM: BMS handshake message
BMS: battery management system
BMT: BMS temperature information message
BMV: BMS voltage information message
BRM: BMS recognition message
BRO: BMS readiness status message
BSD: BMS statistical data message
BSM: BMS status message
BSP: BMS status preserved message
BST: BMS stopping charging message
CCS: charger charging status message
CEM: charger error message
CHM: charger handshake message
CML: charger maximum/minimum output parameter message
CRM: charger recognition message
CRO: charger readiness status message
CSD: charger statistical data message
CST: charger stopping charging message
CTS: charger time synchronization message
ETS: executable test suite
ICS: implementation conformance statement
IUT: implementation under test
IXIT: implementation extra information for testing
PICS: protocol implementation conformance statement
PIXIT: protocol implementation extra information for testing
5 Requirements of Conformance Testing
5.1 General
This standard verifies whether the IUT meets the requirements of GB/T 27930-2015, namely, verifies the degree to which the IUT conforms to the standard in terms of protocol implementation.
5.2 Test process
The entire test process is shown in Figure 1. Preparations for the test includes filling in the static document, building the test system, and so on. PICS files and PIXIT files are completed jointly by the IUT provider and the test laboratory. After confirming that all equipment are started normally, the test software of upper computer can be started for subsequent test operations. After the test is completed, a test report is generated and the test conclusion is drawn.
Figure 1 Process of Protocol Conformance Testing
5.3 Classification of test contents
The test contents shall be classified as follows:
a) Mandatory item
The mandatory item is the test content which the IUT must have as stated in the PICS file and for which the conformance testing shall be carried out.
b) Optional item
The optional item is the test content for which the IUT may optionally have as stated in the PICS file, and for which, if being stated as existing test content, the conformance testing shall be carried out.
c) Additional item
The additional item is the test content that is additionally proposed by the IUT provider in the PICS file and is subject to testing as agreed upon by the IUT provider and the test laboratory.
6 System of Conformance Testing
6.1 General
The system structure of conformance testing for communication protocols is shown in Figure 2.
Figure 2 System Structure of Protocol Conformance Testing
6.2 Abstract test suite
According to the technical requirements of the protocol standard, the test purpose shall be written to form the abstract test cases, and the set of abstract test cases covering all the technical requirements of the protocol standard constitutes an abstract test suite.
6.3 Static document
Static documents include PICS and PIXIT. The PICS shall include the implemented capabilities and optional implementation of the IUT stated by the IUT provider; the PIXIT shall include all information relating to the IUT and its test environment (except for information given by the PICS), as detailed in Tables A.1 and A.2.
6.4 Executable test suite
The executable test suite is composed of executable test cases, and the latter is the implementation of abstract test cases. Based on some of the parameters and additional information provided by the static document, the test laboratory can select and arrange the abstract test cases into executable test cases and finally combine them into an executable test suite for testing.
6.5 Implementation under test
The implementation under test is a product conforming to the CAN physical layer, data link layer, and application layer specified in GB/T 27930-2015.
The IUTs mentioned in this standard mainly include off-board charger (or controller) and BMS (or other vehicle control units with charging control function) using conductive charging.
Foreword I
Introduction II
1 Scope
2 Normative References
3 Terms and Definitions
4 Abbreviations
5 Requirements of Conformance Testing
6 System of Conformance Testing
7 Contents of Conformance Testing
Annex A (Normative) Static Documents for Protocol Conformance Testing