Vehicle machine abnormity test method, test bench and computer readable storage medium

By intercepting and comparing the display screen image within the set time after the machine is powered on, the problem that traditional testing methods are difficult to accurately capture startup abnormalities is solved, and more accurate abnormal judgment and automated testing process are achieved, which improves the reliability of the test results. sex.

CN119086097APending Publication Date: 2024-12-06ZHEJIANG GEELY HLDG GRP CO LTD +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411272622.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The traditional car engine boot abnormality test method is difficult to accurately capture the boot abnormality during repeated power-up and down, and is affected by environmental factors, resulting in low judgment accuracy.

Method used

By screening the current test image of the display within the set time after the car is powered on, and comparing the features with the reference image during normal startup, determining the abnormal situation of the boot, using the adb screenshot tool and Python programming to realize the automated test process, reducing the Human operation error.

Benefits of technology

It improves the accurate judgment of vehicle engine boot abnormalities, reduces the impact of environmental factors on test results, and achieves higher repeatability and reliability of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119086097A_ABST
    Figure CN119086097A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle machine abnormity test method, a test bench and a computer readable storage medium, and the method comprises the steps: intercepting a current test image of a display screen connected with a vehicle machine within a set time period after the vehicle machine is electrified based on a received screenshot instruction through a screenshot mode after the vehicle machine is electrified in a current test, and obtaining the current test image of the display screen connected with the vehicle machine; similarly, a reference image of the display screen is intercepted in a screenshot mode when the vehicle-mounted terminal starts to be powered on to reach the normal power-on duration under the normal power-on condition of the vehicle-mounted terminal, the image acquisition mode is not influenced by the environment, the clear and accurate current test image and the reference image are obtained, then the current test image is compared with the reference image, and the test accuracy is improved. And according to the comparison result, the starting-up abnormal condition of the vehicle machine is judged, and an accurate judgment result can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle computer stability, and in particular to a vehicle computer abnormality testing method, a test bench, and a computer-readable storage medium. Background Art

[0002] In the context of fierce competition in the cockpit of new energy commercial vehicles in China, more requirements are put forward for the functions, performance and stability of the vehicle computer, so a comprehensive set of tests to verify the quality of the cockpit vehicle computer has become crucial. However, in actual applications or stability tests of commercial vehicle vehicle computers, due to the complexity and variability of the vehicle use environment, such as power supply fluctuations, system failures and other factors, the vehicle computer may frequently experience power-on and power-off processes, which will cause a variety of abnormal startup conditions, such as occasional black screens, blue screens, slow startup, etc. These problems seriously affect the user experience and may even endanger driving safety.

[0003] Traditional power-on abnormality testing methods often have difficulty effectively capturing power-on abnormalities. They use a camera to capture images of the operating status of the device under test (display screen / screen of a commercial vehicle), and send these images to a processing device. The processing device determines the operating status of the device under test based on the received operating images to obtain information on whether the power-on is abnormal. This testing method is limited by the hardware environment. Changes in environmental factors such as light and angle will affect the image quality, interfere with the accurate judgment of abnormal conditions, and may lead to incorrect judgments of power-on abnormalities. For example, when the backlight of the camera is zero, the image captured by the camera is too dark, affecting the observation of screen display details. Summary of the invention

[0004] In order to overcome the problems existing in the related art, this specification provides a vehicle computer abnormality testing method, a test bench and a computer readable storage medium.

[0005] According to a first aspect of an embodiment of this specification, a vehicle abnormality testing method is provided, the method comprising:

[0006] After the vehicle computer is powered on in the current test, based on the received screenshot instruction, a current test image of the display screen connected to the vehicle computer is captured within a set time after the vehicle computer is powered on, and the set time is greater than or equal to the normal power-on time of the vehicle computer;

[0007] Performing feature comparison between the current test image and a reference image to obtain a comparison result, wherein the reference image is an image of the display screen when the normal startup time is reached from the power-on time of the vehicle computer when the vehicle computer is normally powered on;

[0008] According to the comparison result, the abnormal startup situation of the vehicle computer is determined.

[0009] According to a vehicle computer abnormality testing method provided by the present application, the feature comparison between the current test image and the reference image includes:

[0010] Determining the similarity between the current test image and the reference image;

[0011] The step of judging the abnormal startup condition of the vehicle computer according to the comparison result includes:

[0012] According to the similarity, the abnormal startup situation of the vehicle computer is determined.

[0013] According to a vehicle computer abnormality testing method provided by the present application, the current test image of a display screen connected to the vehicle computer is intercepted within a set time after the vehicle computer is powered on, including:

