Vehicle body domain controller pressure test method and device

By receiving target instructions in the vehicle body domain controller stress testing system and controlling the equipment cyclically verified test cases based on different strategies, the problem of high cost and low efficiency in the existing technology is solved, and low-cost and efficient stress testing is achieved.

CN120276920APending Publication Date: 2025-07-08DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510249582.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-04
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

The existing stress testing methods for body domain controllers are costly and inefficient, making it difficult to effectively improve the testing efficiency.

Method used

The upper computer receives the target stress test instructions, determines the target strategy based on the function, transmission layer and flashing pressure test strategy, and controls the pressure test equipment to cycle to verify the test cases on the equipment to be tested until the preset number or duration is reached, and the target stress test results are obtained.

Benefits of technology

Low-cost automated stress testing is realized, which improves testing efficiency and reduces labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276920A_ABST
    Figure CN120276920A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle body domain controller pressure testing method and device, relates to the technical field of vehicle-mounted testing, and discloses a vehicle body domain controller pressure testing method, the method is applied to a vehicle body domain controller pressure testing system, and the system comprises an upper computer and a pressure testing device which are connected. The method comprises the following steps: receiving a target pressure test instruction through an upper computer; determining a target pressure test strategy from a function pressure test strategy, a transport layer pressure test strategy and a flash pressure test strategy based on the target pressure test instruction; controlling the to-be-tested equipment to be powered on through the pressure test equipment; and controlling the pressure test equipment to cyclically verify the target test case on the to-be-tested equipment based on the target pressure test strategy until the verification frequency reaches a preset test frequency or the verification duration reaches a preset test duration, thereby obtaining a target pressure test result. According to the scheme, the pressure testing efficiency of the vehicle body domain controller can be improved with low cost through the pressure testing system of the vehicle body domain controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle-mounted testing, and particularly to a method and device for pressure testing of a body domain controller. Background Art

[0002] The pressure test of the body domain controller is an essential link in the development process of the body domain controller. By simulating the software and hardware environment of actual applications and the system load during the user's usage process, the test software is run for a long time or under an extremely large load to test the performance, reliability, stability, etc. of the controller under test. The pressure test is the main inspection means to ensure the reliability and stability of software and hardware.

[0003] Currently, there are two solutions for the pressure test of the body domain controller. One is to perform the test through a Hardware-in-the-Loop (HIL) device. The controller is connected to the HIL device, and the HIL device simulates the whole vehicle to perform a pressure test on the controller. The other is to perform the test on a real vehicle, and the pressure test is carried out through manual operation on the real vehicle. However, the former occupies the resources of the HIL device and has a high cost, while the latter mainly relies on manual operation and real vehicle resources, resulting in high equipment and labor costs, low efficiency, and easy errors. How to improve the efficiency of the pressure test of the body domain controller at low cost has become a problem to be solved.

[0004] The above content is only used to assist in understanding the technical solution of the present application and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main purpose of the present application is to provide a method and device for pressure testing of a body domain controller, aiming to solve the technical problem of how to improve the efficiency of the pressure test of the body domain controller at low cost.

[0006] To achieve the above purpose, the present application proposes a method for pressure testing of a body domain controller. The method for pressure testing of the body domain controller is applied to a pressure testing system for the body domain controller, and the pressure testing system for the body domain controller includes a host computer and a pressure testing device connected to each other;

[0007] The method for pressure testing of the body domain controller includes:

[0008] Receiving a target pressure test instruction through the host computer;

[0009] Determining a target pressure test strategy from a functional pressure test strategy, a transport layer pressure test strategy, and a flashing pressure test strategy based on the target pressure test instruction;

[0010] Controlling the device under test to power on through the pressure testing device;

[0011] Based on the target stress test strategy, control the stress test device to repeatedly verify the target test cases on the device under test until the number of verifications reaches the preset number of tests or the verification duration reaches the preset test duration, obtaining the target stress test result.

[0012] In one embodiment, the step of based on the target stress test strategy, controlling the stress test device to repeatedly verify the target test cases on the device under test until the number of verifications reaches the preset number of tests or the verification duration reaches the preset test duration, obtaining the target stress test result, includes:

[0013] When the target stress test strategy is a functional stress test strategy, determine the target test cases from the power-on / off stress test cases, load power consumption stress test cases, analog / digital quantity stress test cases, and bus stress test cases based on the functional stress test strategy;

[0014] Control the stress test device to repeatedly verify the target test cases on the device under test until the number of verifications reaches the preset number of tests or the verification duration reaches the preset test duration, obtaining the target stress test result.

[0015] In one embodiment, the step of controlling the stress test device to repeatedly verify the target test cases on the device under test until the number of verifications reaches the preset number of tests or the verification duration reaches the preset test duration, obtaining the target stress test result, includes:

[0016] When the target test case is one of the power-on / off stress test case, the load power consumption stress test case, and the analog / digital quantity stress test case, control the stress test device to repeatedly verify the target test case on the device under test until the number of verifications reaches the preset number of tests, obtaining the target stress test result;

[0017] When the target test case is the bus stress test case, control the stress test device to repeatedly verify the bus stress test case on the device under test until the verification duration reaches the preset test duration, obtaining the target stress test result.

[0018] In one embodiment, the step of when the target test case is one of the power-on / off stress test case, the load power consumption stress test case, and the analog / digital quantity stress test case, controlling the stress test device to repeatedly verify the target test case on the device under test until the number of verifications reaches the preset number of tests, obtaining the target stress test result, includes:

[0019] When the target test case is the power-on / off stress test case, obtain the first power-on duration of the device under test;

[0020] Obtain the verification times of the power-on and power-off pressure test cases to get the first verification times;

[0021] When the first power-on duration reaches the preset power-on duration, based on the power-on and power-off pressure test cases, control the pressure test device to detect the output situation of the device under test for the first preset input to obtain the first input-output test result;

[0022] Control the device under test to power off through the pressure test device and update the first verification times;

[0023] When the power-off duration of the device under test reaches the preset power-off duration, return to the step of controlling the device under test to power on through the pressure test device until the first verification times reach the preset test times;

[0024] Determine the target pressure test result based on the first input-output test result.

[0025] In one embodiment, when the target test case is one of the power-on and power-off pressure test cases, the load power consumption pressure test case, and the analog-digital quantity pressure test case, the step of controlling the pressure test device to circularly verify the target test case on the device under test until the verification times reach the preset test times to obtain the target pressure test result includes:

[0026] When the target test case is the load power consumption pressure test case, control the power consumption of the device under test to reach the target power through the pressure test device and obtain the second power-on duration of the device under test;

[0027] Obtain the verification times of the load power consumption pressure test cases to get the second verification times;

[0028] When the second power-on duration reaches the preset power-on duration, based on the load power consumption pressure test case, control the pressure test device to detect the power consumption state of the device under test to obtain the power consumption state detection result;

[0029] Control the pressure test device to detect the output situation of the device under test for the first preset input to obtain the second input-output test result;

[0030] Control the device under test to power off through the pressure test device and update the second verification times;

[0031] Return to the step of controlling the device under test to power on through the pressure test device until the second verification times reach the preset test times;

[0032] Determine the target pressure test result based on the electricity consumption status detection result and the second input / output test result.

[0033] In one embodiment, when the target test case is one of the power-on / off pressure test case, the load power consumption pressure test case, and the analog / digital quantity pressure test case, the step of controlling the pressure test device to repeatedly verify the target test case on the device under test until the verification times reach the preset test times to obtain the target pressure test result includes:

[0034] When the target test case is the analog / digital quantity pressure test case, obtain the third power-on duration of the device under test;

[0035] Obtain the verification times of the analog / digital quantity pressure test case to get the third verification times;

[0036] When the third power-on duration reaches the preset power-on duration, based on the analog / digital quantity pressure test case, control the pressure test device to detect the output situation of the device under test for the second preset input to obtain the analog / digital test result;

[0037] Control the device under test to power off through the pressure test device and update the third verification times;

[0038] Return to the step of controlling the device under test to power on through the pressure test device until the third verification times reach the preset test times;

[0039] Determine the target pressure test result based on the analog / digital test result.

[0040] In one embodiment, the verification duration includes the bus load test duration;

