Vehicle off-line electric detection test method, device, upper computer, system and medium

By determining the target test type and conducting simulation tests during the off-line electrical inspection of the vehicle, the problem of late discovery and high cost caused by a single communication method is solved, and the support of multiple communication methods is achieved and the reliability of the test results is improved.

CN118641849APending Publication Date: 2024-09-13BEIJING ELECTRIC VEHICLE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410515650.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-26
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In the existing technology, off-line electrical inspection of vehicles is usually carried out through a single communication method, resulting in late discovery of problems and high cost of solution, and over-reliance on the physical environment.

Method used

Provide a testing method for vehicle offline electrical inspection. By obtaining the target test type, determine the simulation test process, and conduct simulation testing of vehicle offline electrical inspection in the simulation environment. It supports CAN communication, CANFD communication, Ethernet communication, etc. A communication method to realize the off-line electrical detection test of the controller itself.

Benefits of technology

Simulation testing improves the reliability of test results, reduces the risks and costs of actual testing, supports conversion of multiple communication protocols and abnormal simulation, and improves the success rate of off-line electrical inspection and the stability of the production line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118641849A
    Figure CN118641849A
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle detection, in particular to a vehicle off-line electric detection test method and device, an upper computer, a system and a medium, and the method comprises the steps: obtaining a target test type of vehicle off-line electric detection; determining a simulation test process according to the target test type; and according to the simulation test process, performing a simulation test of vehicle off-line electric detection to obtain a test result. Therefore, the problems of late problem discovery, high solving cost and the like due to the fact that off-line electric detection is generally realized through a single communication mode in the related technology and excessively depends on a physical environment are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle detection technology, and in particular to a test method, device, host computer, system and medium for off-line electrical inspection of a vehicle. Background Art

[0002] During the production process of the vehicle factory, the vehicle will be inspected offline and the vehicle information will be read and injected. According to the different communication methods, it is divided into CAN communication, CANFD communication and Ethernet communication. In the same vehicle, there may be multiple protocols coordinating and forwarding communications at the same time. It is necessary to conduct sufficient testing and verification in the vehicle design and production process and establish a complete conversion mechanism.

[0003] However, currently, the controller stage usually implements offline electrical inspection through a single communication method, and the offline electrical inspection of vehicles relies on the physical environment such as the complete vehicle and production line equipment. Problems are discovered late and the cost of solving them is high. Summary of the invention

[0004] The present application provides a test method, device, host computer, system and medium for off-line electrical inspection of vehicles, so as to solve the problems that related technologies usually implement off-line electrical inspection through a single communication method, rely too much on the physical environment, and lead to late discovery of problems and high cost of solving them.

[0005] The first aspect of the present application provides a test method for vehicle offline electrical inspection, including the following steps: obtaining a target test type for the vehicle offline electrical inspection; determining a simulation test process according to the target test type; and performing a simulation test of the vehicle offline electrical inspection according to the simulation test process to obtain a test result.

[0006] Optionally, the target test types include vehicle off-line electrical inspection simulation test without protocol conversion, simulation test with protocol conversion and production line abnormality simulation test.

[0007] Optionally, the simulation test without protocol conversion includes: obtaining a first diagnostic command; sending the first diagnostic command to the controller under test, wherein the controller under test responds to the first diagnostic command and feeds back a first diagnostic response result of the first diagnostic command; and analyzing the first diagnostic response result.

[0008] Optionally, the simulation test process that requires a protocol conversion process test includes: obtaining a second diagnostic command of the first target diagnostic protocol; sending the second diagnostic command of the first target diagnostic protocol to the controller to be tested, wherein the controller to be tested converts the second diagnostic command of the first target diagnostic protocol into a second diagnostic command of the second target diagnostic protocol, forwards the second diagnostic command of the second target diagnostic protocol to the virtual controller, the virtual controller responds to the second diagnostic command, and feeds back a second diagnostic response result of the second diagnostic command; the controller to be tested converts the second diagnostic response result of the second target diagnostic protocol into the second diagnostic response result of the first target diagnostic protocol; obtains the second diagnostic response result of the first target diagnostic protocol, and analyzes the second diagnostic response result.