[0014] When the normal startup time is reached from the time when the vehicle computer is powered on, capturing the current test image;

[0015] The determining, based on the similarity, of an abnormal startup condition of the vehicle computer includes:

[0016] If the similarity is less than or equal to a threshold, it is determined that the vehicle computer is turned on abnormally.

[0017] According to a vehicle computer abnormality testing method provided by the present application, judging the abnormal startup condition of the vehicle computer according to the similarity includes:

[0018] If the similarity is less than or equal to a threshold, simulating a click operation to test the vehicle computer's response to the user input;

[0019] capturing a real-time image of the display screen after the simulated click operation;

[0020] judging whether the vehicle computer responds normally according to the image features of the real-time image;

[0021] If not, it is determined that the vehicle computer is turned on abnormally.

[0022] According to a vehicle computer abnormality testing method provided by the present application, the current test image of a display screen connected to the vehicle computer is intercepted within a set time after the vehicle computer is powered on, including:

[0023] Within the normal startup time starting from the moment the vehicle computer is powered on, capturing a plurality of the current test images according to an image capture frequency;

[0024] The determining the similarity between the current test image and the reference image comprises:

[0025] respectively determining similarities between the plurality of current test images and the reference image;

[0026] The determining, based on the similarity, of an abnormal startup condition of the vehicle computer includes:

[0027] If the similarity is less than or equal to a threshold, storing the current test image corresponding to the similarity less than or equal to the threshold;

[0028] Perform feature analysis on the stored multiple current test images to determine the cause of the abnormal startup of the vehicle computer.

[0029] According to a vehicle computer abnormality testing method provided by the present application, the set duration is a test limit duration;

[0030] The method of capturing a current test image of a display screen connected to the vehicle computer within a set time after the vehicle computer is powered on includes:

[0031] Within the test limit time starting from the moment the vehicle computer is powered on, a plurality of the current test images are captured according to the image capture frequency; the test limit time is longer than the normal power-on time;

[0032] The determining the similarity between the current test image and the reference image comprises:

[0033] respectively determining similarities between the plurality of current test images and the reference image;

[0034] The determining, based on the similarity, of an abnormal startup condition of the vehicle computer includes:

[0035] If the similarity between two adjacent current test images changes from less than or equal to a threshold value to greater than the threshold value in the time sequence starting from the time when the vehicle computer is powered on, determine the time from when the current test image corresponding to the similarity greater than the threshold value is captured to the time when the vehicle computer is powered on as the test power-on time;

[0036] If the test startup time is longer than the normal startup time, it is determined that the vehicle computer startup is abnormal.

[0037] According to a vehicle computer abnormality testing method provided by the present application, judging the abnormal startup condition of the vehicle computer according to the similarity further includes:

[0038] If the time from the capture time of the current test image to the power-on time of the vehicle computer reaches the test limit time, and the similarity corresponding to the current test image is less than or equal to a threshold value, it is determined that the vehicle computer is powered on abnormally.

[0039] According to a vehicle computer abnormality testing method provided by the present application, after determining the abnormal startup condition of the vehicle computer, the method further includes:

[0040] The preset notification application is called, and the coordinate position information corresponding to the specific notification operation in the notification application is used to simulate the user's click operation to send the startup result to the designated engineer.

[0041] According to a vehicle computer abnormality testing method provided by the present application, based on a received screenshot instruction, capturing a current test image of a display screen connected to the vehicle computer within a set time after the vehicle computer is powered on, includes:

[0042] Based on the received screenshot instruction, the abd screenshot tool is used to capture the current test image of the display screen connected to the vehicle computer within a set time after the vehicle computer is powered on.

[0043] According to a vehicle computer abnormality testing method provided by the present application, after judging the abnormal startup condition of the vehicle computer according to the comparison result, the method further includes:

[0044] After determining that the vehicle computer is abnormally started, stopping the test;

[0045] After determining that the vehicle computer is turned on normally, the vehicle computer in the current test is controlled to be powered off, and the step of re-executing the step of capturing the current test image of the display screen connected to the vehicle computer within a set time after the vehicle computer is powered on based on the received screenshot instruction after the vehicle computer is powered on in the current test.

[0046] The present application also provides a vehicle abnormality test bench, the test bench comprising:

[0047] A test bench, used to fix the vehicle computer to be tested for abnormality;

[0048] A display screen, connected to the vehicle computer, and used to display the power-on status of the vehicle computer;

[0049] A hardware simulator connected to the hardware interface of the vehicle computer and used to control and simulate the system of the vehicle computer;