[0041] When the target test case is the bus pressure test case, the step of controlling the pressure test device to repeatedly verify the bus pressure test case on the device under test until the verification duration reaches the preset test duration to obtain the target pressure test result includes:

[0042] When the target test case is the bus pressure test case, obtain the fourth power-on duration of the device under test;

[0043] When the fourth power-on duration reaches the preset power-on duration, based on the bus pressure test case, control the pressure test device to send a bus message to the device under test to make the bus load rate reach the preset ratio;

[0044] Control the pressure test device to detect the output of the device under test for the third preset input, and obtain the bus load test result until the bus load test duration reaches the preset test duration;

[0045] Determine the target pressure test result based on the bus load test result.

[0046] In one embodiment, the verification duration includes the duration of continuously sending diagnostic instructions;

[0047] The step of controlling the pressure test device to repeatedly verify the target test case on the device under test based on the target pressure test strategy until the verification times reach the preset test times or the verification duration reaches the preset test duration, and obtaining the target pressure test result includes:

[0048] When the target pressure test strategy is the transport layer pressure test strategy, determine the transport layer pressure test case as the target test case, and obtain the fifth power-on duration of the device under test;

[0049] When the fifth power-on duration reaches the preset power-on duration, control the pressure test device to continuously send diagnostic instructions to the device under test at a preset time interval based on the transport layer pressure test case, and obtain the diagnostic response result through the pressure test device until the duration of continuously sending the diagnostic instructions reaches the preset test duration;

[0050] Determine the target pressure test result based on the diagnostic response result.

[0051] In one embodiment, the step of controlling the pressure test device to repeatedly verify the target test case on the device under test based on the target pressure test strategy until the verification times reach the preset test times or the verification duration reaches the preset test duration, and obtaining the target pressure test result includes:

[0052] When the target pressure test strategy is the flashing pressure test strategy, determine the flashing pressure test case as the target test case, and obtain the sixth power-on duration of the device under test;

[0053] Obtain the verification times of the flashing pressure test case to get the fourth verification times;

[0054] When the sixth power-on duration reaches the preset power-on duration, control the pressure test device to perform software flashing on the device under test based on the flashing pressure test case, and when the software flashing is completed, control the device under test to power off through the pressure test device;

[0055] Update the fourth verification times, and obtain the software flashing result;

[0056] Return to the step of controlling the device under test to power on through the pressure test device until the fourth verification count reaches the preset test count;

[0057] Determine the target pressure test result based on the software flashing result.

[0058] In addition, to achieve the above object, the present application also proposes a pressure test device for a body domain controller, the pressure test device for the body domain controller includes:

[0059] An instruction receiving module, configured to receive a target pressure test instruction through a host computer;

[0060] A strategy determination module, configured to determine a target pressure test strategy from a functional pressure test strategy, a transport layer pressure test strategy, and a flashing pressure test strategy based on the target pressure test instruction;

[0061] A device power-on module, configured to control the device under test to power on through a pressure test device;

[0062] A result acquisition module, configured to control the pressure test device to cyclically verify a target test case on the device under test based on the target pressure test strategy until the verification count reaches the preset test count or the verification duration reaches the preset test duration, so as to obtain a target pressure test result.

[0063] In addition, to achieve the above object, the present application also proposes a pressure test device for a body domain controller, the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program is configured to implement the steps of the pressure test method for the body domain controller as described above.

[0064] In addition, to achieve the above object, the present application also proposes a storage medium, the storage medium is a computer-readable storage medium, a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the pressure test method for the body domain controller as described above are implemented.

[0065] In addition, to achieve the above object, the present application also provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the pressure test method for the body domain controller as described above are implemented.

[0066] One or more technical solutions proposed by the present application have at least the following technical effects:

[0067] Receive a target pressure test instruction through the host computer; determine a target pressure test strategy from a functional pressure test strategy, a transport layer pressure test strategy, and a flashing pressure test strategy based on the target pressure test instruction; control the device under test to power on through the pressure test device; control the pressure test device to repeatedly verify a target test case on the device under test based on the target pressure test strategy until the verification times reach a preset test times or the verification duration reaches a preset test duration, so as to obtain a target pressure test result. According to the target pressure test instruction received by the host computer, this solution controls the pressure test device to repeatedly verify the corresponding target test case on the device under test, can automatically complete the pressure test, effectively improve the test efficiency, and reduce the test labor cost. Description of the Drawings

[0068] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present application or in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0070] Figure 1 It is a schematic flowchart provided for Embodiment 1 of the pressure test method for the body domain controller of the present application;

[0071] Figure 2 It is a schematic block diagram of the system provided for Embodiment 1 of the pressure test method for the body domain controller of the present application;

[0072] Figure 3 It is a schematic diagram of the HIL test system structure provided for Embodiment 1 of the pressure test method for the body domain controller of the present application;

[0073] Figure 4 It is a schematic diagram of the interface of the host computer software provided for Embodiment 1 of the pressure test method for the body domain controller of the present application;

[0074] Figure 5 It is a flowchart for test start provided for Embodiment 1 of the pressure test method for the body domain controller of the present application;

[0075] Figure 6 It is a schematic flowchart provided for Embodiment 2 of the pressure test method for the body domain controller of the present application;

[0076] Figure 7 It is a schematic flowchart provided for Embodiment 3 of the pressure test method for the body domain controller of the present application;

[0077] Figure 8 It is a schematic flowchart of the pressure test method for the body domain controller provided in the third embodiment of this application;

[0078] Figure 9 It is a schematic diagram of the module structure of the pressure test device for the body domain controller in the embodiment of this application;

[0079] Figure 10 It is a schematic diagram of the device structure of the hardware operating environment involved in the pressure test method for the body domain controller in the embodiment of this application.

[0080] The implementation, functional features and advantages of this application will be further described with reference to the embodiments and the accompanying drawings. Specific Embodiments

[0081] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not used to limit this application.

[0082] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a pressure test system for the body domain controller, etc. that can implement the above functions. Hereinafter, the pressure test system for the body domain controller will be taken as an example to illustrate this embodiment and the following embodiments.

[0083] Based on this, the embodiment of this application provides a pressure test method for the body domain controller, referring to Figure 1 , Figure 1 It is a schematic flowchart of the first embodiment of the pressure test method for the body domain controller of this application.

[0084] In this embodiment, the pressure test method for the body domain controller includes steps S10 to S40:

[0085] Step S10, receiving a target pressure test instruction through the host computer;

[0086] It should be noted that the pressure test method for the body domain controller of this application is applied to a pressure test system for the body domain controller, and the pressure test system for the body domain controller at least includes a host computer and a pressure test device connected to each other. Referring to Figure 2 , Figure 2 It is a system structure block diagram provided in the first embodiment of the pressure test method for the body domain controller of this application. As Figure 2As shown in the figure, the body domain controller pressure test system not only includes a host computer 1 and a pressure test device 2 connected to each other, but also includes a power supply 3. The pressure test system has built-in test cases, instruction sending, and data collection, and can automatically complete the pressure test and display the data and information during the test process. Specifically, the host computer 1 is connected to the pressure test device 2 through USB, and the pressure test device 2 can be connected to the equipment under test (EUT) through the controller harness. After the host computer and the controller are connected to the power supply 3, the power supply 3 can supply power to the host computer and the equipment under test.

[0087] In addition, it should be noted that existing solutions often perform pressure tests through HIL (Hardware-in-the-Loop) devices. The controller is connected to the HIL, and the HIL simulates the vehicle environment, and the controller is subjected to pressure tests by increasing the frequency, quantity, amplitude, etc. Refer to Figure 3 , Figure 3 is a schematic diagram of the HIL test system structure provided for the first embodiment of the body domain controller pressure test method of this application. As Figure 3 shown, the large cabinet on the left is the HIL test device, which includes hardware and software for simulating the vehicle environment and can simulate various sensor inputs, actuator outputs, and network communications. BOB (Break-Out Box) is a device used for testing and measuring systems, which allows multiple signals or power lines to be connected to a central point for easy testing and troubleshooting. In the HIL test system, the BOB is used to convert the signals of the HIL device into signals suitable for the controller interface to ensure correct signal transmission. The controller is the actual hardware of the electronic control unit to be tested, and its performance and response will be evaluated in the test. The calibration tool is used to calibrate the controller, which involves adjusting the controller parameters to optimize the performance or meet specific test conditions. The peripherals can be simulated sensors, actuators, or other devices that interact with the controller, and are simulated through the HIL system to provide a real input and output environment. The host computer is used to run the test software and monitor the test process. The test engineer can set test parameters, start the test, monitor data, and analyze results through this interface. However, the pressure test based on HIL devices involves a large number of devices and high costs.