[0009] Optionally, the simulation test process of the production line abnormality test includes: obtaining real data of the production line abnormality; simulating the real production line electrical inspection environment based on the real data; performing abnormal simulation on the controller to be tested and / or the offline electrical inspection equipment in the real production line electrical inspection environment to obtain the test results of the production line abnormality test.

[0010] The second aspect of the present application provides a test device for vehicle offline electrical inspection, including: an acquisition module, used to obtain a target test type for the vehicle offline electrical inspection; a determination module, used to determine a simulation test process according to the target test type; and a testing module, used to perform a simulation test of the vehicle offline electrical inspection according to the simulation test process to obtain a test result.

[0011] The third aspect of the present application provides a host computer, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the program to implement a test method for off-line electrical inspection of a vehicle as described in the above embodiment.

[0012] A fourth aspect of the present application provides a test system for vehicle offline electrical inspection, comprising: a hardware-in-the-loop simulation bench; a controller to be tested, wherein the controller to be tested communicates with the hardware-in-the-loop simulation bench; a host computer, which communicates with the hardware-in-the-loop simulation bench and the controller to be tested, respectively, to obtain a target test type for the vehicle offline electrical inspection, determine a simulation test process according to the target test type, and perform a simulation test of the vehicle offline electrical inspection on the hardware-in-the-loop simulation bench according to the simulation test process to obtain a test result.

[0013] The fifth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement a test method for off-line electrical inspection of a vehicle as described in the above embodiment.

[0014] The sixth aspect of the present application provides a computer program product having a computer program or instructions stored thereon, which, when executed, is used to implement the vehicle offline electrical inspection test method as described in the above-mentioned embodiment.

[0015] Therefore, this application has at least the following beneficial effects:

[0016] The embodiment of the present application can determine the simulation test process according to the target test type, and perform the simulation test of the vehicle offline electrical inspection according to the simulation test process to obtain the test result. If the test result performs well in the simulation test, it can work reliably in the real production line. If the test result is abnormal, it is necessary to improve or debug the controller to be tested and the offline electrical inspection equipment to improve the reliability of the test result. The embodiment of the present application uses the simulation test process to realize the offline electrical inspection test of the controller itself, and supports multiple communication methods such as CAN communication, CANFD communication and Ethernet communication. Therefore, it solves the technical problems that the offline electrical inspection is usually realized by a single communication method in the related technology, which is too dependent on the physical environment, resulting in late discovery of problems and high cost of solving them.

[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0019] Figure 1 A flow chart of a vehicle offline electrical inspection test method provided according to an embodiment of the present application;

[0020] Figure 2 A flow chart of a vehicle offline electrical inspection test method provided according to an embodiment of the present application;

[0021] Figure 3 The present invention is a structural diagram of a vehicle offline electrical inspection test method provided according to an embodiment of the present application;

[0022] Figure 4 A flowchart of a vehicle offline electrical inspection process simulation provided according to an embodiment of the present application;

[0023] Figure 5 A flowchart of a vehicle offline electrical inspection protocol conversion simulation provided according to an embodiment of the present application;

[0024] Figure 6 This is an example diagram of a test device for off-line electrical inspection of a vehicle provided according to an embodiment of the present application;

[0025] Figure 7 A schematic diagram of the structure of a host computer provided according to an embodiment of the present application;

[0026] Figure 8This is an example diagram of a test system for off-line electrical inspection of a vehicle provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0028] During the production process of the vehicle factory, an offline electrical inspection will be carried out when the vehicle leaves the production line to read and inject vehicle information. According to different communication methods, it is divided into CAN communication, CANFD communication and Ethernet communication. Especially now with the development of technology, there will be multiple protocols coordinating and forwarding communications in the same vehicle. If it involves communication protocol conversion (such as converting the Ethernet protocol to CAN or CANFD protocol), problems are very likely to occur during the offline electrical inspection of the production line without preliminary testing. However, the offline electrical inspection of the controller stage is currently mostly implemented with a single communication method, and there is no conversion between multiple communication protocols. In response to this situation, this application simulates the offline electrical inspection process in the controller testing stage to achieve protocol conversion between CAN, CANFD and Ethernet.

