Charging test method, charging test system and charging test equipment of charging device

By dividing the charging process into multiple charging stages and determining the testing steps using test cases, the problem that the existing technology cannot perform comprehensive automatic testing of the charging process is solved, and comprehensive automated testing of the charging device and high compatibility with electric vehicles are achieved.

CN119689313APending Publication Date: 2025-03-25XIAN LINCHR NEW ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411819792.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The prior art cannot achieve automatic and comprehensive testing of the entire charging process of charging devices and electric vehicles.

Method used

By dividing the charging process into multiple charging stages, each test unit corresponds to a charging stage, and using test cases to determine the test steps of each charging stage under different charging situations, achieving a comprehensive test of the charging device.

Benefits of technology

The automated and comprehensive testing of charging devices has been achieved, the compatibility of charging devices with different electric vehicles has been improved, and the testing efficiency has been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119689313A_ABST
    Figure CN119689313A_ABST
Patent Text Reader

Abstract

The invention provides a charging test method, a charging test system and charging test equipment of a charging device, and relates to the technical field of charging pile test. The method comprises the steps that a test request is acquired, the test request comprises at least one target test case and an identifier of a target test unit corresponding to the target test case, and the target test unit is any one of a plurality of test units corresponding to a plurality of charging stages in a preset charging process; and calling the target test unit to execute a test step of the target test unit corresponding to the target charging stage under the target test case, so as to perform a charging test on the to-be-tested charging device in the target charging stage, and obtain a test result of the to-be-tested charging device in the target charging stage. According to the invention, automatic and comprehensive charging testing can be carried out on the charging device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of charging pile testing, and in particular to a charging testing method, a charging testing system and a charging testing device for a charging device. Background Art

[0002] As the use of pure electric vehicles becomes more and more widespread, the demand for charging is increasing. Convenient, safe and fast charging is a consistent demand of the market for vehicles. Charging piles, as charging devices for electric vehicles, mainly provide charging services for electric vehicles.

[0003] In order to make the charging device compatible with different types of electric vehicles and to promote the perfect design of electric vehicles and charging device products, the compatibility of the charging device needs to be tested.

[0004] The testing method provided by the prior art can usually only test whether the charging parameters of the charging device meet the charging requirements of the electric vehicle, and cannot meet the requirements for automatic and comprehensive testing of the entire charging process of the charging device and the electric vehicle. Summary of the invention

[0005] The purpose of the present application is to provide a charging test method, a charging test system and a charging test equipment for a charging device in order to realize an automated and comprehensive charging test on the charging device in view of the deficiencies in the above-mentioned prior art.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, an embodiment of the present application provides a charging test method for a charging device, the method comprising:

[0008] Obtain a test request, the test request comprising: at least one target test case, and an identifier of a target test unit corresponding to the target test case, the target test unit being any test unit among a plurality of test units corresponding to a plurality of charging stages in a preset charging process;

[0009] The target test unit is called to execute the test steps of the target test unit corresponding to the target charging stage under the target test case, so as to perform a charging test on the charging device to be tested in the target charging stage, and obtain a test result of the charging device to be tested in the target charging stage.

[0010] Optionally, before calling the target test unit to execute the test step of the target test unit corresponding to the target charging stage under the target test case, the method further includes:

[0011] If the target test unit is not a test unit corresponding to the first charging stage, each test unit before the target test unit is called to execute preset test steps corresponding to each charging stage.

[0012] Optionally, the target test case includes: ending the test step, the calling of the target test unit to execute the test step of the target test unit corresponding to the target charging stage under the target test case, including:

[0013] Calling the target test unit to sequentially execute at least one test step of the target charging phase;

[0014] Determine whether the current test step is the end test step;

[0015] If the current test step is not the end test step, continue to execute the next test step;

[0016] If the current test step is the end test step, it is determined that the target test unit completes the test step of the target charging stage.

[0017] Optionally, the target test case is a test case among multiple test cases of the target test unit, and different test cases of the same test unit are test cases for different test functions of the same test unit in a corresponding charging stage;

[0018] The calling of the target test unit to execute the test steps of the target test unit corresponding to the target charging stage under the target test case, so as to perform a charging test on the charging device to be tested in the target charging stage, and obtain a test result of the charging device to be tested in the target charging stage, includes:

[0019] The target test unit is called to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtain a test result of the target test function of the charging device to be tested in the target charging stage.

[0020] Optionally, the target test unit is a version negotiation unit, and calling the target test unit to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtaining a test result of the target test function of the charging device to be tested in the target charging stage, includes:

[0021] The version negotiation unit is called to respectively execute the test steps of the version negotiation phase under multiple version negotiation test cases, so as to test the multiple version negotiation functions of the charging device to be tested in the version negotiation phase, and obtain the test results of the multiple version negotiation functions of the charging device to be tested in the version negotiation phase.

[0022] Optionally, the target test unit is a function negotiation unit, and each test unit before calling the target test unit performs preset test steps corresponding to each charging stage, including:

[0023] Calling the version negotiation unit to execute a version negotiation success test step in the version negotiation phase;

[0024] The calling of the target test unit to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtain a test result of the target test function of the charging device to be tested in the target charging stage, includes:

