Method and device for automatically testing EOL function of hybrid vehicle
By setting preset test sequences and results, the EOL function of hybrid vehicles is automatically tested, which solves the problem of difficulty in comprehensive testing in traditional tests and ensures the correctness of EOL function and production continuity.
Patent Information
- Application Number
- CN202411151330.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-22
AI Technical Summary
The EOL function of hybrid vehicles is difficult to fully test in traditional tests, resulting in possible problems in the production line, affecting production beats and efficiency.
Using a hybrid vehicle EOL function automatic testing method, by setting preset test sequences and results, injecting faults into the measured controller, simulate testing conditions, collecting and analyzing diagnostic information, comparing actual and preset results to judge that the test passes .
Effectively ensure the correctness of the EOL function of the vehicle-related controller, improve testing efficiency and accuracy, and reduce stagnation caused by functional problems in production.
Smart Images

Figure CN119000122A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of automobiles, in particular to an automatic test method and device for EOL functions of a hybrid vehicle. Background Art
[0002] EOL testing is the last checkpoint for products from the production line to the market, and is crucial to ensuring product quality, improving customer satisfaction and maintaining corporate reputation. However, if the EOL function of the vehicle-related controller is released to the production line without thorough testing, problems will occur during the EOL process and affect the production rhythm, or even cause the production line to be suspended to repair the controller problem, which will greatly affect the continuity and production efficiency of the production line. In order to reduce the impact of problems with the controller's EOL function on the production rhythm, it is necessary to conduct thorough testing during the vehicle development stage and ensure the level of automation to improve testing efficiency and accuracy. In view of the complexity of the vehicle control system of hybrid vehicles, traditional EOL function automatic testing technology cannot be fully borrowed. It is necessary to develop a complete set of hybrid vehicle EOL function automatic testing methods to achieve comprehensive testing of the controller EOL function during the development stage and discover and solve problems in advance. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a hybrid vehicle EOL function automatic testing method, which can comprehensively test the EOL function of the vehicle-related controller and effectively ensure the correctness of the EOL function of the vehicle-related controller.
[0004] According to a first aspect of an embodiment of the present invention, a hybrid vehicle EOL function automatic testing method includes: Set preset test sequences and preset test results; Injecting relevant faults into the controller under test according to the preset test sequence; Sending a corresponding EOL function required diagnosis request to the controller under test according to the preset test sequence; According to the preset test sequence, simulate the EOL function test conditions and the actual situation of the fault for the controller under test; Collecting and analyzing the diagnostic information fed back by the tested controller to obtain actual test results; The actual test result is compared and analyzed with the preset test result to determine whether the test is passed.
[0005] The hybrid vehicle EOL function automatic testing method according to the embodiment of the present invention has at least the following beneficial effects: The present invention injects relevant faults into the controller under test according to a preset test sequence; sends a corresponding diagnostic request required for the EOL function to the controller under test according to the preset test sequence; simulates the EOL function test conditions and the actual situation of the fault to the controller under test according to the preset test sequence; collects and analyzes the diagnostic information fed back by the controller under test to obtain the actual test result; compares and analyzes the actual test result with the preset test result to determine whether the test is passed. The present invention comprehensively tests the EOL function of the vehicle-related controller and effectively ensures the correctness of the EOL function of the vehicle-related controller.
[0006] According to some embodiments of the present invention, sending a corresponding EOL function required diagnosis request to the controller under test according to the preset test sequence includes: According to the preset test sequence, the diagnostic service function test of establishing communication, reading the information of the tested controller, writing the relevant information of the controller, reading the fault information and stopping the communication is carried out in sequence.
[0007] According to some embodiments of the present invention, comparing and analyzing the actual test result with the preset test result to determine whether the test is passed includes: Whether the diagnostic service function test has passed is determined by collecting the feedback diagnostic information of the controller under test.
[0008] According to some embodiments of the present invention, sending a corresponding EOL function required diagnosis request to the controller under test according to the preset test sequence includes: A control request for related components is sent to the controller under test, and the controller under test responds to the request and controls the related components to execute according to the preset state.
[0009] According to some embodiments of the present invention, comparing and analyzing the actual test result with the preset test result to determine whether the test is passed includes: Confirm and collect the actual status of the relevant components of the controller under test to determine whether the component control function test has passed the EOL offline process.
[0010] According to some embodiments of the present invention, comparing and analyzing the actual test result with the preset test result to determine whether the test is passed includes: By reading and clearing fault information, it is determined whether the functional tests of fault identification, fault code storage and fault code clearing have passed.
[0011] According to some embodiments of the present invention, injecting relevant faults into the controller under test according to the preset test sequence includes: Set the controller under test to the vehicle controller; The accelerator pedal fault, brake pedal fault, water temperature sensor fault, charging connection fault, CAN communication fault, LIN communication fault, water pump, fan body fault, control pin circuit fault, and thermal management relay fault are set as the related faults.
[0012] According to some embodiments of the present invention, simulating the EOL functional test conditions and the actual situation of the fault for the controller under test according to the preset test sequence includes: Simulate the sensor status of the accelerator pedal and brake pedal, the communication status with the motor controller and battery management system, the IO interface status of the thermal management relay, the PWM interface status of the fan and water pump, and the LIN communication status with the water valve and charging indicator light.
[0013] According to a second aspect of an embodiment of the present invention, a hybrid vehicle EOL function automatic test device comprises: A test sequence generation module is used to set a preset test sequence and preset test results; A test environment simulation module, used to simulate EOL functional test conditions and actual fault conditions for the controller under test according to the preset test sequence; A fault injection module, used for injecting relevant faults into the controller under test according to the preset test sequence; A diagnostic service request module, used for sending a corresponding diagnostic request required for the EOL function to the controller under test according to the preset test sequence; The data acquisition and analysis module is used to collect and analyze the diagnostic information fed back by the controller under test to obtain the actual test results; and compare and analyze the actual test results with the preset test results to determine whether the test is passed.
[0014] According to a third aspect of an embodiment of the present invention, a computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the hybrid vehicle EOL function automatic test method.
[0015] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The present invention will be further described below with reference to the accompanying drawings and embodiments, wherein: Figure 1 A schematic diagram of the steps of the hybrid vehicle EOL function automatic testing method of the present invention; Figure 2 It is a control schematic diagram of the vehicle controller of the present invention; Figure 3 It is a schematic diagram of the hybrid vehicle EOL function automatic testing device of the present invention. DETAILED DESCRIPTION
[0017] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0018] In the description of the present invention, it should be understood that descriptions involving orientation, such as orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0019] In the description of the present invention, "a plurality" means more than two. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0020] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0021] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described below are only some embodiments of the present invention, not all embodiments.
[0022] In order to reduce the impact of controller EOL function problems on production cycle, it is necessary to conduct thorough testing in the vehicle development stage and ensure the level of automation to improve test efficiency and accuracy. In view of the complexity of the hybrid vehicle control system, the traditional EOL function automatic testing method cannot be fully borrowed, and a complete hybrid vehicle EOL function automatic testing method needs to be developed.
[0023] like Figure 1 As shown, the hybrid vehicle EOL function automatic testing method according to the embodiment of the present invention comprises the following steps: Step S100: setting a preset test sequence and preset test results; Step S200: injecting relevant faults into the controller under test according to a preset test sequence; Step S300: sending a corresponding EOL function required diagnosis request to the controller under test according to a preset test sequence; Step S400: simulating EOL function test conditions and actual fault conditions for the controller under test according to a preset test sequence; Step S500: collecting and analyzing the diagnostic information fed back by the tested controller to obtain actual test results; Step S600: Compare and analyze the actual test results with the preset test results to determine whether the test is passed.
[0024] The present invention injects relevant faults into the controller under test according to a preset test sequence; sends a corresponding diagnostic request required for the EOL function to the controller under test according to the preset test sequence; simulates the EOL function test conditions and the actual situation of the fault to the controller under test according to the preset test sequence; collects and analyzes the diagnostic information fed back by the controller under test to obtain the actual test result; compares and analyzes the actual test result with the preset test result to determine whether the test is passed. The present invention comprehensively tests the EOL function of the vehicle-related controller and effectively ensures the correctness of the EOL function of the vehicle-related controller.
[0025] In this embodiment of the present invention, the controller under test is set as a vehicle controller, such as Figure 2 As shown in the figure, the vehicle controller is mainly responsible for identifying the driver's operation (accelerator pedal, brake pedal, gear information), calculating the driver's required torque, receiving relevant component information and fault information sent by the engine, drive motor, generator, battery and other controllers through CAN communication, sending control instructions to relevant controllers, coordinating and controlling all components to operate in an orderly manner, realizing functions such as hybrid drive and brake energy recovery, and ensuring that the vehicle operates safely and reliably according to the driver's needs in the event of a fault. The vehicle controller can also control the motor water pump, battery water pump, heater water pump and water valve to ensure the normal operation of the vehicle cooling system, and when the motor water pump, battery water pump and heater water pump fail, they will be fed back to the vehicle controller by pulling down the PWM control pin, and the vehicle controller can judge the water pump failure through the control pin. In addition, the vehicle controller also has the EOL offline function, which can identify relevant faults during the offline process and guide troubleshooting to ensure that qualified products are delivered to users.
[0026] The hybrid vehicle EOL function automatic testing method of the present invention comprehensively tests the EOL functions of the vehicle controller, including diagnostic services, EOL offline process component control, fault identification, fault code storage, and fault code clearing, and effectively ensures the correctness of the EOL function of the vehicle controller. When testing the diagnostic service of the vehicle controller, the diagnostic service function test of establishing communication, reading the controller information under test, writing controller-related information, reading fault information, and stopping communication is carried out in sequence according to the preset test sequence. The diagnostic information fed back by the vehicle controller is collected to determine whether the test has passed.
[0027] When testing the control function of the vehicle controller on the components, a request is sent to the vehicle controller through the 2F service. The vehicle controller responds to the request and controls the water pump, fan, water valve and charging indicator light to the expected state. The actual state of the vehicle controller controlling the relevant components is confirmed through the 22 service to determine whether the test passes.
[0028] When testing the fault identification, fault code storage, and fault code clearing of the vehicle controller, sensor faults, IO faults, PWM interface faults, CAN communication, and LIN communication faults are injected in sequence, the fault information is read through service 19, and the fault information is cleared through service 14 to determine whether the test passes.
[0029] like Figure 3 As shown, the present invention also provides an automatic test device for EOL function of a hybrid vehicle, comprising: a test sequence generation module, a test environment simulation module, a fault injection module, a diagnostic service request module and a data acquisition and analysis module, wherein the test sequence generation module is used to set a preset test sequence and a preset test result; the test environment simulation module is used to simulate the EOL function test conditions and the actual situation of the fault to the whole vehicle controller according to the preset test sequence; the fault injection module is used to inject relevant faults into the whole vehicle controller according to the preset test sequence; the diagnostic service request module is used to send the corresponding diagnostic request required for the EOL function to the whole vehicle controller according to the preset test sequence; the data acquisition and analysis module is used to collect and analyze the diagnostic information fed back by the whole vehicle controller to obtain the actual test result; and the actual test result is compared and analyzed with the preset test result to determine whether the test is passed.
[0030] Among them, the test sequence generation module can automatically generate a preset test sequence according to the EOL functional requirement document of the vehicle controller. The preset test sequence mainly defines the order of test execution to ensure that the test is carried out according to the established logic and sequence to avoid confusion in test execution. It mainly includes establishing communication, reading vehicle controller information, writing controller-related information, controlling related components, reading fault information, stopping communication, etc. The test sequence generation module plays a core coordination and management role. It can schedule the test environment simulation module, fault injection module, diagnostic service request module, and data acquisition and analysis module in a predetermined order to complete the key steps of automated testing.
[0031] The test environment simulation module is mainly responsible for providing the environment for the EOL function test of the vehicle controller, including simulating the sensor status of the accelerator pedal, brake pedal, etc., the communication status with key components such as the motor controller and battery management system, the IO interface status of the thermal management relay, the PWM interface status of the fan, water pump, etc., and the LIN communication status with the water valve, charging indicator light, etc. The test environment module can implement operations such as IG power-on and IG power-off according to the requirements of the test sequence module, and can also simulate the actual state of the fault according to the request of the fault injection module, where the motor controller includes the generator controller and the drive motor controller.
[0032] The fault injection module is mainly responsible for injecting sensor faults, IO faults, PWM interface faults, CAN communication and LIN communication faults according to the requirements of the test sequence module, and simulating the real situation of various faults through the test environment module, which can effectively detect the fault identification ability, fault storage ability and diagnostic service response ability of the vehicle controller. The relevant faults mainly include but are not limited to accelerator pedal faults (sensor power supply voltage exceeds the upper limit, sensor power supply voltage exceeds the lower limit, sensor voltage exceeds the upper limit, sensor voltage exceeds the lower limit), brake pedal faults (brake pedal difference fault, brake failure fault), water temperature sensor faults (sensor voltage exceeds the upper limit, sensor voltage exceeds the lower limit), charging connection faults, CAN communication faults, LIN communication faults, water pumps, fan body faults and control pin circuit faults, thermal management relay faults (low power supply, adhesion, thermal management relay output pin short circuit to power supply, short circuit to ground, open circuit), etc.
[0033] The diagnostic service request module is mainly responsible for sending the corresponding diagnostic requests required by the EOL function to the module under test according to the requirements of the test sequence module, mainly including but not limited to diagnostic session control (10 service), ECU reset (11 service); clear diagnostic information (14 service), read DTC information (19 service), read data through identifier (22 service), security access (27 service), communication control (28 service), write data through identifier (2E service), input and output control through identifier (2F service), routine control (31 service), etc.
[0034] The data acquisition module is mainly responsible for collecting the diagnostic information fed back by the vehicle controller in real time, comparing and analyzing it with the expected test results, and then determining whether the test has passed and finally outputting a test report.
[0035] Although the controller under test mentioned in the present invention is a vehicle controller, for other controllers, the automatic testing device can be applied to automatically test the EOL functions of other controllers by only optimizing the test sequence module and the test environment module according to the EOL function requirements.
[0036] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements the above-mentioned hybrid vehicle EOL function automatic testing method.
[0037] The computer-readable storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, but is not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.
[0038] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0039] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0040] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0041] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0042] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A hybrid vehicle EOL function automatic testing method, characterized in that: include: Set preset test sequences and preset test results; Injecting relevant faults into the controller under test according to the preset test sequence; Sending a corresponding EOL function required diagnosis request to the controller under test according to the preset test sequence; According to the preset test sequence, simulate the EOL function test conditions and the actual situation of the fault for the controller under test; Collecting and analyzing the diagnostic information fed back by the tested controller to obtain actual test results; The actual test result is compared and analyzed with the preset test result to determine whether the test is passed.
2. The hybrid vehicle EOL function automatic test method according to claim 1, characterized in that: The sending a corresponding EOL function required diagnosis request to the controller under test according to the preset test sequence includes: According to the preset test sequence, the diagnostic service function test of establishing communication, reading the information of the tested controller, writing the relevant information of the controller, reading the fault information and stopping the communication is carried out in sequence.
3. The hybrid vehicle EOL function automatic test method according to claim 2, characterized in that: The comparing and analyzing the actual test result with the preset test result to determine whether the test is passed includes: Whether the diagnostic service function test has passed is determined by collecting the feedback diagnostic information of the controller under test.
4. The hybrid vehicle EOL function automatic testing method according to claim 1, characterized in that: The sending a corresponding EOL function required diagnosis request to the controller under test according to the preset test sequence includes: A control request for related components is sent to the controller under test, and the controller under test responds to the request and controls the related components to execute according to the preset state.
5. The hybrid vehicle EOL function automatic testing method according to claim 4, characterized in that: The comparing and analyzing the actual test result with the preset test result to determine whether the test is passed includes: Confirm and collect the actual status of the relevant components of the controller under test to determine whether the component control function test has passed the EOL offline process.
6. The hybrid vehicle EOL function automatic testing method according to claim 1, characterized in that: The comparing and analyzing the actual test result with the preset test result to determine whether the test is passed includes: By reading and clearing fault information, it is determined whether the functional tests of fault identification, fault code storage and fault code clearing have passed.
7. The hybrid vehicle EOL function automatic test method according to claim 1, characterized in that: The injecting relevant faults into the controller under test according to the preset test sequence comprises: Set the controller under test to the vehicle controller; The accelerator pedal fault, brake pedal fault, water temperature sensor fault, charging connection fault, CAN communication fault, LIN communication fault, water pump, fan body fault, control pin circuit fault, and thermal management relay fault are set as the related faults.
8. The hybrid vehicle EOL function automatic test method according to claim 7, characterized in that: The simulating of EOL functional test conditions and actual fault conditions for the controller under test according to the preset test sequence includes: Simulate the sensor status of the accelerator pedal and brake pedal, the communication status with the motor controller and battery management system, the IO interface status of the thermal management relay, the PWM interface status of the fan and water pump, and the LIN communication status with the water valve and charging indicator light.
9. A hybrid vehicle EOL function automatic test device, characterized in that: include: A test sequence generation module is used to set a preset test sequence and preset test results; A test environment simulation module, used to simulate EOL functional test conditions and actual fault conditions for the controller under test according to the preset test sequence; A fault injection module, used for injecting relevant faults into the controller under test according to the preset test sequence; A diagnostic service request module, used for sending a corresponding diagnostic request required for the EOL function to the controller under test according to the preset test sequence; The data acquisition and analysis module is used to collect and analyze the diagnostic information fed back by the controller under test to obtain the actual test results; and compare and analyze the actual test results with the preset test results to determine whether the test is passed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the hybrid vehicle EOL function automatic testing method according to any one of claims 1 to 8.
