Vehicle testing method and device, electronic equipment and storage medium

By converting the vehicle log information into a signal sequence and judging its matching with the preset signal trigger logic, the problem of low reliability of vehicle test results is solved, and a comprehensive and accurate test of vehicle functions is achieved.

CN120333851APending Publication Date: 2025-07-18ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510408100.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-02
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, the reliability of vehicle test results is low, and it is difficult to fully and accurately reflect the function execution of the vehicle under complex operating conditions, and the automated test scripts are difficult to fit the actual vehicle use scenarios of users.

Method used

The log information of the vehicle is converted into a running signal arranged in time sequence to form a signal sequence, and determine whether the signal sequence and the preset signal trigger logic corresponding to the preset function match, and obtain the functional test results.

Benefits of technology

It realizes efficient and comprehensive testing of vehicle functions, improves the accuracy and reliability of test results, and can accurately reflect the execution of vehicle functions under complex working conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120333851A_ABST
    Figure CN120333851A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle testing method and device, electronic equipment and a storage medium, and relates to the technical field of vehicle testing. The method comprises the steps that log information of a vehicle is converted into operation signals arranged according to a time sequence, and a signal sequence is obtained; judging whether the signal sequence is matched with a preset signal trigger logic corresponding to each preset function or not, and obtaining a function test result corresponding to each preset function; wherein when the signal sequence is matched with the preset signal trigger logic corresponding to the preset function, the function test result corresponding to the preset function is successful execution. According to the invention, the function test model is utilized to judge whether the operation signals arranged according to the time sequence in the signal sequence accord with the preset signal trigger logic of the preset function, so that efficient and reasonable vehicle test is realized, and the comprehensiveness, accuracy and reliability of the test result are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle testing, and in particular, to a vehicle testing method, device, electronic device, and storage medium. Background Art

[0002] With the rapid development of the automotive industry and the continuous progress of intelligent driving technology, it is particularly important to comprehensively and accurately test the functions of vehicles. Vehicle testing can not only timely detect potential problems in vehicle design and manufacturing, but also provide effective reference for subsequent optimization and improvement of vehicles, thereby improving the safety and reliability of vehicles.

[0003] Currently, when testing vehicles in related technologies, it mainly controls the vehicle to perform online testing by designing fixed test scripts, which has obvious limitations and easily leads to low reliability of test results. Summary of the Invention

[0004] The problem solved by the present invention is how to improve the reliability of test results.

[0005] To solve the above problems, the present invention provides a vehicle testing method, including:

[0006] Converting the obtained log information of the vehicle into operation signals arranged in time sequence to obtain a signal sequence;

[0007] Judging whether the signal sequence matches the preset signal trigger logic corresponding to each preset function to obtain the function test results corresponding to each preset function; wherein, when the signal sequence matches the preset signal trigger logic corresponding to the preset function, the function test result corresponding to the preset function is successful execution.

[0008] Optionally, the preset signal trigger logic includes a trigger signal set corresponding to the preset function and a function response signal; wherein, the trigger signal set includes each trigger signal arranged in time sequence.

[0009] Optionally, the preset signal trigger logic is determined based on a test case pre-associated with the preset function, and the test case includes test input information and test output information corresponding after the preset function is triggered; before judging whether the signal sequence matches the preset signal trigger logic corresponding to each preset function, it further includes:

[0010] Converting the test input information into each trigger signal arranged in time sequence to obtain a trigger signal set, and obtaining a function response signal according to the test output information;

[0011] Obtain the preset signal triggering logic corresponding to the preset function pre-associated with each test case respectively according to the triggering signal set and the function response signal corresponding to each test case.

[0012] Optionally, determining whether the signal sequence matches the preset signal triggering logic corresponding to each preset function to obtain the function test results corresponding to each preset function includes:

[0013] When at least one first target operation signal corresponding to each triggering signal in the triggering signal set is missing in the signal sequence, the function test result is not executed; wherein, the first target operation signal includes the operation signal that satisfies the preset matching condition with the triggering signal; the preset matching condition includes a signal matching condition and a sorting matching condition;

[0014] When the signal sequence includes each first target operation signal corresponding to each triggering signal in the triggering signal set, determine whether the signal sequence includes an operation signal that is located after the last first target operation signal and satisfies the signal matching condition with the function response signal;

[0015] If so, indicate that the preset signal triggering logic corresponding to the preset function matches the signal sequence, and the function test result corresponding to the preset function is successful execution;

[0016] If not, indicate that the preset signal triggering logic corresponding to the preset function does not match the signal sequence, and the function test result corresponding to the preset function is execution failure.

[0017] Optionally, the function test result further includes a reason for execution failure; the vehicle test method further includes:

[0018] When the function test result is execution failure, obtain the reason for execution failure according to the operation signals that are located before the last first target operation signal in the signal sequence and except for all the first target operation signals.

[0019] Optionally, the vehicle test method device further includes:

[0020] When detecting an operation signal that matches the function response signal corresponding to the preset function, determine whether the signal sequence satisfies the scenario trigger condition pre-associated with the preset function;

[0021] If so, the scenario test result corresponding to the preset function is a normal trigger scenario;

[0022] If not, the scenario test result corresponding to the preset function is an abnormal trigger scenario.

[0023] Optionally, the number of the scenario trigger conditions is at least one; and the determining whether the signal sequence meets the scenario trigger conditions pre-associated with the preset function includes:

[0024] Determining whether the signal sequence includes a running signal that is before the second target running signal and meets at least one of the scenario trigger conditions; wherein, the second target running signal includes the running signal that matches the function response signal.