[0050] A test terminal is connected to the vehicle computer and the hardware emulator. The test terminal includes a memory, a processor, and a vehicle computer abnormality test program stored in the memory and executable on the processor. When the processor executes the vehicle computer abnormality test program, the steps of the vehicle computer abnormality test method described above are implemented.

[0051] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the vehicle computer abnormality testing method as described in any one of the above is implemented.

[0052] The vehicle computer abnormality testing method, test bench and computer-readable storage medium in the embodiments of this specification are compared with the current situation in which it is difficult to effectively capture the power-on abnormality of repeated power-on and power-off processes through camera equipment, and the accuracy of judging the power-on abnormality is low due to environmental influences. In the current test, after the vehicle computer is powered on, based on the received screenshot instruction, a current test image of the display screen connected to the vehicle computer is captured within a set time after the vehicle computer is powered on by means of screenshots. Similarly, a reference image of the display screen when the normal power-on time is reached from the moment the vehicle computer is powered on is captured by means of screenshots when the vehicle computer is normally powered on. This image acquisition method is not affected by the environment, and clear and accurate current test images and reference images are obtained. The current test image and the reference image are then compared, and the power-on abnormality of the vehicle computer is judged according to the comparison result, so that an accurate judgment result can be obtained.

[0053] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0055] Figure 1 is a schematic diagram of a vehicle abnormality test bench according to an exemplary embodiment of the present specification;

[0056] Figure 2 is a flow chart of a vehicle computer abnormality testing method according to an exemplary embodiment of the present specification;

[0057] Figure 3 is another flow chart of a vehicle computer abnormality testing method according to an exemplary embodiment of the present specification;

[0058] Figure 4 is a schematic diagram of a vehicle abnormality testing device according to an exemplary embodiment of the present specification;

[0059] Figure 5 It is a schematic block diagram of a vehicle abnormality testing device shown in this specification according to an exemplary embodiment. DETAILED DESCRIPTION

[0060] Here, the technical solutions in the embodiments (or "implementations") of the present application will be described clearly and completely in conjunction with the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements.

[0061] If there are terms involving directional indications or positional relationships in the embodiments of the present application (such as up, down, left, right, front, back, inside, outside, top, bottom, center, vertical, horizontal, longitudinal, transverse, length, width, counterclockwise, clockwise, axial, radial, circumferential, etc.), such terms are only used to explain the relative positional relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings); if the specific posture changes, the directional indication or positional relationship will also change accordingly. In addition, the terms "first", "second", etc. involved in the embodiments of the present application are only used for the purpose of convenience of description and cannot be understood as indicating or implying relative importance.

[0062] The present application provides a vehicle abnormality test method, a test bench and a computer readable storage medium. The present application is described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations can be combined with each other.

[0063] Frequent power on and off of the vehicle computer will lead to a variety of abnormal startup conditions, including black screen, blue screen, freezing, slow startup, etc. It can also be applied to the test of occasional black and blue screen problems during the test process, and the abnormal startup problem is crucial in the quality inspection of the cockpit vehicle computer. The traditional startup abnormality test method is implemented using camera equipment and processing equipment. Camera equipment such as a camera mainly uses the camera to capture the operating status image of the vehicle computer startup process when testing the repeated power on and off startup abnormality method, and then sends these images to the processing equipment for abnormality analysis. In this process, because the camera is easily affected by changes in environmental factors such as light and angle when taking images, it affects the image quality, interferes with the accurate judgment of abnormal conditions, and may cause errors in the judgment of abnormal phenomena.

[0064] In order to solve the above technical problems, this specification provides a vehicle computer abnormality testing method.

[0065] By using the adb screenshot command to take a screenshot of the current car screen, you can directly obtain accurate images of the car screen at different times, and compare them with the screenshots of the car screen in the normal startup state to determine whether there is any startup abnormality, whether there is a black blue screen or slow startup problem. Compared with camera acquisition, it can prevent abnormal problems such as backlight being 0 from causing incorrect judgment of startup abnormalities.

[0066] Figure 1 This is a vehicle abnormality test bench provided in an embodiment of this specification. The test bench includes:

[0067] The test bench 10 is used to fix the vehicle computer 20 to be tested for abnormality;

[0068] A display screen 30, connected to the vehicle computer 20, for displaying the power-on status of the vehicle computer 20;

[0069] A hardware simulator 40 is connected to and interacts with the hardware interface of the vehicle computer 20, and is used to accurately control and simulate the system of the vehicle computer 20, such as simulating the power-on and power-off process of the vehicle computer;

