Detection method and device of in-vehicle infotainment system and vehicle

After the car computer system passes the monkey test, the test video file and test message detection and display functions are used, the problem of abnormal functions of the car computer system after the monkey test is solved, and the timely detection of the car computer system display function and the improvement of the user experience is achieved.

CN119759780APending Publication Date: 2025-04-04GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411928658.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

After detecting the stability of the vehicle system, the monkey test method may cause abnormal functions of the vehicle system, especially abnormal display functions, which cannot be detected and feedback in time, affecting the user experience.

Method used

After the vehicle system passes the monkey test, the test video files and test messages are obtained, and these files are used to test whether the display function of the vehicle system is normal, ensuring that the test results are output under normal display function.

Benefits of technology

This method can promptly detect whether the display function of the vehicle system is normal, avoid the monkey test affecting the display function of the vehicle system, and promptly feedback the status of the vehicle system to users to improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759780A_ABST
    Figure CN119759780A_ABST
Patent Text Reader

Abstract

The invention provides a detection method and device for a vehicle-mounted infotainment system and a vehicle, and the method is applied to the field of vehicles, and comprises the steps: obtaining a test video file and a test message under the condition that the vehicle-mounted infotainment system passes a monkey test; wherein the test video file is used for testing whether the in-vehicle infotainment system can display a picture of the test video file, and the test message is used for testing whether the in-vehicle infotainment system can turn on a screen; based on the test video file and the test message, testing whether the display function of the vehicle-mounted terminal system is normal or not; and under the condition that the display function of the in-vehicle infotainment system is normal, outputting a test result of the in-vehicle infotainment system. According to the method, whether the display function of the vehicle-mounted terminal system is normal or not can be detected through the test video file and the test message after the vehicle-mounted terminal system passes the monkey test, so that the display function of the vehicle-mounted terminal system is prevented from being influenced by the monkey test, and the state of the vehicle-mounted terminal system can be fed back to a user in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicles, and more specifically, to a detection method and device for a vehicle system in the field of vehicles, and a vehicle. Background Art

[0002] As the functions of vehicle intelligent cockpit systems become more and more abundant, the importance of vehicle computer systems is increasing. In order to maintain the stability of vehicle computers, it is necessary to test the functions of vehicle computer systems through the Monkey test method.

[0003] In the related art, the monkey test method is used to detect the stability of the vehicle system. However, after the vehicle system is tested by the monkey test method, the function of the vehicle system may be abnormal. For example, the network of the vehicle system cannot be connected or the vehicle system has a stuck problem. And after the monkey stress test method is completed, it is impossible to test the black screen of the vehicle system, resulting in a poor user experience. Summary of the invention

[0004] The present application provides a detection method, device and vehicle for a vehicle system. After the vehicle system passes the monkey test, the method can detect whether the display function of the vehicle system is normal through test video files and test messages, so as to avoid the monkey test affecting the display function of the vehicle system, and can promptly feedback the status of the vehicle system to the user.

[0005] In a first aspect, a detection method for a vehicle system is provided, the method comprising:

[0006] When the vehicle system passes the monkey test, a test video file and a test message are obtained; wherein the test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen;

[0007] Testing whether the display function of the vehicle system is normal based on the test video file and the test message;

[0008] When the display function of the vehicle computer system is normal, the test result of the vehicle computer system is output.

[0009] Through the above technical solution, the method can obtain the test video file and the test message when the vehicle system passes the monkey test, wherein the test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen. Since the function of the vehicle system may fail after the vehicle system passes the monkey test, if the vehicle system is directly provided to the user, it will lead to a poor user experience. Therefore, in this case, the display function of the vehicle system is tested based on the test video file and the test message to see if it is normal, and when the display function of the vehicle system is normal, the test result of the vehicle system is output. That is, so that the user can monitor the function of the vehicle system in real time according to the test result, promptly discover potential problems or failures of the vehicle system, and bring a better experience to the user.

[0010] In combination with the first aspect, in some possible implementations, when the vehicle system passes the monkey test, obtaining the test video file and the test message includes:

[0011] When the vehicle system passes the monkey test, the test video file is obtained from an external storage medium connected to the vehicle system; and the test message is obtained from a controller area network of the vehicle system.

[0012] Through the above technical solution, the method can obtain the test video file from the external storage medium connected to the vehicle system and the test message from the controller local area network of the vehicle system when the vehicle system passes the monkey test, so as to test whether the display function of the vehicle system is normal based on the test video file and the test message.

[0013] In combination with the first aspect, in some possible implementations, testing whether the display function of the vehicle system is normal based on the test video file and the test message includes:

[0014] Play the test video file in a loop and determine whether the vehicle system can display the image of the test video file within a first preset time length;

[0015] If the vehicle system can display the screen of the test video file within the first preset time, determining whether the display function of the vehicle system is normal based on the test message;

[0016] When the vehicle system cannot display the screen of the test video file within the first preset time period, it is determined that the display function of the vehicle system is abnormal.

[0017] Through the above technical solution, the method plays the test video file in a loop and determines whether the vehicle system can display the picture of the test video file within a first preset time length, that is, based on the test video file, timely monitors whether the display screen of the vehicle system can normally display the picture of the test video file, so as to provide timely feedback on the status of the vehicle system to the user.

[0018] In combination with the first aspect, in some possible implementations, when the vehicle system can display the screen of the test video file within a first preset time, determining whether the display function of the vehicle system is normal based on the test message includes:

[0019] When the vehicle system is able to display the screen of the test video file within a first preset time, controlling the vehicle system to turn off the screen;