[0025] Optionally, the converting the obtained log information of the vehicle into running signals arranged in time sequence to obtain a signal sequence includes:

[0026] Obtaining a database file pre-associated with the vehicle, and parsing the log information into the running signals and the time information corresponding to the running signals by using the database file;

[0027] Arranging the running signals according to the time information to obtain the signal sequence.

[0028] Optionally, the log information is offline log information.

[0029] In the present invention, obtaining the log information of a vehicle is conducive to quickly grasping the running data of the vehicle over a period of time. By converting the log information into running signals arranged in time sequence to obtain a signal sequence, it is conducive to extracting the actual situation of the running signals of the vehicle changing over time, and further providing an accurate and reliable reference basis for the subsequent test and analysis of the function execution situation. On this basis, after obtaining the signal sequence, the present invention determines whether the signal sequence matches the preset signal triggering logic corresponding to each preset function, which is conducive to quickly and accurately obtaining the function test results corresponding to each preset function. Among them, when the signal sequence matches the preset signal triggering logic, it can be considered that when the vehicle executes the preset function, the actual situation of the relevant running information in its signal sequence changing over time satisfies the preset signal triggering logic corresponding to the preset function, that is, the preset function is normally triggered in the actual vehicle use scenario, and the function test result is successful execution. On the one hand, in the present invention, the vehicle is tested based on the log information generated during the actual operation of the vehicle, without being restricted by the fixed execution steps of the automated test script and the test hardware. While increasing the test sample size, it can also perform safer, more efficient, and more comprehensive tests on the static and dynamic functions of the vehicle. On the other hand, the log information generated during the actual operation of the vehicle is more in line with the scenario requirements of users when actually using the vehicle. The present invention converts the log information into a signal sequence to test the vehicle, which is more conducive to testing the execution situation of each preset function of the vehicle under complex working conditions. In this way, the present invention can judge whether the running signals arranged in time sequence in the signal sequence conform to the preset signal triggering logic of the preset function, thereby realizing efficient and reasonable vehicle testing and ensuring the comprehensiveness, accuracy, and reliability of the test results.

[0030] The present invention also provides a vehicle test method device, including:

[0031] A log conversion module, which is used to convert the obtained log information of the vehicle into running signals arranged in time sequence to obtain a signal sequence;

[0032] A function test module, which is used to judge whether the signal sequence matches the preset signal triggering logic corresponding to each preset function to obtain the function test results corresponding to each preset function; among them, when the signal sequence matches the preset signal triggering logic corresponding to the preset function, the function test result corresponding to the preset function is successful execution.

[0033] The advantages of the vehicle test method device provided by the present invention compared with the existing technology of the vehicle test method are basically the same, and will not be elaborated here.

[0034] The present invention also provides an electronic device, including a memory and a processor;

[0035] The memory is used to store a computer program;

[0036] The processor is used to implement the vehicle testing method as described above when executing the computer program.

[0037] The advantages of the electronic device provided by the present invention and the vehicle testing method compared with the prior art are basically the same, and will not be elaborated here.

[0038] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the vehicle testing method as described above is implemented.

[0039] The advantages of the computer-readable storage medium provided by the present invention and the vehicle testing method compared with the prior art are basically the same, and will not be elaborated here. Description of the Drawings

[0040] Figure 1 It is a schematic flowchart of the vehicle testing method according to an embodiment of the present invention;

[0041] Figure 2 It is a schematic diagram of the signal judgment logic of the function test model according to an embodiment of the present invention;

[0042] Figure 3 It is a schematic structural diagram of the vehicle testing method device according to an embodiment of the present invention;

[0043] Figure 4 It is a schematic structural diagram of the electronic device according to an embodiment of the present invention. Detailed Embodiments

[0044] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following detailed description of the specific embodiments of the present invention is provided with reference to the drawings. Although some embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments described herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not used to limit the protection scope of the present invention.

[0045] It should be understood that the steps described in the method embodiments of the present invention can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this regard.

[0046] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts such as "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or mutual dependence of the functions performed by these devices, modules or units.

[0047] It should be noted that the modifications of "one" and "multiple" mentioned in the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly specified in the context, it should be understood as "one or more".

[0048] In the related art, there are obvious limitations in controlling a vehicle to perform an online test based on a fixed test script:

[0049] First, due to factors such as driving safety, the automated test scripts in the related art can often only test the static functions of the vehicle, making it difficult to ensure the comprehensiveness of the test and easily affecting the reliability of the test results.

[0050] Second, currently, the automated test scripts are mainly applicable to tests with soft switch functions. Tests that require hardware such as a robotic arm to control hard switches or perform related operations are extremely vulnerable to the hardware conditions of the automated test, resulting in a low test sample size, making it difficult to guarantee the accuracy of the test results, and further affecting the reliability of the test results.

[0051] Third, in the automated test scripts of real vehicles in the related art, the execution steps are fixed rather than random, making it difficult to fit the actual vehicle usage scenarios of users and difficult to discover problems that may occur in the vehicle under complex working conditions, further affecting the reliability of the test results.

[0052] In view of the problems existing in the above-mentioned related art, this embodiment provides a vehicle test method, device, electronic device and storage medium.

[0053] As Figure 1 shown, a vehicle test method provided by an embodiment of the present invention includes the following steps:

[0054] S1: Convert the obtained log information of the vehicle into an operation signal arranged in time sequence to obtain a signal sequence.

