Industrial vehicle VCU test method and device, electronic equipment and medium

Through automated VCU testing methods, test cases are written using vehicle model data and test requirements, and the VCU's CAN communication protocol and analog signal control devices are used to achieve efficient, safe and accurate fault detection of industrial vehicles, and solve the tests in the existing technology Problems of low efficiency and low accuracy.

CN119311598APending Publication Date: 2025-01-14HANGCHA GRP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411855932.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The logic testing of VCUs in existing industrial vehicles is low in efficiency, low in accuracy, and requires a lot of human resources. It is difficult to quickly find a suitable vehicle for testing, which may lead to missed tests and safety accidents.

Method used

Design an automated testing method, by obtaining vehicle model data and testing requirements, writing test cases, using VCU's CAN communication protocol and analog signal control devices, collecting test data, judging faults and generating reports, without manual participation in the entire process.

Benefits of technology

It improves testing efficiency and accuracy, and can quickly and safely test industrial vehicles of multiple models, reduces human resources investment and shortens the test cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311598A_ABST
    Figure CN119311598A_ABST
Patent Text Reader

Abstract

The invention discloses an industrial vehicle VCU test method and device, electronic equipment and a medium, and relates to the field of tests.According to the scheme, according to vehicle model data, corresponding standard logic functions and corresponding test requirements of different to-be-detected industrial vehicles, test examples of the to-be-detected industrial vehicles are compiled; the VCU of each industrial vehicle tests each industrial vehicle to be detected based on the test example, collects corresponding test data, and finally judges whether the industrial vehicle to be detected has a fault according to the collected test data, the whole test process does not need manual participation, the test efficiency is improved, and the test cost is reduced. And various types of industrial vehicles can be tested according to different test requirements, so that the accuracy and the safety of the test are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing, and in particular to an industrial vehicle VCU testing method, device, electronic equipment and medium. Background Art

[0002] As the customization demand rate of industrial vehicles is gradually increasing, especially the logic changes of VCU (Vehicle Control Unit, vehicle controller) are increasing, so it is necessary to test the logic function of VCU of industrial vehicles to prevent VCU failure. At present, the logic test of VCU is carried out in a one-person-one-vehicle mode. Due to the large number of setting conditions and the long verification time of the logic verification process, and the different VCU test methods for industrial vehicles of different models, a large amount of human resources are required to pay attention to the test process of VCU of different industrial vehicles. In addition, it is not possible to find a suitable vehicle for testing quickly under special circumstances, which reduces the efficiency of logic test experiments and prolongs the cycle of logic test experiments. In addition, long-term repeated tests are prone to missed tests, and even if logic errors occur during the test, safety accidents may occur. Summary of the invention

[0003] The purpose of the present invention is to provide an industrial vehicle VCU testing method, device, electronic equipment and medium. This solution does not require human intervention in the testing process of industrial vehicles, thereby improving testing efficiency, and can test various types of industrial vehicles with different test requirements, thereby improving test accuracy and safety.

[0004] In order to solve the above technical problems, the present invention provides an industrial vehicle VCU testing method, comprising:

[0005] Obtaining vehicle model data of several industrial vehicles to be tested, standard logic functions corresponding to each of the vehicle model data, and test requirements for each of the industrial vehicles;

[0006] Compile test cases corresponding to each of the industrial vehicles according to the vehicle model data, the standard logic functions and the test requirements;

[0007] Collecting test data corresponding to each test case in each industrial vehicle according to each test case through the VCU of each industrial vehicle;

[0008] Based on the test data and the test requirements, it is determined whether all the industrial vehicles have no faults.

[0009] Optionally, collecting test data corresponding to each test case in each industrial vehicle through the VCU of each industrial vehicle according to each test case includes:

[0010] Determining the CAN communication protocol of each of the VCUs;

[0011] Determine, based on each of the test cases, the device under test in the industrial vehicle corresponding to each of the test cases and the analog signal or switch signal corresponding to each of the device under test;

[0012] Sending the corresponding analog signal or switch signal to each of the devices under test to control each of the devices under test to start;

[0013] According to each of the test cases and each of the CAN communication protocols, a corresponding virtual message is sent to each of the VCUs, so that the VCU collects test data corresponding to each of the test cases in each of the industrial vehicles based on each of the virtual messages after each of the devices under test is turned on.