[0070] The test terminal 50 is connected to the vehicle computer 20 and the hardware emulator 40. The test terminal 50 includes a memory, a processor, and a vehicle computer abnormality test program stored in the memory and executable on the processor. When the processor executes the vehicle computer abnormality test program, the steps of the vehicle computer abnormality test method described herein are implemented. As an example, the test terminal can be a computer, a mobile phone, etc.

[0071] The required test programs are installed on the test terminal. Python programming is used to write scripts and algorithms for the vehicle computer abnormality test program according to test requirements to realize an automated test process, including repeated power-on and power-off operations, configuration of different parameters, etc.

[0072] By writing scripts and algorithms that call the adb screenshot command through Python programming, the screen can be screenshotted without considering the ambient reflection and without being restricted by the hardware environment. Among them, the adb (Android Debug Bridge) tool provides a rich debugging interface and commands for the Android system car machine, which is convenient for obtaining system information, installing applications, capturing logs, etc.

[0073] In the abnormal test of the vehicle computer, the hard-wired simulator + Python programming in the pycharm environment + adb command screenshot method are used to realize the automatic power on and off of the vehicle computer, simulating the process of powering on and off the vehicle computer in a cycle. The entire test process is automated, reducing the errors and uncertainties of human operation. The steps and conditions of each test can be kept consistent, which improves the repeatability and reliability of the test results. For example, a test script written in Python can be run on different vehicle computers as long as they use the same operating system and interface. In other words, the use of this test bench has lower hardware requirements, less space occupation, and is more convenient for bench testing.

[0074] Figure 2 , Figure 3 This is a flow chart of a vehicle abnormality testing method provided in an embodiment of this specification, comprising the following steps:

[0075] S100, after the vehicle computer is powered on in the current test, based on the received screenshot instruction, a current test image of the display screen connected to the vehicle computer is captured within a set time after the vehicle computer is powered on, and the set time is greater than or equal to the normal power-on time of the vehicle computer.

[0076] Based on the above vehicle computer abnormality test bench, the hardware simulator is turned on and off through Python calls to simulate the repeated power on and off of the vehicle computer and perform startup abnormality detection. At the same time, the timer is pulled up to count the startup time.

[0077] In the current test, after the vehicle computer is powered on, Python sends a screenshot command to implement a screen screenshot, capturing the image of the display screen connected to the vehicle computer as the current test image.

[0078] In some embodiments, the abd screenshot tool is used to capture the screenshot of the display screen. Specifically, based on the received screenshot instruction, the abd screenshot tool is used to capture the current test image of the display screen connected to the vehicle computer within a set time after the vehicle computer is powered on.

[0079] The current test image described in this article is an image of a display screen connected to the vehicle computer captured within a set time after the vehicle computer is powered on. The set time is greater than or equal to the normal power-on time of the vehicle computer.

[0080] In one embodiment, capturing a current test image of a display screen connected to the vehicle computer within a set time after the vehicle computer is powered on includes:

[0081] When the normal startup time is reached from the time when the vehicle computer is powered on, the current test image is captured. Specifically, when the set time is equal to the normal startup time, the captured current test image is compared with the reference image. According to the normal startup time, the images of the current test image and the reference image captured should be consistent. If they are consistent, it means that the current vehicle computer is started normally. If they are inconsistent, that is, the reference image during normal startup does not appear, it is determined that the startup is abnormal.

[0082] S200, performing feature comparison between the current test image and the reference image to obtain a comparison result.

[0083] The reference image described herein is an image of the display screen when the normal startup time is reached from the moment the vehicle computer is powered on, when the vehicle computer is normally powered on.

[0084] The reference image is used as a benchmark for comparison with the current test image. The features of the current test image and the reference image are compared to see if they are consistent, and the comparison result is obtained. If they are consistent, it means that the current test image meets expectations, and the vehicle computer starts up normally. On the contrary, if they are inconsistent, it means that the current test image does not meet expectations, and the vehicle computer starts up abnormally.

[0085] In some embodiments, the comparing features of the current test image with the reference image includes:

[0086] Determine the similarity between the current test image and the reference image.

[0087] By comparing the pixels of the current test image with the reference image, the similarity between the two is determined. When the similarity is greater than a set threshold, the current test image is determined to be consistent with the reference image, and a corresponding consistent comparison result is obtained. Usually, the threshold is set to 90%.

[0088] S300: judging the abnormal startup condition of the vehicle computer according to the comparison result.