[0029] The following describes the test method, device, host computer, system and medium of the vehicle offline electrical inspection of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the offline electrical inspection mentioned in the above background technology is mostly implemented by a single communication method, the present application provides a test method for the vehicle offline electrical inspection. In this method, the simulation test process can be determined according to the target test type, and the simulation test of the vehicle offline electrical inspection is carried out according to the simulation test process to obtain the test result. If the test result performs well in the simulation test, it can work reliably in the real production line. If the test result is abnormal, it is necessary to improve or debug the controller to be tested and the offline electrical inspection equipment, so as to improve the reliability of the test result. The embodiment of the present application realizes the offline electrical inspection test of the controller itself by using the simulation test process, and supports multiple communication methods such as CAN communication, CANFD communication and Ethernet communication. Therefore, it solves the problems that the offline electrical inspection is usually realized by a single communication method in the related technology, and it is too dependent on the physical environment, resulting in late discovery of problems and high cost of solving them.

[0030] Specifically, Figure 1 A flow chart of a vehicle offline electrical inspection test method provided in an embodiment of the present application.

[0031] like Figure 1 As shown, the vehicle offline electrical inspection test method includes the following steps:

[0032] In step S101, a target test type of a vehicle offline electrical inspection is obtained.

[0033] Among them, the target test types can include vehicle off-line electrical inspection simulation tests without protocol conversion, simulation tests requiring protocol conversion, and production line abnormality simulation tests.

[0034] It can be understood that the embodiments of the present application can select the target test type of the vehicle offline electrical inspection according to the test requirements. For example, if the process of the vehicle offline electrical inspection needs to be tested, the target test type can be selected as a simulation test without protocol conversion; for example, if a protocol conversion needs to be performed during the vehicle offline electrical inspection, the target test type can be selected as a protocol conversion simulation test; for example, if a production line abnormality needs to be tested during the vehicle offline electrical inspection, the target test type can be selected as a production line abnormality test.

[0035] In step S102, a simulation test process is determined according to a target test type.

[0036] It can be understood that the embodiments of the present application can determine the simulation test process according to the target test type. By testing in a simulation environment, unexpected situations in actual testing can be avoided, the risks of actual testing can be reduced, and the testing costs can be reduced.

[0037] It should be noted that different target test types correspond to different simulation test processes. The following embodiments will respectively explain the simulation test process of process testing, the simulation test process of protocol conversion testing, and the simulation test process of production line abnormality testing.

[0038] In an embodiment of the present application, a simulation test without protocol conversion includes: obtaining a first diagnostic command; sending the first diagnostic command to a controller under test, wherein the controller under test responds to the first diagnostic command and feeds back a first diagnostic response result of the first diagnostic command; and analyzing the first diagnostic response result.

[0039] Among them, the first diagnostic command can be CAN, LIN, Ethernet, etc., the controller to be tested can be the object to be tested or the actual vehicle controller to be tested, and the first diagnostic response result can be the response of the controller to be tested to the first diagnostic command, which includes status information or other relevant data after the controller executes the command.

[0040] It can be understood that the embodiment of the present application can directly and effectively evaluate the performance and response of the controller under test by sending the acquired first diagnostic command to the controller under test and deeply analyzing the first diagnostic response result fed back thereof, thereby providing a convenient way for performance optimization and troubleshooting of the controller.

[0041] In an embodiment of the present application, a simulation test process requiring a protocol conversion process test includes: obtaining a second diagnostic command of a first target diagnostic protocol; sending the second diagnostic command of the first target diagnostic protocol to a controller to be tested, wherein the controller to be tested converts the second diagnostic command of the first target diagnostic protocol into a second diagnostic command of a second target diagnostic protocol, forwards the second diagnostic command of the second target diagnostic protocol to a virtual controller, and the virtual controller responds to the second diagnostic command and feeds back a second diagnostic response result of the second diagnostic command; the controller to be tested converts the second diagnostic response result of the second target diagnostic protocol into a second diagnostic response result of the first target diagnostic protocol; obtains the second diagnostic response result of the first target diagnostic protocol, and analyzes the second diagnostic response result.

[0042] Among them, the first target diagnostic protocol can be the original diagnostic protocol used or supported by the controller to be tested, the second diagnostic command can be a UDS diagnostic command, etc., the second target diagnostic protocol can be the diagnostic protocol used by the virtual controller, and the second diagnostic response result can be the response of the virtual controller to the second diagnostic command, which includes the status information and related data of the virtual controller.