[0020] In response to the wake-up instruction carried by the test message, determine whether the vehicle system lights up the screen;

[0021] When the screen of the vehicle system is on, confirm that the display function of the vehicle system is normal;

[0022] When the screen of the vehicle computer system does not light up, it is determined that the display function of the vehicle computer system is abnormal.

[0023] Through the above technical solution, since the test message carries a wake-up instruction, it is possible to test whether the vehicle system is on the screen based on the wake-up instruction, thereby being able to timely monitor whether the display function of the vehicle system is normal.

[0024] In combination with the first aspect, in some possible implementations, when the vehicle system can display the screen of the test video file within a first preset time, after controlling the vehicle system to turn off the screen, the method includes:

[0025] Determine whether the vehicle system is in a dormant state;

[0026] When the vehicle computer system is not in a sleep state, it is started to determine whether the vehicle computer system has a screen on.

[0027] Through the above technical solution, it is determined whether the vehicle system is in a sleep state. When the vehicle system is not in a sleep state, it is determined whether the vehicle system has a light screen. That is, in this case, the display function of the vehicle system can be detected to avoid the vehicle system being in a sleep state and interfering with the detection result of the display function of the vehicle system.

[0028] In conjunction with the first aspect, in some possible implementations, when the screen of the vehicle system is on, after determining that the display function of the vehicle system is normal, the method includes:

[0029] Stop receiving the test message, play the test video file again and determine whether the vehicle system can display the screen of the test video file;

[0030] In the case where the vehicle computer system can display the screen of the test video file, determining that the display function of the vehicle computer system is normal;

[0031] When the vehicle computer system cannot display the screen of the test video file, it is determined that the display function of the vehicle computer system is abnormal.

[0032] Through the above technical solution, the reception of the test message is stopped, and the vehicle system is detected again based on the test video file to see whether it can display the picture of the test video file, thereby avoiding the interference of the test message on the vehicle system after the screen-on function of the vehicle system is tested, making it easier for users to pay attention to the display function of the vehicle system in time, and bringing better experience to users.

[0033] In combination with the first aspect, in some possible implementations, when the vehicle system passes the monkey test, before obtaining the test video file and the test message, the method includes:

[0034] Obtain a monkey test script for the monkey test; wherein the monkey test script is used to test the stability of the vehicle system, and the monkey test script includes a preset test duration, a preset number of tests, and a monkey simulation event, and the monkey simulation event is used to simulate an operation event of the vehicle system;

[0035] Run the monkey test script and test the vehicle computer system based on the monkey simulation event;

[0036] When the test duration of the monkey test script reaches the preset test duration and the test times reach the preset test times, it is determined that the vehicle system has passed the monkey test.

[0037] Through the above technical solution, the monkey testing method needs to rely on the monkey testing script, and the monkey testing script can test the stability of the vehicle system. Therefore, testing the vehicle system based on the monkey testing script can improve the robustness of the vehicle system.

[0038] In combination with the first aspect, in some possible implementations, when the running time of the monkey test script reaches the preset test time and the number of tests reaches the preset number of tests, before determining that the vehicle system passes the monkey test, the method includes:

[0039] Get the test duration and test times of the monkey test script;

[0040] Determine whether the test duration of the monkey test script is greater than or equal to the preset test duration; if the test duration of the monkey test script is greater than or equal to the preset test duration, determine that the test duration of the monkey test script reaches the preset test duration; if the test duration is less than the preset test duration, determine that the test duration of the monkey test script does not reach the preset test duration;

[0041] Determine whether the test number of the monkey test script is greater than or equal to the preset test number; if the test number is greater than or equal to the preset test number, determine that the test number of the monkey test script has reached the preset test number; if the test number is less than the preset test number, determine that the test number of the monkey test script has not reached the preset test number.

[0042] Through the above technical solution, since the monkey test will generate a large amount of random data, in order to avoid a large amount of random data causing waste of vehicle system resources, after determining that the vehicle system has passed the monkey test, the vehicle system is controlled to end the monkey test, bringing a better experience to users.

[0043] In a second aspect, a detection device for a vehicle system is provided, the device comprising:

[0044] An acquisition module is used to acquire a test video file and a test message when the vehicle system passes the monkey test; wherein the test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen;

[0045] A test module, used to test whether the display function of the vehicle system is normal based on the test video file and the test message;

[0046] The output module is used to output the test result of the vehicle computer system when the display function of the vehicle computer system is normal.

[0047] In a third aspect, a vehicle is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the vehicle executes the method executed by the above-mentioned vehicle system detection method.

[0048] In a fourth aspect, a computer program product is provided, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the method executed by the above-mentioned detection method of the vehicle system.

[0049] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method executed by the above-mentioned vehicle system detection method. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a schematic diagram of an implementation environment of a detection method for a vehicle system provided in an embodiment of the present application;

[0051] Figure 2 is a schematic flow chart of a detection method for a vehicle system provided in an embodiment of the present application;

[0052] Figure 3 is a schematic flow chart of another vehicle system detection method provided in an embodiment of the present application;

[0053] Figure 4 It is a structural schematic diagram of a detection device for a vehicle system provided in an embodiment of the present application;

[0054] Figure 5 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0056] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0057] Figure 1 It is a schematic diagram of the implementation environment of a vehicle system detection method provided in an embodiment of the present application.

[0058] For example, Figure 1 As shown, the implementation environment includes a vehicle system 110 and a display screen 120 .