[0014] Optionally, sending the corresponding analog signal or switch signal to each of the devices under test includes:

[0015] Determining a standard sequence for each of said test cases;

[0016] The corresponding analog quantity signal or switch quantity signal is sent to each of the devices under test in the standard sequence and at a preset time interval.

[0017] Optionally, before collecting the test data corresponding to each test case in each industrial vehicle according to each test case through the VCU of each industrial vehicle, the method further includes:

[0018] Determining whether all the VCUs are fault-free;

[0019] If none of the VCUs has any fault, controlling the industrial vehicle to stop;

[0020] If there is no fault in each of the VCUs, a step is triggered to collect test data corresponding to each of the test cases in each of the industrial vehicles according to each of the test cases through the VCUs of each of the industrial vehicles.

[0021] Optionally, the determining whether all the VCUs have no faults includes:

[0022] transmitting a plurality of fault data of the industrial vehicle to each of the VCUs;

[0023] Determining whether a fault signal fed back by each VCU after receiving the fault data is obtained;

[0024] If a fault signal fed back by each of the VCUs is received, it is determined that none of the VCUs has a fault;

[0025] If no fault signal fed back by each of the VCUs is received, it is determined that each of the VCUs has no fault.

[0026] Optionally, judging whether each of the industrial vehicles has no faults based on each of the test data and each of the test requirements includes:

[0027] Determining whether each of the test data is equal to the expected test data in each of the test requirements;

[0028] If each of the test data is equal to the expected test data in each of the test requirements, it is determined that each of the industrial vehicles has no faults;

[0029] If each of the test data is not equal to the expected test data in each of the test requirements, it is determined that the industrial vehicle corresponding to the test data that is not equal to the expected test data has a fault.

[0030] Optionally, after determining that the industrial vehicle corresponding to the test data that is not equal to the expected test data fails, the method further includes:

[0031] Generate a corresponding test report according to the test data that is not equal to the expected test data, the expected test data and the corresponding industrial vehicle, and perform a preset marking process on the test data that is not equal to the expected test data in the test report;

[0032] The marked test report is displayed by a display device.

[0033] In order to solve the above technical problems, the present invention also provides an industrial vehicle VCU testing device, comprising:

[0034] An acquisition unit, used to acquire vehicle model data of several industrial vehicles to be tested, standard logic functions corresponding to each of the vehicle model data, and test requirements of each of the industrial vehicles;

[0035] A writing unit, used for writing test cases corresponding to each of the industrial vehicles according to each of the vehicle model data, each of the standard logical functions and each of the test requirements;

[0036] A collection unit, used for collecting test data corresponding to each of the test cases in each of the industrial vehicles according to each of the test cases through the VCU of each of the industrial vehicles;

[0037] A judgment unit is used to judge whether each of the industrial vehicles has no faults based on each of the test data and each of the test requirements.

[0038] In order to solve the above technical problems, the present invention further provides an electronic device, comprising:

[0039] Memory for storing computer programs;

[0040] A processor is used to implement the steps of the industrial vehicle VCU testing method as described above when executing the computer program.

[0041] In order to solve the above technical problems, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the industrial vehicle VCU testing method as described above are implemented.

[0042] The purpose of the present invention is to provide an industrial vehicle VCU testing method, device, electronic equipment and medium. In this scheme, test cases for each industrial vehicle to be tested are compiled according to the model data of different industrial vehicles to be tested, corresponding standard logic functions and corresponding test requirements, and each industrial vehicle to be tested is tested based on the test case through the VCU of each industrial vehicle, and corresponding test data is collected. Finally, whether the industrial vehicle to be tested has a fault is determined based on the collected test data. The entire testing process does not require human participation, which improves the testing efficiency, and can test industrial vehicles of various models with different test requirements, thereby improving the accuracy and safety of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0044] Figure 1 A process flow chart of an industrial vehicle VCU testing method provided by the present invention;

[0045] Figure 2 A layout diagram of an industrial vehicle VCU test system provided by the present invention;

[0046] Figure 3 A schematic diagram of the operation logic of an industrial vehicle VCU test provided by the present invention;