[0055] Specifically, the log information of the vehicle referred to in this embodiment represents various data records generated during the vehicle operation and their corresponding timestamps. The operation signals referred to in this embodiment represent various signals recorded during the vehicle operation, such as engine speed, switch status, fault signals, and sensor readings, etc. The log information of the vehicle can be obtained, and the log information can be converted into operation signals arranged in time sequence to obtain a signal sequence. For example, the operation signals pre-associated with different fields in the log information can be predefined to obtain a mapping relationship. In response to the detected vehicle test request (such as a vehicle test request generated by the user through interaction with the vehicle), all the log information after the vehicle starts is obtained in real time. After the log information is obtained, the data records in the log information can be converted into corresponding operation signals according to the mapping relationship, and the operation signals are arranged in time sequence according to the timestamps corresponding to the operation signals, thereby obtaining a signal sequence.

[0056] In this embodiment, obtaining the log information of the vehicle is beneficial to quickly grasp the vehicle operation data. By converting the log information into a signal sequence of operation signals arranged in time sequence, it is beneficial to extract the actual situation of the vehicle operation signals changing with time, and further provide an accurate and reliable reference basis for the subsequent test analysis of the function execution situation.

[0057] S2: Determine whether the signal sequence matches the preset signal trigger logics corresponding to the preset functions, and obtain the function test results corresponding to the preset functions; among them, when the signal sequence matches the preset signal trigger logic corresponding to the preset function, the function test result corresponding to the preset function is successful execution.

[0058] Specifically, the preset functions referred to in this embodiment can be determined based on the preset function requirements of the vehicle. For example, the functions that can be analyzed through operation signals can be screened out from the function requirements as preset functions. The preset signal trigger logics referred to in this embodiment represent the rules that need to be followed at the signal level to trigger the preset functions of the vehicle and generate corresponding function responses, and can be set in advance according to information such as the system design and function requirements of the vehicle. For example, the preset signal trigger logic corresponding to the preset function of activating emergency braking can be: the vehicle speed is within a preset vehicle speed range (such as 5 - 60 km / h); the detection distance of the radar ranging device is less than a preset distance (such as 25 m); trigger automatic emergency braking.

[0059] In one embodiment, after obtaining the signal sequence, it can be determined whether the signal sequence matches the preset signal trigger logic corresponding to each preset function. Assuming there are 50 preset signal trigger logics, after obtaining the signal sequence, it can be determined whether each preset signal trigger logic matches the signal sequence respectively. For example, assume the signal sequence is: (1) The first timestamp, vehicle speed 120 km / h, low beam on; (2) The second timestamp, vehicle speed 80 km / h, high beam on; (3) The third timestamp, the detection distance value of the radar ranging device is 30 m, vehicle speed 55 km / h; (4) The fourth timestamp, vehicle speed 50 km / h, high beam off; (5) The fifth timestamp, the detection distance value of the radar ranging device is 20 m; (6) The sixth timestamp, the status flag of automatic emergency braking is equal to 1, braking pressure 0.7 bar. On this basis, it can be determined whether the preset signal trigger logic corresponding to the preset function of activating emergency braking matches the signal sequence. For example, the running signals related to the preset signal trigger logic can be extracted from the signal sequence and arranged in time sequence to obtain the signal sequence to be tested. On this basis, it can be determined whether the signal sequence to be tested matches the preset signal trigger logic. Assume the signal sequence to be tested can be: vehicle speed 120 km / h, vehicle speed 80 km / h, the detection distance value of the radar ranging device is 30 m, vehicle speed 55 km / h, vehicle speed 50 km / h, the detection distance value of the radar ranging device is 20 m, automatic emergency braking activated. Among them, when the vehicle speed is 55 km / h and 50 km / h, it matches the vehicle speed in the preset speed range (such as 5 - 60 km / h) in the preset signal trigger logic. After that, the detection distance value of the radar ranging device is 20 m, which matches the detection distance of the radar ranging device being less than the preset distance (such as 25 m) in the preset signal trigger logic. After that, the status flag of automatic emergency braking being equal to 1 matches the triggering of automatic emergency braking in the preset signal trigger logic. Thus, it can be considered that the preset signal trigger logic corresponding to the preset function of activating automatic emergency braking matches the signal sequence, and it can be considered that the preset function is executed successfully.

[0060] In this embodiment, obtaining the log information of the vehicle is beneficial to quickly grasp the operation data of the vehicle within a period of time. By converting the log information into operation signals arranged in time sequence to obtain a signal sequence, it is beneficial to extract the actual situation of the operation signals of the vehicle changing with time, and further provide an accurate and reliable reference basis for the subsequent test analysis of the function execution situation. On this basis, after obtaining the signal sequence in this embodiment, by judging whether the signal sequence matches the preset signal trigger logic corresponding to each preset function, it is beneficial to quickly and accurately obtain the function test results corresponding to each preset function. Among them, when the signal sequence matches the preset signal trigger logic, it can be considered that when the vehicle executes the preset function, the actual situation of the relevant operation information in its signal sequence changing with time meets the preset signal trigger logic corresponding to the preset function, that is, the preset function is normally triggered in the actual vehicle use scenario, and the function test result is successful execution. On the one hand, in this embodiment, the vehicle is tested based on the log information generated during the operation of the vehicle in the actual scenario, without being restricted by the fixed execution steps of the automated test script and the test hardware. While increasing the test sample size, it can also perform safer, more efficient and comprehensive tests on the static functions and dynamic functions of the vehicle. On the other hand, the log information generated during the actual operation of the vehicle is more in line with the scenario requirements of users when actually using the vehicle. In this embodiment, the log information is converted into a signal sequence to test the vehicle, which is more beneficial to testing the execution situation of each preset function of the vehicle under complex working conditions. In this way, this embodiment can judge whether the operation signals arranged in time sequence in the signal sequence conform to the preset signal trigger logic of the preset function, and then realize efficient and reasonable vehicle testing, ensuring the comprehensiveness, accuracy and reliability of the test results.