[0059] The vehicle system 110 is used to provide multimedia functions for the vehicle. For example, the vehicle system 110 can provide functions such as audio, navigation, or car phone. In some embodiments, the vehicle system 110 is integrated in the vehicle, and the vehicle can be set in the driving space. In some embodiments, the vehicle system 110 is detected or updated based on the controller area network (CAN) bus. For example, the vehicle 110 obtains a monkey test script from the CAN bus to detect the stability of the vehicle system 110.

[0060] The display screen 120 is used to display various information of the vehicle multimedia system. For example, the various information includes navigation information, entertainment information, vehicle driving status information, etc. The display screen 120 can display information such as the vehicle speed and fuel consumption.

[0061] Figure 2 It is a schematic flow chart of a detection method for a vehicle system provided in an embodiment of the present application.

[0062] For example, Figure 2 As shown, taking the execution subject as a vehicle computer system as an example, the method 200 includes steps 201 to 203.

[0063] Step 201, when the vehicle system passes the monkey test, obtain a test video file and a test message; wherein the test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen.

[0064] Among them, the vehicle system is used to provide multimedia functions for the vehicle. The monkey test is used to test the stability of the vehicle system. The monkey test method can randomly generate a large amount of input data and input the data into the vehicle system to detect the behavior and reaction of the vehicle system. For example, the monkey test method randomly simulates events such as clicks, slides or touches of the user interface to simulate various input situations that users may encounter in actual applications. However, since the amount of input data is large and the input data is randomly generated, after the vehicle system passes the monkey test, it may cause the vehicle system to freeze or the occupancy rate of the central control unit of the vehicle system to be high, that is, some functions of the vehicle system may change. For example, after the vehicle system turns off the screen, the vehicle system cannot be awakened, or the vehicle system cannot display the picture normally. Therefore, it is necessary to obtain test video files and test messages when the vehicle system passes the monkey test to test the display function of the vehicle system.

[0065] The test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen. The test message carries a wake-up command that can wake up the vehicle system.

[0066] Step 202 , based on the test video file and the test message, test whether the display function of the vehicle system is normal.

[0067] The display function is used to display multimedia information and vehicle control information for users to view. Since the test video file can test whether the vehicle system displays the test video file, and the test message can test whether the vehicle system lights up, the display function of the vehicle system can be tested based on the test video file and the test message.

[0068] Step 203: When the display function of the vehicle computer system is normal, the test result of the vehicle computer system is output.

[0069] Among them, the normal display function of the vehicle system means that the vehicle system can normally display multimedia information and vehicle control information. Therefore, outputting the test results of the vehicle system can promptly feedback the working status of the vehicle system to the user, so as to timely discover potential problems or faults of the vehicle system.

[0070] An embodiment of the present application provides a detection method for a vehicle system, which can obtain a test video file and a test message when the vehicle system passes the monkey test, wherein the test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen. Since the function of the vehicle system may fail after the vehicle system passes the monkey test, if the vehicle system is directly provided to the user, it will lead to a poor user experience. Therefore, in this case, the display function of the vehicle system is tested based on the test video file and the test message to see if it is normal, and when the display function of the vehicle system is normal, the test result of the vehicle system is output. That is, it is convenient for the user to monitor the function of the vehicle system in real time according to the test result, promptly discover potential problems or failures of the vehicle system, and bring a better experience to the user.

[0071] Figure 3 It is a schematic flow chart of another vehicle system detection method provided in an embodiment of the present application.

[0072] It should be noted that the above steps 201-203 are a simple description of a detection method for a vehicle system provided in an embodiment of the present application. The following will provide a more detailed description of a detection method for a vehicle system provided in an embodiment of the present application with reference to some examples.

[0073] See also Figure 3 Taking the execution subject as the vehicle system as an example, the method includes the following steps 301 to 306.

[0074] Step 301, obtaining a monkey test script for monkey testing.

[0075] The monkey testing method can randomly generate a large number of monkey simulation events to simulate a large number of requests or abnormal situations, thereby testing the stability and robustness of the vehicle system.

[0076] It should be understood that the monkey testing method relies on the monkey testing tool to generate random events and execute tests. The tool needs to operate normally in a specific test environment, and running the monkey testing script in the test environment can ensure that the testing process will not interfere with or affect the production environment, so as to ensure that the vehicle system can operate stably.

[0077] In some embodiments, a test environment is configured in the vehicle system, wherein different vehicle systems are configured with different test environments.

[0078] In some embodiments, a monkey test script is obtained from an external terminal device through a controller local area network. The monkey test script is used to test the stability of the vehicle system. The monkey test script includes a preset test duration, a preset number of tests, and monkey simulation events. The monkey simulation events are used to simulate the operating events of the vehicle system.

[0079] In some embodiments, the controller area network bus interface of the message file transceiver tool is connected to the vehicle system to obtain the monkey test script from the external terminal device through the controller area network.

[0080] In some embodiments, the monkey test script is a message file of a controller area network. The message file carries a DBC (Database File) file for sending monkey simulation events. The DBC file is used to decode the monkey test script transmitted by the CAN bus. Different vehicle systems correspond to different DBC files.

[0081] In some embodiments, since the monkey test script includes monkey simulation events, various user events can be simulated based on the monkey simulation events. For example, the monkey simulation events include prompt information for vehicle air conditioning failure, control information for controlling the temperature and air volume of the vehicle air conditioning, vehicle speed, status information of various components of the vehicle, etc.

[0082] It should be understood that since the Controller Area Network bus has a strict message format and communication protocol, the monkey test script obtained through the Controller Area Network is more accurate, so as to ensure the accuracy and repeatability of subsequent tests, making it easier to discover potential problems and defects.