[0043] It is understandable that the embodiment of the present application obtains the second diagnostic command of the first target diagnostic protocol, sends it to the controller to be tested for protocol conversion, and then forwards it to the virtual controller, analyzes the second diagnostic response result fed back by the virtual controller to evaluate the performance of the controller to be tested during the protocol conversion process, and can effectively simulate the protocol conversion scenario in the actual environment, help testers accurately understand the conversion accuracy, speed and stability of the controller to be tested, and provide strong support for the performance optimization and troubleshooting of the controller. At the same time, through the simulation test method, it can reduce the test cost, improve the test efficiency, and provide a reliable basis for product development and verification.

[0044] In an embodiment of the present application, the simulation test process of the production line abnormality test includes: obtaining real data of the production line abnormality; simulating the real production line electrical inspection environment based on the real data; performing abnormal simulation on the controller to be tested and / or the offline electrical inspection equipment in the real production line electrical inspection environment to obtain the test results of the production line abnormality test.

[0045] Among them, production line abnormalities may be caused by individual differences in controllers, differences in actual vehicle environments, differences in electrical inspection equipment, etc.

[0046] It can be understood that the embodiments of the present application can simulate the actual production line electrical inspection environment, test the controller to be tested and the offline electrical inspection equipment under abnormal conditions, and obtain test results, truly realizing the replacement of multiple parts with a single part, improving the test coverage and the reliability of the test results, thereby improving the success rate of offline electrical inspection of the production line, and improving the stability of the production line and product quality.

[0047] In step S103, a simulation test of the vehicle offline electrical inspection is performed according to the simulation test process to obtain a test result.

[0048] It can be understood that the embodiments of the present application can perform simulation tests on vehicle offline electrical inspections according to the simulation test process to obtain test results. If the test results perform well in the simulation test, they can work reliably in the actual production line. If the test results are abnormal, it is necessary to improve or debug the controller to be tested and the offline electrical inspection equipment to improve the reliability of the test results.

[0049] According to the test method for vehicle offline electrical inspection proposed in the embodiment of the present application, the simulation test process is determined according to the target test type, and the simulation test of the vehicle offline electrical inspection is carried out according to the simulation test process to obtain the test result. If the test result performs well in the simulation test, it can work reliably in the real production line. If the test result is abnormal, it is necessary to improve or debug the controller to be tested and the offline electrical inspection equipment to improve the reliability of the test result. The embodiment of the present application uses the simulation test process to realize the offline electrical inspection test of the controller itself, and supports multiple communication methods such as CAN communication, CANFD communication and Ethernet communication. Therefore, it solves the problems that offline electrical inspection is usually realized through a single communication method in the related technology, and is too dependent on the physical environment, resulting in late discovery of problems and high cost of solving them.

[0050] The following is a specific example to illustrate the vehicle offline electrical inspection test method of the present application embodiment. Figure 2 As shown, the hardware involved in the embodiment of the present application includes a HIL test bench, a controller to be tested, a host computer, a virtual ECU, etc. Figure 3 As shown, the test method of the vehicle offline electrical inspection includes the following contents:

[0051] 1. Offline electrical inspection process simulation: simulate the offline electrical inspection process, develop the host computer test software, and test the offline electrical inspection function during the controller test phase. The simulation test environment supports CAN communication, CANFD communication, and Ethernet communication. The offline electrical inspection process is mainly implemented by the UDS diagnostic command of the CAN or CANFD protocol or the DOIP diagnostic command of the Ethernet. The specific process is as follows: Figure 4 As shown, the HIL bench, the controller to be tested, and the host computer are connected, the communication protocol CAN or CANFD or Ethernet is confirmed, and then the network is connected, the CAN or CANFD or Ethernet parameters are confirmed, and the host computer sends the UDS command of the CAN or CANFD protocol or the DOIP command of the Ethernet to the ECU to be tested. When the ECU to be tested returns a diagnostic response, the host computer parses the returned result and determines its correctness, and detects whether there are other commands. If so, the host computer sending process is repeated, otherwise the test result is output.

