Vehicle infotainment system sleep / wake-up test methods, devices, electronic equipment, and storage media
By automatically obtaining the vehicle's infotainment system status and current threshold through ADB commands, the vehicle's sleep/wake-up test is automated, solving the problems of long time consumption and high labor costs of existing methods and improving testing efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA FAW CO LTD
- Filing Date
- 2026-03-10
- Publication Date
- 2026-06-30
AI Technical Summary
Existing vehicle infotainment testing methods require manual sleep and wake-up, which is time-consuming and labor-intensive.
The system automatically acquires the real-time status of vehicle-mounted devices and functional applications using ADB commands, builds a sleep/wake-up test environment, uses current thresholds to determine the sleep state, and detects the wake-up state using ADB commands to achieve an automated testing process.
It shortened the testing time, reduced labor costs, and improved testing efficiency.
Smart Images

Figure CN122307213A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a method, apparatus, electronic device, and storage medium for testing vehicle infotainment system sleep / wake-up. Background Technology
[0002] Most existing vehicle infotainment system testing methods require testers to manually put the system into sleep mode or wake it up to get it into normal operating mode; then, the above operation is repeated to perform periodic sleep-wake tests on the vehicle infotainment system. Obviously, this testing method is too time-consuming and has high labor costs. Summary of the Invention
[0003] The purpose of this invention is to provide a method, apparatus, electronic device, and storage medium for testing vehicle infotainment system sleep / wake-up, which can at least automate the execution of vehicle infotainment system sleep / wake-up tests, thereby shortening test time and reducing labor costs.
[0004] To address the aforementioned technical problems, in a first aspect, the present invention provides a method for testing the sleep / wake-up state of a vehicle infotainment system, comprising at least:
[0005] Set up and power supply the vehicle infotainment system sleep / wake-up test environment;
[0006] In response to the start of the vehicle infotainment system sleep-wake test, at least one test-related vehicle infotainment device and function application is obtained in real time through the first ADB command in order to screen out abnormal vehicle infotainment devices and function applications.
[0007] After performing the power-off operation of the vehicle's infotainment system, the vehicle's current is read. The vehicle's current is determined to enter a sleep state at least when the current drops to a preset current threshold within a first preset time period.
[0008] At least after the vehicle infotainment system enters a sleep state for a second preset period of time, the vehicle infotainment system wake-up operation is performed. After a third preset period of wake-up interval, the current vehicle infotainment system status is obtained through a second ADB command, and the real-time status of normal vehicle infotainment equipment and functional applications is detected.
[0009] When the current vehicle infotainment system status and the real-time status of the normal vehicle infotainment system equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the first sleep state. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0010] Optionally, after the vehicle infotainment system enters a sleep state for at least a second preset period of time, performs a vehicle infotainment system wake-up operation, and after a third preset period of wake-up interval, obtains the current vehicle infotainment system status via a second ADB command and detects the real-time status of normal vehicle infotainment system devices and functional applications, the method further includes at least:
[0011] When the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system and its functional applications do not meet the preset conditions, the current vehicle infotainment system status is re-obtained through the second ADB command after a fourth preset time interval, and the real-time status of the normal vehicle infotainment system and its functional applications is detected.
[0012] When the current vehicle infotainment system status and the real-time status of the normal vehicle infotainment system equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the second sleep state. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0013] Optionally, after re-obtaining the current vehicle infotainment system status and detecting the real-time status of the normal vehicle infotainment system and its functional applications via the second ADB command after a fourth preset time interval when the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system and its functional applications do not meet the preset conditions, the method further includes at least:
[0014] When the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system equipment and functional applications do not meet the preset conditions, an error message is displayed for vehicle infotainment system abnormality and / or vehicle infotainment system equipment and functional applications abnormality. Then, the vehicle infotainment system sleep-wake test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0015] Optionally, after obtaining the real-time status of at least one test-related vehicle infotainment device and functional application via a first ADB command at the start of the vehicle infotainment system sleep / wake-up test in response to the test, in order to filter out abnormal vehicle infotainment devices and functional applications, the method further includes at least:
[0016] After performing the vehicle infotainment system power-down operation, the vehicle infotainment system current is read. If the vehicle infotainment system current does not drop to the preset current threshold within the first preset time period, it is determined that the vehicle infotainment system has failed to enter sleep mode. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0017] Based on the same concept, in a second aspect, the present invention also provides a vehicle infotainment system sleep / wake-up test device for performing the vehicle infotainment system sleep / wake-up test method described in any one of the first aspects;
[0018] The vehicle infotainment system sleep / wake-up test device includes at least:
[0019] The environment setup module is used to set up and power the vehicle infotainment system's sleep / wake-up test environment.
[0020] The status acquisition module is used to respond to the start of the vehicle infotainment system sleep-wake test by acquiring the real-time status of at least one test-related vehicle infotainment device and functional application through at least the first ADB command, so as to filter out abnormal vehicle infotainment devices and functional applications.
[0021] The first state determination module is used to read the vehicle current after performing the vehicle power-off operation, and determine that the vehicle enters a sleep state when the vehicle current drops to a preset current threshold within a first preset time period.
[0022] The wake-up operation module is used to perform a vehicle wake-up operation at least after the vehicle system enters a sleep state for a second preset period of time, and after a third preset period of wake-up interval, obtain the current vehicle system status through a second ADB command and detect the real-time status of normal vehicle system devices and functional applications.
[0023] The second state determination module is used to determine that the vehicle can enter the first sleep state when the current vehicle state and the real-time state of the normal vehicle equipment and functional applications meet preset conditions, and then restart the vehicle sleep wake-up test environment and enter the next vehicle test cycle.
[0024] Optionally, it may also include at least a third state determination module;
[0025] The third state determination module is used for:
[0026] When the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system and its functional applications do not meet the preset conditions, the current vehicle infotainment system status is re-obtained through the second ADB command after a fourth preset time interval, and the real-time status of the normal vehicle infotainment system and its functional applications is detected.
[0027] When the current vehicle infotainment system status and the real-time status of the normal vehicle infotainment system equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the second sleep state. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0028] Optionally, it may also include at least an exception reporting module;
[0029] The error reporting module is used for:
[0030] When the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system equipment and functional applications do not meet the preset conditions, an error message is displayed for vehicle infotainment system abnormality and / or vehicle infotainment system equipment and functional applications abnormality. Then, the vehicle infotainment system sleep-wake test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0031] Optionally, it may also include at least a failure determination module;
[0032] The failure determination module is used for:
[0033] After performing the vehicle infotainment system power-down operation, the vehicle infotainment system current is read. If the vehicle infotainment system current does not drop to the preset current threshold within the first preset time period, it is determined that the vehicle infotainment system has failed to enter sleep mode. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0034] Based on the same concept, in a third aspect, the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor executes the program to implement the steps in the vehicle system sleep-wake test method of any one of the first aspects.
[0035] Based on the same concept, in a fourth aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps in the vehicle system sleep-wake-up test method described in any one of the first aspects.
[0036] The technical solution provided by this invention first establishes and powers a vehicle infotainment system sleep / wake-up test environment. Further, in response to the start of the vehicle infotainment system sleep / wake-up test, at least one test-related vehicle infotainment device and functional application's real-time status is obtained via a first ADB command to filter out abnormal vehicle infotainment devices and functional applications. Further, after performing a vehicle infotainment system power-down operation, the vehicle infotainment system current is read, and the vehicle infotainment system is determined to enter a sleep state at least when the vehicle infotainment system current drops to a preset current threshold within a first preset time period. Further, at least after the vehicle infotainment system enters a sleep state for a second preset time period, a vehicle infotainment system wake-up operation is performed, and after a third preset time period, the current vehicle infotainment system status is obtained via a second ADB command, and the real-time status of normal vehicle infotainment devices and functional applications is detected. Finally, when the current vehicle infotainment system status and the real-time status of normal vehicle infotainment devices and functional applications meet preset conditions, the vehicle infotainment system is determined to enter a first sleep state, and then the vehicle infotainment system sleep / wake-up test environment is restarted and the next vehicle infotainment system test cycle begins. Therefore, this invention provides at least one automated execution process for vehicle infotainment system sleep / wake-up testing, which, compared to existing manual testing methods, can at least shorten the testing time and reduce labor costs. Attached Figure Description
[0037] Figure 1 This is a flowchart of a vehicle infotainment system sleep / wake-up test method provided in an embodiment of the present invention;
[0038] Figure 2 This is a flowchart of another vehicle system sleep / wake-up test method provided in an embodiment of the present invention;
[0039] Figure 3 This is a schematic diagram of the structure of a vehicle infotainment system sleep / wake-up test device provided in an embodiment of the present invention;
[0040] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0042] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms “a,” “said,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms, and “multiple” generally includes at least two unless the context clearly indicates otherwise.
[0043] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0044] It should be understood that although the terms first, second, third, etc., may be used in the embodiments of this application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, first may also be referred to as second without departing from the scope of the embodiments of this application, and similarly, second may also be referred to as first.
[0045] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”
[0046] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or device that includes said element.
[0047] It should be noted that any symbols and / or numbers present in the specification that are not marked in the accompanying drawings are not reference numerals.
[0048] Figure 1 This is a flowchart of a vehicle infotainment system sleep / wake-up test method provided by an embodiment of the present invention. This embodiment is applicable to at least any vehicle infotainment system performance testing scenario. The vehicle infotainment system sleep / wake-up test method can be, but is not limited to, executed by the vehicle infotainment system sleep / wake-up test device in this embodiment of the present invention as the execution subject. This execution subject can be implemented in software and / or hardware. Figure 1 As shown, the vehicle infotainment system sleep / wake-up test method includes at least the following steps:
[0049] S1. Set up the vehicle system sleep / wake-up test environment and power it.
[0050] The vehicle infotainment system sleep / wake-up test environment can be constructed using the vehicle infotainment system, a programmable power supply, relays, and a regulated power supply. More specifically, the vehicle infotainment system, screen, and sleep signal can be powered separately; the vehicle infotainment system can be powered by a programmable power supply; the sleep signal can be controlled by a programmable power supply or a relay. This setup not only controls the on / off state of the sleep signal but also allows reading the current of the vehicle infotainment system's power supply; the screen can be powered by a regulated power supply.
[0051] S2. In response to the start of the vehicle infotainment system sleep-wake test, at least one test-related vehicle infotainment device and function application is obtained through the first ADB command to screen out abnormal vehicle infotainment devices and function applications.
[0052] Among these, at least one test-related vehicle infotainment device and functional application can be vehicle infotainment software, Wi-Fi, Ethernet, CAN, and / or USB flash drive, etc. Accordingly, obtaining the real-time status of at least one test-related vehicle infotainment device and functional application can include reading the vehicle infotainment software and hardware version, checking whether the main system applications are starting normally, checking whether Wi-Fi is enabled, and checking whether the USB flash drive is readable, etc. It is understood that when the USB flash drive is unreadable, it can be considered an abnormal vehicle infotainment device; when any system application fails to start normally, that application can be considered an abnormal functional application; and when Wi-Fi is enabled normally, it can be considered a normal functional application.
[0053] S3. After performing the vehicle unit power-off operation, read the vehicle unit current. When the vehicle unit current drops to the preset current threshold within the first preset time period, determine that the vehicle unit has entered the sleep state.
[0054] S4. At least after the vehicle infotainment system enters a sleep state for a second preset period of time, perform a vehicle infotainment system wake-up operation. After a wake-up interval of a third preset period of time, obtain the current vehicle infotainment system status through a second ADB command and detect the real-time status of normal vehicle infotainment equipment and functional applications.
[0055] The first preset time period, the second preset time period, the third preset time period, and the preset current threshold can be configured according to the actual adaptability of the vehicle. For example, the first preset time period can be set to 7 minutes, the preset current threshold can be 10mA, the second preset time period can be 20 seconds, and the third preset time period can be 15 seconds.
[0056] S5. When the current vehicle infotainment system status and the real-time status of normal vehicle infotainment equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the first sleep state. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0057] The preset condition can be that the current vehicle infotainment system, normal vehicle infotainment devices and functional applications can all start normally. At this time, it is determined that the vehicle infotainment system can quickly respond to wake-up from the sleep state (that is, the vehicle infotainment system can enter the first sleep state).
[0058] The technical solution provided in this embodiment first establishes and powers the vehicle infotainment system sleep / wake-up test environment. Further, in response to the start of the vehicle infotainment system sleep / wake-up test, at least one test-related vehicle infotainment device and functional application's real-time status is obtained via a first ADB command to filter out abnormal vehicle infotainment devices and functional applications. Further, after performing a vehicle infotainment system power-down operation, the vehicle infotainment system current is read, and the vehicle infotainment system is determined to enter a sleep state at least when the vehicle infotainment system current drops to a preset current threshold within a first preset time period. Further, at least after the vehicle infotainment system enters a sleep state for a second preset time period, a vehicle infotainment system wake-up operation is performed, and after a third preset time period, the current vehicle infotainment system status is obtained via a second ADB command, and the real-time status of normal vehicle infotainment devices and functional applications is detected. Finally, when the current vehicle infotainment system status and the real-time status of normal vehicle infotainment devices and functional applications meet preset conditions, the vehicle infotainment system is determined to enter a first sleep state, and then the vehicle infotainment system sleep / wake-up test environment is restarted and the next vehicle infotainment system test cycle begins. Therefore, this embodiment provides at least one automated execution process for vehicle infotainment system sleep / wake-up testing, which, compared to existing manual testing methods, can at least shorten the testing time and reduce labor costs.
[0059] It should be noted that the aforementioned quick-response hibernation mode is a special hibernation mode designed to accommodate users who want the vehicle to start and be used quickly. This mode can be used, but is not limited to, situations where the user has only been out of the vehicle for a short time, the vehicle has entered hibernation mode, but the user has left something in the vehicle and needs to return, or has temporarily changed their travel plans and needs to drive back. In these cases, the vehicle can start quickly. Of course, if the user does not use the vehicle for an extended period, the vehicle can transition from quick-response hibernation to deep hibernation mode to save power.
[0060] Based on the above embodiments or implementation methods, the following describes a test scheme for whether the vehicle system can be woken up from a deep sleep state, but this does not constitute a limitation on the present invention.
[0061] In one specific implementation, optionally, after performing a vehicle system wake-up operation at least after the vehicle system enters a sleep state for a second preset period, and after obtaining the current vehicle system status via a second ADB command and detecting the real-time status of normal vehicle system devices and functional applications after a third preset wake-up interval, the process further includes at least:
[0062] When the current vehicle infotainment system status and / or the real-time status of normal vehicle infotainment equipment and functional applications do not meet the preset conditions, the current vehicle infotainment system status is obtained again through the second ADB command after a fourth preset time interval, and the real-time status of normal vehicle infotainment equipment and functional applications is detected.
[0063] When the current vehicle infotainment system status and the real-time status of normal vehicle infotainment equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the second sleep state. After that, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0064] In another specific implementation, optionally, when the current vehicle infotainment system status and / or the real-time status of normal vehicle infotainment equipment and functional applications do not meet the preset conditions, after re-obtaining the current vehicle infotainment system status via the second ADB command after a fourth preset time interval, and detecting the real-time status of normal vehicle infotainment equipment and functional applications, the implementation may further include at least:
[0065] When the current vehicle infotainment system status and / or the real-time status of normal vehicle infotainment equipment and functions do not meet the preset conditions, vehicle infotainment system abnormality and / or vehicle infotainment equipment and functions abnormality error will be executed, and then the vehicle infotainment system sleep wake-up test environment will be restarted and the next vehicle infotainment system test cycle will begin.
[0066] In another specific implementation, optionally, after obtaining the real-time status of at least one test-related vehicle infotainment device and functional application via at least a first ADB command at the start of the vehicle infotainment system sleep-wake test to filter out abnormal vehicle infotainment devices and functional applications, the method further includes at least:
[0067] After performing the power-down operation of the vehicle infotainment system, the vehicle infotainment system current is read. If the vehicle infotainment system current does not drop to the preset current threshold within the first preset time period, it is determined that the vehicle infotainment system has failed to enter sleep mode. Then, the vehicle infotainment system sleep mode is restarted to wake up the test environment and enter the next vehicle infotainment system test cycle.
[0068] In view of this, Figure 2 This is a flowchart of another vehicle infotainment system sleep / wake-up test method provided in an embodiment of the present invention, as shown below. Figure 2 As shown, the vehicle infotainment system sleep / wake-up test method includes at least the following steps:
[0069] S1. Set up the vehicle system sleep / wake-up test environment and power it.
[0070] S2. In response to the start of the vehicle infotainment system sleep-wake test, at least one test-related vehicle infotainment device and function application is obtained through the first ADB command to screen out abnormal vehicle infotainment devices and function applications.
[0071] S9. After performing the vehicle unit power-down operation, read the vehicle unit current. If the vehicle unit current does not drop to the preset current threshold within the first preset time period, it is determined that the vehicle unit has failed to enter sleep mode. Then, the vehicle unit sleep mode wake-up test environment is restarted and the next vehicle unit test cycle is entered.
[0072] S3. After performing the vehicle unit power-off operation, read the vehicle unit current. When the vehicle unit current drops to the preset current threshold within the first preset time period, determine that the vehicle unit has entered the sleep state.
[0073] S4. At least after the vehicle infotainment system enters a sleep state for a second preset period of time, perform a vehicle infotainment system wake-up operation. After a wake-up interval of a third preset period of time, obtain the current vehicle infotainment system status through a second ADB command and detect the real-time status of normal vehicle infotainment equipment and functional applications.
[0074] S6. When the current vehicle infotainment system status and / or the real-time status of normal vehicle infotainment equipment and functional applications do not meet the preset conditions, the current vehicle infotainment system status is obtained again through the second ADB command after a fourth preset time interval, and the real-time status of normal vehicle infotainment equipment and functional applications is detected.
[0075] The fourth preset time period can be configured according to the actual test conditions, for example, it can be set to 90 seconds.
[0076] S8. When the current vehicle infotainment system status and / or the real-time status of normal vehicle infotainment equipment and functions do not meet the preset conditions, execute the vehicle infotainment system abnormality and / or vehicle infotainment equipment and functions abnormality error, then restart the vehicle infotainment system sleep wake-up test environment and enter the next vehicle infotainment system test cycle.
[0077] If, after the fourth preset time period, the current vehicle system status is obtained again through the second ADB command, and the real-time status of normal vehicle system equipment and functional applications is detected, it is found that the current vehicle system status and / or the real-time status of normal vehicle system equipment and functional applications still do not meet the preset conditions, it indicates that the vehicle system and / or the previously normal vehicle system equipment and functional applications have malfunctioned and a corresponding error needs to be reported.
[0078] S7. When the current vehicle infotainment system status and the real-time status of normal vehicle infotainment equipment and functional applications meet the preset conditions, determine that the vehicle infotainment system can enter the second sleep state, and then restart the vehicle infotainment system sleep wake-up test environment and enter the next vehicle infotainment system test cycle.
[0079] If, after the fourth preset time period, the current vehicle system status is obtained again through the second ADB command, and the real-time status of normal vehicle system equipment and functional applications is detected, and it is found that the current vehicle system status and / or the real-time status of normal vehicle system equipment and functional applications can meet the preset conditions, it means that after waiting for a sufficiently long time, the vehicle system can be woken up from the deep sleep state (i.e., the vehicle system can enter the second sleep state).
[0080] S5. When the current vehicle infotainment system status and the real-time status of normal vehicle infotainment equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the first sleep state. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0081] Furthermore, the following description will be provided in conjunction with specific scenario examples.
[0082] I. For bench testing scenarios:
[0083] 1. The vehicle infotainment system, screen (powered by a general regulated power supply), and sleep signal are powered separately; the vehicle infotainment system uses a programmable power supply, and the sleep signal uses a programmable power supply or a relay. This allows control over the sleep signal's on / off state and also allows reading the vehicle infotainment system's power supply current.
[0084] 2. Use ADB commands to read the vehicle's infotainment system software version, Wi-Fi status, Ethernet, CAN, USB drive, etc.
[0085] 3. After 15 seconds of wake-up signal, test ADB commands. If the vehicle system, devices, and applications are all working, it is assumed that the vehicle system was previously in a fast-response sleep state. If the vehicle system, devices, and / or applications are not working, wait 90 seconds and test again. If the test is working again, it is assumed that the vehicle system was previously in a deep sleep state. If the test is still not working, it is assumed that the system is faulty and the cause should be investigated.
[0086] 4. During periodic testing, at least the number of runs and the number of sleep failures should be counted. These counts should not be reset to 0 due to program interruption or modification.
[0087] 5. The above count will only be reset after the vehicle infotainment system version is changed;
[0088] 6. Record the time of test errors for reference in the corresponding program logs to find the problem;
[0089] 7. Parallel testing across multiple environments, with logs differentiated between test environments;
[0090] 8. Check the brightness of the central control panel, passenger side panel, and instrument panel, and record any issues such as black / white, flickering, or blurry screens when the screen is turned on.
[0091] II. For real-vehicle testing scenarios:
[0092] Testing on a real vehicle differs from testing on a test bench; it requires simulating user actions such as locking and unlocking the vehicle and waking it up by pressing the brake.
[0093] 1. Disconnect the brake signal wire on the vehicle;
[0094] 2. Connect the computer to the mobile phone using an ADB cable, and use the application software on the mobile phone to simulate clicking the "unlock" button on the mobile phone application to realize the car unlocking function;
[0095] 3. Use a computer and equipment to send a brake CAN (or Ethernet, etc.) signal to simulate braking action and wake up the vehicle's infotainment system;
[0096] 4. Wait 15 seconds for ADB to check the vehicle infotainment system functions: read the vehicle infotainment system software and hardware version, check whether the main system applications start normally, check whether WIFI is turned on, check whether the USB flash drive is readable, etc.
[0097] 5. Record detection errors, especially those where ADB is unusable;
[0098] 6. Record the display output of the central control and passenger vehicle's infotainment system, and record the instrument panel brightness;
[0099] 7. Simulate clicking the "Lock Car" button on the mobile app to simulate locking the car;
[0100] 8. Wait 5 minutes to begin the next test cycle;
[0101] 9. The program uses an external camera to record the interfaces displayed to the user by the instrument panel and central control unit;
[0102] 10. The program is adapted to different testing environments and tests within the testable range;
[0103] 11. The program matches different car models to conduct a range of optional tests;
[0104] 12. Single computer testing of multiple vehicles;
[0105] 13. A single computer controls multiple relays to control the power on and off of multiple vehicles respectively;
[0106] 14. Record the number of tests. If the program is interrupted for manual testing or other vehicle usage, continuing the test will accumulate the number of tests instead of restarting.
[0107] 15. You can test the automatic loop test of waking up and letting the screen sit for a few minutes after waking up to check for any problems with the screen, and then lock and unlock the car to wake up again.
[0108] Understandably, once the system is running, it can automatically test and record relevant data, allowing for manual review of problematic data. One person can be responsible for the rapid start-up test of 10 vehicles. Without this system, ten people would be needed for testing, and consistency and the absence of errors cannot be guaranteed. In summary, this embodiment provides at least one automated execution process for vehicle system sleep / wake-up testing, which, compared to existing manual testing methods, can at least shorten testing time and reduce labor costs.
[0109] It should be noted that the following are several alternative technical solutions:
[0110] 1. In addition to using a programmable power supply to specifically read the vehicle's current, an alternative solution is to read the mixed current.
[0111] 2. In addition to using ADB commands to determine whether each part of the system is available, an alternative solution is to analyze the logs to see if the system is available, and to distinguish the log environment by rack number, manual renaming, etc.
[0112] 3. In addition to continuously recording and counting the number of tests and the number of hibernation failures, an alternative solution is to record the number of tests in batches and then accumulate them manually or by program.
[0113] Figure 3 This is a schematic diagram of a vehicle infotainment system sleep / wake-up testing device provided in an embodiment of the present invention. This embodiment is applicable to at least any vehicle infotainment system performance testing scenario. The vehicle infotainment system sleep / wake-up testing device can be implemented using software and / or hardware. Figure 3 As shown, the vehicle infotainment system sleep / wake-up test device is used to perform the vehicle infotainment system sleep / wake-up test method of any of the foregoing embodiments or implementations.
[0114] The vehicle infotainment system sleep / wake-up test device includes at least the following:
[0115] Environment setup module 110 is used to set up the vehicle infotainment system sleep / wake-up test environment and provide power.
[0116] The status acquisition module 120 is used to acquire the real-time status of at least one test-related vehicle infotainment device and functional application through at least one first ADB command in response to the start of the vehicle infotainment system sleep wake-up test, so as to filter out abnormal vehicle infotainment devices and functional applications.
[0117] The first state determination module 130 is used to read the vehicle current after performing the vehicle power-off operation, and determine that the vehicle enters a sleep state when the vehicle current drops to a preset current threshold within a first preset time period.
[0118] The wake-up operation module 140 is used to perform a vehicle wake-up operation at least after the vehicle system enters a sleep state for a second preset period of time, and after a wake-up interval of a third preset period of time, obtain the current vehicle system status through a second ADB command and detect the real-time status of normal vehicle system equipment and functional applications.
[0119] The second state determination module 150 is used to determine that the vehicle can enter the first sleep state when the current vehicle state and the real-time state of normal vehicle equipment and functional applications meet preset conditions, and then restart the vehicle sleep wake-up test environment and enter the next vehicle test cycle.
[0120] Optionally, it may also include at least a third state determination module 160;
[0121] The third state determination module 160 is used for:
[0122] When the current vehicle infotainment system status and / or the real-time status of normal vehicle infotainment equipment and functional applications do not meet the preset conditions, the current vehicle infotainment system status is obtained again through the second ADB command after a fourth preset time interval, and the real-time status of normal vehicle infotainment equipment and functional applications is detected.
[0123] When the current vehicle infotainment system status and the real-time status of normal vehicle infotainment equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the second sleep state. After that, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
[0124] Optionally, it may also include at least an exception reporting module 170;
[0125] Error reporting module 170 is used for:
[0126] When the current vehicle infotainment system status and / or the real-time status of normal vehicle infotainment equipment and functions do not meet the preset conditions, vehicle infotainment system abnormality and / or vehicle infotainment equipment and functions abnormality error will be executed, and then the vehicle infotainment system sleep wake-up test environment will be restarted and the next vehicle infotainment system test cycle will begin.
[0127] Optionally, it may also include at least a failure determination module 180;
[0128] The failure determination module 180 is used for:
[0129] After performing the power-down operation of the vehicle infotainment system, the vehicle infotainment system current is read. If the vehicle infotainment system current does not drop to the preset current threshold within the first preset time period, it is determined that the vehicle infotainment system has failed to enter sleep mode. Then, the vehicle infotainment system sleep mode is restarted to wake up the test environment and enter the next vehicle infotainment system test cycle.
[0130] The technical solution provided in this embodiment firstly establishes and powers on the vehicle infotainment system sleep / wake-up test environment through the environment setup module; further, in response to the start of the vehicle infotainment system sleep / wake-up test, the status acquisition module acquires the real-time status of at least one test-related vehicle infotainment device and functional application through a first ADB command to filter out abnormal vehicle infotainment devices and functional applications; further, after performing the vehicle infotainment system power-down operation, the first status determination module reads the vehicle infotainment system current, and determines that the vehicle infotainment system has entered a sleep state when the vehicle infotainment system current drops to a preset current threshold within a first preset time period; further, the wake-up operation module performs the vehicle infotainment system wake-up operation at least after the vehicle infotainment system has entered a sleep state for a second preset time period, and after a third preset time period, acquires the current vehicle infotainment system status through a second ADB command and detects the real-time status of normal vehicle infotainment devices and functional applications; finally, when the current vehicle infotainment system status and the real-time status of normal vehicle infotainment devices and functional applications meet preset conditions, the second status determination module determines that the vehicle infotainment system can enter the first sleep state, and then restarts the vehicle infotainment system sleep / wake-up test environment and enters the next vehicle infotainment system test cycle. Therefore, this embodiment provides at least one automated execution process for vehicle system sleep and wake-up testing, which can shorten the testing time and reduce labor costs compared to existing manual testing methods.
[0131] This embodiment provides an electronic device. Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. See also: Figure 4The electronic device 1000 includes a processor 1001 and a memory 1002. The memory 1002 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 1001, the steps in any of the above-described vehicle infotainment system sleep / wake-up test methods are performed. Through the above technical solution, the processor 1001 and the memory 1002 are interconnected and communicate with each other via a communication bus and / or other forms of connection mechanisms (not shown). The memory 1002 stores a processor-executable computer program. When the electronic device 1000 is running, the processor 1001 executes the computer program to perform the vehicle infotainment system sleep / wake-up test method in any of the optional implementations of the above embodiments, to at least achieve the following functions: setting up the vehicle infotainment system sleep / wake-up test environment and providing power; responding to the start of the vehicle infotainment system sleep / wake-up test, obtaining the real-time status of at least one test-related vehicle infotainment device and functional application through at least a first ADB command, in order to screen... Excluding abnormal vehicle infotainment devices and functions; after performing a power-down operation on the vehicle infotainment system, the vehicle infotainment system current is read. If the vehicle infotainment system current drops to a preset current threshold within a first preset time period, the vehicle infotainment system is determined to enter a sleep state. At least after the vehicle infotainment system has entered a sleep state for a second preset time period, a vehicle infotainment system wake-up operation is performed. After a wake-up interval of a third preset time period, the current vehicle infotainment system status is obtained through a second ADB command, and the real-time status of normal vehicle infotainment devices and functions is detected. When the current vehicle infotainment system status and the real-time status of normal vehicle infotainment devices and functions meet preset conditions, the vehicle infotainment system is determined to enter the first sleep state. After that, the vehicle infotainment system sleep-wake-up test environment is restarted and the next vehicle infotainment system test cycle begins.
[0132] This embodiment provides a computer-readable storage medium storing a computer program. When executed by a processor, the program implements the vehicle infotainment system sleep / wake-up test method as provided in all embodiments of this application: setting up a vehicle infotainment system sleep / wake-up test environment and powering it; responding to the start of the vehicle infotainment system sleep / wake-up test, acquiring the real-time status of at least one test-related vehicle infotainment device and functional application through at least a first ADB command to filter out abnormal vehicle infotainment devices and functional applications; after performing a vehicle infotainment system power-down operation, reading the vehicle infotainment system current, and determining that the vehicle infotainment system has entered a sleep state when the vehicle infotainment system current drops to a preset current threshold within at least a first preset time period; performing a vehicle infotainment system wake-up operation at least after the vehicle infotainment system has entered a sleep state for at least a second preset time period, and acquiring the current vehicle infotainment system status through a second ADB command after a third preset time period wake-up interval, and detecting the real-time status of normal vehicle infotainment devices and functional applications; when the current vehicle infotainment system status and the real-time status of normal vehicle infotainment devices and functional applications meet preset conditions, determining that the vehicle infotainment system can enter a first sleep state, and then restarting the vehicle infotainment system sleep / wake-up test environment and entering the next vehicle infotainment system test cycle.
[0133] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0134] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0135] The program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0136] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages—such as Java, Smalltalk, and C++—as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for testing the sleep / wake-up state of a vehicle infotainment system, characterized in that, At least including: Set up and power supply the vehicle infotainment system sleep / wake-up test environment; In response to the start of the vehicle infotainment system sleep-wake test, at least one test-related vehicle infotainment device and function application is obtained in real time through the first ADB command in order to screen out abnormal vehicle infotainment devices and function applications. After performing the power-off operation of the vehicle's infotainment system, the vehicle's current is read. The vehicle's current is determined to enter a sleep state at least when the current drops to a preset current threshold within a first preset time period. At least after the vehicle infotainment system enters a sleep state for a second preset period of time, the vehicle infotainment system wake-up operation is performed. After a third preset period of wake-up interval, the current vehicle infotainment system status is obtained through a second ADB command, and the real-time status of normal vehicle infotainment equipment and functional applications is detected. When the current vehicle infotainment system status and the real-time status of the normal vehicle infotainment system equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the first sleep state. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
2. The vehicle infotainment system sleep / wake-up test method according to claim 1, characterized in that, After the vehicle infotainment system enters a sleep state for at least a second preset period of time, performs a vehicle infotainment system wake-up operation, and after a third preset period of wake-up interval, obtains the current vehicle infotainment system status via a second ADB command and detects the real-time status of normal vehicle infotainment equipment and functional applications, the system further includes at least the following: When the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system and its functional applications do not meet the preset conditions, the current vehicle infotainment system status is re-obtained through the second ADB command after a fourth preset time interval, and the real-time status of the normal vehicle infotainment system and its functional applications is detected. When the current vehicle infotainment system status and the real-time status of the normal vehicle infotainment system equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the second sleep state. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
3. The vehicle infotainment system sleep / wake-up test method according to claim 2, characterized in that, After the step of re-obtaining the current vehicle infotainment system status and / or detecting the real-time status of the normal vehicle infotainment system and its functional applications via the second ADB command after a fourth preset time interval when the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system and its functional applications do not meet the preset conditions, the method further includes at least the following: When the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system equipment and functional applications do not meet the preset conditions, an error message is displayed for vehicle infotainment system abnormality and / or vehicle infotainment system equipment and functional applications abnormality. Then, the vehicle infotainment system sleep-wake test environment is restarted and the next vehicle infotainment system test cycle is entered.
4. The vehicle infotainment system sleep / wake-up test method according to claim 1, characterized in that, After the start of the vehicle infotainment system sleep / wake-up test, at least one test-related vehicle infotainment device and functional application is obtained in real-time via a first ADB command to filter out abnormal vehicle infotainment devices and functional applications, the test further includes at least the following: After performing the vehicle infotainment system power-down operation, the vehicle infotainment system current is read. If the vehicle infotainment system current does not drop to the preset current threshold within the first preset time period, it is determined that the vehicle infotainment system has failed to enter sleep mode. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
5. A vehicle infotainment system sleep / wake-up test device, characterized in that, Used to perform the vehicle system sleep / wake-up test method according to any one of claims 1-4; The vehicle infotainment system sleep / wake-up test device includes at least: The environment setup module is used to set up and power the vehicle infotainment system's sleep / wake-up test environment. The status acquisition module is used to respond to the start of the vehicle infotainment system sleep-wake test by acquiring the real-time status of at least one test-related vehicle infotainment device and functional application through at least the first ADB command, so as to filter out abnormal vehicle infotainment devices and functional applications. The first state determination module is used to read the vehicle current after performing the vehicle power-off operation, and determine that the vehicle enters a sleep state when the vehicle current drops to a preset current threshold within a first preset time period. The wake-up operation module is used to perform a vehicle wake-up operation at least after the vehicle system enters a sleep state for a second preset period of time, and after a third preset period of wake-up interval, obtain the current vehicle system status through a second ADB command and detect the real-time status of normal vehicle system devices and functional applications. The second state determination module is used to determine that the vehicle can enter the first sleep state when the current vehicle state and the real-time state of the normal vehicle equipment and functional applications meet preset conditions, and then restart the vehicle sleep wake-up test environment and enter the next vehicle test cycle.
6. The vehicle infotainment system sleep / wake-up test device according to claim 5, characterized in that, It should also include at least a third state determination module; The third state determination module is used for: When the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system and its functional applications do not meet the preset conditions, the current vehicle infotainment system status is re-obtained through the second ADB command after a fourth preset time interval, and the real-time status of the normal vehicle infotainment system and its functional applications is detected. When the current vehicle infotainment system status and the real-time status of the normal vehicle infotainment system equipment and functional applications meet the preset conditions, it is determined that the vehicle infotainment system can enter the second sleep state. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
7. The vehicle infotainment system sleep / wake-up test device according to claim 6, characterized in that, It should also include at least an exception reporting module; The error reporting module is used for: When the current vehicle infotainment system status and / or the real-time status of the normal vehicle infotainment system equipment and functional applications do not meet the preset conditions, an error message is displayed for vehicle infotainment system abnormality and / or vehicle infotainment system equipment and functional applications abnormality. Then, the vehicle infotainment system sleep-wake test environment is restarted and the next vehicle infotainment system test cycle is entered.
8. The vehicle infotainment system sleep / wake-up test device according to claim 5, characterized in that, It should also include at least a failure determination module; The failure determination module is used for: After performing the vehicle infotainment system power-down operation, the vehicle infotainment system current is read. If the vehicle infotainment system current does not drop to the preset current threshold within the first preset time period, it is determined that the vehicle infotainment system has failed to enter sleep mode. Then, the vehicle infotainment system sleep wake-up test environment is restarted and the next vehicle infotainment system test cycle is entered.
9. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the vehicle system sleep-wake test method according to any one of claims 1 to 4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps in the vehicle system sleep-wake test method according to any one of claims 1 to 4.