[0025] The function negotiation unit is called to respectively execute the test steps of the function negotiation phase under multiple function negotiation test cases, so as to test multiple function negotiation functions of the charging device to be tested in the function negotiation phase, and obtain the test results of the multiple function negotiation functions of the charging device to be tested in the function negotiation phase.

[0026] Optionally, the target test unit is a charging management unit, and the calling of each test unit before the target test unit to perform preset test steps corresponding to each charging stage includes:

[0027] Calling the version negotiation unit to execute a version negotiation success test step in the version negotiation phase;

[0028] Calling the function negotiation unit to execute the function negotiation success test step of the function negotiation phase and the first phase confirmation success test step, the first phase being the charging management phase;

[0029] The calling of the target test unit to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtain a test result of the target test function of the charging device to be tested in the target charging stage, includes:

[0030] The charging management unit is called to respectively execute the test steps of the charging management stage under multiple charging management test cases, so as to test multiple charging management functions of the charging device to be tested in the charging management stage, and obtain test results of the multiple charging management functions of the charging device to be tested in the charging management stage.

[0031] Optionally, the test unit further includes: a service statistics unit, and the method further includes:

[0032] The service statistics unit is called to respectively execute the test steps of the service statistics phase under multiple service statistics test cases, so as to test multiple service statistics functions of the charging device to be tested in the service statistics phase, and obtain the test results of the multiple service statistics functions of the charging device to be tested in the service statistics phase.

[0033] In a second aspect, an embodiment of the present application further provides a charging test system, which comprises: a test engine, multiple test units and a charging device to be tested, wherein the test engine executes a charging test method for a charging device as described in any one of the first aspects to call the multiple test units to perform a charging test on the charging device to be tested.

[0034] In a third aspect, an embodiment of the present application further provides a charging test device, which is used to execute the charging test method for a charging device as described in any one of the first aspects, and perform a charging test on a charging device to be tested.

[0035] The beneficial effects of this application are:

[0036] The charging test method, charging test system and charging test equipment for a charging device provided in the present application divide the charging process of the charging device to be tested into multiple charging stages, and use each test unit to correspond to one test stage, and determine the test steps of each charging stage under different charging conditions through test cases, so that the test unit can test the different charging conditions that may occur in each charging stage by executing the test cases, so as to grasp the charging conditions that may occur during the charging process of various vehicles to be charged and the charging device to be tested. This method can realize a comprehensive test of the charging device to be tested, so as to improve the compatibility of the charging device to be tested with different electric vehicles on the market, and the test process is automated, and the test efficiency is higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 An architectural diagram of a charging test system provided in an embodiment of the present application;

[0039] Figure 2Schematic diagram of the charging test method of the charging device provided in the embodiment of the present application Figure 1 ;

[0040] Figure 3 Schematic diagram of the charging test method of the charging device provided in the embodiment of the present application Figure 2 ;

[0041] Figure 4 Schematic diagram of the charging test method of the charging device provided in the embodiment of the present application Figure 3 ;

[0042] Figure 5 Schematic diagram of the charging test method of the charging device provided in the embodiment of the present application Figure 4 ;

[0043] Figure 6 A schematic diagram of a charging test device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0045] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0046] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0047] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0048] Before describing the specific implementation of the charging test method for the charging device provided in the application, in order to better understand the present solution, a charging test system used in the charging test method for the charging device is first introduced.

[0049] Figure 1 The architecture diagram of the charging test system provided in the embodiment of the present application is as follows: Figure 1 As shown, the charging test system may include: a test engine 10, a plurality of test units 20 and a charging device to be tested 30. The test engine 10 may call the plurality of test units 20 to perform a charging test on the charging device to be tested 30.

[0050] The multiple test units 20 are used to simulate the vehicle to be charged, and the interaction between the multiple test units 20 and the charging device 30 to be tested is used to simulate the interaction between the vehicle to be charged and the charging device 30 to be tested during the charging process.

[0051] Each test unit 20 corresponds to a charging stage. The test engine 10 calls each test unit 20 to execute the test steps of the charging stage corresponding to each test unit 20. Each test unit 20 can test various possible charging conditions in a charging stage of the charging device 30 to be tested.

[0052] The test engine 10 can choose to perform a single test or multiple tests on the charging device 30 to be tested, wherein the single test is used to test a charging condition of a charging stage corresponding to a test unit 20, and the multiple tests are used to test multiple charging conditions of a charging stage corresponding to a test unit 20, or to test at least one charging condition of the charging stage corresponding to multiple test units 20. The user can choose to perform a single test or multiple tests.

[0053] Each test unit 20 has a unique unit identification, and the user can select a target test unit to be tested according to the unit identification.

[0054] The charging device 30 to be tested is a charging pile, and the charging pile using the high-power charging technology, namely the Chaoji charging technology, is a Chaoji charging pile.

[0055] In some embodiments, the test steps to be performed for each charging condition in the charging stage corresponding to each test unit are packaged in the form of test cases. By selecting a test case, a test of a charging condition of the charging interface corresponding to the test unit corresponding to the test case can be automatically performed. When multiple tests are required, multiple test cases can be selected. After each test case is executed, the test unit will be reset and initialized, and then the next test case will be executed.

[0056] Figure 2Schematic diagram of the charging test method of the charging device provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, the method may include:

[0057] S101. Obtain a test request, where the test request includes: at least one target test case and an identifier of a target test unit corresponding to the target test case, where the target test unit is any test unit among multiple test units corresponding to multiple charging stages in a preset charging process.

[0058] In this embodiment, when the vehicle to be charged is charging with the charging device to be tested, it is necessary to execute a complete set of preset charging processes, which are divided into multiple charging stages. A test unit is set for each charging stage. The entire process of charging the vehicle to be charged with the charging device to be tested can be simulated through multiple test units.

[0059] For each charging stage, during the testing process, different charging conditions of each charging stage can be tested, such as the situation where the test of this charging stage is successful, the situation where the test of this charging stage fails, the test conditions of different sub-stages of this charging stage, etc. The specific charging conditions that need to be tested in each charging stage can be customized, and this embodiment does not impose any restrictions on this.

[0060] The test steps to be performed in different charging conditions in each charging stage are encapsulated as test cases, and the charging stage corresponding to each charging unit may include at least one test case.

[0061] During the test of the charging device to be tested, at least one target test case is selected from multiple test cases according to the test requirements, and a test request is generated according to the unit ID of the target test unit corresponding to the target test case and the target test case.

[0062] S102, calling a target test unit to execute a test step of the target test unit corresponding to a target charging stage under a target test case, so as to perform a charging test on the charging device to be tested in the target charging stage, and obtain a test result of the charging device to be tested in the target charging stage.

[0063] In this embodiment, the target test unit is called according to the unit ID of the target test unit in the test request, and the target test unit is controlled to execute the corresponding test steps in sequence according to the test steps recorded in the target test case. In the process of executing the target test case, the target test unit exchanges messages with the charging device to be tested according to the definition of the test steps, and completes a test of the target charging condition of the charging device to be tested in the target charging stage. The test result includes: a result message of the target charging condition in the target charging stage, and the result message indicates the situation description content when the target charging condition occurs in the target charging stage, so that when the vehicle to be charged is actually charged with the charging device to be tested, the charging condition occurring in the target charging stage is determined according to the charging message content.

[0064] In some embodiments, when the test request includes multiple target test cases, each target test unit is reset after executing the corresponding target test case, and is reset before each target test unit starts executing the target test case.

[0065] The charging test method for the charging device provided in the above embodiment divides the charging process of the charging device to be tested into multiple charging stages, and adopts each test unit to correspond to one test stage, and determines the test steps of each charging stage under different charging conditions through test cases, so that the test unit can test the different charging conditions that may occur in each charging stage by executing the test cases, so as to grasp the charging conditions that may occur during the charging process of various vehicles to be charged and the charging device to be tested. This method can realize a comprehensive test of the charging device to be tested, so as to improve the compatibility of the charging device to be tested with different electric vehicles on the market, and the test process is automated, and the test efficiency is higher.

[0066] Since the multiple charging stages of the entire charging process between the vehicle to be charged and the charging device to be tested are executed sequentially, for example, the second charging stage can only be executed after the first charging stage is completed, therefore, the multiple test units corresponding to the multiple charging stages must also execute the test steps of the corresponding charging stages in sequence, until the test steps of the corresponding charging stages are completed on the target test unit, the test is considered to be completed.

[0067] In a possible implementation, if the target test unit is a test unit corresponding to the first charging stage, the target test unit is directly called to execute the corresponding target test case.

[0068] In another possible implementation, before the above S102 calls the target test unit to execute the test steps of the target test unit corresponding to the target charging stage under the target test case, the method may further include:

[0069] If the target test unit is not a test unit corresponding to the first charging stage, each test unit before the target test unit is called to execute preset test steps corresponding to each charging stage.

[0070] In this embodiment, if the target test unit is not a test unit corresponding to the first charging stage, then before the target test unit executes the test steps of the corresponding charging stage, it is necessary to first complete the charging stage before the charging stage corresponding to the target test unit, and ensure that the charging stage before the charging stage corresponding to the target test unit is executed successfully, and the charging stage corresponding to the target test unit can also be executed.

[0071] The charging stage corresponding to each test unit has preset test steps, which indicate the test steps that are successfully executed in the charging stage corresponding to each test unit. The test units before the target test unit are called in sequence to execute the preset test steps corresponding to each charging stage. After the preset test steps of each charging stage are completed, the target test unit is called to execute the target test case to test the test steps of the target test stage.

[0072] In one possible implementation, Figure 3 Schematic diagram of the charging test method of the charging device provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, the process of calling the target test unit to execute the test steps of the target test unit corresponding to the target charging stage under the target test case in S102 may include:

[0073] S201. Call a target test unit to sequentially execute at least one test step of a target charging phase.

[0074] S202: Determine whether the current test step is an end test step.

[0075] S203: If the current test step is not the end test step, continue to execute the next test step.

[0076] S204: If the current test step is to end the test step, determine the test step of the target test unit to complete the target charging stage.

[0077] In this embodiment, the complete test steps of each test unit in the corresponding charging stage include multiple test steps. The target test case indicates the end test step. The target test unit executes each test step of the target charging stage in turn. Each time a test step is executed, it is determined whether the current test step is the end test step. If the current test step is not the end test step, the test of a charging condition in the target charging stage is not completed, and the next test step is continued. If the current test step is the end test step, it is determined that the test of a charging condition in the target charging stage is completed, and the test process is ended.