[0061] Optionally, the preset signal trigger logic includes a trigger signal set corresponding to the preset function and a function response signal; wherein, the trigger signal set includes each trigger signal arranged in time sequence.

[0062] Specifically, the trigger signal set referred to in this embodiment can trigger the preset functions of the vehicle, and it includes each trigger signal arranged in sequence. In this embodiment, the function response signal represents the signal generated when the vehicle responds to the trigger signal set and thus triggers the preset function. The trigger signal set and the function response signal can be set manually in advance, or can be extracted from information such as the functional requirements of the vehicle by using an automated method. For example, the functional timing information corresponding to the preset function can be obtained from the functional requirement information of the vehicle, and each trigger signal (such as based on the method of entity recognition) can be extracted from the functional timing information and arranged in sequence to obtain the trigger signal set. The response signal after the preset function is activated can also be extracted from the functional timing information to obtain the function response signal. On this basis, according to the trigger signal set and the function response signal corresponding to the preset function, the preset signal trigger logic can be further obtained (such as associating the trigger signal set and the function response signal with the corresponding preset function). Preset signal trigger logic. Suppose for the preset function of activating emergency braking, its trigger signal set can include: (1) The vehicle gear is in the forward gear; (2) The current distance detected by the radar ranging device and the current vehicle speed detected by the vehicle speed detection device are sent to the ECU for data analysis; (3) When the current vehicle speed is greater than the preset vehicle speed and the current distance is less than the preset distance, the ECU sends a braking instruction to the braking system. The function response signal can include the activation of the braking system and the flashing of the warning light on the dashboard. Then the trigger signals and the function response signal can be spliced to obtain the preset signal trigger logic corresponding to the preset function of activating emergency braking.

[0063] In this embodiment, in addition to the need to clarify specific trigger signals for each trigger signal required to trigger the preset function, specific timing rules also need to be satisfied between the trigger signals to ensure the safety of the vehicle. And the trigger signal set in this embodiment includes each trigger signal arranged in sequence, which not only clarifies the trigger signals but also defines the timing relationship between the trigger signals. In this way, the preset trigger logic in this embodiment includes the trigger signal set and the function response signal corresponding to the preset function, which is beneficial to ensuring the reliability of the preset trigger logic, and thus beneficial to improving the accuracy and reference value of the vehicle test results.

[0064] Optionally, the preset signal trigger logic is determined based on the test cases pre-associated with the preset function. The test cases include test input information and the corresponding test output information after the preset function is triggered; before determining whether the signal sequence matches the preset signal trigger logic corresponding to each preset function, the vehicle test method further includes the following steps:

[0065] Convert the test input information into each trigger signal arranged in sequence to obtain the trigger signal set, and obtain the function response signal according to the test output information;

[0066] Based on the trigger signal set and the functional response signal corresponding to each test case respectively, the preset signal trigger logic corresponding to the preset function pre-associated with each test case is obtained.

[0067] Specifically, in this embodiment, the test case refers to the specific test steps and expected results designed to verify whether the vehicle and its subsystems (such as the power system, braking system, and safety system, etc.) meet the preset functional requirements or technical specifications (for example, the test cases corresponding to each preset function can be pre-constructed by using the requirement-based test case construction method in related technologies, which will not be elaborated here). The test case includes test input information (i.e., test steps) and the corresponding test output information (i.e., expected results) after the preset function is triggered. The test input information can be converted into each trigger signal arranged in time sequence to obtain the trigger signal set. For example, assuming that for the preset function of window lifting, its test case can include: test input information: the user toggles the window switch; if the window is not at the topmost position; test output information: the window rises. On this basis, a trigger signal database can be constructed in advance, extracting the trigger signals from the test input information and arranging the trigger signals in the order of signal extraction to obtain the trigger signal set. For example, the trigger signal set corresponding to the above-mentioned preset function of window lifting can be: the window switch signal is equal to 1; the window position signal is not equal to 100%.

[0068] Similarly, the information related to the triggering of the preset function in the test output information can also be extracted to obtain the functional response signal. For example, the functional response signal corresponding to the above-mentioned preset function of window lifting can be: the value of the window position signal becomes larger. On this basis, the preset signal trigger logic corresponding to the preset function pre-associated with each test case can be obtained respectively according to the trigger signal set and the functional response signal corresponding to each test case.

[0069] In this embodiment, by using the specific test input information and the corresponding test output information after the preset function is triggered, the trigger signal set and the function response signal corresponding to the preset function are determined, which helps to ensure that the trigger conditions and response behaviors of each preset function are reliably defined. In this way, the preset signal trigger logic in this embodiment is determined based on the test cases pre-associated with the preset function, which can improve the accuracy of the preset signal trigger logic. At the same time, since the test cases usually cover multiple scenarios and corresponding trigger conditions, obtaining the trigger signal set and the function response signal based on the test cases pre-associated with the preset function in this embodiment helps to verify whether the preset function can respond correctly under various possible operating conditions. That is, in this embodiment, one preset function can correspond to at least one test case, and each test case can be respectively converted into the trigger signal set and the function response signal corresponding to the preset function, so that at least one preset signal trigger logic corresponding to each preset function can be obtained. This helps to be compatible with multiple preset signal trigger logics corresponding to the same preset function and improve the comprehensiveness of vehicle testing.

