CN-121978429-A - High-voltage power-on and power-off testing method and device
Abstract
The invention relates to the technical field of new energy automobiles and provides a high-voltage power-on and power-off testing method and device, wherein the method comprises the steps of constructing a testing flow chart of a high-voltage power-on and power-off test based on a preset step graph library and a pre-generated signal library, wherein the testing flow chart comprises step graph elements in the step graph library and signal operation texts in the signal library corresponding to step nodes; analyzing the step types and signal operation texts of each step node in the test flow chart, converting the test flow chart into a corresponding test step sequence, and calling the executors corresponding to each test step in the test step sequence in turn so as to finish the high-voltage power-on and power-off test. The invention solves the problems that the test flow is solidified and can not be flexibly adjusted according to the scene, and improves the flexibility and the user participation of the high-voltage power-on and power-off test.
Inventors
- XIE HAIMING
- WANG SHIJIA
- WANG YAOJUN
- LIU CONGLIN
Assignees
- 北京峰智睿联科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251211
Claims (10)
- 1. A method for high voltage power up and down electrical testing, comprising: Constructing a test flow chart of a high-voltage power-on and power-off test based on a preset step graphic library and a pre-generated signal library, wherein the test flow chart comprises step graphic elements in the step graphic library and signal operation texts in the signal library corresponding to step nodes; Analyzing step types and signal operation texts of all step nodes in the test flow chart, and converting the test flow chart into a corresponding test step sequence; And sequentially calling the executors corresponding to the test steps in the test step sequence to finish the high-voltage power-on and power-off test.
- 2. The method for testing high-voltage power on and off as recited in claim 1, wherein the step of constructing a test flow chart of the high-voltage power on and off test based on a preset step pattern library and a pre-generated signal library comprises: Step nodes of different synchronous types dragged by a user are drawn on a graphical interface, and signal operation texts dragged by a signal library are edited in the step nodes; and drawing connection relations among the nodes of each step to obtain a test flow chart of the high-voltage power-on and power-off test.
- 3. The method for high-voltage power-on and power-off measurement according to claim 2, further comprising, after editing the signal operation text dragged by the signal library in the step node: and configuring step parameters for the step nodes, wherein the step parameters comprise at least one of a step execution time threshold value, an expected signal value and a judging condition.
- 4. The method for testing the high voltage on and off as set forth in claim 1, wherein analyzing the step types and the signal operation texts of each step node in the test flow chart, converting the test flow chart into a corresponding test step sequence includes: Determining an instruction format based on the step type of each step node; Extracting execution actions and execution signal objects in signal operation texts corresponding to the nodes of each step; Matching action codes corresponding to the execution actions, wherein the execution signal objects are parameters of the action codes; generating instruction codes from the action codes according to corresponding instruction formats, wherein each instruction code corresponds to one test step; And arranging corresponding instruction codes according to the sequence of each step node in the test flow chart to generate a test step sequence.
- 5. The method for testing high-voltage power on and off as recited in claim 1, further comprising, before constructing a test flow chart of the high-voltage power on and off test based on a preset step pattern library and a pre-generated signal library: selecting a CAN card equipment type for high-voltage power-on and power-off test, and configuring CAN channel parameters according to the equipment type; And importing a DBC file corresponding to the CAN card, and extracting all signals in the DBC file to form the signal library.
- 6. The method of any one of claims 1 to 5, further comprising, after sequentially invoking the actuators corresponding to each test step in the sequence of test steps to complete the high-voltage power-on and power-off test: And generating a test report according to the test result of the high-voltage power-on and power-off, wherein the test report comprises at least one of test success, total test time consumption, test log record and key signal change curve.
- 7. A high voltage power-on and power-off test device, comprising: The flow chart construction module is used for constructing a test flow chart of the high-voltage power-on and power-off test based on a preset step graph library and a pre-generated signal library, wherein the test flow chart comprises step graph elements in the step graph library and signal operation texts in the signal library corresponding to the step nodes; the test step sequence conversion module is used for analyzing the step types and the signal operation texts of each step node in the test flow chart and converting the test flow chart into a corresponding test step sequence; and the executor calling module is used for sequentially calling the executors corresponding to the test steps in the test step sequence so as to finish the high-voltage power-on and power-off test.
- 8. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the processor implements the high voltage power up-down electrical test method according to any one of claims 1 to 6 when executing the computer program.
- 9. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the high voltage up-down electrical test method according to any of claims 1 to 6.
- 10. A computer program product comprising a computer program which, when executed by a processor, implements the method of high voltage power up and down measurement according to any one of claims 1 to 6.
Description
High-voltage power-on and power-off testing method and device Technical Field The invention relates to the technical field of new energy automobiles, in particular to a high-voltage on-off electric testing method and device. Background Along with the rapid development of new energy automobile technology, the high-voltage power-on and power-off function is taken as a core link of safe operation of the whole automobile, and the test and verification work of the high-voltage power-on and power-off function is particularly important, but the current test of the high-voltage system of the new energy automobile faces multiple challenges. Firstly, the electronic and electric architectures of different manufacturers have obvious differences, so that the requirements of communication protocols, signal definition and power on and power off time sequences among the controllers are different. Secondly, the high voltage power-up and power-down process involves a number of safety critical steps including contactor control, accessory control, fault handling, etc., each of which requires accurate timing control and status monitoring. In addition, with the development of new energy technology, the high-voltage power-on and power-off functions and functions such as charging management and a thermal management system generate complex interaction relation, so that the complexity of testing is further increased. The traditional high-voltage power-on and power-off electric test method mainly relies on fixed test scripts and manual tests, and the test procedures are solidified in the program in the form of test codes, so that the complex and changeable test requirements are difficult to deal with. The test engineer needs to write a specific test code for each vehicle model, which has the disadvantages of large workload, low efficiency and easy introduction of human errors. More importantly, when the test requirements change or a new test scene is discovered, the existing test system often needs to carry out large-scale code modification, and a test engineer cannot flexibly adjust the test flow according to the scene, so that the necessary flexibility and expandability are lacking. Disclosure of Invention The invention provides a high-voltage power-on and power-off electric testing method and device, which are used for solving the problems that in the prior art, a testing flow is solidified, cannot be flexibly adjusted according to a scene, and lacks necessary flexibility and expandability. The invention provides a high-voltage power-on and power-off electric test method, which comprises the following steps: Constructing a test flow chart of a high-voltage power-on and power-off test based on a preset step graphic library and a pre-generated signal library, wherein the test flow chart comprises step graphic elements in the step graphic library and signal operation texts in the signal library corresponding to step nodes; Analyzing step types and signal operation texts of all step nodes in the test flow chart, and converting the test flow chart into a corresponding test step sequence; And sequentially calling the executors corresponding to the test steps in the test step sequence to finish the high-voltage power-on and power-off test. According to the high-voltage power-on and power-off testing method provided by the invention, a testing flow chart of the high-voltage power-on and power-off testing is constructed based on a preset step graph library and a pre-generated signal library, and the method comprises the following steps: Step nodes of different synchronous types dragged by a user are drawn on a graphical interface, and signal operation texts dragged by a signal library are edited in the step nodes; and drawing connection relations among the nodes of each step to obtain a test flow chart of the high-voltage power-on and power-off test. According to the high-voltage power-on and power-off testing method provided by the invention, after editing the signal operation text dragged by the signal library in the step node, the method further comprises the following steps: and configuring step parameters for the step nodes, wherein the step parameters comprise at least one of a step execution time threshold value, an expected signal value and a judging condition. According to the high-voltage power-on and power-off testing method provided by the invention, the step types and the signal operation texts of all the step nodes in the testing flow chart are analyzed, and the testing flow chart is converted into a corresponding testing step sequence, which comprises the following steps: Determining an instruction format based on the step type of each step node; Extracting execution actions and execution signal objects in signal operation texts corresponding to the nodes of each step; Matching action codes corresponding to the execution actions, wherein the execution signal objects are parameters of the action codes; generating instruction