[0047] Figure 4 A schematic diagram of the structure of an industrial vehicle VCU testing device provided by the present invention;

[0048] Figure 5 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION

[0049] The core of the present invention is to provide an industrial vehicle VCU testing method, device, electronic equipment and medium. This solution does not require human intervention in the testing process of industrial vehicles, improves testing efficiency, and can test various types of industrial vehicles with different testing requirements, thereby improving testing accuracy and safety.

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] Please refer to Figure 1 , Figure 1 The process flow chart of an industrial vehicle VCU testing method provided by the present invention. The industrial vehicle VCU testing method comprises:

[0052] S11: Obtaining model data of several industrial vehicles to be tested, standard logic functions corresponding to each model data, and test requirements of each industrial vehicle;

[0053] S12: Write test cases corresponding to each industrial vehicle according to each vehicle model data, each standard logic function and each test requirement;

[0054] S13: collecting test data corresponding to each test case in each industrial vehicle according to each test case through the VCU of each industrial vehicle;

[0055] S14: Determine whether all industrial vehicles have no faults based on the test data and the test requirements.

[0056] In the present invention, considering that in the prior art, industrial vehicles are generally tested by one person per vehicle, because the efficiency of manual testing is too low, the accuracy is not high, and the testing methods to be adopted for different industrial vehicles are also different, so this scheme adopts an automatic testing scheme, and makes targeted tests according to the different vehicle model data of the industrial vehicles to be tested and their corresponding test requirements. The specific scheme is: first obtain the vehicle model data of several industrial vehicles to be tested, the standard logical functions corresponding to each vehicle model data and the test requirements of each industrial vehicle, and then compile the test cases corresponding to each industrial vehicle according to each vehicle model data, each standard logical function and each test requirement. Because the test cases contain standard results, test objects and other contents, the test data corresponding to each test case in each industrial vehicle can be collected according to each test case through the VCU of each industrial vehicle. Finally, it can be judged whether each industrial vehicle has no faults based on each test data and each test requirement, so as to accurately and quickly complete the test of the industrial vehicle.

[0057] It should be noted that a test case is a set of documents consisting of test input, execution conditions, and expected results designed for a specific purpose (to prove that there is a problem with the software).

[0058] It should also be noted that in actual applications, the test system consists of two parts: test hardware and software system. The software is divided into two parts: lower-level computer driver software and upper-level computer control software. The hardware is mainly controlled by a single-chip microcomputer (such as Figure 2 The VCU simulation module in the VCU test system shown in the figure) controls the customizable interfaces in the forklift, including: switch input and output interface (160 channels), switch input interface (22 channels), analog output interface (10 channels), analog input interface (17 channels), CAN communication interface (3 channels), and RS232 communication interface (2 channels). Figure 2 As shown, in the VCU test system, the signal input module receives the vehicle data of several industrial vehicles to be tested, the standard logic functions corresponding to each vehicle data, and the test requirements of each industrial vehicle. The VCU simulation module compiles the test cases corresponding to each industrial vehicle according to the vehicle data, the standard logic functions, and the test requirements. Then, according to the CAN communication protocol and the test cases of the forklift VCU, the corresponding virtual message is sent to each VCU, so that the VCU collects the test data corresponding to each test case in each industrial vehicle based on each virtual message after each device to be tested is turned on. Finally, the VCU simulation module receives the test data fed back by the VCU through the signal input module. Among them, except for the voltage level of the regulated power supply of the VCU test system, which is 6U, the voltage level of other modules, such as the signal input module, the VCU simulation module, the signal output module, and the fault injection module are all 4U.

[0059] It should also be noted that this application establishes a test model for industrial vehicles through the controller data of the industrial vehicle under test. The host computer defines the mapping of ports (the above-mentioned interfaces) by importing model data. The tester edits the test cases according to the model data and test requirements. After the test cases are edited, they are imported into the system for execution. The host computer parses the imported test cases through the algorithm model, sends them to the cabinet control unit through instructions, and then drives each interface unit through the control unit to perform signal simulation and monitoring. The specific operation steps are as follows:

[0060] Step 1: Connect the key, forward, reverse, accelerator, brake, handbrake, high-voltage interlock, seat, tilt, side shift, accessories, accelerator analog, lifting potentiometer analog, angle potentiometer analog, fan relay, CAN (Controller Area Network) communication and other signals of the VCU to be tested to the VCU controller to be tested through the wiring harness.