[0088] It should be understood that the host computer 1 can be a PC or other operating system test terminal. The host computer software installed on the host computer 1 is a program developed independently, which can implement key functions such as hardware port call, background processing, and report generation, and is compatible with low-cost boards commonly used in the market. During the process of performing the body domain controller pressure test, the host computer 1 can implement functions such as human-computer interaction, test input, test process monitoring, display, and manual test control. Refer to Figure 4 , Figure 4This is a schematic diagram of the interface of the host computer software provided by Embodiment 1 of the body domain controller pressure test method of this application. As Figure 4 shown, the host computer software interface of the body domain controller pressure test system includes a display area and an operation area. Among them, the display area is used to display in real time the bus signals, digital signals, analog signals, digital-analog signals, and test process information, test result progress information, test result information, and other test-related information sent by the EUT under test. The operation area is used for human-computer interaction during automatic testing, such as test case selection. The pressure test device 2 is used to collect and send CAN messages, digital signals, analog signals, and digital-analog signals, etc., to simulate different test environments and control the device under test to work in different test scenarios.

[0089] In addition, it should be noted that the EUT, that is, the device under test, is the CAN network controller to be tested. Before performing the body domain controller pressure test on the EUT, it is necessary to first perform a CAN bus single-node test on it. After being evaluated by a professional engineer, the pressure test is then carried out. The target pressure test instruction is the pressure test selection instruction input by the user received through the operation area of the host computer 1 software interface.

[0090] Step S20, determine the target pressure test strategy from the functional pressure test strategy, the transport layer pressure test strategy, and the flashing pressure test strategy based on the target pressure test instruction;

[0091] It should be noted that this solution provides three options for test categories, namely: functional pressure test, transport layer (Transport Protocol Layer, TP) pressure test, and flashing pressure test. Among them, the functional pressure test comes from the software crash problem of the application software that occurred during the development process, corresponding to the functional pressure test strategy; the TP layer pressure test comes from the TP layer software crash problem that occurred during the development process, corresponding to the transport layer pressure test strategy; the flashing pressure test comes from the occasional problem of upgrade failure that occurred during the development process, corresponding to the flashing pressure test strategy. After receiving the target pressure test instruction, that is, the pressure test selection instruction input by the user, through the operation area of the host computer 1 software interface, the corresponding strategy will be determined from the functional pressure test strategy, the transport layer pressure test strategy, and the flashing pressure test strategy as the target pressure test strategy to verify the corresponding test cases according to the target pressure test strategy.

[0092] Step S30, control the device under test to power on through the pressure test device;

[0093] It should be understood that during the testing process, the device under test needs to be powered on to enter the test state. Specifically, after starting the target pressure test strategy, the host computer 1 will run the corresponding test script, and send a power-on signal to the EUT through the pressure test device 2 to control the power-on of the device under test.

[0094] Step S40, based on the target pressure test strategy, control the pressure test device to repeatedly verify the target test case on the device under test until the verification times reach the preset test times or the verification duration reaches the preset test duration, and obtain the target pressure test result.

[0095] It should be noted that different target pressure test strategies correspond to different target test cases. Among them, the functional pressure test strategy corresponds to four target test cases, and the transport layer pressure test strategy and the flashing pressure test strategy each correspond to one target test case. Refer to Figure 5 , Figure 5 This is the test start flow chart provided for the first embodiment of the pressure test method for the body domain controller of the present application. As Figure 5 shown, connect the EUT harness under test to the pressure test device 2, and the pressure test device 2 will provide functions such as power supply, analog and digital signal interaction, and data acquisition for the EUT. Power on the EUT through the host computer 1. The host computer can be a PC, which can be a test terminal for other operating systems, or can be further connected to a local area network or a wide area network up to the cloud server through USB. Select the corresponding test case in the operation area of the software interface of the host computer 1 and start the test.

[0096] In addition, it should be noted that there are two conditions for ending the loop for the target test case, that is, ending the test when the verification times reach the preset test times, or ending the test when the verification duration reaches the preset test duration. The verification times are the total number of times the target test case is executed, the verification duration is the total duration of the execution of the target test case, and the preset test times and the preset test duration are set end thresholds. Exemplarily, the preset test times should be set to at least 10,000 times, and the preset test duration should be at least 1,000 hours.

[0097] It should be understood that the target pressure test result is used to indicate whether the expected result is obtained after repeatedly verifying the target test case on the device under test. If the expected result is obtained, it is determined that the target pressure test result is a pass, and the test pass information is displayed through the display area of the software interface of the host computer 1. If the result does not meet the expected result, it is determined that the target pressure test result is a fail, and the test fail information is displayed through the display area of the software interface of the host computer 1. The test fail information includes the comparison information between the actual test result and the expected result. The test pass information and the test fail information can be generated in the form of a report.

[0098] In a feasible implementation, step S40 may include steps S411 to S412:

[0099] Step S411, when the target pressure test strategy is a functional pressure test strategy, determine a target test case from the power-on / power-off pressure test cases, load power consumption pressure test cases, analog / digital quantity pressure test cases, and bus pressure test cases based on the functional pressure test strategy;

[0100] It should be noted that the four target test cases corresponding to the functional pressure test strategy are respectively the power-on / power-off pressure test cases, load power consumption pressure test cases, analog / digital quantity pressure test cases, and bus pressure test cases. After receiving the selection instruction for the functional pressure test input by the user, these four test cases will be displayed to the user in the operation area of the software interface of the host computer 1 for the user to select, and the corresponding target test case will be executed according to the user's selection. When the user selects a test case, one or more target test cases can be checked and sorted according to needs, and the corresponding target test cases will be verified on the device to be tested in sequence according to the user's selection.

[0101] Step S412, control the pressure test device to repeatedly verify the target test case on the device to be tested until the verification times reach the preset test times or the verification duration reaches the preset test duration, and obtain the target pressure test result.

[0102] It should be understood that there are two conditions for ending the loop for the target test case of the functional pressure test, that is, ending the test when the verification times reach the preset test times, or ending the test when the verification duration reaches the preset test duration. The verification times are the total number of times the target test case is executed, the verification duration is the total duration of the execution of the target test case, and the preset test times and the preset test duration are set end thresholds. Exemplarily, the preset test times should be set to at least 10,000 times, and the preset test duration should be at least 1,000 hours.

[0103] In a feasible implementation, step S412 may include steps S4121 to S4122:

[0104] Step S4121, when the target test case is one of the power-on / power-off pressure test case, the load power consumption pressure test case, and the analog / digital quantity pressure test case, control the pressure test device to repeatedly verify the target test case on the device to be tested until the verification times reach the preset test times, and obtain the target pressure test result;

[0105] It should be noted that for the power-on and power-off pressure test cases, load power consumption pressure test cases, and analog and digital quantity pressure test cases in the functional pressure test, the condition for ending the loop is to end the test when the verification times of the test cases reach the preset test times. Exemplarily, the preset test times should be set to at least 10,000 times.

[0106] In a feasible implementation manner, step S4121 may include: when the target test case is a power-on and power-off pressure test case, obtaining the first power-on duration of the device under test; obtaining the verification times of the power-on and power-off pressure test case to obtain the first verification times; when the first power-on duration reaches the preset power-on duration, controlling the pressure test device to detect the output situation of the device under test for the first preset input based on the power-on and power-off pressure test case to obtain the first input-output test result; controlling the device under test to power off through the pressure test device and updating the first verification times; when the power-off duration of the device under test reaches the preset power-off duration, returning to the step of controlling the device under test to power on through the pressure test device until the first verification times reach the preset test times; determining the target pressure test result based on the first input-output test result.