[0052] 2. Offline electrical inspection protocol conversion simulation: Develop host computer test software to simulate offline electrical inspection equipment, and develop virtual ECU to simulate other controllers of the vehicle. In the controller stage, the controller itself acts as a gateway to implement functional testing of the protocol conversion process. The specific process is as follows: Figure 5 As shown, connect the HIL bench, the controller to be tested, and the host computer, confirm the protocol and parameters, open the virtual ECU and set the parameters, connect to the network and then confirm the diagnostic protocol.

[0053] When the diagnostic protocol of the ECU to be tested is CAN or CANFD, the host computer sends a UDS command of the CAN or CANFD protocol to the ECU to determine whether protocol conversion is required.

[0054] 1) If the virtual controller supports Ethernet DOIP instructions, protocol conversion is required (the UDS instructions of CAN or CANFD are converted into Ethernet DOIP instructions). The ECU under test converts the UDS commands of the host computer into DOIP commands and sends them to the virtual ECU. The virtual ECU parses the received DOIP commands and sends a DOIP response to the ECU under test. The ECU under test parses the DOIP response sent by the virtual controller and converts it into UDS instructions and sends them to the host computer. The host computer parses the returned results to determine their correctness.

[0055] 2) If the virtual controller supports UDS instructions of CAN or CANFD, no protocol conversion is required. The ECU under test will directly forward the UDS command of the host computer to the virtual ECU. The virtual ECU parses the received UDS command and sends a UDS response to the ECU under test. The ECU under test will receive the UDS response and forward it to the host computer. The host computer parses the returned result to determine its correctness.

[0056] Check whether there are other commands. If there are other commands, repeat the protocol sending process of the host computer and determine whether protocol conversion is required. Otherwise, check whether there are other virtual ECUs. If there are other virtual ECUs, open the virtual ECU again and set the parameters, connect to the network and confirm the diagnostic protocol, otherwise output the test results.

[0057] When the diagnostic protocol of the ECU to be tested is Ethernet DOIP, the host computer sends an Ethernet DOIP diagnostic command to the ECU to determine whether protocol conversion is required.

[0058] 1) If the virtual controller supports UDS instructions of CAN or CANFD, protocol conversion is required (Ethernet DOIP instructions are converted into UDS instructions of CAN or CANFD). The ECU under test converts the DOIP command of the host computer into a UDS command and sends it to the virtual ECU. The virtual ECU parses the received UDS command and sends a UDS response to the ECU under test. The ECU under test parses the UDS response sent by the virtual controller and converts it into a DOIP instruction and sends it to the host computer. The host computer parses the returned result to determine its correctness.

[0059] 2) If the virtual controller supports Ethernet DOIP instructions, no protocol conversion is required. The ECU under test will directly forward the DOIP command of the host computer to the virtual ECU. The virtual ECU parses the received DOIP command and sends a DOIP response to the ECU under test. The ECU under test will receive the DOIP response and forward it to the host computer. The host computer parses the returned result to determine its correctness.

[0060] Check whether there are other commands. If there are other commands, repeat the protocol sending process of the host computer and determine whether protocol conversion is required. Otherwise, check whether there are other virtual ECUs. If there are other virtual ECUs, open the virtual ECU again and set the parameters, connect to the network and confirm the diagnostic protocol, otherwise output the test results.

[0061] 3. Simulation of abnormal situations of offline electrical inspection production line: The simulation of offline electrical inspection of real production line was completed in the laboratory environment. By simulating the individual differences of controllers, actual vehicle environment differences, and electrical inspection equipment differences in offline electrical inspection of production line, a single piece can truly replace multiple pieces, which improves the test coverage and reliability of test results, thereby improving the success rate of offline electrical inspection of production line and ensuring production.

[0062] 1) Collect, record and analyze a large amount of failure case data and conduct scenario expansion simulation.

[0063] Collect real offline electrical inspection data from the production line, use big data analysis to extract real vehicle data during the offline electrical inspection process (such as bus load rate, electrical inspection process data, diagnostic request and response time, bus voltage, etc.), equipment data (equipment voltage, request sequence, etc.), and write test cases and expand scenarios based on the extracted data, so that the simulation test is closer to the actual situation of the actual vehicle.

[0064] 2) Controller abnormality simulation (high and low voltage, high load, boundary overflow, etc.).

[0065] Expand the abnormal operating conditions of the controller, such as the controller is in a high or low voltage state, the bus load rate is too high, the bus voltage is higher or lower than the normal range, the controller is in a high or low temperature state, the controller is in a high humidity state, etc.