[0070] Optionally, determining the function test results corresponding to each preset function by judging whether the signal sequence matches the preset signal trigger logic corresponding to each preset function includes the following steps:

[0071] When at least one first target operation signal corresponding to each trigger signal in the trigger signal set is missing in the signal sequence, the function test result is not executed; wherein, the first target operation signal includes the operation signal whose trigger signal meets the preset matching condition; the preset matching condition includes a signal matching condition and a sorting matching condition;

[0072] When the signal sequence includes each first target operation signal corresponding to each trigger signal in the trigger signal set, it is judged whether there is an operation signal after the last first target operation signal in the signal sequence and whose signal matches the function response signal;

[0073] If so, it is indicated that the preset signal trigger logic corresponding to the preset function matches the signal sequence, and the function test result corresponding to the preset function is executed successfully;

[0074] If not, it is indicated that the preset signal trigger logic corresponding to the preset function does not match the signal sequence, and the function test result corresponding to the preset function is executed failed.

[0075] Specifically, in this embodiment, the preset matching conditions include a signal matching condition and a sorting matching condition. That is, on the basis that the trigger signals in the trigger signal set and the running signals in the signal sequence satisfy the signal matching (such as signal type matching, signal value matching), the sorting corresponding to each matched running signal also needs to match the sorting of the trigger signals. The first target running signal corresponding to the trigger signal referred to in this embodiment means the running signal in the signal sequence that satisfies the signal matching condition and the sorting matching condition with each trigger signal. For example, when there is no running signal in the signal sequence that satisfies the signal matching condition with the trigger signal, it indicates that the first target running signal corresponding to the trigger signal is missing in the signal sequence. When the sorting of the running signal in the signal sequence that satisfies the signal matching condition with the trigger signal does not satisfy the sorting matching condition with the sorting of the functional response signal in the trigger signal set, it indicates that the first target running signal corresponding to the trigger signal is missing in the signal sequence. In this embodiment, it can be determined whether the signal sequence matches the trigger signal set by judging whether there is at least one missing first target running signal corresponding to each trigger signal in the trigger signal set in the signal sequence. When there is at least one missing first target running signal in the signal sequence, it means that the signal sequence does not match the trigger signal set, and the functional test result is not executed.

[0076] In one embodiment, when the signal sequence includes each first target running signal corresponding to each trigger signal in the trigger signal set, it means that at least part of the running signals in the signal sequence match the trigger signal set. On this basis, it can be judged whether there is a running signal in the signal sequence that is after the last first target running signal and satisfies the signal matching condition with the functional response signal. If so, it means that at least part of the running signals in the signal sequence match the test output information corresponding to the preset function after the subsequent running signals satisfy the preset function corresponding test input information. It indicates that the preset signal trigger logic corresponding to the preset function matches the signal sequence, and the functional test result corresponding to the preset function is executed successfully. If not, it means that there is no running signal that matches the test output information (i.e., the functional response signal) corresponding to the preset function, indicating that the vehicle has not executed the preset function, and the functional test result corresponding to the preset function is executed failed.

[0077] In one embodiment, after obtaining the preset signal trigger logic, the preset signal trigger logic can be converted into a signal judgment logic, and then the functional test model corresponding to each preset function can be obtained. In actual use, only by inputting the signal sequence into each functional test model, it is possible to judge whether there is at least one missing first target running signal corresponding to each trigger signal in the trigger signal set in the signal sequence, and to judge whether there is a running signal in the signal sequence that is after the last first target running signal and satisfies the signal matching condition with the functional response signal, and then obtain the functional test result corresponding to each preset function. Such asFigure 2 As shown in the figure, taking the preset signal trigger logic corresponding to the preset function of window lifting as an example, the signal judgment logic corresponding to its corresponding function test model can be:

[0078] Judge whether the window switch signal is equal to 1;

[0079] If not, it indicates that the trigger signal set and the signal sequence do not meet the preset matching conditions, and the function execution result is not executed;

[0080] If so, judge whether the window position signal is not equal to 100%;

[0081] If not, it indicates that the trigger signal set and the signal sequence do not meet the preset matching conditions, and the function execution result is not executed;

[0082] If so, judge whether the window position signal becomes larger;

[0083] If so, it indicates that the preset signal trigger logic corresponding to the preset function matches the signal sequence, and the function execution result is successful execution;

[0084] If not, it indicates that the preset signal trigger logic corresponding to the preset function does not match the signal sequence, and the function execution result is failed execution.

[0085] Suppose the signal sequence includes: (1) The first timestamp, vehicle speed 100 km / h; (2) The second timestamp, the window switch signal is equal to 1, and the window position signal is equal to 100%. The signal sequence can be input into the above function test model. According to the signal judgment logic of the function test model, it can be known that the function test result corresponding to the preset function of window lifting is that the function is not executed.

[0086] In this embodiment, the preset matching conditions include signal matching conditions and sorting matching conditions, which is equivalent to designing double matching conditions, which is beneficial to reducing the risk of misjudgment. Even in the face of log information generated under complex working conditions, it can ensure the reliability of analyzing the vehicle running conditions based on the signal time sequence, thereby improving the accuracy of the test results. This embodiment first judges whether there is at least one first target running signal corresponding to each trigger signal in the trigger signal set missing in the signal sequence, which is beneficial to quickly eliminating interference factors, reducing unnecessary data processing, and improving the test efficiency. And when the signal sequence includes each first target running signal corresponding to each trigger signal in the trigger signal set, judge whether there is a running signal that is located after the last first target running signal and meets the signal matching conditions with the function response signal, which conforms to the actual application scenario and trigger process of the preset function. In this way, this embodiment can quickly master the test progress according to the function test result. Furthermore, it is convenient to subsequently further test the preset functions that are not executed and executed failed, which is beneficial to improving the test efficiency and the accuracy of the test results.