[0107] It should be noted that the above steps correspond to the loop verification process of the power-on and power-off pressure test case. Among them, the first power-on duration is the duration of waiting after the pressure test device 2 controls the device under test to power on, that is, after the pressure test device 2 sends a power-on signal to the EUT (device under test). During this period, the EUT is allowed to complete the startup process, including internal system initialization, hardware self-check, device startup program, etc., to ensure that the EUT has enough time to complete the required initialization steps after power-on. The preset power-on duration should be relatively short and can be set to 10 seconds. The first verification times is the number of power-on and power-off cycles experienced by the EUT during the verification of the power-on and power-off pressure test case recorded by the system after the user selects the power-on and power-off pressure test case in the operation area of the software interface of the upper computer 1.

[0108] Additionally, it should be noted that the first preset input includes digital signals, analog signals, and bus signals. Among them, the digital signal is a binary (0 and 1) control signal, such as a switch signal, specifically, it can be a signal for controlling the headlight switch, a signal for controlling the door switch, etc. The analog signal is a control signal of a continuous numerical variable, specifically, it can be an air-conditioning temperature control signal. The bus signal is a data transmission signal of communication protocols such as CAN bus and LIN bus. When detecting the output situation of the device under test for the first preset input, it will be detected whether the input and output of the EUT digital signal, analog signal, and bus signal conform to the EUT function definition, and the first input-output test result will be obtained to ensure that the EUT can perform correct output according to the input signal, and the characteristics of the obtained output signal (such as voltage, current, data transmission rate, etc.) conform to the function design and function specifications.

[0109] It should be understood that after obtaining the first input-output test result, that is, after completing the signal detection, the host computer 1 will send a power-off signal to the EUT through the pressure test device 2 to control the power-off of the device under test, and increment the first verification count by one through a counter to obtain the updated first verification count. After the device under test is powered off, the power-off duration of the device under test will be recorded and waited until the power-off duration reaches the preset power-off duration, and then the step of controlling the device under test to power on through the pressure test device will be returned to enter the next cycle of verifying the power-on and power-off pressure test case. The preset power-off duration is relatively long and can be set to 10 minutes. This period is used to simulate the static or non-working state of the EUT after power-off to ensure that no abnormal phenomena will occur to the EUT during a long period after power-off.

[0110] Additionally, it should be understood that after the power-on and power-off pressure test case is cyclically verified to reach the preset test times, it will be determined whether the device under test passes the power-on and power-off pressure test according to each verification result of the test case, that is, the first input-output test result. Specifically, the expected result for the power-on and power-off pressure test is that the EUT can be powered off / on normally each time, and after the power-on and power-off state is switched, the input and output of the digital signal, analog signal, and bus signal conform to the function definition.

[0111] Exemplarily, the verification process of the power-on and power-off pressure test case is as follows: B11, the host computer 1 sends a power-on signal to the EUT through the pressure test device 2; B12, wait for 10 seconds; B13, the host computer 1 detects whether the input and output of the EUT digital signal, analog signal, and bus signal conform to the EUT function definition through the pressure test device 2; B14, the host computer 1 sends a power-off signal to the EUT through the pressure test device 2; B15, wait for 10 min; B16, repeat steps B11 - B15 for 10,000 times.

[0112] In this embodiment, through multiple power-on and power-off tests based on the power-on and power-off pressure test cases, it is checked whether the EUT can operate stably continuously under long-term and high-frequency power-on and power-off cycles. Especially during the continuous power-on and power-off process, it is checked whether the EUT has situations such as abnormal startup failure, abnormal operation failure, or damage. At the same time, the performance of the device under test is verified through a large number of cycle tests, and the response time, signal stability, and other key indicators of the input and output of digital signals, analog signals, and bus signals are evaluated to ensure that the functions of the EUT are not affected when the power switch is operated and meet the design requirements.

[0113] In a feasible embodiment, step S4121 may include: when the target test case is a load power consumption pressure test case, controlling the power consumption of the device under test by the pressure test device to reach the target power, and obtaining the second power-on duration of the device under test; obtaining the verification times of the load power consumption pressure test case to obtain the second verification times; when the second power-on duration reaches the preset power-on duration, controlling the pressure test device to detect the power consumption state of the device under test based on the load power consumption pressure test case to obtain a power consumption state detection result; controlling the pressure test device to detect the output situation of the device under test for a first preset input to obtain a second input / output test result; controlling the pressure test device to power off the device under test and updating the second verification times; returning to the step of controlling the pressure test device to power on the device under test until the second verification times reach the preset test times; determining the target pressure test result based on the power consumption state detection result and the second input / output test result.

[0114] It should be noted that the above steps correspond to the cycle verification process of the load power consumption pressure test case. The load power consumption pressure test case corresponds to verifying the working condition of the device under test under large-load power consumption. The target power is a high power, such as a power consumption of more than 120W. During the process of controlling the power consumption of the device under test by the pressure test device to reach the target power, the host computer 1 can instruct the pressure test device 2 to adjust the output power so that the pressure test device 2 adjusts parameters such as the current and voltage of the device under test, and realizes the load control of the EUT by simulating the change of the load.

[0115] It should be understood that the second power-on duration is the duration of waiting after the device under test is powered on by the pressure test device 2. The preset power-on duration should be short and can be set to 10 seconds. The second verification count is the number of power-on and power-off cycles experienced by the EUT during the process of verifying the load power consumption pressure test case after the user selects the load power consumption pressure test case in the operation area of the software interface of the host computer 1. When detecting the power consumption state of the device under test, data will be collected and fed back to the host computer 1, and the working state data of the EUT (such as power, load, temperature, current, voltage, etc.) will be displayed in real time through the display area to detect whether the high-power power consumption state of the EUT is normal and controllable, and obtain the power consumption state detection result.

[0116] In addition, it should be noted that the first preset input includes digital signals, analog signals, and bus signals. Among them, the digital signal is a binary (0 and 1) control signal, such as a switch signal, specifically, it can be a signal for controlling the headlight switch, a signal for controlling the door switch, etc. The analog signal is a control signal of a continuous numerical variable, specifically, it can be an air-conditioning temperature control signal. The bus signal is a data transmission signal of communication protocols such as CAN bus and LIN bus. When detecting the output situation of the device under test for the first preset input, it will be detected whether the input and output of the digital signal, analog signal, and bus signal of the EUT conform to the EUT function definition, and the second input-output test result will be obtained to ensure that the EUT can perform correct output according to the input signal, and the characteristics of the obtained output signal (such as voltage, current, data transmission rate, etc.) conform to the function design and function specifications.

[0117] It should be understood that after obtaining the second input-output test result, that is, after completing the signal detection, the host computer 1 will send a power-off signal to the EUT through the pressure test device 2 to control the device under test to power off, and increment the second verification count by one through a counter to obtain the updated second verification count. After the device under test is powered off, return to the step of powering on the device under test through the pressure test device to enter the next cycle of verifying the load power consumption pressure test case.

[0118] In addition, it should be understood that after the load power consumption pressure test case is verified in a loop up to the preset test count, it will be determined whether the device under test passes the load power consumption pressure test according to the verification result of each time of the test case, that is, the power consumption state detection result and the second input-output test result. Specifically, the expected result of the load power consumption pressure test is that the EUT can be powered off / on normally each time, and after the power-on and power-off state switches, the input and output of the digital signal, analog signal, and bus signal conform to the function definition.

[0119] Exemplarily, the verification process of the load power consumption pressure test case is as follows: B21, the host computer 1 sends a power-on signal to the EUT through the pressure test device 2; B22, the host computer 1 sends an instruction to the EUT through the pressure test device 2 to make the EUT in a high-power power consumption state (>120W); B23, wait for 10 seconds; B24, the pressure test device 2 detects whether the high-power power consumption state of the EUT is normal and controllable, and displays each state data on the interface of the host computer 1; B25, the host computer 1 detects whether the input and output of the digital signal, analog signal, and bus signal of the EUT conform to the EUT function definition through the pressure test device 2; B26, the host computer 1 sends a power-off signal to the EUT through the pressure test device 2; B27, repeat steps B21 to B26 for 10,000 times.