[0089] The judging of the abnormal startup of the vehicle computer according to the comparison result includes: judging the abnormal startup of the vehicle computer according to the similarity. Specifically, judging the abnormal startup of the vehicle computer according to the similarity includes: if the similarity between the current test image and the reference image is greater than a threshold, it means that the vehicle computer has the reference image when it is normally started, and the vehicle computer is started normally. On the contrary, if the similarity between the current test image and the reference image is less than or equal to the threshold, the vehicle computer is started abnormally.

[0090] In order to improve the accuracy of determining abnormal startup conditions, when a current test image consistent with a reference image appears during the normal startup time, a further response test is performed on the startup condition to determine whether it responds and operates normally.

[0091] Specifically, combined with Python programming, you can simulate click operations on the car screen, simulate the user's real usage scenario, and detect the car's response after receiving user input. If the car does not take corresponding actions or an error prompt appears after the simulated click, it can be determined that the car may be stuck. For example, you can write a Python script to simulate clicking a button or icon on the car screen at a specific time interval and check the subsequent screen feedback.

[0092] In some embodiments, judging the abnormal startup condition of the vehicle computer according to the similarity includes:

[0093] S401, if the similarity is less than or equal to a threshold, simulate a click operation to test the response of the vehicle computer to the user input. The simulated click operation on the vehicle computer screen is realized through Python programming.

[0094] S401, capturing a real-time image of the display screen after the simulated click operation. Through the adb screenshot command, directly obtain an accurate image of the vehicle screen at the moment after the simulated click operation, that is, a real-time image.

[0095] S401, judging whether the vehicle computer responds normally according to the image features of the real-time image. To determine whether the vehicle computer has feedback during the simulated click process and to check the subsequent feedback, the following methods can be used:

[0096] Image comparison: Before simulating the click operation, first obtain the initial screenshot of the vehicle display screen as the reference image. After simulating the click, perform image feature analysis on the real-time image and compare it with the reference image. If the similarity between the two is greater than the threshold, it means that the vehicle is operating normally. If the similarity between the two is less than or equal to the threshold, it means that although the vehicle has captured the reference image corresponding to the normal boot time, it is stuck and cannot operate normally. It is comprehensively determined that the vehicle boot is abnormal.

[0097] Specific pixel point detection: Before simulating the click operation, first determine the elements and corresponding pixels that need to appear on the car display screen after the normal response to the click operation. After simulating the click, perform image feature analysis on the real-time image to analyze whether there are the previously determined pixels. If yes, it means that the car computer is running normally. If not, it means that although the car computer has captured the reference image corresponding to the normal boot time, it is stuck and cannot run normally. It is comprehensively determined that the car computer is abnormal.

[0098] S401, if not, determine that the vehicle computer is turned on abnormally.

[0099] In this embodiment, in the determination of abnormal vehicle computer startup conditions, based on the image analysis of the vehicle computer startup process, a simulated click operation is added to determine whether the vehicle computer is stuck or other abnormal conditions, thereby further improving the accuracy of the vehicle computer startup conditions.

[0100] After testing the abnormal startup of the vehicle computer and obtaining the test results, the custom message notification module is used to send messages to relevant engineers, such as test engineers, so that the engineers can grasp the test situation as soon as possible and make subsequent processing.

[0101] Specifically, in some embodiments, after determining the abnormal startup condition of the vehicle computer, the method further includes:

[0102] The preset notification application is called, and the coordinate position information corresponding to the specific notification operation in the notification application is used to simulate the user's click operation to send the startup result to the designated engineer.

[0103] In vehicle computer testing, automated simulated clicks are realized through programming, which means that there is no need to manually operate the buttons or interface elements on the vehicle computer one by one. The program can automatically perform click actions according to preset rules and processes. When an abnormality is detected in the vehicle computer, such as a stuck state, the system will automatically send a message to notify the engineer to handle it. Such an automated process greatly improves test efficiency and reduces manual intervention and possible errors.

[0104] In this embodiment, Python programming is used to simulate user key input to send messages. Specifically, the coordinate point information of a specific notification operation in the notification application is captured, including coordinate position information. The coordinate information is associated with the corresponding key function in the notification application. That is, a Python script is used to simulate the process of a person clicking on the notification application to send a message to the corresponding engineer.

[0105] For example, notification applications include enterprise WeChat, message, etc. After receiving the abnormal startup situation of the vehicle computer, the notification script written in Python is executed to automatically send the abnormal startup situation to the corresponding engineer.

[0106] In this way, the automated simulated clicks can automatically send messages to notify engineers for processing. Without being restricted by the message API interface document, a more flexible and low-cost message notification method can be adopted, avoiding the additional development and maintenance costs to meet complex interface requirements.