[0087] Optionally, the functional test result further includes the reason for the execution failure; the vehicle test method further includes the following steps:

[0088] When the functional test result is an execution failure, obtain the reason for the execution failure according to the operation signals in the signal sequence that are before the last first target operation signal and except for all the first target operation signals.

[0089] Specifically, the last first target operation signal referred to in this embodiment represents the first target operation signal corresponding to the last trigger signal in the trigger signal set. When the functional test result is an execution failure, the operation signals in the signal sequence that are before the last first target operation signal and except for all the first target operation signals can be obtained, and the reason for the execution failure can be obtained based on this.

[0090] Optionally, to further improve the reliability of the reason for the execution failure, the operation signals in the signal sequence that are between the first first target operation signal and the last target operation signal and except for the operation signals before all the first target operation signals can be obtained as alternative operation signals, and all the alternative operation signals can be used as the reason for the execution failure. For example, assume that the signal sequence includes: (1) Signal A; (2) Signal B; (3) Signal C; (4) Signal D. And the trigger signal set is (1) Signal A; (2) Signal C; (3) Signal D. Then it can be known that Signal A, Signal C, and Signal D in the above signal sequence are the first target operation signals corresponding to the trigger signals. The operation signal (i.e., Signal B) that is between Signal A and Signal D and except for the first target operation signals can be selected as the alternative operation signal, and then the reason for the execution failure can be obtained.

[0091] In this embodiment, when the trigger signal set and the signal sequence meet the preset matching condition, it indicates that the basic requirements for triggering the preset function have been met at this time. And if the function execution result is an execution failure at this time, it means that before the preset function is correctly triggered, the function execution may have failed due to some operation signals that do not match the trigger signal set (i.e., the operation signals other than the first target operation signals). These can be used as the reason for the execution failure of the preset function, which is beneficial to discovering the design defects that may cause the function to not execute normally and improving the reference value of the test result.

[0092] Optionally, the vehicle test method further includes the following steps:

[0093] When a running signal matching the function response signal corresponding to the preset function is detected, determine whether the signal sequence meets the scenario trigger condition pre-associated with the preset function;

[0094] If so, the scenario test result corresponding to the preset function is a normal trigger scenario;

[0095] If not, the scenario test result corresponding to the preset function is an abnormal trigger scenario.

[0096] Specifically, the system requirements of the vehicle usually specify the scenarios in which each preset function needs to be triggered to meet user requirements and safety requirements, etc. The scenario trigger conditions corresponding to the preset function can be determined based on the preset demand scenarios and the two can be associated. For example, the scenarios in which the hazard warning lights function of the vehicle needs to be triggered can include: manual operation trigger, collision event trigger, and emergency braking trigger, etc. Then the scenario trigger conditions can be: detecting that the manual switch state is in the on state, detecting a collision event, and detecting that the emergency braking is in the on state, etc.

[0097] In one embodiment, when the function response signal corresponding to the preset function is detected, it indicates that the vehicle has triggered the preset function. At this time, judging whether the signal sequence meets the trigger conditions pre-associated with the preset function can determine whether the preset function is triggered in the expected scenario, which is beneficial to identifying the abnormal trigger scenarios of the preset function and improving the comprehensiveness and reliability of the test results.

[0098] Optionally, the number of scenario trigger conditions is at least one; judging whether the signal sequence meets the scenario trigger conditions pre-associated with the preset function includes:

[0099] Judging whether the signal sequence includes a running signal that is before the second target running signal and meets at least one scenario trigger condition; wherein, the second target running signal includes a running signal that matches the function response signal.

[0100] Specifically, the second target running signal referred to in this embodiment includes a running signal that matches the function response signal (such as meeting the signal matching condition). It can be judged whether the running signal before the second target running signal includes a running signal that can meet at least one scenario trigger condition to determine whether the running scenario of the vehicle matches at least one scenario trigger condition when the preset function is triggered.

[0101] Optionally, after obtaining at least one trigger condition pre-associated with the preset function, a signal judgment logic corresponding to the preset function can be constructed based on the trigger condition, and then a scenario test model corresponding to each preset function can be obtained. In actual use, only by inputting the signal sequence into each scenario test model, the function of judging whether the signal sequence includes a running signal that is before the second target running signal and meets at least one scenario trigger condition can be realized, and then the scenario test results corresponding to each preset function can be obtained. For example, for the above-mentioned hazard warning lights function, the corresponding signal judgment logic can be:

[0102] When it is detected that there is a running signal in the signal sequence corresponding to the triggering of the hazard warning lights function, use this signal as the second target signal;

[0103] Determine whether there is a running signal that matches at least one of the manual switch being in the on state, a collision event being detected, and emergency braking being in the on state before the second target signal;

[0104] If so, the scenario test result corresponding to the double flash function is a normal trigger scenario;

[0105] If not, the scenario test result corresponding to the double flash function is an abnormal trigger scenario.