[0083] Step 302: determine whether the vehicle system passes the monkey test based on the monkey test script.

[0084] In a possible implementation, a monkey test script is run, and the vehicle system is tested based on monkey simulation events, and whether the vehicle system passes the monkey test is determined based on the monkey test script.

[0085] It should be understood that since the monkey test script carries the monkey simulation event, running the monkey test script can execute the monkey simulation event to test the vehicle system based on the monkey simulation event.

[0086] In some embodiments, the test duration and test number of the monkey test script are obtained to determine whether the test duration of the monkey test script is greater than or equal to the preset test duration. If the test duration of the monkey test script is greater than or equal to the preset test duration, it is determined that the test duration of the monkey test script has reached the preset test duration; if the test duration is less than the preset test duration, it is determined that the test duration of the monkey test script has not reached the preset test duration.

[0087] The preset test duration is the test duration carried by the monkey test script, and the present application embodiment does not limit the preset test duration. For example, the preset test duration can be 7 days.

[0088] For example, when the test duration of the monkey test script is 7 days, it is determined that the test duration of the monkey test script reaches the preset test duration. When the test duration of the monkey test script is 6 days, it is determined that the test duration of the monkey test script does not reach the preset test duration.

[0089] In some embodiments, it is determined whether the test number of the monkey test script is greater than or equal to the preset test number; if the test number is greater than or equal to the preset test number, it is determined that the test number of the monkey test script has reached the preset test number; if the test number is less than the preset test number, it is determined that the test number of the monkey test script has not reached the preset test number.

[0090] The preset number of tests is the number of tests carried by the monkey test script, and the present embodiment does not limit the preset number of tests. For example, the preset number of tests may be 10 million times.

[0091] For example, when the number of tests of the monkey test script is 10 million times, it is determined that the number of tests of the monkey test script reaches the preset number of tests; when the number of tests is 5 million times, it is determined that the number of tests of the monkey test script does not reach the preset number of tests.

[0092] In some embodiments, when the test duration of the monkey test script reaches a preset test duration and the number of tests reaches a preset number of tests, it is determined that the vehicle system has passed the monkey test.

[0093] For example, when the test duration of the monkey test script reaches 7 days and the number of tests reaches 10 million times, it is determined that the vehicle system has passed the monkey test.

[0094] In some embodiments, when the test duration of the monkey test script does not reach the preset test duration or the test number does not reach the preset test number, it is determined that the vehicle system has failed the monkey test.

[0095] For example, when the test duration of the monkey test script does not reach 7 days or the number of tests does not reach 10 million times, it is determined that the vehicle system has failed the monkey test.

[0096] In this implementation, the monkey test script is run, and the vehicle system is tested based on monkey simulation events, so as to determine whether the vehicle system is stable.

[0097] Optionally, after executing the above step 302, the following steps may also be executed.

[0098] In a possible implementation, after determining that the vehicle system passes the monkey test, the vehicle system is controlled to end the monkey test.

[0099] In some embodiments, the monkey test is ended by controlling the vehicle system based on a command line tool. For example, the command line tool is ABD (Android Debug Bridge) Shell.

[0100] Under this implementation, since the monkey test will generate a large amount of random data, in order to avoid a large amount of random data affecting the function of the vehicle system in real time, after determining that the vehicle system has passed the monkey test, the vehicle system is controlled to end the monkey test to bring a better experience to the user.

[0101] Step 303, when the vehicle system passes the monkey test, obtain the test video file and the test message.

[0102] It should be understood that since the monkey test simulates the user's key input and touch screen input through the monkey program, it observes how long the system will be abnormal in the continuous disordered and irregular operation, so as to detect the stability and reliability of the system software. The longer the monkey test result, the better the stability of the car system. However, long-term testing of the car system based on the monkey test script may trigger an unpredictable state of the car system, causing abnormal paths in the car system, thereby changing some functions of the car system. For example, the monkey test can simulate the concurrent operations of multiple users at the same time, which will increase the complexity of the car system processing and affect the normal operation of the car system. For another example, the monkey test will constantly simulate clicking to enter text, which may cause frequent changes or redrawing of user interface elements, so that the user interface layout of the display screen may be disordered and the button position may change. In order to avoid the above situation, when the car system passes the monkey test, the test video file and test message are obtained to facilitate the subsequent test of whether the car system can display normally.

[0103] In a possible implementation, when the vehicle system passes the monkey test, the test video file is obtained from an external storage medium connected to the vehicle system, and the test message is obtained from a controller area network of the vehicle system.

[0104] The test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen. The external storage medium includes a USB flash drive.

[0105] In some embodiments, the controller area network bus interface of the message file sending and receiving tool is connected to the vehicle system to obtain test messages from an external terminal device through the controller area network; the vehicle system is connected to an external storage medium to obtain test video files from the external storage medium.

[0106] For example, the vehicle system is connected to a Universal Serial Bus (USB) interface of a computer to obtain a test video file in a USB flash drive of the computer.

[0107] It should be understood that since the interface of the vehicle system is used to receive the monkey test script of the monkey test, when obtaining the test video file, the universal serial bus interface of the vehicle system is switched to USB mode to obtain the test video file from the external storage medium connected to the vehicle system.

[0108] In some embodiments, the test message also carries the message text in the monkey test script in the aforementioned step 301. In addition to carrying the monkey simulation event in the monkey test script, the test message also carries a wake-up instruction that can wake up the display screen of the vehicle system and a vehicle start instruction. Therefore, the test message can be used to test whether the vehicle system is on.