[0107] After completing the above test process, the test results of the abnormal startup of the vehicle computer are processed respectively, and after judging the abnormal startup of the vehicle computer according to the comparison results, the method further includes:

[0108] After determining that the vehicle computer is abnormally started, the test is stopped, the scene is retained, and a message is automatically sent to notify the engineer to handle it.

[0109] After determining that the vehicle computer is powered on normally, the vehicle computer in the current test is powered off, and the above vehicle computer abnormality test steps are performed again to perform the next round of testing until the test end condition is met. The test end condition includes that the number of test rounds reaches a set number and the vehicle computer has a startup abnormality.

[0110] The present application provides a vehicle computer abnormality testing method, a test bench and a computer-readable storage medium. Compared with the current situation in which it is difficult to effectively capture the power-on abnormality of repeated power-on and power-off processes through camera equipment, and the accuracy of judging the power-on abnormality is low due to environmental influences, in the current test, after the vehicle computer is powered on, based on the received screenshot instruction, a current test image of a display screen connected to the vehicle computer is captured within a set time after the vehicle computer is powered on by means of screenshots. Similarly, a reference image of the display screen when the normal power-on time is reached from the moment the vehicle computer is powered on is captured by means of screenshots when the vehicle computer is normally powered on. This image acquisition method is not affected by the environment, and clear and accurate current test images and reference images are obtained. The current test image and the reference image are then compared, and the power-on abnormality of the vehicle computer is judged according to the comparison result, so that an accurate judgment result can be obtained.

[0111] Based on the above embodiments, a second embodiment of a vehicle computer abnormality testing method is proposed.

[0112] The set duration is the test limit duration; the current test image of the display screen connected to the vehicle computer is captured within the set duration after the vehicle computer is powered on, and the display screen is captured multiple times according to the set image capture frequency to provide more detailed feedback on the vehicle computer startup process. By determining the test startup duration when the vehicle computer is actually powered on, specific feedback is provided on whether the startup is abnormal, and the specific cause is reflected for the abnormal situation.

[0113] Based on this, the vehicle computer abnormality testing method includes:

[0114] S501, within the test limit time starting from the moment the vehicle computer is powered on, a plurality of current test images are captured according to an image capture frequency; the test limit time is greater than the normal power-on time. Within the test limit time, a screen shot is taken according to the image capture frequency to obtain the current test image.

[0115] S502, respectively determine the similarity between the multiple current test images and the reference image. Perform real-time feature analysis on each captured current test image to determine whether the vehicle computer is turned on.

[0116] S503, if the similarity corresponding to two adjacent current test images changes from less than or equal to a threshold value to greater than the threshold value in the time sequence starting from the time when the vehicle computer is powered on, determine the time when the current test image corresponding to the similarity greater than the threshold is captured, and the time from the time when the vehicle computer is powered on to the time when the vehicle computer is powered on is the test startup time. The vehicle computer startup indicates that the current test image captured most recently is consistent with the reference image, and the time of the most recent capture is determined, and the time from the time when the vehicle computer is powered on to this time is the test startup time of the test process.

[0117] S504, if the test boot time is longer than the normal boot time, determine that the vehicle computer boot is abnormal. Generally, if the test boot time is less than or equal to the normal boot time, it means that the boot is normal, and if the test boot time is longer than the normal boot time, it means that the vehicle computer can be booted, but there is a problem of slow booting, and the vehicle computer boot is abnormal.

[0118] In this embodiment, by taking multiple screenshots of the vehicle computer startup process, analyzing each captured current test image, it is determined whether the vehicle computer can be started, and if it is started, the startup time is further determined to determine whether there is a problem of slow startup, thereby more accurately judging the vehicle computer startup situation. Compared with only capturing and comparing the current test image during the normal startup time, it further provides feedback on whether the vehicle computer startup is abnormal and the specific cause of the abnormality, which is convenient for subsequent troubleshooting of the abnormality.

[0119] In some other embodiments, judging the abnormal startup condition of the vehicle computer according to the similarity further includes:

[0120] S505 , if the duration from the capture time of the current test image to the power-on time of the vehicle computer reaches the test limit duration, and the similarity corresponding to the current test image is less than or equal to a threshold, it is determined that the vehicle computer is powered on abnormally.

[0121] Set the end condition for the power-on detection process, and analyze the power-on status of the vehicle computer within the time period from the power-on time of the vehicle computer to the test limit time. When the time reaches the test limit time and the current test image consistent with the reference image does not appear, it means that the vehicle computer has not been powered on normally within the test limit time, that is, the vehicle computer is judged to be abnormally powered on, which improves the test efficiency.