[0106] It should be understood that in this embodiment, the process of performing a scenario test on the vehicle is to perform a reverse detection on the signal sequence using a preset signal triggering logic. That is, first detect a running signal that matches the function response signal, and then determine whether the running signal before the running signal meets the scenario trigger conditions. This is beneficial to reducing the amount of data processing, effectively reducing the misjudgment probability under complex working conditions, and ensuring the reliability of the scenario test result. And in the process of performing a function test on the vehicle in this embodiment, a forward detection is performed on the signal sequence using a preset signal triggering logic. That is, first, judge whether the signal sequence matches the test input information according to the order of triggering the signal set in sequence. On the basis of the input matching, then judge whether the subsequent running signal matches the function response signal corresponding to the test output information. While improving the test efficiency, it is also beneficial to avoid confusing the situation where the function is not executed and the function execution fails, and improve the accuracy of the function test result.

[0107] In this embodiment, the running signal before the second target running signal in the signal sequence can reflect the actual running scenario of the vehicle before triggering the preset function. It can be judged whether the signal sequence includes a running signal before the second target running signal and meeting at least one scenario trigger condition. If so, it means that the preset function is triggered under the expected scenario, and the scenario test result is a normal trigger scenario. If not, it means that the preset function is mis-triggered, and the scenario test result is an abnormal trigger scenario, which is beneficial to quickly and accurately check whether there are abnormal execution actions of the vehicle.

[0108] Optionally, converting the obtained log information of the vehicle into running signals arranged in time sequence to obtain a signal sequence, including:

[0109] Obtain the database file pre-associated with the vehicle, and use the database file to parse the log information into running signals and the time information corresponding to the running signals;

[0110] Arrange the running signals according to the time information to obtain a signal sequence.

[0111] Specifically, the database file referred to in this embodiment may represent a standard format file used to describe messages and signals in an automotive Controller Area Network (CAN) bus system, such as a DBC file (Database CAN). Since different vehicles often correspond to different DBC files, even for the same operating signal, the fields representing the operating signal in the log information of different vehicles may also be different. In this embodiment, after obtaining the log information of the vehicle, the relevant fields in the log information can be parsed based on the DBC file corresponding to the vehicle to obtain the parsed operating signal and the time information (i.e., timestamp) corresponding to the operating signal. On this basis, the operating signals can be arranged based on the time information to obtain a signal sequence.

[0112] Optionally, for different vehicles, there are often differences in their corresponding required functions. In actual use, the required functions of the vehicle can be determined according to the function configuration file pre-associated with the vehicle. Furthermore, the preset signal trigger logics that are suitable for testing the vehicle can be screened based on the required functions, which is beneficial to improving the test efficiency.

[0113] Optionally, after obtaining the function test results corresponding to all preset functions, the number of successful executions, the execution time (such as the time information corresponding to the operating signal that matches the function response signal), etc. corresponding to each preset function can be counted. Information such as the number of failed executions and the reasons for failure corresponding to the preset functions can also be counted, thereby generating a more detailed test result and improving the referenceability of the test result.

[0114] In this embodiment, parsing the log information based on the database file pre-associated with the vehicle to obtain the operating signal is beneficial to compatible with the test tasks of different vehicles and improving the generality and high coverage of the vehicle test method.

[0115] Optionally, the log information is offline log information.

[0116] In this embodiment, the offline log information may represent the log information of the vehicle within a preset duration, which can be obtained and stored in advance. For example, the vehicle test requirement can be triggered every 24 hours. In response to the vehicle test requirement, all the log information of the vehicle within the historical duration (such as within the past 24 hours) is obtained as the offline log information, and then the vehicle is tested offline based on the offline log information. It should be understood that compared with the method of obtaining the log information of the vehicle in real time and testing the vehicle based on the log information obtained in real time, the offline log information in this embodiment can include the log information of the entire process of the vehicle executing each function, which is beneficial to ensuring the integrity of the log information and thus effectively improving the reliability of the test result.

[0117] Such asFigure 3 As shown in Figure 3 , a vehicle testing method and apparatus 300 provided by an embodiment of the present invention includes:

[0118] A log conversion module 310, configured to convert the acquired log information of the vehicle into operation signals arranged in time sequence to obtain a signal sequence;

[0119] A function testing module 320, configured to determine whether the signal sequence matches the preset signal triggering logic corresponding to each preset function to obtain a function testing result corresponding to each preset function; wherein, when the signal sequence matches the preset signal triggering logic corresponding to the preset function, the function testing result corresponding to the preset function is successful execution.

[0120] The vehicle testing method and apparatus provided by this embodiment can produce substantially the same technical effects as the vehicle testing method, and will not be elaborated here.

[0121] As Figure 4 shown in Figure 4 , an electronic device 400 provided by an embodiment of the present invention includes a memory 410 and a processor 420; the memory 410 is used to store a computer program; the processor 420 is used to implement the vehicle testing method as described above when executing the computer program.

[0122] Or, an electronic device 400 includes a memory 410 and a processor 420 coupled to the memory 410; the memory 410 is configured to store a computer program; the processor 420 is configured to perform the following operations when executing the computer program:

[0123] Convert the acquired log information of the vehicle into operation signals arranged in time sequence to obtain a signal sequence;

[0124] Determine whether the signal sequence matches the preset signal triggering logic corresponding to each preset function to obtain a function testing result corresponding to each preset function; wherein, when the signal sequence matches the preset signal triggering logic corresponding to the preset function, the function testing result corresponding to the preset function is successful execution.

[0125] The electronic device provided by this embodiment can produce substantially the same technical effects as the vehicle testing method, and will not be elaborated here.

[0126] A computer-readable storage medium provided by an embodiment of the present invention has a computer program stored thereon, and when the computer program is executed by a processor, the vehicle testing method as described above is implemented.