[0109] Among them, the wake-up command is used to control the car system to light up the screen, and the start command is used to start the vehicle's power system.

[0110] Under this implementation, when the vehicle system passes the monkey test, the test video file is obtained from an external storage medium connected to the vehicle system, and the test message is obtained from the controller local area network of the vehicle system, so as to test whether the display function of the vehicle system is normal based on the test video file and the test message.

[0111] Step 304 , based on the test video file and the test message, test whether the display function of the vehicle system is normal.

[0112] It should be understood that since the test message also carries monkey simulation events, and monkey simulation events will affect the function of the vehicle system, in order to avoid the test message interfering with the vehicle system, the test message is temporarily stopped from being received. However, since the test message also carries the vehicle start command, after stopping receiving the test message, the vehicle's power system is shut down, but the vehicle system is in an available state.

[0113] The following is an explanation of how to test whether the display function of the vehicle system is normal based on the test video file and the test message.

[0114] In one possible implementation, the test video file is played in a loop and it is determined whether the vehicle system can display the image of the test video file within a first preset time length; if the vehicle system cannot display the image of the test video file within the first preset time length, it is determined that the display function of the vehicle system is abnormal; if the vehicle system can display the image of the test video file within the first preset time length, it is determined whether the display function of the vehicle system is normal based on the test message.

[0115] The first preset duration is automatically determined by the vehicle system, or is set by a technician according to actual conditions, and the present application embodiment does not limit this. For example, the first preset duration may be 10 minutes (min).

[0116] It should be understood that since the test video file can test whether the vehicle system can normally display the screen of the test video file, whether the display function of the vehicle system is normal can be determined based on the test video file.

[0117] In this implementation, the test video file is played in a loop and it is determined whether the vehicle system can display the image of the test video file within a first preset time length. That is, based on the test video file, it is timely monitored whether the display screen of the vehicle system can normally display the image of the test video file, so as to provide timely feedback on the status of the vehicle system to the user.

[0118] In order to explain the above implementation in more detail, the above implementation is explained in several parts below.

[0119] The first part describes the content of looping the test video file and determining whether the vehicle system can display the screen of the test video file within a first preset time length.

[0120] It should be understood that after stopping receiving the test message, the vehicle's power system is turned off but the vehicle system is in an available state. In this case, the vehicle system is powered by the battery. Then, since the battery power is limited, in order to avoid wasting the battery power, the test video file is played in a loop within the first preset time.

[0121] In some embodiments, if the vehicle system can loop and display the screen of the test video file within a first preset time length, it is determined that the vehicle system can display the video normally.

[0122] For example, if the vehicle system plays the test video file in a loop within 10 minutes, it is determined that the vehicle system can display the video normally.

[0123] The second part describes the content of determining whether the display function of the vehicle system is normal based on the test message when the vehicle system is able to display the screen of the test video file within a first preset time period.

[0124] In a possible implementation, when the vehicle system is able to display the screen of the test video file within a first preset time period, the vehicle system is controlled to turn off the screen; in response to a wake-up instruction carried by the test message, it is determined whether the vehicle system turns on the screen; when the vehicle system turns on the screen, it is determined that the display function of the vehicle system is normal; when the vehicle system does not turn on the screen, it is determined that the display function of the vehicle system is abnormal.

[0125] In this implementation, after the vehicle system turns off the screen, the vehicle system is tested based on the wake-up instruction to see whether it can normally light up the screen, so as to test the display function of the vehicle system, thereby timely monitoring whether the vehicle system can be used normally and bringing better experience to users.

[0126] The following describes the content of controlling the vehicle system to turn off the screen when the vehicle system is able to display the screen of the test video file within a first preset time period.

[0127] It should be understood that when it is determined that the vehicle system can display the video normally, since the battery power is low, in order to avoid wasting the battery power, it is determined whether to control the vehicle system to turn off the screen.

[0128] In a possible implementation, after the vehicle system is able to display the screen of the test video file within a first preset time period, a prompt message for turning off the screen of the vehicle system is triggered, and the prompt message is used to prompt the user whether to control the vehicle system to turn off the screen.

[0129] In some embodiments, in response to a confirmation operation to turn off the screen of the vehicle system, the vehicle system is controlled to turn off the screen.

[0130] In some embodiments, the vehicle system is controlled to turn off the screen based on buttons in the vehicle, controls in the vehicle system, voice commands sent to the vehicle system, or gesture operations on the vehicle system.

[0131] For example, the user can control the car system to turn off the screen by selecting a "Confirm" button on the car system, pressing a "YES" button configured on the vehicle, or by using a voice command "Confirm" to the car system.

[0132] In some embodiments, in response to a rejection operation to turn off the screen of the vehicle system, the vehicle system is controlled to turn on the screen within a first preset time period.

[0133] In some embodiments, based on buttons in the vehicle, controls in the vehicle system, voice commands sent to the vehicle system, or gesture operations on the vehicle system, the vehicle system is controlled to light up the screen within a first preset time period.

[0134] For example, the user can control the car system to keep the screen on for a first preset time by selecting a "No" button on the car system, pressing a "NO" button configured on the vehicle, or using a voice command "Do not turn off the screen" to control the car system.

[0135] It should be understood that the vehicle system may enter a dormant state after the screen is turned off. The dormant state is a low-power state that the vehicle system enters after a long period of non-use. However, after the vehicle system is in a dormant state, the vehicle system cannot be awakened, so it is impossible to test whether the vehicle system can turn on the screen after the screen is turned off. In this case, after controlling the vehicle system to turn off the screen, it is necessary to determine whether the vehicle system is in a dormant state.