[0078] In a possible implementation, the target test case is a test case among multiple test cases of a target test unit, and different test cases of the same test unit are test cases for different test functions of the same test unit in a corresponding charging stage; the above S102 calls the target test unit to execute the test steps of the target test unit corresponding to the target charging stage under the target test case, so as to perform a charging test on the charging device to be tested in the target charging stage, and the process of obtaining the test result of the charging device to be tested in the target charging stage may include:

[0079] The target test unit is called to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtain a test result of the target test function of the charging device to be tested in the target charging stage.

[0080] Each test unit may include multiple test cases. The test steps executed by each test case are used to test a test function or charging condition of the charging device to be tested in the charging stage corresponding to each test unit. The target test unit is called to execute the target test case to test the target test function of the charging device to be tested in the target charging stage to obtain the test result of the target test function.

[0081] For example, a charging stage includes multiple test steps, and the multiple test functions can be to execute the same multiple test steps but test different charging results. For example, two test cases both execute test steps 1 to 5, but one test case is used to test the success of the charging stage, and the other test case is used to test the failure of the charging stage; or, different test steps can be executed, for example, one test case executes test steps 1 to 3, and the other test case executes test steps 1 to 5.

[0082] In a possible implementation, the multiple test units include: a version negotiation unit, a function negotiation unit, a charging management unit, and a service statistics unit. If the target test unit is a version negotiation unit, the process of calling the target test unit to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtaining the test result of the target test function of the charging device to be tested in the target charging stage may include:

[0083] The version negotiation unit is called to respectively execute the test steps of the version negotiation phase under multiple version negotiation test cases to test multiple version negotiation functions of the charging device to be tested in the version negotiation phase, and obtain test results of multiple version negotiation functions of the charging device to be tested in the version negotiation phase.

[0084] In this embodiment, the version negotiation unit is used to simulate the process of version negotiation between the vehicle to be charged and the charging device to be tested before formal charging. The vehicle to be charged and the charging device to be tested can only be charged if the versions are consistent.

[0085] The version negotiation unit includes multiple version negotiation test cases. The user can select one or more version negotiation test cases as target version negotiation test cases. The version negotiation unit executes the test steps corresponding to the target version negotiation test cases and tests the target version negotiation function of the charging device to be tested during the version negotiation phase.

[0086] For example, the multiple version negotiation test cases included in the version negotiation unit may include: a version negotiation success test case, a version negotiation failure test case, a version negotiation timeout test case, and the like.

[0087] The version negotiation unit is called to execute a version negotiation success test case, and the test steps executed are: the charging engine establishes a communication link with the charging device to be tested, the charging device to be tested enters the version negotiation stage, the charging device to be tested sends a version negotiation message to the version negotiation unit, the version negotiation message includes the version information supported by the charging device to be tested, the version negotiation unit sets the version information of the simulated vehicle according to the version information supported by the charging device to be tested, and since the test case is a version negotiation success test case, the version information of the simulated vehicle set by the version negotiation unit is consistent with the version information supported by the charging device to be tested, and the version negotiation unit sends a vehicle version negotiation message to the charging device to be tested, the vehicle version negotiation message includes the version information of the simulated vehicle and the version negotiation result, and the version negotiation result indicates that the version negotiation between the version negotiation unit and the charging device to be tested is successful.

[0088] The version negotiation unit is called to execute a version negotiation test failure test case, and the test steps executed are: the charging engine establishes a communication link with the charging device to be tested, the charging device to be tested enters the version negotiation stage, the charging device to be tested sends a version negotiation message to the version negotiation unit, the version negotiation message includes the version information supported by the charging device to be tested, the version negotiation unit sets the version information of the simulated vehicle according to the version information supported by the charging device to be tested, and since the test case is a version negotiation failure test case, the version information of the simulated vehicle set by the version negotiation unit is inconsistent with the version information supported by the charging device to be tested, the version negotiation unit sends a vehicle version negotiation message to the charging device to be tested, the vehicle version negotiation message includes the version information of the simulated vehicle and the version negotiation result, and the version negotiation result indicates that the version negotiation between the version negotiation unit and the charging device to be tested has failed.

[0089] The version negotiation unit is called to execute the version negotiation timeout test case. The test steps executed are: the charging engine establishes a communication link with the charging device under test, the charging device under test enters the version negotiation stage, the charging device under test sends a version negotiation message to the version negotiation unit, and after the version negotiation unit receives the version negotiation version, it does not send a vehicle version negotiation message to the charging device under test within a preset time period. After the preset time period, the charging device under test determines that it has not received the vehicle version negotiation message sent by the version negotiation unit, and determines that the version negotiation has timed out.

[0090] In one possible implementation, Figure 4 Schematic diagram of the charging test method of the charging device provided in the embodiment of the present application Figure 3 ,like Figure 4 As shown, if the target test unit is a function negotiation unit, each test unit before calling the target test unit executes the preset test steps corresponding to each charging stage, including:

[0091] S301. Calling a version negotiation unit to execute a version negotiation success test step in a version negotiation phase.

[0092] The process of calling the target test unit to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtaining the test result of the target test function of the charging device to be tested in the target charging stage, may include:

[0093] S302, calling the function negotiation unit to respectively execute the test steps of the function negotiation phase under the multiple function negotiation test cases, so as to test the multiple function negotiation functions of the charging device to be tested in the function negotiation phase, and obtain the test results of the multiple function negotiation functions of the charging device to be tested in the function negotiation phase.