[0061] Step 2: Establish a vehicle model data model based on the VCU vehicle model data of the industrial vehicle being tested, including the definition of various switch signals and analog signals of the port, such as key signal, forward signal, reverse signal, seat signal, side shift signal, tilt signal, attachment signal, accelerator analog signal, lifting analog signal, corner analog signal, etc.; as well as the CAN protocol data model. Then, write a test case based on the established data model and the test requirements. The test case includes test conditions and test results. The test case editing should be decomposed in combination with the actual operation sequence. Then import the edited test case into the host computer for execution.

[0062] Step 3: If Figure 3 As shown, you can generally understand the running logic of executing an automatic test. As shown in the figure, all the test cases that need to be tested are loaded into the host computer system. After loading, start the test. The system will automatically load the test cases one by one. After each one is loaded, it will enter the following steps:

[0063] (1) Set test conditions item by item according to the loaded test cases;

[0064] (2) The system will output the corresponding port status or analog setting output according to each condition, and use these outputs to simulate the various status conditions of the current industrial vehicle test process;

[0065] (3) The system will wait for a certain period of time according to the delay conditions. The system can simulate the acceleration and deceleration of industrial vehicles in various extreme conditions by setting the delay conditions.

[0066] (4) The system verifies the test objectives item by item based on the loaded test cases;

[0067] (5) If the test target is the port status, the current corresponding port status to be tested will be directly read. If it is a CAN value, it will be parsed according to the CAN protocol model, that is, a virtual message will be sent to the VCU according to the CAN communication protocol corresponding to the industrial vehicle;

[0068] (6) After obtaining the target value, it will be compared with the test target requirements. If they are consistent, it will be qualified. If they are inconsistent, it will be judged as unqualified. After all test cases are executed one by one, the system will output a test report, which will record the setting conditions, goals and conclusions of each test case.

[0069] (7) Automatically load the next test case and repeat step 1.

[0070] It should also be noted that this solution has the following advantages:

[0071] 1. The test system is equipped with standard input and output external interfaces, which is convenient for installation and increases the convenience of installation.

[0072] 2. Integrate the most devices in the smallest space, increase the integration of components, and reserve space for subsequent expansion.

[0073] 3. Each independent unit device is packaged independently to increase the maintainability in the future.

[0074] 4. The upper computer adopts human-computer interaction interface to increase the convenience of operation.

[0075] 5. Test cases can be edited once and loaded multiple times for reuse, increasing testing efficiency.

[0076] 6. Using programs to control the test process can save a lot of human resources, improve test efficiency and shorten the test cycle.

[0077] 7. Only the wiring harness adapter is needed to test VCU of multiple industrial vehicle models.

[0078] The present embodiment provides an industrial vehicle VCU testing method. In the present scheme, test cases for each industrial vehicle to be tested are compiled according to the vehicle model data of different industrial vehicles to be tested, the corresponding standard logical functions and the corresponding test requirements, and each industrial vehicle to be tested is tested based on the test case through the VCU of each industrial vehicle, and the corresponding test data is collected. Finally, whether the industrial vehicle to be tested has a fault is determined based on the collected test data. The entire testing process does not require human intervention, which improves the testing efficiency, and can test industrial vehicles of various models with different test requirements, thereby improving the accuracy and safety of the test.

[0079] Based on the above embodiments:

[0080] As an optional embodiment, the test data corresponding to each test case in each industrial vehicle is collected by the VCU of each industrial vehicle according to each test case, including:

[0081] Determine the CAN communication protocol of each VCU;

[0082] Determine, based on each test case, the device under test in the industrial vehicle corresponding to each test case and the analog signal or switch signal corresponding to each device under test;

[0083] Sending corresponding analog signals or switch signals to each device under test to control the start of each device under test;

[0084] According to each test case and each CAN communication protocol, a corresponding virtual message is sent to each VCU, so that the VCU collects test data corresponding to each test case in each industrial vehicle based on each virtual message after each device under test is turned on.