[0136] In a possible implementation, it is determined whether the vehicle system is in a sleep state; if the vehicle system is not in a sleep state, it is determined whether the vehicle system has a screen on; if the vehicle system is in a sleep state, the vehicle system is kept off.

[0137] Among them, the sleep state is a low-power state that the vehicle system enters after not being used for a long time.

[0138] In some embodiments, it is determined whether the duration for which the vehicle system is in the screen-off state is greater than or equal to a second preset time length; when the duration for which the vehicle system is in the screen-off state is greater than or equal to the second preset time length, it is determined that the vehicle system is in a sleep state; when the duration for which the vehicle system is in the screen-off state is less than the second preset time length, it is determined that the vehicle system is in a non-sleep state.

[0139] The second preset time length is automatically determined by the vehicle system, or is set by a technician according to actual conditions, and the present application embodiment does not limit this. For example, the second preset time length may be 3 seconds (S).

[0140] Under this implementation, it is determined whether the vehicle system is in a sleep state. If the vehicle system is not in a sleep state, it is determined whether the vehicle system has a light screen. That is, in this case, the display function of the vehicle system can be detected to avoid the vehicle system being in a sleep state and interfering with the detection result of the display function of the vehicle system.

[0141] The following describes the contents of determining whether the vehicle system lights up the screen in response to the wake-up instruction carried by the test message; determining that the display function of the vehicle system is normal when the vehicle system screen is on; and determining that the display function of the vehicle system is abnormal when the vehicle system screen is not on.

[0142] Among them, the wake-up command is used to control the vehicle system to light up the screen when the vehicle system is in the off state and not in the sleep state.

[0143] In some embodiments, the wake-up command is generated by clicking a button in the vehicle, clicking a control in the vehicle system, sending a voice command to the vehicle system, or performing a gesture operation on the vehicle system. For example, a user sends a voice command "turn on the screen" to the vehicle system, and the vehicle system responds to the wake-up command. This allows the vehicle system to be tested for turning on the screen through the wake-up command, providing a better experience for users.

[0144] It should be understood that since the test message carries a wake-up instruction, it is possible to test whether the vehicle system has a screen on based on the wake-up instruction, thereby being able to timely monitor whether the display function of the vehicle system is normal.

[0145] The third part explains the content of determining that the display function of the vehicle system is abnormal when the vehicle system cannot display the image of the test video file within the first preset time period.

[0146] It should be understood that since the test video file is used to test the display function of the vehicle system, if the display function of the vehicle system is normal, the vehicle system can display the test video file. Therefore, when the vehicle system cannot display the screen of the test video file within the first preset time, it is determined that the display function of the vehicle system is abnormal. That is, the vehicle system is monitored in time to facilitate maintenance by technicians and bring a better experience to users.

[0147] It is understandable that since the test message is a message file for the Monkey Test, the test message also carries information that will affect the function of the vehicle system. Therefore, after detecting whether the vehicle system can light up the screen based on the test message, the test message will also affect the display function of the vehicle system. In order to prevent users from failing to detect abnormalities in the display function of the vehicle system in time, it is necessary to test the video file again.

[0148] In one possible implementation, stop receiving the test message, play the test video file again and determine whether the vehicle system can display the image of the test video file; if the vehicle system can display the image of the test video file, determine that the display function of the vehicle system is normal; if the vehicle system cannot display the image of the test video file, determine that the display function of the vehicle system is abnormal.

[0149] In some embodiments, the controller area network bus interface is turned off to stop receiving the test message.

[0150] It is understandable that the specific implementation method of re-detecting whether the vehicle system can display the screen of the test video file based on the test video file can refer to the relevant description in the aforementioned step 304, which will not be repeated here.

[0151] Under this implementation mode, the reception of the test message is stopped, and the vehicle system is again checked based on the test video file to see whether it can display the image of the test video file, thereby avoiding interference of the test message on the vehicle system after testing the screen-on function of the vehicle system, making it easier for users to pay attention to the display function of the vehicle system in a timely manner, and bringing better experience to users.

[0152] Step 305: When the display function of the vehicle computer system is normal, the test result of the vehicle computer system is output.

[0153] In some embodiments, when the display function of the vehicle system is normal, the log files during the test are saved, and the collected log files are preliminarily screened to remove irrelevant or duplicate content to facilitate subsequent data analysis.

[0154] The log file includes test events and test results.

[0155] In some embodiments, the test result is output to the mobile terminal via the controller area network, so that the technician can monitor the display function of the vehicle system according to the log file.

[0156] Step 306 , when the display function of the vehicle system is abnormal, trigger an alarm message for the display function of the vehicle system.

[0157] Among them, the alarm information for the display function of the vehicle system is used to remind the user that the display screen of the vehicle system cannot be used normally.

[0158] In a possible implementation, when the display function of the vehicle system is abnormal, an alarm prompt text and an alarm prompt audio are generated, and then the alarm prompt text is displayed and the alarm prompt audio is broadcast.

[0159] In some embodiments, the alarm prompt text is sent to the mobile terminal through the controller area network, so that the technician can monitor the display function of the vehicle system in real time. Alternatively, the alarm prompt audio is broadcast in the vehicle's onboard audio system.

[0160] For example, the alarm prompt text or alarm prompt audio may be "The display function of the vehicle system is abnormal, please go to the repair shop for repair immediately."