[0094] In this embodiment, the function negotiation unit is used to simulate the function negotiation process between the vehicle to be charged and the charging device to be tested before formal charging. The vehicle to be charged and the charging device to be tested can only be charged if all necessary functions of each of them in the charging stage are the same.

[0095] The function negotiation unit includes multiple function negotiation test cases. The user can select one or more function negotiation test cases as target function negotiation test cases. The function negotiation unit executes the test steps corresponding to the target function negotiation test cases and tests the target function negotiation function of the charging device to be tested during the function negotiation phase.

[0096] The premise for the vehicle to be charged and the charging device to be tested to conduct functional negotiation is that the version negotiation between the vehicle to be charged and the charging device to be tested is successful. Therefore, before the functional negotiation unit simulates the vehicle to be charged and the charging device to be tested to conduct functional negotiation, the test engine needs to call the version negotiation unit to execute the test steps of the version negotiation success test case, so that the version negotiation between the version negotiation unit and the charging device to be tested is successful. After that, the test engine calls the functional negotiation unit to execute the test steps of the target functional negotiation test case.

[0097] For example, the multiple function negotiation test cases included in the function negotiation unit may include: a function negotiation success test case, a function negotiation failure test case, a function negotiation timeout test case, a next stage confirmation success test case, and a next stage confirmation failure test case.

[0098] The function negotiation unit is called to execute a function negotiation success test case, and the test steps executed are: after the version negotiation with the charging device to be tested is successful, the charging device to be tested enters the function negotiation stage, and the charging device to be tested sends a function negotiation message to the function negotiation unit, and the function negotiation message includes the charging management function information supported by the charging device to be tested. The function negotiation unit sets the charging management function information of the simulated vehicle according to the charging management function information supported by the charging device to be tested. Since the test case is a function negotiation success test case, the charging management function information of the simulated vehicle set by the function negotiation unit is consistent with the charging management function information supported by the charging device to be tested. The function negotiation unit sends a vehicle function negotiation message to the charging device to be tested, and the vehicle function negotiation message includes the charging management function information of the simulated vehicle and the function negotiation result. The function negotiation result indicates that the function negotiation between the function negotiation unit and the charging device to be tested is successful.

[0099] The process of the function negotiation unit executing the function negotiation failure test case and the function negotiation timeout test case is similar to the process of executing the function negotiation success test case, which will not be repeated here.

[0100] After successful functional negotiation, the vehicle to be charged and the charging device to be tested will negotiate whether to enter the next stage, i.e., the charging management stage. Therefore, the functional negotiation unit can simulate the negotiation of successful and failed entry into the next stage through the next stage confirmation success test case and the next stage confirmation failure test case. The next stage confirmation success test case is used as an example for explanation.

[0101] The function negotiation unit is called to execute the next stage confirmation success test case. The test steps executed are: after the version negotiation and function negotiation with the charging device under test are successful, the charging device under test is waited to send a stage request message. The stage request message sent by the charging device under test to the function negotiation unit includes: the information of the next stage, i.e., the charging management function information, to confirm to the function negotiation unit that the charging device under test is ready to enter the charging management stage. After the function negotiation unit receives the stage request message sent by the charging device under test, since the test case is the next stage confirmation success test case, it executes to reply the next stage confirmation success message to the charging device under test, so that the charging device under test is ready to enter the next stage based on the next stage confirmation success message.

[0102] The steps of the next stage confirmation failure test case are basically the same as those of the next stage confirmation success test case, but the function negotiation unit sends a next stage confirmation failure message to the charging device under test, so that the charging device under test ends the charging process.

[0103] In one possible implementation, Figure 5 Schematic diagram of the charging test method of the charging device provided in the embodiment of the present application Figure 4 ,like Figure 5 As shown, if the target test unit is a charging management unit, the test units before calling the target test unit perform preset test steps corresponding to each charging stage, including:

[0104] S401, calling the version negotiation unit to execute a version negotiation success test step in the version negotiation phase.

[0105] S402, calling the function negotiation unit to execute the function negotiation success test step of the function negotiation phase and the first phase confirmation success test step, the first phase being the charging management phase.

[0106] The process of calling the target test unit to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtaining the test result of the target test function of the charging device to be tested in the target charging stage, may include:

[0107] S403, calling the charging management unit to respectively execute the test steps of the charging management phase under the multiple charging management test cases, so as to test the multiple charging management functions of the charging device to be tested in the charging management phase, and obtain the test results of the multiple charging management functions of the charging device to be tested in the charging management phase.

[0108] In this embodiment, the charging management unit is used to simulate the formal charging process of the vehicle to be charged and the charging device to be tested. The charging management unit includes multiple charging management test cases. The user can select one or more charging management test cases as target charging management test cases. The charging management unit executes the test steps corresponding to the target charging management test cases, and tests the target charging management function of the charging device to be tested during the charging management stage.