[0120] In this embodiment, based on the power consumption load test case, the stability, reliability, and functional integrity of the EUT under high-power load conditions are verified, the performance of the device in a long-term and high-load working environment is simulated, it is ensured that the EUT can be normally powered on and off in a high-power operating state, and after each power supply switch, various signals of the device (including digital signals, analog signals, bus signals) can still meet the predetermined functional requirements. At the same time, key parameters such as the power consumption, temperature, and voltage of the EUT are monitored to ensure that it will not malfunction, overheat, or have abnormal functions under extreme load conditions, thereby ensuring the long-term stability and reliability of the device in actual use.

[0121] In a feasible embodiment, step S4121 may include: when the target test case is an analog-digital quantity pressure test case, obtaining the third power-on duration of the device under test; obtaining the verification times of the analog-digital quantity pressure test case to obtain the third verification times; when the third power-on duration reaches the preset power-on duration, controlling the pressure test device to detect the output situation of the device under test for the second preset input based on the analog-digital quantity pressure test case to obtain an analog-digital test result; controlling the device under test to power off through the pressure test device and updating the third verification times; returning to the step of controlling the device under test to power on through the pressure test device until the third verification times reach the preset test times; determining the target pressure test result based on the analog-digital test result.

[0122] It should be noted that the above steps correspond to the loop verification process of the analog-digital pressure test case. The analog-digital pressure test case is used to verify the analog-digital input and output. Among them, the third power-on duration is the duration that the device under test waits after being powered on by the pressure test device 2. The preset power-on duration should be short and can be set to 10 seconds. The third verification count is the number of power-on and power-off cycles that the EUT experiences during the verification of the analog-digital test case after the user selects the analog-digital pressure test case in the operation area of the software interface of the host computer 1.

[0123] In addition, it should be noted that the second preset input includes analog-digital signals. There are two cases for analog-digital signals: one is digital signal input, but its corresponding output should be an analog signal; the other is analog signal input, but its corresponding output should be a digital signal. When detecting the output situation of the device under test for the second preset input, each analog-digital input and output will be detected one by one to see if it conforms to the EUT function definition, and an analog-digital test result will be obtained to ensure that the EUT can output correctly according to the input signal, and the characteristics of the output signal (such as voltage, current, data transmission rate, etc.) conform to the function design and function specifications. Specifically, if the analog input of 2.5V corresponding to a certain analog-digital function definition has a digital output of 1, then when detecting the output situation of this analog-digital input, the pressure test device 2 will give the device under test an analog input of 2.5V and detect whether the output is a digital output of 1. If the output is a digital output of 1, it conforms to the function design and function specifications; if the output is not a digital output of 1, it does not conform to the function design and function specifications and the test fails.

[0124] It should be understood that after obtaining the analog-digital test result, that is, after completing the signal detection, the host computer 1 will send a power-off signal to the EUT through the pressure test device 2 to control the device under test to power off, and increment the third verification count by one through a counter to obtain the updated third verification count. Then return to the step of controlling the device under test to power on through the pressure test device to enter the next loop of verifying the analog-digital pressure test case.

[0125] In addition, it should be understood that after the loop verification of the analog-digital pressure test case reaches the preset test count, it will be determined whether the device under test passes the analog-digital pressure test according to the verification result of each test case, that is, the analog-digital test result. Specifically, the expected result for the analog-digital pressure test is that the EUT can power off / on normally each time, and after the power-on and power-off state switches, each analog-digital input and output conforms to the function definition.

[0126] Exemplarily, the verification process for verifying the analog - digital pressure test case is as follows: B31, the host computer 1 sends a power - on signal to the EUT through the pressure test device 2; B32, wait for 10 seconds; B33, the host computer 1 sends instructions to the EUT through the pressure test device 2, and tests whether each analog - digital input and output of the ECT conforms to the function definition one by one, and displays each status data on the interface of the host computer 1; B34, the host computer 1 sends a power - off signal to the EUT through the pressure test device 2; B35, repeat steps B31 - B34 for 10,000 times.

[0127] In this embodiment, based on the analog - digital test case, it is verified whether the EUT can stably process and respond to different types of input and output signals during repeated power - on and power - off processes, and maintain the normal operation of its functions. The power - on signal is repeatedly sent to the EUT and the responses of analog input, digital output, digital input, and digital output are tested to check whether the device under test can still work as expected under the conditions of long - term and frequent power - on and power - off.

[0128] Step S4122, when the target test case is the bus pressure test case, control the pressure test device to repeatedly verify the bus pressure test case on the device under test until the verification duration reaches the preset test duration, and obtain the target pressure test result.

[0129] It should be noted that for the bus pressure test case of the functional pressure test, the condition for ending the loop is to end the test when the verification duration of the test case reaches the preset test duration. Exemplarily, the preset test duration should be set to at least 1000 hours.

[0130] In a feasible implementation manner, the verification duration includes the bus load test duration; step S4122 may include: when the target test case is the bus pressure test case, obtain the fourth power - on duration of the device under test; when the fourth power - on duration reaches the preset power - on duration, control the pressure test device to send bus messages to the device under test based on the bus pressure test case to make the bus load rate reach the preset ratio; control the pressure test device to detect the output situation of the device under test for the third preset input, obtain the bus load test result until the bus load test duration reaches the preset test duration; determine the target pressure test result based on the bus load test result.

[0131] It should be noted that the above steps correspond to the loop verification process of the bus pressure test case. Among them, the fourth power - on duration is the duration after the pressure test device 2 controls the device under test to power on, that is, the duration after the pressure test device 2 sends a power - on signal to the EUT (device under test) and waits. The preset power - on duration should be short and can be set to 10 seconds.

[0132] In addition, it should be noted that the bus messages include CAN bus messages and LIN bus messages, and these messages can simulate the communication load between various devices in the vehicle network. The bus load rate is the utilization rate of the bus, which is the ratio between the total amount of message data transmitted and the bus capacity. In this process, the host computer 1 can configure the message sending rate, content, and quantity of the pressure test device so that the bus load rate of the EUT reaches a preset ratio. The preset ratio is set relatively large, such as 90%, to simulate whether the EUT can correctly process a large amount of data and maintain stable operation under high load conditions.

[0133] It should be noted that the third preset input includes analog-digital signals and bus signals. Among them, there are two cases for analog-digital signals: one is digital signal input, but its corresponding output should be an analog signal; the other is analog signal input, but its corresponding output should be a digital signal. The bus signal is the data transmission signal of communication protocols such as CAN bus and LIN bus. When detecting the output of the device under test for the third preset input, it will be detected whether the analog-digital and bus signal input and output of the EUT conform to the EUT function definition, and the bus load test result will be obtained to ensure that the EUT can correctly output according to the input signal, and the characteristics of the obtained output signal (such as voltage, current, data transmission rate, etc.) conform to the function design and function specifications.

[0134] It should be understood that when circularly verifying the bus pressure test cases, the pressure test device 2 will be continuously controlled to detect the output of the EUT for the third preset input, and the bus load test result will be obtained until the bus load test duration, that is, the total duration of the execution of the bus test cases, reaches the preset test duration. According to the verification result of each time of the test cases, that is, the bus load test result, it is determined whether the device under test passes the bus pressure test. Specifically, the expected result of the bus test is that for each repeated operation, the analog-digital input and output and bus input and output of the EUT conform to the function definition.

[0135] Exemplarily, the verification process of the bus pressure test cases is as follows: B41, the host computer 1 sends a power-on signal to the EUT through the pressure test device 2; B42, wait for 10 seconds; B43, the host computer 1 sends CAN / LIN bus messages to the EUT through the pressure test device 2 to make the bus load rate reach more than 90%; B44, the host computer 1 sends command control to the EUT through the pressure test device 2 to detect whether the digital input and output and bus input and output of the EUT module conform to the function definition; B45, loop step B44 for at least 1000 hours.

[0136] In this embodiment, based on the bus pressure test cases, the stability and reliability of the device under test under high load and long-term operation conditions are verified.

[0137] This embodiment provides a method for pressure testing a body domain controller. The host computer receives a target pressure test instruction; based on the target pressure test instruction, a target pressure test strategy is determined from a functional pressure test strategy, a transport layer pressure test strategy, and a flashing pressure test strategy; the pressure test device is controlled to power on the device under test; based on the target pressure test strategy, the pressure test device is controlled to repeatedly verify the target test case on the device under test until the verification count reaches a preset test count or the verification duration reaches a preset test duration, obtaining a target pressure test result. According to the target pressure test instruction received by the host computer, this solution controls the pressure test device to repeatedly verify the corresponding target test case on the device under test, can automatically complete the pressure test, effectively improve the test efficiency, and reduce the test labor cost.