[0161] In some embodiments, the alarm prompt text and the alarm prompt audio are stored in an alarm prompt storage medium. For example, the alarm prompt storage medium includes a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disk.

[0162] In some embodiments, based on a light-emitting diode (LED) indicating that a display function of the vehicle system is abnormal, the LED light is highlighted on the instrument panel to prompt the user that the display function of the vehicle system is abnormal.

[0163] It should be understood that the alarm prompt text and the alarm prompt audio are stored in the alarm prompt storage medium to facilitate the vehicle system to read the alarm prompt text and the alarm prompt audio.

[0164] Under this implementation mode, when the display function of the vehicle system is abnormal, continuing to use the vehicle system will not be able to display the vehicle's multimedia information or vehicle control information to the user, causing trouble for the user in using the vehicle. Therefore, the user is promptly reminded through the alarm prompt text and alarm prompt audio of the abnormal display function of the vehicle system, thereby providing the user with a better experience.

[0165] An embodiment of the present application provides a detection method for a vehicle-computer system, which can obtain a monkey test script of a monkey test, determine whether the vehicle-computer system has passed the monkey test based on the monkey test script, and obtain a test video file and a test message when the vehicle-computer system has passed the monkey test. Since the monkey test generates a large amount of random data and continuously simulates user events, it may cause the user interface of the vehicle-computer system to change or redraw frequently, which may cause the layout of the user interface to become disordered. To avoid the above-mentioned problem, the display function of the vehicle-computer system is tested based on the test video file and the test message. When the display function of the vehicle-computer system is normal, the test result of the vehicle-computer system is output. When the display function of the vehicle-computer system is abnormal, an alarm message for the display function of the vehicle-computer system is triggered, so that the user can monitor whether the vehicle-computer system is normal in time, thereby bringing a better experience to the user.

[0166] Figure 4 It is a structural schematic diagram of a detection device for a vehicle system provided in an embodiment of the present application.

[0167] For example, Figure 4 As shown, the device 400 includes:

[0168] The acquisition module 401 is used to acquire a test video file and a test message when the vehicle system passes the monkey test; wherein the test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen;

[0169] A testing module 402 is used to test whether the display function of the vehicle system is normal based on the test video file and the test message;

[0170] The output module 403 is used to output the test result of the vehicle system when the display function of the vehicle system is normal.

[0171] In a possible implementation manner, the device 400 further includes:

[0172] The acquisition module 401 is used to acquire the test video file from an external storage medium connected to the vehicle system when the vehicle system passes the monkey test; and acquire the test message from the controller area network of the vehicle system.

[0173] In a possible implementation manner, the device 400 further includes:

[0174] A determination module, used for looping the test video file and determining whether the vehicle system can display the image of the test video file within a first preset time length;

[0175] A determination module, configured to determine whether a display function of the vehicle system is normal based on the test message when the vehicle system is able to display the screen of the test video file within a first preset time period;

[0176] The determination module is used to determine that the display function of the vehicle system is abnormal when the vehicle system cannot display the screen of the test video file within a first preset time.

[0177] In a possible implementation manner, the device 400 further includes:

[0178] A control module, used for controlling the vehicle system to turn off the screen when the vehicle system can display the screen of the test video file within a first preset time length;

[0179] A determination module, used to determine whether the vehicle system lights up the screen in response to the wake-up instruction carried by the test message;

[0180] A determination module, used to determine that the display function of the vehicle system is normal when the vehicle system screen is on;

[0181] The determination module is used to determine that the display function of the vehicle computer system is abnormal when the screen of the vehicle computer system is not on.

[0182] In a possible implementation manner, the device 400 further includes:

[0183] A determination module, used to determine whether the vehicle computer system is in a dormant state;

[0184] The determination module is used to determine whether the screen of the vehicle computer system is on when the vehicle computer system is not in a dormant state.

[0185] In a possible implementation manner, the device 400 further includes:

[0186] A determination module, used to stop receiving the test message, play the test video file again and determine whether the vehicle system can display the screen of the test video file;

[0187] A determination module, used to determine that the display function of the vehicle system is normal when the vehicle system can display the screen of the test video file;

[0188] The determination module is used to determine that the display function of the vehicle computer system is abnormal when the vehicle computer system cannot display the screen of the test video file.

[0189] In a possible implementation manner, the device 400 further includes:

[0190] The acquisition module 401 is used to acquire a monkey test script for the monkey test; wherein the monkey test script is used to test the stability of the vehicle system, and the monkey test script includes a preset test duration, a preset test number, and a monkey simulation event, and the monkey simulation event is used to simulate the operation event of the vehicle system;

[0191] A test module 402 is used to run the monkey test script and test the vehicle system based on the monkey simulation event;

[0192] The testing module 402 is used to determine that the vehicle system has passed the monkey test when the test duration of the monkey test script reaches the preset test duration and the test times reach the preset test times.

[0193] In a possible implementation manner, the device 400 further includes:

[0194] The acquisition module 401 is used to obtain the test duration and test times of the monkey test script;

[0195] Testing module 402, used to determine whether the test duration of the monkey test script is greater than or equal to the preset test duration; if the test duration of the monkey test script is greater than or equal to the preset test duration, determine that the test duration of the monkey test script reaches the preset test duration; if the test duration is less than the preset test duration, determine that the test duration of the monkey test script does not reach the preset test duration;

[0196] Testing module 402 is used to determine whether the test number of the monkey test script is greater than or equal to the preset test number; when the test number is greater than or equal to the preset test number, it is determined that the test number of the monkey test script has reached the preset test number; when the test number is less than the preset test number, it is determined that the test number of the monkey test script has not reached the preset test number.