[0066] 3) Abnormal simulation of offline electrical inspection equipment (signal delay, etc.).

[0067] Simulate abnormal working conditions of electrical inspection equipment, such as delayed response of equipment signals, changes in the order of electrical inspection processes, errors in sending request commands, etc.

[0068] In summary, the offline electrical inspection process of the embodiment of the present application realizes the offline electrical inspection test of the controller itself, supports multiple communication methods such as CAN communication, CANFD communication and Ethernet communication, and realizes the functional test of the controller itself acting as a gateway to realize the protocol conversion process. It can realize the test of various abnormal working conditions, and realizes automated testing at the same time, and automatically analyzes the test results, simulating the individual differences of controllers, actual vehicle environment differences, electrical inspection equipment differences, etc. in the offline electrical inspection of the production line, and realizes the simulation of the real production line electrical inspection environment in a laboratory environment, so that the single-piece test results are closer to the actual vehicle results, thereby ensuring the reliability of the test results.

[0069] Next, a test device for off-line electrical inspection of a vehicle according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0070] Figure 6 It is a block diagram of a test device for off-line electrical inspection of a vehicle according to an embodiment of the present application.

[0071] like Figure 6 As shown, the vehicle offline electrical inspection test device 10 includes: an acquisition module 100, a determination module 200 and a test module 300.

[0072] Among them, the acquisition module 100 is used to obtain the target test type of the vehicle offline electrical inspection; the determination module 200 is used to determine the simulation test process according to the target test type; the test module 300 is used to perform a simulation test of the vehicle offline electrical inspection according to the simulation test process to obtain the test results.

[0073] It should be noted that the above explanation of the embodiment of the test method for vehicle offline electrical inspection is also applicable to the test device for vehicle offline electrical inspection of this embodiment, and will not be repeated here.

[0074] According to the test device for off-line electrical inspection of vehicles proposed in the embodiment of the present application, the simulation test process can be determined according to the target test type, and the simulation test of off-line electrical inspection of vehicles can be carried out according to the simulation test process to obtain the test result. If the test result performs well in the simulation test, it can work reliably in the real production line. If the test result is abnormal, the controller to be tested and the off-line electrical inspection equipment need to be improved or debugged to improve the reliability of the test result. The embodiment of the present application realizes the off-line electrical inspection test of the controller itself by using the simulation test process, and supports multiple communication methods such as CAN communication, CANFD communication and Ethernet communication. Therefore, it solves the problems that the related technology usually realizes off-line electrical inspection through a single communication method, relies too much on the physical environment, and leads to late discovery of problems and high cost of solving them.

[0075] Figure 7 A schematic diagram of the structure of the host computer provided in the embodiment of the present application. The host computer may include:

[0076] A memory 701 , a processor 702 , and a computer program stored in the memory 701 and executable on the processor 702 .

[0077] When the processor 702 executes the program, the test method for vehicle offline electrical inspection provided in the above embodiment is implemented.

[0078] Furthermore, the host computer also includes:

[0079] The communication interface 703 is used for communication between the memory 701 and the processor 702 .

[0080] The memory 701 is used to store computer programs that can be executed on the processor 702 .

[0081] The memory 701 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0082] If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0083] Optionally, in a specific implementation, if the memory 701, the processor 702 and the communication interface 703 are integrated on a chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through an internal interface.

[0084] The processor 702 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0085] The present application also provides a vehicle offline electrical inspection test system, such as Figure 8 As shown, the vehicle offline electrical inspection test system 20 includes: a ring simulation bench 110, a controller to be tested 220 and a host computer 330.

[0086] Among them, on the hardware-in-the-loop simulation bench 110, the controller to be tested 220 communicates with the hardware-in-the-loop simulation bench 110; the host computer 300 communicates with the hardware-in-the-loop simulation bench 110 and the controller to be tested 220 respectively, obtains the target test type of the vehicle offline electrical inspection, determines the simulation test process according to the target test type, and performs a simulation test of the vehicle offline electrical inspection on the hardware-in-the-loop simulation bench 110 according to the simulation test process to obtain a test result.