[0138] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar content as in the above-mentioned first embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 6 , the verification duration includes the duration of continuously sending diagnostic instructions; step S40 may include steps S421 to S423:

[0139] Step S421, when the target pressure test strategy is a transport layer pressure test strategy, determine the transport layer pressure test case as the target test case, and obtain the fifth power-on duration of the device under test;

[0140] It should be noted that the fifth power-on duration is the duration of powering on the device under test through the pressure test device 2, that is, the duration after the pressure test device 2 sends a power-on signal to the EUT (device under test) and waits.

[0141] Step S422, when the fifth power-on duration reaches the preset power-on duration, based on the transport layer pressure test case, control the pressure test device to continuously send diagnostic instructions to the device under test at a preset time interval, and obtain the diagnostic response result through the pressure test device until the duration of continuously sending the diagnostic instructions reaches the preset test duration;

[0142] It should be understood that the preset power-on duration should be relatively short and can be set to 10 seconds. The preset time interval needs to be extremely short and can be set to 100 ms. The diagnostic instruction is an instruction for fault diagnosis of the EUT, and specifically can be an instruction for obtaining error codes and fault information. The diagnostic response result correspondingly refers to whether the EUT can correctly and completely respond according to the predetermined functional specifications after receiving the diagnostic instruction, such as whether the instruction for obtaining error codes and fault information returns the corresponding status code or error code.

[0143] It should be understood that when loop-verifying the transmission layer stress test cases, the stress test device 2 will be continuously controlled to send diagnostic instructions to the EUT at a preset time interval, and the diagnostic response results will be obtained through the stress test device 2 until the continuous transmission duration of the diagnostic instructions, that is, the total duration of the execution of the transmission layer test cases, reaches the preset test duration. Exemplarily, the preset test duration should be set to at least 1000 hours.

[0144] Step S423, determining the target stress test result based on the diagnostic response results.

[0145] According to the verification result of each test case, that is, the diagnostic response result, it is determined whether the device under test passes the bus stress test. Specifically, for the expected result of the transmission layer test: the EUT should be able to respond to each diagnostic instruction according to the function definition.

[0146] Exemplarily, the verification process of the bus stress test case is as follows: B51, the host computer 1 sends a power-on signal to the EUT through the stress test device 2; B52, wait for 10 seconds; B53, the host computer 1 sends diagnostic instructions to the EUT through the stress test device 2 at intervals of 100 ms without interruption; B54, the host computer 1 detects through the stress test device 2 whether the EUT can respond to the diagnostic instructions according to the function definition; B55, loop steps B53 - B54 for at least 1000 hours.

[0147] This embodiment provides a method for stress testing a body domain controller, which verifies whether the device under test can stably and reliably receive and respond to diagnostic instructions and perform diagnostic operations in a high-frequency and high-load communication environment at the transmission layer based on the transmission layer stress test cases.

[0148] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar content as the above embodiment can be referred to the above introduction and will not be elaborated hereinafter. On this basis, please refer to Figure 7 , step S40 may include steps S431 - S436:

[0149] Step S431, when the target stress test strategy is the flashing stress test strategy, determining the flashing stress test case as the target test case and obtaining the sixth power-on duration of the device under test;

[0150] It should be noted that the sixth power-on duration is the duration after the stress test device 2 controls the device under test to power on, that is, the duration after the stress test device 2 sends a power-on signal to the EUT (device under test). During this period, the EUT is allowed to complete the startup process, including internal system initialization, hardware self-check, device startup program, etc., to ensure that the EUT has enough time to complete the required initialization steps after power-on.

[0151] Step S432: Obtain the verification times of the flashing pressure test case to get the fourth verification times;

[0152] It should be noted that the fourth verification times is the number of times the EUT experiences power-on and power-off cycles during the verification of the flashing pressure test case after the user selects the flashing pressure test case in the operation area of the software interface of the host computer 1.

[0153] Step S433: When the sixth power-on duration reaches the preset power-on duration, control the pressure test device to perform software flashing on the device under test based on the flashing pressure test case, and when the software flashing is completed, control the device under test to power off through the pressure test device;

[0154] It should be noted that the preset power-on duration should be relatively short and can be set to 10 seconds. When controlling the pressure test device to perform software flashing on the device under test, the host computer 1 will upload the new software or firmware to the EUT through the pressure test device 2, upload the new software or firmware to the memory of the EUT, and the EUT runs the flashing program for installation and configuration to simulate the process of software update or firmware upgrade of the EUT.

[0155] It should be understood that after the software flashing of the EUT is completed, the host computer 1 will send a power-off signal to the EUT through the pressure test device 2 to control the EUT to power off, so as to simulate that the flashed software can be correctly saved during the normal shutdown process of the device.

[0156] Step S434: Update the fourth verification times and obtain the software flashing result;

[0157] It should be noted that after the host computer 1 sends a power-off signal to the EUT through the pressure test device 2, the counter will increment the fourth verification times by one to obtain the updated fourth verification times. Through the pressure test device 2, the flashing result of the device can be checked, including verifying whether the device can successfully start the newly flashed software version, whether the software functions work as expected, and whether there are problems such as flashing failure or error, to obtain the software flashing result.

[0158] Step S435: Return to the step of controlling the device under test to power on through the pressure test device until the fourth verification times reaches the preset test times;

[0159] It should be understood that return to the step of controlling the device under test to power on through the pressure test device to enter the next cycle of verifying the software flashing pressure test case until the loop end condition is reached, that is, the fourth verification times reaches the preset test times. Exemplarily, the preset test times should be set to at least 10,000 times.

[0160] Step S436: Determine the target pressure test result based on the software flashing result.

[0161] It should be understood that after the software flashing pressure test cases are loop - verified to reach the preset test times, the target pressure test result will be determined according to the verification result of each test case, that is, the software flashing result, to determine whether the device under test passes the software flashing pressure test. Specifically, the expected result for the software flashing test is: successful flashing every time.

[0162] Exemplarily, the verification process of the software flashing pressure test cases is as follows: B61, the host computer 1 sends a power - on signal to the EUT through the pressure test device 2; B62, wait for 10 seconds; B63, the host computer 1 performs software flashing on the EUT through the pressure test device 2; B64, after the flashing is completed, the host computer 1 sends a power - off signal to the EUT through the pressure test device 2; B65, the host computer 1 detects whether the software flashing of the EUT can be successfully flashed through the pressure test device 2; B66, repeat steps B61 - B65 for 10,000 times.

[0163] In this embodiment, by verifying whether the device under test can successfully complete software flashing and maintain the flashing success rate and device stability under high - frequency power - on and power - off cycles based on the software flashing pressure test cases, the software flashing performance of the device under test under power fluctuations, power outages, etc. can be effectively tested.

[0164] Exemplarily, to help understand the implementation process of the body domain controller pressure test method obtained by combining this embodiment with the above - mentioned Embodiment 1, please refer to Figure 8 , Figure 8 A brief flow schematic diagram of a body domain controller pressure test method is provided. Specifically:

[0165] The host computer obtains the test case selection information through the interface. The test case information is shown in Table 1. After the host computer background initializes the hardware configuration according to the selected test cases, it executes the test cases one by one. The background function of the host computer can be implemented through programming. The host computer determines whether the messages sent by the EUT under test meet the requirements, and at the same time displays the test process and test results on the test process display interface.

[0166] Table 1

[0167]

[0168] It should be noted that the above examples are only for understanding this application and do not constitute a limitation to the body domain controller pressure test method of this application. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.

[0169] The present application also provides a pressure testing device for a body domain controller. Please refer to Figure 9 , the pressure testing device for the body domain controller includes:

[0170] An instruction receiving module 10, configured to receive a target pressure test instruction through a host computer;

[0171] A policy determination module 20, configured to determine a target pressure test policy from a functional pressure test policy, a transport layer pressure test policy, and a flashing pressure test policy based on the target pressure test instruction;