[0197] Figure 5 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.

[0198] For example, Figure 5 As shown, the vehicle 500 includes: a memory 501 and a processor 502, wherein the memory 501 stores an executable program code 503, and the processor 502 is used to call and execute the executable program code 503 to perform a detection method for a vehicle system.

[0199] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to execute a detection method for a vehicle system provided in an embodiment of the present application.

[0200] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0201] In the case of dividing each functional module according to each function, the device may also include a determination module and a control module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0202] It should be understood that the device provided in this embodiment is used to execute the above-mentioned detection method of a vehicle system, and thus can achieve the same effect as the above-mentioned implementation method.

[0203] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing related program codes, etc.

[0204] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits shown in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.

[0205] In addition, the device provided in the embodiments of the present application may specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a detection method for a vehicle system provided in the above embodiments.

[0206] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a detection method for a vehicle system provided in the above embodiment.

[0207] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement a detection method for a vehicle system provided in the above embodiment.

[0208] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0209] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0210] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0211] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A detection method for a vehicle system, characterized in that: The method comprises: When the vehicle system passes the monkey test, a test video file and a test message are obtained; wherein the test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen; Testing whether the display function of the vehicle system is normal based on the test video file and the test message; When the display function of the vehicle system is normal, the test result of the vehicle system is output.

2. The method according to claim 1, characterized in that: When the vehicle system passes the monkey test, obtaining the test video file and the test message includes: When the vehicle system passes the monkey test, the test video file is obtained from an external storage medium connected to the vehicle system; and the test message is obtained from a controller area network of the vehicle system.

3. The method according to claim 2, characterized in that The testing whether the display function of the vehicle system is normal based on the test video file and the test message includes: Play the test video file in a loop and determine whether the vehicle system can display the screen of the test video file within a first preset time length; If the vehicle system can display the screen of the test video file within a first preset time period, determining whether the display function of the vehicle system is normal based on the test message; When the vehicle system cannot display the screen of the test video file within a first preset time period, it is determined that the display function of the vehicle system is abnormal.

4. The method according to claim 3, characterized in that When the vehicle system is able to display the screen of the test video file within the first preset time period, determining whether the display function of the vehicle system is normal based on the test message includes: When the vehicle system is able to display the screen of the test video file within a first preset time, controlling the vehicle system to turn off the screen; In response to the wake-up instruction carried by the test message, determining whether the vehicle system lights up the screen; When the screen of the vehicle system is on, determining that the display function of the vehicle system is normal; When the screen of the vehicle computer system does not light up, it is determined that the display function of the vehicle computer system is abnormal.

5. The method according to claim 4, characterized in that When the vehicle system is able to display the screen of the test video file within the first preset time, controlling the vehicle system to turn off the screen includes: Determining whether the vehicle system is in a dormant state; When the vehicle computer system is not in a dormant state, determining whether the vehicle computer system has a screen turned on; When the vehicle computer system is in a dormant state, the screen of the vehicle computer system is kept off.

6. The method according to claim 4, characterized in that In the case where the screen of the vehicle system is on, after determining that the display function of the vehicle system is normal, the method includes: Stop receiving the test message, play the test video file again and determine whether the vehicle system can display the screen of the test video file; In the case where the vehicle system can display the screen of the test video file, determining that the display function of the vehicle system is normal; When the vehicle system cannot display the screen of the test video file, it is determined that the display function of the vehicle system is abnormal.

7. The method according to claim 1, characterized in that When the vehicle system passes the monkey test, before obtaining the test video file and the test message, the process includes: Obtain a monkey test script for the monkey test; wherein the monkey test script is used to test the stability of the vehicle system, the monkey test script includes a preset test duration, a preset number of tests, and a monkey simulation event, and the monkey simulation event is used to simulate an operation event of the vehicle system; Running the monkey test script and testing the vehicle system based on the monkey simulation event; When the test duration of the monkey test script reaches the preset test duration and the test times reaches the preset test times, it is determined that the vehicle system has passed the monkey test.

8. The method according to claim 7, characterized in that When the running time of the monkey test script reaches the preset test time and the number of tests reaches the preset number of tests, before determining that the vehicle system passes the monkey test, the method includes: Obtain the test duration and test times of the monkey test script; Determine whether the test duration of the monkey test script is greater than or equal to the preset test duration; if the test duration of the monkey test script is greater than or equal to the preset test duration, determine that the test duration of the monkey test script reaches the preset test duration; if the test duration is less than the preset test duration, determine that the test duration of the monkey test script does not reach the preset test duration; Determine whether the test number of the monkey test script is greater than or equal to the preset test number; if the test number is greater than or equal to the preset test number, determine that the test number of the monkey test script has reached the preset test number; if the test number is less than the preset test number, determine that the test number of the monkey test script has not reached the preset test number.

9. A detection device for a vehicle system, characterized in that: The device comprises: An acquisition module is used to acquire a test video file and a test message when the vehicle system passes the monkey test; wherein the test video file is used to test whether the vehicle system can display the screen of the test video file, and the test message is used to test whether the vehicle system can light up the screen; A testing module, used for testing whether the display function of the vehicle system is normal based on the test video file and the test message; The output module is used to output the test result of the vehicle system when the display function of the vehicle system is normal.

10. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Automatic testing method for OTA upgrade of automobile intelligent network connection system

    CN116089284A

  • Vehicle-mounted terminal test method, device, equipment and system

    CN116338361A