[0087] According to the vehicle offline electrical inspection test system proposed in the embodiment of the present application, the simulation test process is determined according to the target test type, and the simulation test of the vehicle offline electrical inspection is carried out according to the simulation test process to obtain the test result. If the test result performs well in the simulation test, it can work reliably in the real production line. If the test result is abnormal, it is necessary to improve or debug the controller to be tested and the offline electrical inspection equipment to improve the reliability of the test result. The embodiment of the present application uses the simulation test process to realize the offline electrical inspection test of the controller itself, and supports multiple communication methods such as CAN communication, CANFD communication and Ethernet communication. Therefore, it solves the problems that offline electrical inspection is usually realized by a single communication method in the related technology, and is too dependent on the physical environment, resulting in late discovery of problems and high cost of solving them.

[0088] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned vehicle offline electrical inspection test method.

[0089] An embodiment of the present application also provides a computer program product on which a computer program or instruction is stored, and when the program or instruction is executed, the above-mentioned vehicle offline electrical inspection test method is implemented.

[0090] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0091] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0092] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0093] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0094] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0095] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A test method for off-line electrical inspection of vehicles, It is characterized in that The following steps are involved: Get the target test type of the vehicle offline electrical inspection; Determine a simulation test process according to the target test type; A simulation test of the vehicle offline electrical inspection is performed according to the simulation test process to obtain the test results.

2. The vehicle offline electrical inspection test method according to claim 1, It is characterized in that The target test types include vehicle off-line electrical inspection simulation tests that do not require protocol conversion, simulation tests that require protocol conversion, and production line abnormality simulation tests.

3. The vehicle offline electrical inspection test method according to claim 2, It is characterized in that The simulation test without protocol conversion includes: Get the first diagnostic command; Sending the first diagnostic command to the controller under test, wherein the controller under test responds to the first diagnostic command and feeds back a first diagnostic response result of the first diagnostic command; The first diagnostic response result is analyzed.

4. The vehicle offline electrical inspection test method according to claim 2, It is characterized in that The simulation test process of the protocol conversion process test includes: Obtain a second diagnostic command of the first target diagnostic protocol; Sending a second diagnostic command of the first target diagnostic protocol to the controller under test, wherein the controller under test converts the second diagnostic command of the first target diagnostic protocol into a second diagnostic command of a second target diagnostic protocol, forwards the second diagnostic command of the second target diagnostic protocol to a virtual controller, and the virtual controller responds to the second diagnostic command and feeds back a second diagnostic response result of the second diagnostic command; the controller under test converts the second diagnostic response result of the second target diagnostic protocol into a second diagnostic response result of the first target diagnostic protocol; A second diagnostic response result of the first target diagnostic protocol is obtained, and the second diagnostic response result is analyzed.

5. The vehicle offline electrical inspection test method according to claim 2, It is characterized in that The simulation test process of the production line abnormality test includes: Obtain real data on production line anomalies; Simulate a real production line electrical inspection environment according to the real data; In the real production line electrical inspection environment, abnormal simulation is performed on the controller to be tested and / or the offline electrical inspection equipment to obtain the test result of the production line abnormal test.

6. A test device for off-line electrical inspection of vehicles, It is characterized in that The device comprises: An acquisition module is used to obtain the target test type of the vehicle offline electrical inspection; A determination module, used to determine a simulation test process according to the target test type; The test module is used to perform a simulation test of the vehicle offline electrical inspection according to the simulation test process to obtain a test result.

7. A host computer, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle offline electrical inspection test method as described in any one of claims 1 to 5.

8. A test system for off-line electrical inspection of vehicles, It is characterized in that include: Hardware-in-the-loop simulation bench; A controller to be tested, wherein the controller to be tested communicates with the hardware-in-the-loop simulation bench; A host computer communicates with the hardware-in-the-loop simulation bench and the controller to be tested respectively, obtains a target test type for the vehicle offline electrical inspection, determines a simulation test process according to the target test type, and performs a simulation test of the vehicle offline electrical inspection on the hardware-in-the-loop simulation bench according to the simulation test process to obtain a test result.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The program is executed by a processor to implement the vehicle off-line electrical inspection test method as described in any one of claims 1-5.

10. A computer program product having a computer program or instructions stored thereon, It is characterized in that When the computer program or instruction is executed, it is used to implement the vehicle offline electrical inspection test method as described in any one of claims 1-5.