[0085] In the present invention, considering that the CAN communication protocols of the VCUs of various industrial vehicles are different, in order to send test cases to the corresponding VCUs, it is necessary to first determine the CAN communication protocols of each VCU. In addition, because the test of industrial vehicles needs to first control the corresponding devices under test to be turned on before the required test data can be collected, it is also necessary to determine the devices under test in the industrial vehicles corresponding to each test case and the analog signals or switch signals corresponding to each device under test based on each test case, and send the corresponding analog signals or switch signals to each device under test to control the turning on of each device under test. At the same time, according to each test case and each CAN communication protocol, a corresponding virtual message is sent to each VCU, so that the VCU collects the test data corresponding to each test case in each industrial vehicle based on each virtual message after each device under test is turned on, thereby ensuring the integrity of the test data collection process.

[0086] As an optional embodiment, sending a corresponding analog signal or switch signal to each device under test includes:

[0087] Determine the standard sequence of test cases;

[0088] The corresponding analog quantity signal or switch quantity signal is sent to each device under test in a standard sequence and at a preset time interval.

[0089] In the present invention, considering the insufficient computing power of the VCU, this scheme first determines the standard order of each test case, and then sends the corresponding analog signal or switch signal to each device under test according to the standard order to control the devices under test to be turned on in sequence. In addition, this scheme also takes into account that the devices under test corresponding to two adjacent test cases may be the same, so for the accuracy of the test, after sending an analog signal or switch signal, it is necessary to wait a preset time before sending the next analog signal or switch signal to ensure the accuracy of the test process.

[0090] As an optional embodiment, before collecting the test data corresponding to each test case in each industrial vehicle according to each test case through the VCU of each industrial vehicle, the method further includes:

[0091] Determine whether all VCUs are free of faults;

[0092] If all VCUs are not faulty, the industrial vehicle is controlled to stop;

[0093] If there is no fault in each VCU, the steps of collecting test data corresponding to each test case in each industrial vehicle through the VCU of each industrial vehicle according to each test case are triggered.

[0094] In the present invention, considering the need to use the VCU of each industrial vehicle to collect test data, whether the VCU has a fault will directly affect whether the test process can be completed. Therefore, before collecting the test data corresponding to each test case in each industrial vehicle according to each test case through the VCU of each industrial vehicle, this solution will also determine whether all VCUs have no faults. If all VCUs have no faults, that is, the VCUs of some industrial vehicles have faults, the industrial vehicles are controlled to stop; conversely, if all VCUs have no faults, the steps of collecting the test data corresponding to each test case in each industrial vehicle according to each test case through the VCU of each industrial vehicle are normally triggered, thereby improving the reliability and accuracy of the test process.

[0095] As an optional embodiment, determining whether all VCUs have no faults includes:

[0096] Transmitting several fault data of industrial vehicles to each VCU;

[0097] Determine whether a fault signal fed back by each VCU after receiving the fault data is obtained;

[0098] If a fault signal fed back by each VCU is received, it is determined that each VCU has no fault;

[0099] If no fault signal fed back by each VCU is received, it is determined that each VCU has no fault.

[0100] In the present invention, the specific process of judging whether each VCU has no fault is as follows: transmitting a number of fault data of the industrial vehicle to each VCU. If the VCU has no fault, it will feedback a fault signal after receiving the fault data. Conversely, if the VCU does not feedback a fault signal after receiving the fault data, it proves that the VCU has a fault. Therefore, this scheme transmits a number of fault data of the industrial vehicle to each VCU, directly judges whether the fault signal fed back by each VCU after receiving the fault data is obtained, and then judges whether the VCU has a fault, thereby ensuring the integrity of the VCU fault testing process.

[0101] It should be noted that in actual applications, after the VCU controller sends fault data to the VCU, it will determine the specific data corresponding to the fault signal fed back by the VCU and compare it with the fault data. If the two data are different, it can still be determined that the VCU has a fault. Figure 3 As shown, in the VCU test system, the fault injection module receives the fault command transmitted by the host computer, and the VCU simulation module transmits the corresponding fault data to the VCU of the forklift through the signal output module based on the fault command. The VCU simulation module then receives the fault signal fed back by the VCU through the signal input module.

[0102] As an optional embodiment, judging whether each industrial vehicle has no faults based on each test data and each test requirement includes:

[0103] Determine whether each test data is equal to the expected test data in each test requirement;

[0104] If all test data are equal to the expected test data in each test requirement, it is determined that no fault occurs in each industrial vehicle;

[0105] If each test data is not equal to the expected test data in each test requirement, it is determined that the industrial vehicle corresponding to the test data that is not equal to the expected test data has a fault.

[0106] In the present invention, the specific process of judging whether all industrial vehicles have no faults based on all test data and all test requirements is: judging whether all test data are equal to the expected test data in all test requirements, if all test data are equal to the expected test data in all test requirements, then judging that all industrial vehicles have no faults; on the contrary, if all test data are not equal to the expected test data in all test requirements, then judging that the industrial vehicles corresponding to the test data that are not equal to the expected test data have faults. The integrity of the fault judgment process is ensured.

[0107] As an optional embodiment, after determining that the industrial vehicle corresponding to the test data that is not equal to the expected test data has a fault, the method further includes:

[0108] Generate a corresponding test report according to the test data that is not equal to the expected test data, the expected test data and the corresponding industrial vehicle, and perform preset marking processing on the test data that is not equal to the expected test data in the test report;

[0109] The marked test report is displayed through the display device.

[0110] In the present invention, taking into account the existence of various types of test data, in order to enable users to intuitively view the fault conditions of the test data, after determining that the industrial vehicle corresponding to the test data that is not equal to the expected test data has a fault, this solution will also generate a corresponding test report based on the test data that is not equal to the expected test data, the expected test data and the corresponding industrial vehicle, and perform preset marking processing on the test data that is not equal to the expected test data in the test report, and display the marked test report through a display device, so that users can view the test conditions of the industrial vehicle conveniently.

[0111] Please refer to Figure 4 , Figure 4 The present invention provides a structural schematic diagram of an industrial vehicle VCU testing device. The industrial vehicle VCU testing device comprises:

[0112] An acquisition unit 11 is used to acquire the model data of several industrial vehicles to be tested, the standard logic function corresponding to each model data and the test requirements of each industrial vehicle;

[0113] The writing unit 12 is used to write the test cases corresponding to each industrial vehicle according to each vehicle model data, each standard logic function and each test requirement;

[0114] A collection unit 13, used for collecting test data corresponding to each test case in each industrial vehicle according to each test case through the VCU of each industrial vehicle;

[0115] The judging unit 14 is used to judge whether all industrial vehicles have no faults based on the test data and the test requirements.

[0116] The industrial vehicle VCU testing device provided in this embodiment corresponds to the above method, and therefore has the same beneficial effects as the above method. Therefore, for the embodiments of the industrial vehicle VCU testing device part, please refer to the description of the embodiments of the method part, which will not be repeated here.

[0117] Please refer to Figure 5 , Figure 5 A schematic diagram of the structure of an electronic device provided by the present invention. The electronic device comprises:

[0118] A memory 20, for storing computer programs;

[0119] The processor 21 is used to implement the steps of the above-mentioned industrial vehicle VCU testing method when executing the computer program.

[0120] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0121] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0122] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the industrial vehicle VCU test method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include, but is not limited to, industrial vehicle VCU test methods, etc.

[0123] In some embodiments, the electronic device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power source 25 , and a communication bus 26 .

[0124] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure.

[0125] The purpose of this embodiment is to provide an electronic device, in which the memory 20 is used to store computer programs, and the processor 21 is used to implement the steps of the industrial vehicle VCU testing method as described above when executing the computer programs, so that the testing process is more efficient and accurate.

[0126] The present invention also provides an embodiment corresponding to a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the industrial vehicle VCU testing method as described above are implemented.

[0127] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0128] The computer-readable storage medium provided in this embodiment corresponds to the above method, and therefore has the same beneficial effects as the above method. Therefore, for the embodiments of the computer-readable storage medium part, please refer to the description of the embodiments of the method part, which will not be repeated here.

[0129] It should be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0130] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for testing an industrial vehicle VCU, characterized in that: include: Obtaining vehicle model data of several industrial vehicles to be tested, standard logic functions corresponding to each of the vehicle model data, and test requirements for each of the industrial vehicles; Compile test cases corresponding to each of the industrial vehicles according to the vehicle model data, the standard logic functions and the test requirements; Collecting test data corresponding to each test case in each industrial vehicle according to each test case through the VCU of each industrial vehicle; Based on the test data and the test requirements, it is determined whether all the industrial vehicles have no faults.