[0172] A device power-on module 30, configured to control the device under test to power on through a pressure test device;

[0173] A result acquisition module 40, configured to control the pressure test device to cyclically verify target test cases on the device under test based on the target pressure test policy until the verification times reach a preset test times or the verification duration reaches a preset test duration, so as to obtain a target pressure test result.

[0174] In an embodiment, the result acquisition module 40 is further configured to, when the target pressure test policy is a functional pressure test policy, determine target test cases from power-on and power-off pressure test cases, load power consumption pressure test cases, analog-to-digital quantity pressure test cases, and bus pressure test cases based on the functional pressure test policy; control the pressure test device to cyclically verify the target test cases on the device under test until the verification times reach a preset test times or the verification duration reaches a preset test duration, so as to obtain a target pressure test result.

[0175] In an embodiment, the result acquisition module 40 is further configured to, when the target test case is one of the power-on and power-off pressure test cases, the load power consumption pressure test cases, and the analog-to-digital quantity pressure test cases, control the pressure test device to cyclically verify the target test cases on the device under test until the verification times reach a preset test times, so as to obtain a target pressure test result; when the target test case is the bus pressure test case, control the pressure test device to cyclically verify the bus pressure test case on the device under test until the verification duration reaches a preset test duration, so as to obtain a target pressure test result.

[0176] In an embodiment, the result acquisition module 40 is further configured to, when the target test case is a power-on and power-off pressure test case, obtain a first power-on duration of the device under test;

[0177] Obtain the verification times of the power-on and power-off pressure test case to obtain a first verification times;

[0178] When the first power-on duration reaches a preset power-on duration, control the pressure test device to detect the output of the device under test for a first preset input based on the power-on and power-off pressure test case, and obtain a first input-output test result; control the device under test to power off through the pressure test device, and update the first verification count; when the power-off duration of the device under test reaches a preset power-off duration, return to the step of controlling the device under test to power on through the pressure test device until the first verification count reaches a preset test count; determine the target pressure test result based on the first input-output test result.

[0179] In one embodiment, the result acquisition module 40 is further configured to, when the target test case is a load power consumption pressure test case, control the power consumption of the device under test to reach a target power through the pressure test device, and obtain a second power-on duration of the device under test; obtain the verification count of the load power consumption pressure test case to obtain a second verification count; when the second power-on duration reaches a preset power-on duration, control the pressure test device to detect the power consumption state of the device under test based on the load power consumption pressure test case to obtain a power consumption state detection result; control the pressure test device to detect the output of the device under test for a first preset input to obtain a second input-output test result; control the device under test to power off through the pressure test device, and update the second verification count; return to the step of controlling the device under test to power on through the pressure test device until the second verification count reaches a preset test count; determine the target pressure test result based on the power consumption state detection result and the second input-output test result.

[0180] In one embodiment, the result acquisition module 40 is further configured to, when the target test case is an analog-to-digital quantity pressure test case, obtain a third power-on duration of the device under test; obtain the verification count of the analog-to-digital quantity pressure test case to obtain a third verification count; when the third power-on duration reaches a preset power-on duration, control the pressure test device to detect the output of the device under test for a second preset input based on the analog-to-digital quantity pressure test case to obtain an analog-to-digital test result; control the device under test to power off through the pressure test device, and update the third verification count; return to the step of controlling the device under test to power on through the pressure test device until the third verification count reaches a preset test count; determine the target pressure test result based on the analog-to-digital test result.

[0181] In one embodiment, the result acquisition module 40 is further configured to, when the target test case is the bus pressure test case, acquire the fourth power-on duration of the device under test; when the fourth power-on duration reaches a preset power-on duration, control the pressure test device to send bus messages to the device under test based on the bus pressure test case, so that the bus load rate reaches a preset ratio; control the pressure test device to detect the output condition of the device under test for a third preset input, obtain a bus load test result until the bus load test duration reaches a preset test duration; and determine a target pressure test result based on the bus load test result.

[0182] In one embodiment, the result acquisition module 40 is further configured to, when the target pressure test strategy is the transport layer pressure test strategy, determine the transport layer pressure test case as the target test case, and acquire the fifth power-on duration of the device under test; when the fifth power-on duration reaches a preset power-on duration, control the pressure test device to continuously send diagnostic instructions to the device under test at a preset time interval based on the transport layer pressure test case, and obtain a diagnostic response result through the pressure test device until the continuous sending duration of the diagnostic instructions reaches a preset test duration; and determine a target pressure test result based on the diagnostic response result.

[0183] In one embodiment, the result acquisition module 40 is further configured to, when the target pressure test strategy is the flashing pressure test strategy, determine the flashing pressure test case as the target test case, and acquire the sixth power-on duration of the device under test; acquire the verification times of the flashing pressure test case to obtain a fourth verification time; when the sixth power-on duration reaches a preset power-on duration, control the pressure test device to perform software flashing on the device under test based on the flashing pressure test case, and when the software flashing is completed, control the device under test to power off through the pressure test device; update the fourth verification time, and acquire a software flashing result; return to the step of controlling the device under test to power on through the pressure test device until the fourth verification time reaches a preset test time; and determine a target pressure test result based on the software flashing result.

[0184] The vehicle body domain controller pressure test device provided in this application adopts the vehicle body domain controller pressure test method in the above embodiment, and can solve the technical problem of how to improve the efficiency of the pressure test of the vehicle body domain controller at low cost. Compared with the prior art, the beneficial effects of the vehicle body domain controller pressure test device provided in this application are the same as those of the vehicle body domain controller pressure test method provided in the above embodiment, and other technical features in the vehicle body domain controller pressure test device are the same as the features disclosed in the method of the above embodiment, and will not be elaborated here.

[0185] The present application provides a pressure testing device for a body domain controller. The pressure testing device for the body domain controller includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the pressure testing method for the body domain controller in the first embodiment above.

[0186] Reference is made below Figure 10 , which shows a schematic structural diagram of a pressure testing device for a body domain controller suitable for implementing the embodiments of the present application. The pressure testing device for the body domain controller in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 10 The pressure testing device for the body domain controller shown is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0187] As Figure 10As shown, the body domain controller pressure test device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the body domain controller pressure test device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the body domain controller pressure test device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a body domain controller pressure test device having various systems, it should be understood that it is not required to implement or have all the shown systems. More or fewer systems may be alternatively implemented or had.

[0188] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are executed.

[0189] The body domain controller pressure test device provided by the present application adopts the body domain controller pressure test method in the above-mentioned embodiment, and can solve the technical problem of how to improve the efficiency of the pressure test of the body domain controller at low cost. Compared with the prior art, the beneficial effects of the body domain controller pressure test device provided by the present application are the same as those of the body domain controller pressure test method provided by the above-mentioned embodiment, and other technical features in the body domain controller pressure test device are the same as the features disclosed in the method of the previous embodiment, and will not be elaborated herein.

[0190] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0191] As described above, the above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all of them should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

[0192] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle body domain controller pressure test method in the above embodiments.

[0193] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0194] The above computer-readable storage medium can be included in the vehicle body domain controller pressure test device; or it can exist separately without being assembled into the vehicle body domain controller pressure test device.

[0195] The above computer-readable storage medium carries one or more programs, which, when executed by the body domain controller pressure test device, cause the body domain controller pressure test device to: receive a target pressure test instruction through the host computer; determine a target pressure test strategy from a function pressure test strategy, a transport layer pressure test strategy, and a flashing pressure test strategy based on the target pressure test instruction; control the device under test to power on through the pressure test device; and control the pressure test device to cyclically verify target test cases on the device under test based on the target pressure test strategy until the verification times reach a preset test times or the verification duration reaches a preset test duration, so as to obtain a target pressure test result.

[0196] Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).

[0197] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0198] The modules described in the embodiments of the present application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.

[0199] The readable storage medium provided by the present application is a computer-readable storage medium, and the computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned body domain controller pressure test method, which can solve the technical problem of how to improve the efficiency of the pressure test of the body domain controller at low cost. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as those of the body domain controller pressure test method provided by the above embodiments, and will not be elaborated here.

[0200] The present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the body domain controller pressure test method as described above are implemented.