[0109] The premise for the formal charging of the vehicle to be charged and the charging device to be tested is that the vehicle to be charged and the charging device to be tested have a version negotiation function, successful function negotiation, and the charging management stage is confirmed to be successful. Therefore, before the charging management unit simulates the charging management of the vehicle to be charged and the charging device to be tested, the test engine needs to call the version negotiation unit to execute the test steps of the version negotiation success test case, so that the version negotiation between the version negotiation unit and the charging device to be tested is successful, and also call the function negotiation unit to execute the test steps of the function negotiation success test case, so that the function negotiation unit and the charging device to be tested successfully negotiate the charging management function, and execute the first stage confirmation success test case to determine that both the test engine and the charging device to be tested can enter the charging management stage. After that, the test engine calls the charging management unit to execute the test steps of the target charging management test case.

[0110] In some embodiments, the charging management stage includes: a parameter configuration stage, a system self-check stage and an energy transmission stage, and the charging management unit includes: a parameter configuration unit, a system self-check unit and an energy transmission unit. Among them, the parameter configuration unit, the system self-check unit and the energy transmission unit also execute the test steps of the corresponding test stage in sequence. The next stage of the function negotiation stage is the parameter configuration stage. If you want to enter the parameter configuration stage, the charging management function negotiated in the function negotiation stage needs to include the parameter configuration function; if you want to enter the system self-check stage, the charging management function negotiated in the function negotiation stage needs to include the parameter configuration function and the system self-check function; if you want to enter the energy transmission stage, the charging management function negotiated in the function negotiation stage needs to include the parameter configuration function, the system self-check function and the energy transmission function. The next stage confirmation success test case and the next stage confirmation failure test case of the function negotiation unit are the parameter configuration stage confirmation success test case and the parameter configuration stage confirmation failure test case.

[0111] The multiple parameter configuration test cases included in the parameter configuration unit may include: parameter configuration success test case, parameter configuration failure test case, parameter configuration timeout test case, next stage confirmation success test case, and next stage confirmation failure test case.

[0112] The parameter configuration unit is called to execute the parameter configuration success test case. The test steps performed are as follows: after the version negotiation, function negotiation and parameter configuration phase confirmation with the charging device under test are successful, the charging device under test enters the parameter configuration phase. The charging device under test sends a parameter configuration message to the parameter configuration unit. The parameter configuration message includes the charging parameter thresholds that the charging device under test can provide, such as the maximum charging voltage, the minimum charging voltage, the maximum charging current, the minimum charging current and other parameters. The parameter configuration unit sets the maximum charging parameter and the minimum charging parameter of the simulated vehicle according to the charging parameter thresholds that the charging device under test can provide. Since the test case is a parameter configuration success test case, the maximum charging parameter and the minimum charging parameter set by the parameter configuration unit meet the charging parameter thresholds that the charging device under test can provide. The parameter configuration unit sends a vehicle parameter configuration message to the charging device under test. The vehicle parameter configuration message includes the maximum charging parameter and the minimum charging parameter of the simulated vehicle and the parameter configuration result. The parameter configuration result indicates that the parameter configuration between the parameter configuration unit and the charging device under test is successful.

[0113] The process of the parameter configuration unit executing the parameter configuration failure test case and the parameter configuration timeout test case is similar to the process of executing the parameter configuration success test case. After the charging device under test receives the vehicle parameter result of parameter configuration failure or parameter configuration timeout, it sends a charging termination message to the parameter configuration unit. After receiving the charging termination message, the parameter configuration unit determines that the charging device under test can implement the charging termination function when it cannot meet the charging parameter requirements of the vehicle to be charged.

[0114] After the parameters of the vehicle to be charged and the charging device to be tested are successfully configured, they will negotiate whether to enter the next stage, i.e., the system self-test stage. Therefore, the parameter configuration unit can simulate the negotiation of successful entry into the next stage and failure to enter the next stage through the next stage confirmation success test case and the next stage confirmation failure test case. The next stage confirmation success test case is used as an example for explanation.

[0115] The parameter configuration unit is called to execute the next stage confirmation success test case. The test steps performed are: after successful version negotiation, function negotiation, parameter configuration stage confirmation, and parameter configuration with the charging device under test, wait for the charging device under test to send a stage request message. The stage request message sent by the charging device under test to the parameter configuration unit includes: the next stage information, i.e., the system self-test stage information, to confirm to the parameter configuration unit that the charging device under test is ready to enter the system self-test stage. After the parameter configuration unit receives the stage request message sent by the charging device under test, since the test case is a next stage confirmation success test case, it executes a reply to the charging device under test with a next stage confirmation success message, so that the charging device under test is ready to enter the next stage, i.e., the system self-test stage, based on the next stage confirmation success message.

[0116] The steps of the next stage confirmation failure test case are basically the same as those of the next stage confirmation success test case, but the parameter configuration unit sends a next stage confirmation failure message to the charging device under test, so that the charging device under test ends the charging process.

[0117] The multiple system self-detection trial cases included in the system self-detection unit may include: system self-detection trial cases, next stage confirmation success test cases, and next stage confirmation failure test cases.