[0122] Based on the above embodiments, a third embodiment of a vehicle computer abnormality testing method is proposed.

[0123] During the normal startup time after the vehicle computer is powered on, the current test image of the display screen connected to the vehicle computer is captured. If the comparison result with the reference image shows that the vehicle computer startup is abnormal, the abnormal situation of the vehicle computer needs to be further analyzed to determine the specific cause of the abnormal startup. Since the occasional black and blue screen problem test is difficult to fully reproduce, the images of each round of testing process are stored for subsequent abnormal analysis.

[0124] Specifically, the vehicle computer abnormality testing method includes:

[0125] S601, capturing a plurality of current test images according to an image capture frequency within the normal power-on time period starting from the moment the vehicle computer is powered on.

[0126] S602, respectively determine the similarity between the multiple current test images and the reference image. Perform a real-time comparison between each captured current test image and the reference image to determine whether the vehicle computer is turned on normally.

[0127] S4603, if the similarity is less than or equal to the threshold, the current test image corresponding to the similarity less than or equal to the threshold is stored; if the similarity is less than or equal to the threshold, it indicates that the vehicle computer is abnormally powered on, and the current test image is stored for subsequent analysis of the image. If the similarity corresponding to the current test image is greater than the threshold within the normal power-on time from the moment the vehicle computer is powered on, it indicates that the vehicle computer is powered on normally, and there is no need to store the current test image to avoid excessive memory usage.

[0128] S604, performing feature analysis on the stored multiple current test images to determine the cause of the abnormal startup of the vehicle computer.

[0129] In this embodiment, during the normal startup time starting from the time the vehicle computer is powered on, multiple current test images are captured according to the image capture frequency, and feature analysis is performed on the current test image under abnormal startup conditions to further determine the cause of the vehicle computer abnormality.

[0130] Based on the same application concept as the above method, the present application embodiment also proposes a vehicle abnormality testing device, such as Figure 4 shown.

[0131] The device comprises:

[0132] The image capture module 702 is used to capture the current test image of the display screen connected to the vehicle computer within a set time after the vehicle computer is powered on in the current test, based on the received screenshot instruction, and the set time is greater than or equal to the normal power-on time of the vehicle computer;

[0133] The image comparison module 704 is used to compare the features of the current test image with the reference image to obtain a comparison result, wherein the reference image is an image of the display screen when the normal startup time is reached from the power-on time of the vehicle computer when the vehicle computer is normally powered on;

[0134] The abnormality judgment module 706 is used to judge the abnormality of the startup of the vehicle computer according to the comparison result.

[0135] The implementation process of the functions and effects of each module / submodule / unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and the same technical effect can be achieved, so it will not be repeated here.

[0136] Figure 5 The following is a schematic diagram of the physical structure of a vehicle abnormality test device. Figure 5 As shown, the vehicle abnormality test device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the vehicle abnormality test method.

[0137] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0138] On the other hand, the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the vehicle abnormality testing methods provided by the above methods.

[0139] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the vehicle computer abnormality testing method provided by the above methods.

[0140] It should be noted that the technical solutions or technical features described in the above embodiments can be combined or supplemented with each other without causing conflicts. The scope of protection of this application is not limited to the precise structures described in the above embodiments and shown in the drawings; all modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application should be included in the scope of protection of this application.

Claims

1. A vehicle computer abnormality testing method, characterized in that: The method comprises: After the vehicle computer is powered on in the current test, based on the received screenshot instruction, a current test image of the display screen connected to the vehicle computer is captured within a set time after the vehicle computer is powered on, and the set time is greater than or equal to the normal power-on time of the vehicle computer; Performing feature comparison between the current test image and a reference image to obtain a comparison result, wherein the reference image is an image of the display screen when the normal startup time is reached from the power-on time of the vehicle computer when the vehicle computer is normally powered on; According to the comparison result, the abnormal startup situation of the vehicle computer is determined.

2. The vehicle abnormality testing method according to claim 1, characterized in that: The comparing the features of the current test image with the reference image includes: Determining the similarity between the current test image and the reference image; The step of judging the abnormal startup condition of the vehicle computer according to the comparison result includes: According to the similarity, the abnormal startup situation of the vehicle computer is determined.

3. The vehicle abnormality testing method according to claim 2, characterized in that: The method of capturing a current test image of a display screen connected to the vehicle computer within a set time after the vehicle computer is powered on includes: When the normal startup time is reached from the time when the vehicle computer is powered on, capturing the current test image; The determining, based on the similarity, of an abnormal startup condition of the vehicle computer includes: If the similarity is less than or equal to a threshold, it is determined that the vehicle computer is turned on abnormally.