[0201] The computer program product provided by the present application can solve the technical problem of how to improve the efficiency of the pressure test of the body domain controller at low cost. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the body domain controller pressure test method provided by the above embodiments, and will not be elaborated here.

[0202] The above are only some embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structural transformation made by using the content of the specification and drawings of the present application under the technical concept of the present application, or direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.

Claims

1. A pressure testing method for a body domain controller, characterized in that, The method for pressure testing a body domain controller is applied to a pressure testing system for a body domain controller. The pressure testing system for the body domain controller includes a host computer and a pressure testing device connected to each other; The method for pressure testing a body domain controller includes: Receiving a target pressure testing instruction through the host computer; Determining a target pressure testing strategy from a functional pressure testing strategy, a transport layer pressure testing strategy, and a flashing pressure testing strategy based on the target pressure testing instruction; Controlling the device under test to be powered on through the pressure testing device; Based on the target pressure testing strategy, controlling the pressure testing device to repeatedly verify a target test case on the device under test until the number of verifications reaches a preset number of test times or the verification duration reaches a preset test duration, to obtain a target pressure testing result.

2. The method according to claim 1, wherein The step of, based on the target pressure testing strategy, controlling the pressure testing device to repeatedly verify a target test case on the device under test until the number of verifications reaches a preset number of test times or the verification duration reaches a preset test duration, to obtain a target pressure testing result, includes: When the target pressure testing strategy is a functional pressure testing strategy, determining a target test case from a power-on / off pressure testing case, a load power consumption pressure testing case, an analog / digital quantity pressure testing case, and a bus pressure testing case based on the functional pressure testing strategy; Controlling the pressure testing device to repeatedly verify the target test case on the device under test until the number of verifications reaches a preset number of test times or the verification duration reaches a preset test duration, to obtain a target pressure testing result.

3. The method according to claim 2, wherein The step of, controlling the pressure testing device to repeatedly verify the target test case on the device under test until the number of verifications reaches a preset number of test times or the verification duration reaches a preset test duration, to obtain a target pressure testing result, includes: When the target test case is one of the power-on / off pressure testing case, the load power consumption pressure testing case, and the analog / digital quantity pressure testing case, controlling the pressure testing device to repeatedly verify the target test case on the device under test until the number of verifications reaches a preset number of test times, to obtain a target pressure testing result; When the target test case is the bus pressure testing case, controlling the pressure testing device to repeatedly verify the bus pressure testing case on the device under test until the verification duration reaches a preset test duration, to obtain a target pressure testing result.

4. The method according to claim 3, wherein The step of, when the target test case is one of the power-on / off pressure testing case, the load power consumption pressure testing case, and the analog / digital quantity pressure testing case, controlling the pressure testing device to repeatedly verify the target test case on the device under test until the number of verifications reaches a preset number of test times, to obtain a target pressure testing result, includes: When the target test case is the power-on / off pressure testing case, obtaining the first power-on duration of the device under test; Obtaining the number of verifications of the power-on / off pressure testing case to obtain a first number of verifications; When the first power-on duration reaches a preset power-on duration, control the pressure test device to detect the output situation of the device under test for a first preset input based on the power-on and power-off pressure test case, and obtain a first input-output test result; Control the device under test to power off through the pressure test device, and update the first verification count; When the power-off duration of the device under test reaches a preset power-off duration, return to the step of controlling the device under test to power on through the pressure test device until the first verification count reaches a preset test count; Determine the target pressure test result based on the first input-output test result.

5. The method according to claim 3, wherein The step of, when the target test case is one of the power-on and power-off pressure test case, the load power consumption pressure test case, and the analog-digital quantity pressure test case, controlling the pressure test device to repeatedly verify the target test case on the device under test until the verification count reaches a preset test count to obtain a target pressure test result includes: When the target test case is the load power consumption pressure test case, control the power consumption of the device under test to reach a target power through the pressure test device, and obtain a second power-on duration of the device under test; Obtain the verification count of the load power consumption pressure test case to obtain a second verification count; When the second power-on duration reaches a preset power-on duration, control the pressure test device to detect the power consumption state of the device under test based on the load power consumption pressure test case, and obtain a power consumption state detection result; Control the pressure test device to detect the output situation of the device under test for a first preset input to obtain a second input-output test result; Control the device under test to power off through the pressure test device, and update the second verification count; Return to the step of controlling the device under test to power on through the pressure test device until the second verification count reaches a preset test count; Determine the target pressure test result based on the power consumption state detection result and the second input-output test result.

6. The method according to claim 3, characterized in that, The step of, when the target test case is one of the power-on and power-off pressure test case, the load power consumption pressure test case, and the analog-digital quantity pressure test case, controlling the pressure test device to repeatedly verify the target test case on the device under test until the verification count reaches a preset test count to obtain a target pressure test result includes: When the target test case is the analog-digital quantity pressure test case, obtain a third power-on duration of the device under test; Obtain the verification count of the analog-digital quantity pressure test case to obtain a third verification count; When the third power-on duration reaches a preset power-on duration, control the pressure test device to detect the output situation of the device under test for a second preset input based on the analog-digital quantity pressure test case, and obtain an analog-digital test result; Control the device under test to power off through the pressure test device, and update the third verification count; Return to the step of controlling the device under test to power on through the pressure test device until the third verification count reaches the preset test count; Determine the target pressure test result based on the analog-digital test result.

7. The method according to claim 3, wherein The verification duration includes the bus load test duration; when the target test case is the bus pressure test case, the step of controlling the pressure test device to repeatedly verify the bus pressure test case on the device under test until the verification duration reaches the preset test duration to obtain the target pressure test result includes: When the target test case is the bus pressure test case, obtain the fourth power-on duration of the device under test; When the fourth power-on duration reaches the preset power-on duration, control the pressure test device to send a bus message to the device under test based on the bus pressure test case so that the bus load rate reaches the preset ratio; Control the pressure test device to detect the output situation of the device under test for the third preset input to obtain the bus load test result until the bus load test duration reaches the preset test duration; Determine the target pressure test result based on the bus load test result.

8. The method according to any one of claims 1 to 7, characterized in that, The verification duration includes the diagnostic instruction continuous sending duration; the step of controlling the pressure test device to repeatedly verify the target test case on the device under test based on the target pressure test strategy until the verification count reaches the preset test count or the verification duration reaches the preset test duration to obtain the target pressure test result includes: When the target pressure test strategy is the transport layer pressure test strategy, determine the transport layer pressure test case as the target test case and obtain the fifth power-on duration of the device under test; When the fifth power-on duration reaches the preset power-on duration, control the pressure test device to continuously send diagnostic instructions to the device under test at a preset time interval based on the transport layer pressure test case, and obtain the diagnostic response result through the pressure test device until the diagnostic instruction continuous sending duration reaches the preset test duration; Determine the target pressure test result based on the diagnostic response result.

9. The method according to any one of claims 1 to 7, characterized in that, The step of controlling the pressure test device to repeatedly verify the target test case on the device under test based on the target pressure test strategy until the verification count reaches the preset test count or the verification duration reaches the preset test duration to obtain the target pressure test result includes: When the target pressure test strategy is the flashing pressure test strategy, determine the flashing pressure test case as the target test case and obtain the sixth power-on duration of the device under test; Obtain the verification count of the flashing pressure test case to obtain the fourth verification count; When the sixth power-on duration reaches the preset power-on duration, control the pressure test device to perform software flashing on the device under test based on the flashing pressure test case, and when the software flashing is completed, control the device under test to power off through the pressure test device; Update the fourth verification count and obtain the software flashing result; Return the step of controlling the device under test to power on through the pressure test device until the fourth verification count reaches the preset test count; Determine the target pressure test result based on the software flashing result.

10. A pressure testing device for a body domain controller, characterized in that, The device includes: An instruction receiving module, configured to receive a target pressure test instruction through a host computer; A policy determination module, configured to determine a target pressure test policy from a functional pressure test policy, a transport layer pressure test policy, and a flashing pressure test policy based on the target pressure test instruction; A device power-on module, configured to control the device under test to power on through a pressure test device; A result acquisition module, configured to control the pressure test device to repeatedly verify a target test case on the device under test based on the target pressure test policy until the verification count reaches the preset test count or the verification duration reaches the preset test duration, so as to obtain a target pressure test result.