[0118] The system self-test unit is called to perform a system self-test trial case. The test steps performed include: after the version negotiation, function negotiation, parameter configuration phase confirmation, parameter configuration, and system self-test phase confirmation are successful with the charging device to be tested, the charging device to be tested enters the system self-test phase. The charging device to be tested first sends a system self-test status message to the system self-test unit. The status of the system self-test status message is undetected. Then, the charging device to be tested starts the system self-test, including insulation detection, short circuit detection, and adhesion detection. The system self-test unit waits for the self-test result message to determine whether the charging device to be tested returns the self-test result message within the preset time period. If the charging device to be tested returns the self-test result message within the preset time period, and the message status is completed, it is determined that the self-test of the charging device to be tested is successful. If the message status is not completed, it is determined that the self-test of the charging device to be tested has failed; if the self-test result message is not received within the preset time period, it is determined that the self-test has timed out. When the system self-test fails or the self-test times out, the charging device to be tested will end the charging process.

[0119] After the system self-check succeeds, the vehicle to be charged and the charging device to be tested will negotiate whether to enter the next stage, i.e., the energy transmission stage. Therefore, the system self-check unit can simulate the negotiation of successful entry into the next stage and failure to enter the next stage through the next stage confirmation success test case and the next stage confirmation failure test case. The next stage confirmation success test case is used as an example for explanation.

[0120] The system self-test unit is called to execute the next stage confirmation success test case. The test steps executed are: after successful version negotiation, function negotiation, parameter configuration stage confirmation, parameter configuration, system self-test stage confirmation, and system self-test with the charging device under test, wait for the charging device under test to send a stage request message. The stage request message sent by the charging device under test to the system self-test unit includes: the next stage information, i.e., the energy transmission stage information, to confirm to the system self-test unit that the charging device under test is ready to enter the energy transmission stage. After the system self-test unit receives the stage request message sent by the charging device under test, since the test case is a next stage confirmation success test case, it executes a reply to the charging device under test with a next stage confirmation success message, so that the charging device under test is ready to enter the next stage, i.e., the energy transmission stage, based on the next stage confirmation success message.

[0121] The steps of the next stage confirmation failure test case are basically the same as those of the next stage confirmation success test case, but the system self-test unit sends a next stage confirmation failure message to the charging device under test, so that the charging device under test ends the charging process.

[0122] The multiple energy transmission test cases included in the energy transmission phase may include: energy transmission success test cases and energy transmission failure test cases.

[0123] The energy transmission unit is called to execute the energy transmission success test case. The test steps performed are: after successful version negotiation, function negotiation, parameter configuration phase confirmation, parameter configuration, system self-test phase confirmation, system self-test, and energy transmission phase confirmation with the charging device under test, the charging device under test enters the energy transmission phase. The energy transmission unit first sends a charging preparation not ready message to the charging device under test to avoid safety problems caused by the charging device under test directly starting energy transmission. After that, the energy transmission unit turns on the simulated battery voltage to the output voltage, sends a vehicle ready message to the charging device under test, waits for the charging device under test to send a ready message, and after receiving the ready message from the charging device under test, periodically sends a charging requirement electrical parameter message to the charging device under test to determine whether the charging device under test can output energy according to the charging requirement electrical parameters. If the charging device under test can output energy according to the charging requirement electrical parameters and the content of the charging parameter message of the charging device under test is filled correctly, it is determined that the energy transmission unit and the charging device under test can maintain the energy transmission phase.

[0124] Different from the energy transmission success test case, in the energy transmission failure test case, during the energy transmission process between the energy transmission unit and the charging device under test, the energy transmission unit will send an abnormal charging message to the charging device under test, such as an error in the charging requirement parameter format, a sending timeout, etc., to determine whether the charging device under test will shut down normally after receiving the abnormal charging message.

[0125] In a possible implementation, the target test unit is a service statistics unit, and the method may further include:

[0126] The service statistics unit is called to respectively execute the test steps of the service statistics phase under multiple service statistics test cases to test multiple service statistics functions of the charging device to be tested in the service statistics phase, and obtain test results of multiple service statistics functions of the charging device to be tested in the service statistics phase.

[0127] In this embodiment, after each target test unit executes the target test case, the test engine calls the service statistics unit, the charging device under test stops the charging process and sends message statistics information of the charging device under test to the service statistics unit, the message statistics information of the charging device under test includes the output parameters of the charging device under test when the charging is stopped, and the service statistics unit sends vehicle message statistics information to the charging device under test, and the vehicle message statistics information includes the charge status of the vehicle when the charging is stopped.

[0128] The multiple service statistics test cases of the service statistics unit may include: a service statistics success test case and a service statistics failure test case.

[0129] Among them, the service statistics success test case is used to send correct vehicle message statistics information to the charging device under test, and the service statistics failure test case is used to simulate message errors, message timeouts, etc. in the process of sending vehicle message statistics information to the charging device under test.

[0130] It should be noted that if the target test unit is not a service statistics unit, the test engine will call the service statistics unit after the target test unit executes the test steps of the corresponding target charging stage, so that the charging device under test stops the charging process and sends a service statistics message to the service statistics unit, and the service statistics unit replies with the correct vehicle statistics message information to the charging device under test; if the target test unit is a service statistics unit, the test engine will generate a correct vehicle service statistics message according to the service statistics success test case when the version negotiation is successful, the function negotiation is successful, the parameter configuration is successful, the system self-test is successful, and the energy transmission is successful, and generate an abnormal service statistics message according to the service statistics failure test case, and then end the charging test process.