4. The vehicle abnormality testing method according to claim 3, characterized in that: The determining, based on the similarity, of an abnormal startup condition of the vehicle computer includes: If the similarity is less than or equal to a threshold, simulating a click operation to test the vehicle computer's response to the user input; capturing a real-time image of the display screen after the simulated click operation; judging whether the vehicle computer responds normally according to the image features of the real-time image; If not, it is determined that the vehicle computer is started abnormally.

5. The vehicle computer abnormality testing method according to claim 2, characterized in that: The method of capturing a current test image of a display screen connected to the vehicle computer within a set time after the vehicle computer is powered on includes: Within the normal startup time starting from the moment the vehicle computer is powered on, capturing a plurality of the current test images according to an image capture frequency; The determining the similarity between the current test image and the reference image comprises: respectively determining similarities between the plurality of current test images and the reference image; The determining, based on the similarity, of an abnormal startup condition of the vehicle computer includes: If the similarity is less than or equal to a threshold, storing the current test image corresponding to the similarity less than or equal to the threshold; Perform feature analysis on the stored multiple current test images to determine the cause of the abnormal startup of the vehicle computer.

6. The vehicle abnormality testing method according to claim 2, characterized in that: The set duration is the test limit duration; The method of capturing a current test image of a display screen connected to the vehicle computer within a set time after the vehicle computer is powered on includes: Within the test limit time starting from the moment the vehicle computer is powered on, a plurality of the current test images are captured according to the image capture frequency; the test limit time is longer than the normal power-on time; The determining the similarity between the current test image and the reference image comprises: respectively determining similarities between the plurality of current test images and the reference image; The determining, based on the similarity, of an abnormal startup condition of the vehicle computer includes: If the similarity between two adjacent current test images changes from less than or equal to a threshold value to greater than the threshold value in the time sequence starting from the time when the vehicle computer is powered on, determine the time from when the current test image corresponding to the similarity greater than the threshold value is captured to the time when the vehicle computer is powered on as the test power-on time; If the test startup time is longer than the normal startup time, it is determined that the vehicle computer startup is abnormal.

7. The vehicle abnormality testing method according to claim 6, characterized in that: The determining, based on the similarity, the abnormal startup condition of the vehicle computer further includes: If the time from the capture time of the current test image to the power-on time of the vehicle computer reaches the test limit time, and the similarity corresponding to the current test image is less than or equal to a threshold value, it is determined that the vehicle computer is powered on abnormally.

8. The vehicle abnormality testing method according to claim 1, characterized in that: After determining the abnormal startup condition of the vehicle computer, the method further includes: The preset notification application is called, and the coordinate position information corresponding to the specific notification operation in the notification application is used to simulate the user's click operation to send the startup result to the designated engineer.

9. The vehicle computer abnormality testing method according to claim 1, characterized in that: The method of capturing a current test image of a display screen connected to the vehicle computer within a set time after the vehicle computer is powered on based on the received screenshot instruction includes: Based on the received screenshot instruction, the abd screenshot tool is used to capture the current test image of the display screen connected to the vehicle computer within a set time after the vehicle computer is powered on.

10. The vehicle computer abnormality testing method according to claim 1, characterized in that: After determining the abnormal startup condition of the vehicle computer according to the comparison result, the method further includes: After determining that the vehicle computer is abnormally started, stopping the test; After determining that the vehicle computer is turned on normally, the vehicle computer in the current test is controlled to be powered off, and the step of re-executing the step of capturing the current test image of the display screen connected to the vehicle computer within a set time after the vehicle computer is powered on based on the received screenshot instruction after the vehicle computer is powered on in the current test.

11. A vehicle abnormality test bench, characterized in that: The test bench comprises: A test bench, used to fix the vehicle computer to be tested for abnormality; A display screen, connected to the vehicle computer, and used to display the power-on status of the vehicle computer; A hardware simulator connected to the hardware interface of the vehicle computer and used to control and simulate the system of the vehicle computer; A test terminal is connected to the vehicle computer and the hardware emulator. The test terminal includes a memory, a processor, and a vehicle computer abnormality test program stored in the memory and executable on the processor. When the processor executes the vehicle computer abnormality test program, the steps of the vehicle computer abnormality test method as described in any one of claims 1 to 10 are implemented.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a vehicle abnormality test program, which, when executed, implements the steps of the vehicle abnormality test method according to any one of claims 1 to 10.

Citation Information

Cited By

  • Vehicle head-up display test method and device, electronic equipment and readable storage medium

    CN119803957A