[0127] That is to say, a non-volatile computer-readable storage medium stores a computer program thereon. When the computer program is executed by a processor, the processor performs the following operations:

[0128] Convert the obtained log information of the vehicle into running signals arranged in time sequence to obtain a signal sequence;

[0129] Determine whether the signal sequence matches the preset signal triggering logic corresponding to each preset function to obtain the function test results corresponding to each preset function; wherein, when the signal sequence matches the preset signal triggering logic corresponding to the preset function, the function test result corresponding to the preset function is successful execution.

[0130] The computer-readable storage medium provided in this embodiment and the vehicle test method can produce basically the same technical effects, which will not be elaborated here.

[0131] Now, an electronic device 400 that can be used as a server or a client of the present invention will be described. It is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device 400 is intended to represent various forms of digital electronic computer devices, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 400 can also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described herein and / or claimed.

[0132] The electronic device 400 includes a computing unit that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The computing unit, ROM, and RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.

[0133] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc. In this application, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present invention. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0134] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will all fall within the protection scope of the present invention.

Claims

1. A vehicle testing method, characterized in that, Including: Converting the obtained log information of the vehicle into operation signals arranged in time sequence to obtain a signal sequence; Judging whether the signal sequence matches the preset signal trigger logics corresponding to the preset functions to obtain the function test results corresponding to the preset functions; wherein, when the signal sequence matches the preset signal trigger logic corresponding to the preset function, the function test result corresponding to the preset function is successful execution.

2. The vehicle testing method according to claim 1, wherein The preset signal trigger logic includes a trigger signal set corresponding to the preset function and a function response signal; wherein, the trigger signal set includes each trigger signal arranged in time sequence.

3. The vehicle testing method according to claim 2, wherein, The preset signal trigger logic is determined based on a test case pre-associated with the preset function, and the test case includes test input information and test output information corresponding after the preset function is triggered; Before judging whether the signal sequence matches the preset signal trigger logics corresponding to the preset functions, it further includes: Converting the test input information into each trigger signal arranged in time sequence to obtain a trigger signal set, and obtaining a function response signal according to the test output information; Respectively obtaining the preset signal trigger logics corresponding to the preset functions pre-associated with the test cases according to the trigger signal set and the function response signal corresponding to each test case.

4. The vehicle testing method according to claim 2, characterized in that The judging whether the signal sequence matches the preset signal trigger logics corresponding to the preset functions to obtain the function test results corresponding to the preset functions includes: When at least one first target operation signal corresponding to each trigger signal in the trigger signal set is missing in the signal sequence, the function test result is not executed; wherein, the first target operation signal includes the operation signal that satisfies a preset matching condition with the trigger signal; the preset matching condition includes a signal matching condition and a sorting matching condition; When the signal sequence includes each first target operation signal corresponding to each trigger signal in the trigger signal set, judging whether the signal sequence includes an operation signal that is after the last first target operation signal and satisfies the signal matching condition with the function response signal; If so, indicating that the preset signal trigger logic corresponding to the preset function matches the signal sequence, and the function test result corresponding to the preset function is the successful execution; If not, indicating that the preset signal trigger logic corresponding to the preset function does not match the signal sequence, and the function test result corresponding to the preset function is failed execution.

5. The vehicle testing method according to claim 4, characterized in that, The function test result further includes a reason for failed execution; the vehicle test method further includes: When the function test result is the failed execution, obtaining the reason for failed execution according to the operation signals that are before the last first target operation signal in the signal sequence and except for all the first target operation signals.

6. The vehicle testing method according to claim 2, characterized in that, It also includes: When the operation signal matching the function response signal corresponding to the preset function is detected, determine whether the signal sequence meets the scenario trigger conditions pre-associated with the preset function; If so, the scenario test result corresponding to the preset function is a normal trigger scenario; If not, the scenario test result corresponding to the preset function is an abnormal trigger scenario.

7. The vehicle testing method according to claim 6, wherein The number of the scenario trigger conditions is at least one; determining whether the signal sequence meets the scenario trigger conditions pre-associated with the preset function includes: Determining whether the signal sequence includes an operation signal that is before the second target operation signal and meets at least one of the scenario trigger conditions; wherein, the second target operation signal includes the operation signal matching the function response signal.

8. The vehicle testing method according to claim 1, wherein The converting the obtained log information of the vehicle into operation signals arranged in time sequence to obtain a signal sequence includes: Obtaining a database file pre-associated with the vehicle, and parsing the log information into the operation signals and the time information corresponding to the operation signals by using the database file; Arranging the operation signals according to the time information to obtain the signal sequence.

9. The vehicle testing method according to claim 1, characterized in that, The log information is offline log information.

10. A vehicle test method and apparatus, characterized in that, including: A log conversion module, which is used to convert the obtained log information of the vehicle into operation signals arranged in time sequence to obtain a signal sequence; A function test module, which is used to determine whether the signal sequence matches the preset signal trigger logic corresponding to each preset function to obtain the function test result corresponding to each preset function; wherein, when the signal sequence matches the preset signal trigger logic corresponding to the preset function, the function test result corresponding to the preset function is successful execution.

11. An electronic device, characterized in that, including a memory and a processor; The memory is used to store a computer program; The processor is used to implement the vehicle test method according to any one of claims 1 to 10 when executing the computer program.

12. A computer-readable storage medium, characterized in that, A computer program is stored on the storage medium, and when the computer program is executed by the processor, the vehicle test method according to any one of claims 1 to 10 is implemented.

Citation Information

Cited By

  • Vehicle testing system and vehicle testing method

    CN121143279A