[0131] The charging test method for the charging device provided in the above embodiment can simulate various situations of version negotiation function, function negotiation function, parameter configuration function, system self-check function, energy transmission function and service statistics function between the charging device to be tested and the vehicle to be charged, so as to simulate various situations that may be encountered during the charging process between the charging device to be tested and different charging vehicles, so as to improve the compatibility of the charging device to be tested with different electric vehicles on the market, and the test process is automated and the test efficiency is higher.

[0132] Based on the charging test method and charging test system of the charging device provided in the above embodiments, the embodiments of the present application also provide a charging test device. Figure 6 A schematic diagram of a charging test device provided in an embodiment of the present application, such as Figure 6 As shown, the charging test equipment is connected to the charging device to be tested, and the charging test equipment executes the charging test method of the charging equipment to perform a charging test on the charging device to be tested.

[0133] The charging test device may be, for example, a computer device, and the test engine may be, for example, a processor of the charging test device, and the test engine calls the test unit to execute the test case to perform a charging test on the charging device to be tested.

[0134] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A charging test method for a charging device, characterized in that: The method comprises: Obtain a test request, the test request comprising: at least one target test case, and an identifier of a target test unit corresponding to the target test case, the target test unit being any test unit among a plurality of test units corresponding to a plurality of charging stages in a preset charging process; The target test unit is called to execute the test steps of the target test unit corresponding to the target charging stage under the target test case, so as to perform a charging test on the charging device to be tested in the target charging stage, and obtain a test result of the charging device to be tested in the target charging stage.

2. The method according to claim 1, characterized in that Before calling the target test unit to execute the test step of the target test unit corresponding to the target charging stage under the target test case, the method further includes: If the target test unit is not a test unit corresponding to the first charging stage, each test unit before the target test unit is called to execute preset test steps corresponding to each charging stage.

3. The method according to claim 1, characterized in that The target test case includes: ending the test step, calling the target test unit to execute the test step of the target test unit corresponding to the target charging stage under the target test case, including: Calling the target test unit to sequentially execute at least one test step of the target charging phase; Determine whether the current test step is the end test step; If the current test step is not the end test step, continue to execute the next test step; If the current test step is the end test step, it is determined that the target test unit completes the test step of the target charging stage.

4. The method according to claim 1, characterized in that: The target test case is a test case among the multiple test cases of the target test unit, and different test cases of the same test unit are test cases for different test functions of the same test unit in the corresponding charging stage; The calling of the target test unit to execute the test steps of the target test unit corresponding to the target charging stage under the target test case, so as to perform a charging test on the charging device to be tested in the target charging stage, and obtain a test result of the charging device to be tested in the target charging stage, includes: The target test unit is called to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtain a test result of the target test function of the charging device to be tested in the target charging stage.

5. The method according to claim 4, characterized in that The target test unit is a version negotiation unit, and calling the target test unit to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtain a test result of the target test function of the charging device to be tested in the target charging stage, includes: The version negotiation unit is called to respectively execute the test steps of the version negotiation phase under multiple version negotiation test cases, so as to test the multiple version negotiation functions of the charging device to be tested in the version negotiation phase, and obtain the test results of the multiple version negotiation functions of the charging device to be tested in the version negotiation phase.

6. The method according to claim 5, characterized in that The target test unit is a function negotiation unit, and each test unit before calling the target test unit performs preset test steps corresponding to each charging stage, including: Calling the version negotiation unit to execute a version negotiation success test step in the version negotiation phase; The calling of the target test unit to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtain a test result of the target test function of the charging device to be tested in the target charging stage, includes: The function negotiation unit is called to respectively execute the test steps of the function negotiation phase under multiple function negotiation test cases, so as to test multiple function negotiation functions of the charging device to be tested in the function negotiation phase, and obtain the test results of the multiple function negotiation functions of the charging device to be tested in the function negotiation phase.

7. The method according to claim 6, characterized in that The target test unit is a charging management unit, and each test unit before calling the target test unit performs preset test steps corresponding to each charging stage, including: Calling the version negotiation unit to execute a version negotiation success test step in the version negotiation phase; Calling the function negotiation unit to execute the function negotiation success test step of the function negotiation phase and the first phase confirmation success test step, the first phase being the charging management phase; The calling of the target test unit to execute the test steps of the target charging stage under the target test case, so as to perform a charging test on the target test function of the charging device to be tested in the target charging stage, and obtain a test result of the target test function of the charging device to be tested in the target charging stage, includes: The charging management unit is called to respectively execute the test steps of the charging management stage under multiple charging management test cases, so as to test multiple charging management functions of the charging device to be tested in the charging management stage, and obtain test results of the multiple charging management functions of the charging device to be tested in the charging management stage.

8. The method according to claim 7, characterized in that The target test unit is a service statistics unit, and the method further includes: The service statistics unit is called to respectively execute the test steps of the service statistics phase under multiple service statistics test cases, so as to test multiple service statistics functions of the charging device to be tested in the service statistics phase, and obtain the test results of the multiple service statistics functions of the charging device to be tested in the service statistics phase.

9. A charging test system, characterized in that: The charging test system comprises: a test engine, a plurality of test units and a charging device to be tested, wherein the test engine executes the charging test method for the charging device according to any one of claims 1 to 8 to call the plurality of test units to perform a charging test on the charging device to be tested.

10. A charging test device, characterized in that: The charging test device is used to execute the charging test method for a charging device according to any one of claims 1 to 8, and to perform a charging test on the charging device to be tested.