2. The industrial vehicle VCU testing method according to claim 1, characterized in that: The collecting of test data corresponding to each test case in each industrial vehicle by the VCU of each industrial vehicle according to each test case includes: Determining the CAN communication protocol of each of the VCUs; Determine, based on each of the test cases, the device under test in the industrial vehicle corresponding to each of the test cases and the analog signal or switch signal corresponding to each of the device under test; Sending the corresponding analog signal or switch signal to each of the devices under test to control each of the devices under test to start; According to each of the test cases and each of the CAN communication protocols, a corresponding virtual message is sent to each of the VCUs, so that the VCU collects test data corresponding to each of the test cases in each of the industrial vehicles based on each of the virtual messages after each of the devices under test is turned on.

3. The industrial vehicle VCU testing method according to claim 2, characterized in that: The sending the corresponding analog signal or switch signal to each of the devices under test includes: Determining a standard sequence for each of said test cases; The corresponding analog quantity signal or switch quantity signal is sent to each of the devices under test in the standard sequence and at a preset time interval.

4. The industrial vehicle VCU testing method according to claim 1, characterized in that: Before collecting the test data corresponding to each test case in each industrial vehicle through the VCU of each industrial vehicle according to each test case, the method further includes: Determining whether all the VCUs are fault-free; If none of the VCUs has any fault, controlling the industrial vehicle to stop; If there is no fault in each of the VCUs, a step is triggered to collect test data corresponding to each of the test cases in each of the industrial vehicles according to each of the test cases through the VCUs of each of the industrial vehicles.

5. The industrial vehicle VCU testing method according to claim 4, characterized in that: The determining whether all the VCUs have no faults includes: transmitting a plurality of fault data of the industrial vehicle to each of the VCUs; Determining whether a fault signal fed back by each VCU after receiving the fault data is obtained; If a fault signal fed back by each of the VCUs is received, it is determined that none of the VCUs has a fault; If no fault signal fed back by each of the VCUs is received, it is determined that each of the VCUs has no fault.

6. The industrial vehicle VCU testing method according to any one of claims 1 to 5, characterized in that: The determining whether each of the industrial vehicles has no faults based on each of the test data and each of the test requirements includes: Determining whether each of the test data is equal to the expected test data in each of the test requirements; If each of the test data is equal to the expected test data in each of the test requirements, it is determined that each of the industrial vehicles has no faults; If each of the test data is not equal to the expected test data in each of the test requirements, it is determined that the industrial vehicle corresponding to the test data that is not equal to the expected test data has a fault.

7. The industrial vehicle VCU testing method according to claim 6, characterized in that: After determining that the industrial vehicle corresponding to the test data that is not equal to the expected test data has a fault, the method further includes: Generate a corresponding test report according to the test data that is not equal to the expected test data, the expected test data and the corresponding industrial vehicle, and perform a preset marking process on the test data that is not equal to the expected test data in the test report; The marked test report is displayed by a display device.

8. An industrial vehicle VCU testing device, characterized in that: include: An acquisition unit, used to acquire vehicle model data of several industrial vehicles to be tested, standard logic functions corresponding to each of the vehicle model data, and test requirements of each of the industrial vehicles; A writing unit, used for writing test cases corresponding to each of the industrial vehicles according to each of the vehicle model data, each of the standard logical functions and each of the test requirements; A collection unit, used for collecting test data corresponding to each of the test cases in each of the industrial vehicles according to each of the test cases through the VCU of each of the industrial vehicles; A judgment unit is used to judge whether each of the industrial vehicles has no faults based on each of the test data and each of the test requirements.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the industrial vehicle VCU testing method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the industrial vehicle VCU testing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Hardware-in-the-loop test system for whole vehicle controller for electric vehicle and test method

    CN106444721A

  • Signal scene testing method and device for automobile parts

    CN115470100A

  • Automatic testing method and device

    CN115576804A

  • Hardware-in-the-loop test system, method and equipment and storage medium

    CN116366514A

  • Automatic testing method and device for BAMS equipment

    CN119127720A