CN116382994B - System dormancy restarting test method, device, terminal equipment and medium - Google Patents
System dormancy restarting test method, device, terminal equipment and medium Download PDFInfo
- Publication number
- CN116382994B CN116382994B CN202310641338.4A CN202310641338A CN116382994B CN 116382994 B CN116382994 B CN 116382994B CN 202310641338 A CN202310641338 A CN 202310641338A CN 116382994 B CN116382994 B CN 116382994B
- Authority
- CN
- China
- Prior art keywords
- sleep
- time length
- entertainment system
- dormancy
- restart
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005059 dormancy Effects 0.000 title claims abstract description 103
- 238000010998 test method Methods 0.000 title claims description 17
- 230000007958 sleep Effects 0.000 claims abstract description 149
- 230000004622 sleep time Effects 0.000 claims abstract description 123
- 238000012360 testing method Methods 0.000 claims abstract description 111
- 230000004617 sleep duration Effects 0.000 claims abstract description 59
- 238000000034 method Methods 0.000 claims abstract description 45
- 230000001960 triggered effect Effects 0.000 claims abstract description 20
- 230000009191 jumping Effects 0.000 claims abstract description 11
- 230000006266 hibernation Effects 0.000 claims description 10
- 230000008569 process Effects 0.000 description 8
- 230000007488 abnormal function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 7
- 230000000903 blocking effect Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000012790 confirmation Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004904 shortening Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2236—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2289—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a method, a device, a terminal device and a medium for testing system dormancy restarting, wherein the method for testing system dormancy restarting comprises the following steps: receiving a test instruction, and jumping to a preset dormancy configuration interface according to the test instruction; acquiring a sleep duration configuration instruction triggered based on the sleep configuration interface, and determining the sleep duration of the automobile entertainment system according to the sleep duration configuration instruction; and controlling the automobile entertainment system to sleep and restart after the sleep according to the sleep time. The invention reduces the test time for carrying out the sleep restarting test on the automobile entertainment system and realizes the efficient and flexible system sleep restarting test.
Description
Technical Field
The present invention relates to the field of vehicle testing technologies, and in particular, to a method and apparatus for testing a system sleep restart, a terminal device, and a computer readable storage medium.
Background
Automotive entertainment systems, also known as in-vehicle infotainment systems, are used to provide infotainment functionality for personnel in a vehicle.
In order to avoid the problems of system stuck, abnormal functions and the like caused by long-term power-on state of a host SOC in an automobile entertainment system, the automobile entertainment system needs to be controlled to sleep after running for a period of time and restarted after sleep.
Considering that the time of normally waiting for one sleep on a real vehicle often needs more than 10 minutes (different sleep time according to different specifications of a vehicle factory), when a tester performs a sleep restarting test, the tester needs to perform the test according to the sleep time of the real vehicle, and the more the number of times of pressure test is, the more the test time is consumed.
Disclosure of Invention
The invention mainly aims to provide a system dormancy restarting test method, a system, terminal equipment and a computer readable storage medium, aiming at reducing the test time for performing dormancy restarting test on an automobile entertainment system and realizing efficient and flexible system dormancy restarting test.
In order to achieve the above object, the present invention provides a method for testing a system sleep restart, where the method for testing a sleep restart is applied to an automobile entertainment system, and the method includes:
receiving a test instruction, and jumping to a preset dormancy configuration interface according to the test instruction;
acquiring a sleep duration configuration instruction triggered based on the sleep configuration interface, and determining the sleep duration of the automobile entertainment system according to the sleep duration configuration instruction;
and controlling the automobile entertainment system to sleep and restart after the sleep according to the sleep time.
Optionally, the car entertainment system comprises: the step of determining the sleep time length of the automobile entertainment system according to the sleep time length configuration instruction comprises the following steps of:
and determining the sleep time length corresponding to the host SOC and the microcontroller MCU according to the sleep time length configuration instruction.
Optionally, the step of determining the sleep duration corresponding to the host SOC and the microcontroller MCU according to the sleep duration configuration instruction includes:
acquiring effective parameters corresponding to the dormancy duration configuration instruction;
and determining the sleep time length corresponding to the host SOC and the microcontroller MCU according to the effective parameters.
Optionally, after the step of obtaining the sleep duration configuration instruction triggered based on the sleep configuration interface and determining the sleep duration corresponding to the automobile entertainment system according to the sleep duration configuration instruction, the method further includes:
under a preset condition, the sleep time length is adjusted to a preset default value, wherein the preset condition comprises the following steps: the car entertainment system resumes factory settings.
The step of controlling the automobile entertainment system to sleep and restart after sleep according to the sleep time length comprises the following steps:
and acquiring a dormancy instruction, controlling the automobile entertainment system to carry out dormancy according to the dormancy time length according to the dormancy instruction, and restarting the automobile entertainment system after the dormancy is finished.
Optionally, after the step of controlling the automobile entertainment system to sleep and restart after sleep according to the sleep time length, the method further includes:
reading the restarted system parameters;
and comparing the restarted system parameters with the system parameters before dormancy to evaluate dormancy restarting test results by a user at the automobile entertainment system end.
In order to achieve the above object, the present invention further provides a system sleep restart test device, where the system sleep restart test device includes:
the configuration interface jumping module is used for receiving a test instruction and jumping to a preset dormancy configuration interface according to the test instruction;
the sleep time length determining module is used for acquiring a sleep time length configuration instruction triggered based on the sleep configuration interface and determining the sleep time length of the automobile entertainment system according to the sleep time length configuration instruction;
and the dormancy restarting test module is used for controlling the automobile entertainment system to carry out dormancy and restarting after dormancy according to the dormancy time.
The system dormancy restarting test device realizes the steps of the system dormancy restarting test method when in operation.
To achieve the above object, the present invention also provides a terminal device including: the system comprises a memory, a processor and a system sleep restarting test program which is stored in the memory and can run on the processor, wherein the system sleep restarting test program is executed by the processor to realize the steps of the system sleep restarting test method.
In addition, in order to achieve the above object, the present invention also proposes a computer readable storage medium having stored thereon a test program for system hibernation restart, which when executed by a processor, implements the steps of the test method for system hibernation restart as described above.
Furthermore, to achieve the above object, the present invention provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method for testing a system sleep restart as described above.
The invention provides a method, a device, a terminal device, a computer readable storage medium and a computer program product for testing system dormancy restarting, which are characterized in that a testing instruction is received and a preset dormancy configuration interface is jumped to according to the testing instruction; acquiring a sleep duration configuration instruction triggered based on the sleep configuration interface, and determining the sleep duration of the automobile entertainment system according to the sleep duration configuration instruction; and controlling the automobile entertainment system to sleep and restart after the sleep according to the sleep time.
Compared with the mode that the sleep restarting test can be performed only according to the default sleep time of the system in the prior art, in the invention, the sleep time of the automobile entertainment system can be customized by a tester through the sleep configuration interface, and the automobile entertainment system can perform sleep and restart after sleep according to the sleep time after obtaining the customized sleep time. Therefore, the method and the device improve the flexibility of the system dormancy restarting test by customizing the dormancy time through the dormancy configuration interface, and do not need to wait for the default dormancy time of the system, thereby greatly shortening the testing time of dormancy restarting. On the basis, the invention controls the automobile entertainment system to be dormant and powered off according to the dormant time length, and also avoids the problems of system blocking, abnormal functions and the like caused by long-time power-on work of the host computer of the automobile entertainment system.
Drawings
FIG. 1 is a schematic diagram of a test hardware connection of an automobile entertainment system according to an embodiment of a test method for a system sleep restart of the present invention;
FIG. 2 is a first flow chart illustrating an embodiment of a method for testing a sleep restart of the system according to the present invention;
FIG. 3 is a schematic diagram of an engineering mode interface of an embodiment of a method for testing a sleep restart of a system according to the present invention;
FIG. 4 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 5 is a block diagram of a testing apparatus for sleep restarting of the system according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In an automobile entertainment system, part of equipment (such as entertainment sound equipment, vehicle-mounted communication and the like) has a dormancy awakening function, so that an on-vehicle host system SOC is always in an on-power working state, and the problems of more and more stuck running of the SOC, even abnormal functions of the SOC and the like are caused. Therefore, in order to ensure that each device of the automobile entertainment system can be in a normal working state, the automobile entertainment system can be controlled to sleep and restarted after the sleep.
According to the background art, in order to avoid the problem that the host SOC (hereinafter, abbreviated as SOC) of the car entertainment system is always in an on-state, and the SOC is abnormal, the car entertainment system may be restarted by dormancy. When the tester performs the sleep restart test on the SOC of the real vehicle, the tester needs to wait for each device to sleep, so that a lot of time is required to be consumed when the sleep restart test is performed on the SOC of the real vehicle, and the tester cannot flexibly perform the test according to the requirement of the tester.
Based on the above problems, in the present invention, a system sleep restart test method is provided, and the test method is applied to an automobile entertainment system (including a host SOC and a microcontroller MCU) to realize a logic function test for restarting the SOC at regular time when the automobile entertainment system goes into sleep, thereby improving efficiency and flexibility of the system sleep restart test.
Before the automobile entertainment system is tested for system dormancy restarting, a user needs to connect the automobile entertainment system with other peripheral equipment, as shown in fig. 1, and the user needs to turn on a DC power supply and keep 12V voltage output on the premise of not connecting the automobile entertainment system; further, a DC power supply is connected to an automobile entertainment system (B+ & ACC ON, GND) harness, and a CAN analyzer is connected to the automobile entertainment system (CAN+, CAN-) to start the automobile.
Referring to fig. 2, fig. 2 is a first flow chart of a first embodiment of a test method for system sleep restart according to the present invention.
In the embodiment, an embodiment of a method for testing system sleep restart is provided, and the method for testing system sleep restart is applied to an automobile entertainment system. It should be noted that although a logical order is depicted in the flowchart, in some cases the steps depicted or described may be performed in a different order than presented.
The method for testing the system dormancy restarting in the embodiment comprises the following steps:
step S10, receiving a test instruction, and jumping to a preset dormancy configuration interface according to the test instruction;
it should be noted that, in this embodiment, as shown in fig. 1, after the user connects the car entertainment system with other peripheral devices (power supply, CAN analyzer and PC) and starts the car machine, the user may enter the phone application of the host computer of the car entertainment system, and enter the engineering mode by inputting "# 12040310# through the keyboard input interface.
At this time, the car entertainment system may present an operation interface of the engineering mode to the user through its display device (e.g., touchable display screen), as shown in fig. 3.
Through the interface, a tester can perform screen test, system upgrade, log export, sleep configuration and other operations. At this time, if the "sleep configuration" in the operation interface is clicked, the corresponding test instruction will be triggered.
The automobile entertainment system can receive the test instruction and jump to a sleep configuration interface corresponding to the sleep configuration function option according to the test instruction, as shown in fig. 3, in the sleep configuration interface, a tester can customize the sleep time of the SOC and the MCU, so that the SOC and/or the MCU can sleep according to the sleep time, and restart after the sleep is finished.
Therefore, in this embodiment, by the manner of customizing the sleep time by the tester, the flexibility of the system sleep restart test is improved, and the excessive sleep time of the automobile entertainment system is not required to be waited, so that the sleep restart test time is shortened to a great extent.
Step S20, acquiring a sleep time length configuration instruction triggered based on the sleep configuration interface, and determining the sleep time length of the automobile entertainment system according to the sleep time length configuration instruction;
it should be noted that, in this embodiment, after the tester customizes the sleep duration through the sleep configuration interface as shown in fig. 3 and clicks to confirm, the tester will trigger the corresponding sleep duration configuration instruction.
And after the automobile entertainment system acquires the sleep time length configuration instruction, the automobile entertainment system acquires the sleep time length corresponding to the sleep time length configuration instruction (namely, customized by a tester).
It can be appreciated that the tester can flexibly customize the sleep time of the automobile entertainment system according to the actual test requirements.
In another embodiment, the self-determined sleep time of the tester can be smaller than the default sleep time of the system, so that more times of testing within the same testing time are realized, and the testing efficiency is improved. For example, if the default sleep time period of the system is 10 minutes and the custom sleep time period of the tester is 5 minutes, then the two sleep restart tests are performed within the default 10 minutes of the system.
And step S30, controlling the automobile entertainment system to sleep and restart after the sleep according to the sleep time.
After the automobile entertainment system acquires the user-defined sleep time, the automobile entertainment system can carry out sleep and restarting after the sleep according to the sleep time so as to realize the sleep restarting test of the automobile entertainment system.
It should be noted that, in this embodiment, if the sleep time defined by the tester is 5 minutes, the tester may operate "ACC OFF" through an external device (such as a car key) to make the real car in a flameout state. Furthermore, the process of hibernation and restart of the car entertainment system CAN be observed by the power supply, CAN analyzer and PC shown in fig. 1.
Specifically, for example, a change in DC power supply current is observed: there is a slow down process from high to low (e.g., 6 mA) and a ramp up process from low (e.g., 6 mA) to high after 5 minutes; meanwhile, the CAN message transmission in the CAN analyzer interface of the PC end also has a normal transmission, message stopping and message retransmission (after 5 minutes).
Therefore, in the embodiment, the automobile entertainment system can be restarted after the end of dormancy according to the dormancy time customized by the tester, so that the tester can adjust the dormancy time of the automobile entertainment system according to the actual test requirement, and the flexible and rapid test of the system dormancy restarting is realized. In addition, by controlling the sleep power-off of the automobile entertainment system according to the sleep time length, the problems of SOC blocking, abnormal functions and the like caused by long-time power-on work of the SOC and/or the MCU of the automobile entertainment system are avoided.
In this embodiment, the automobile entertainment system may receive the test instruction triggered by the tester, and jump to the sleep configuration interface corresponding to the "sleep configuration" function option according to the test instruction. After the automobile entertainment system acquires the sleep time length configuration instruction triggered based on the sleep configuration interface, the automobile entertainment system acquires the sleep time length corresponding to the sleep time length configuration instruction (namely, customized by a tester). After the automobile entertainment system acquires the user-defined sleep time, the automobile entertainment system can carry out sleep and restarting after the sleep according to the sleep time so as to realize the sleep restarting test of the automobile entertainment system.
Compared with the mode that the dormancy restarting test can only be performed according to the default dormancy time in the prior art, the dormancy method and the dormancy device can enable testers to customize the dormancy time of the automobile entertainment system through the dormancy configuration interface, and the automobile entertainment system can perform dormancy and restarting after dormancy according to the dormancy time after obtaining the dormancy time customized by a user. Therefore, the invention improves the flexibility of the system sleep restarting test by the mode that the tester self-defines the sleep time length in the sleep configuration interface, and does not need to wait for the default sleep time length of the system, thereby greatly shortening the test time length of the sleep restarting.
On the basis, the invention controls the automobile entertainment system to be dormant and powered off according to the dormant time length, and also avoids the problems of system blocking, abnormal functions and the like caused by long-time power-on work of the host computer of the automobile entertainment system.
Further, based on the first embodiment of the method for testing the system sleep restart of the present invention, a second embodiment of the method for testing the system sleep restart of the present invention is provided.
In this embodiment, the car entertainment system includes: the step S20 of determining the sleep time of the automobile entertainment system according to the sleep time configuration instruction may include:
step S201, determining sleep time periods corresponding to the host SOC and the microcontroller MCU according to the sleep time period configuration instruction.
It should be noted that, in this embodiment, considering that the automobile entertainment system is divided into two major core software of SOC and MCU, and the SOC and the MCU have a complex interaction logic relationship with each other, so, in order to improve the test accuracy of the automobile entertainment system, the sleep durations of the SOC and the MCU may be set respectively, as shown in fig. 3, in this embodiment, a tester may set the sleep durations of the SOC and the MCU respectively through the sleep configuration interface, and click the "determine" function option at the tester, the corresponding sleep duration configuration instruction will be triggered.
And after the automobile entertainment system acquires the sleep time length configuration instruction, acquiring sleep time lengths corresponding to the SOC and the MCU according to the sleep time length configuration instruction.
Specifically, for example, the sleep time length configuration instruction may include a first sleep time length configuration instruction and a second sleep time length configuration instruction, and further, obtain the sleep time length of the SOC according to the first sleep time length configuration instruction, and obtain the sleep time length of the MCU according to the second sleep time length configuration instruction.
Further, the step S201 may include:
step 2011, obtaining effective parameters corresponding to the sleep duration configuration instruction;
step S2012, determining sleep time periods corresponding to the host SOC and the microcontroller MCU according to the effective parameters.
It should be noted that, in this embodiment, the effective parameter includes 255, that is, when the effective parameter is "255", the current mode of the automobile entertainment system may be a test mode, and in the test mode, the default sleep time may be 5 minutes. On the basis, the tester can set the effective parameters of the host SOC and the microcontroller MCU to 255 on the interface shown in FIG. 3, and at the moment, the corresponding sleep duration configuration instruction is triggered. It can be appreciated that, in this embodiment, the valid parameter 255 corresponds to a test mode and a sleep time period in the test mode, which may be configured in advance by a developer, and is not specifically limited in this embodiment.
After receiving the sleep time configuration instruction, the automobile entertainment system acquires the effective parameter corresponding to the sleep time configuration instruction, and further acquires the sleep time (for example, 5 minutes) corresponding to the effective parameter.
In another embodiment, the effective parameter further includes any value within a preset range, which may be [1,254], i.e., any value within the range may be used as the effective parameter. On this basis, the tester can set the effective parameters of the host SOC and the microcontroller MCU (selectable in [1,254 ]) on the interface as shown in fig. 3, respectively.
And after detecting the effective parameters set by the testers, the automobile entertainment system forces the dormancy of the SOC and the MCU to be restarted according to the effective parameters.
For example, if the effective parameter set by the SOC is 5 and the effective parameter set by the MCU is 1, the car entertainment system will force the car to restart when detecting that the SOC is running for 5 hours, or will force the car to restart when detecting that the MCU is running for 1 day.
It can be seen that, in this embodiment, considering that the complex logic interaction process of the SOC and the MCU may affect the accuracy of the test, the sleep time periods of the SOC and the MCU may be respectively set. The sleep time periods of the SOC and the MCU may be the same or different, which is not specifically limited in this embodiment.
In addition, if the tester sets the sleep duration of the SOC and the MCU to 0, the car entertainment system will be in an invalid state at this time, i.e., the car entertainment system will not be restarted by sleep.
Further, after "determining the sleep time period of the car entertainment system according to the sleep time period configuration instruction" in the above step S20, it may further include:
step S40, adjusting the sleep time length to a preset default value under a preset condition, where the preset condition includes: the car entertainment system resumes factory settings.
In this embodiment, if the restoration of the car entertainment system to the factory setting is detected, the car entertainment system may adjust the sleep time of the SOC and the MCU to a preset default value. The preset default value of the sleep duration of the SOC may be the maximum operation hour (for example, 12 hours), and the preset default value of the sleep duration of the MCU may be the maximum operation day (for example, 7 days).
On the basis, the automobile entertainment system is restarted after detecting that the running hour of the SOC reaches 12 hours and/or the running days of the MCU reaches 7 days.
In another embodiment, if the tester does not customize the sleep time of the SOC and the MCU in the sleep configuration interface, the car entertainment system also sets the sleep time of the default SOC to be the maximum operating hour (e.g., 12 hours) and the sleep time of the MCU to be the maximum number of days of operation (e.g., 7 days).
Therefore, in this embodiment, the automobile entertainment system can be controlled to restart even if the tester fails to customize the sleep time, so that the SOC of the automobile entertainment system can be restarted at regular time, the problems of system blocking and abnormal functions caused by long-time power-on of the SOC are avoided, normal operation of the automobile entertainment system is ensured, and driving experience of personnel in the automobile is further improved.
Further, in the above step S30, "controlling the car entertainment system to sleep and restart after sleep according to the sleep time period" may include:
step 301, a sleep instruction is obtained, the automobile entertainment system is controlled to sleep according to the sleep time length and the automobile entertainment system is restarted after the sleep is finished.
It should be noted that, in this embodiment, according to the above description, after the user-defined sleep time, the tester may operate "ACC OFF" through an external device (such as a vehicle key), and trigger a corresponding sleep instruction, so that the real vehicle is in a flameout sleep state.
The automobile entertainment system acquires the dormancy instruction, and then, according to the dormancy instruction, the SOC of the automobile entertainment system is controlled to carry out dormancy according to the dormancy time defined by a tester, and after the dormancy is finished, the SOC, the MCU and the like of the automobile entertainment system are restarted.
Therefore, in the embodiment, the automobile entertainment system can sleep according to the sleep time defined by the testers, and is restarted after the sleep is finished, so that the SOC of the automobile entertainment system is prevented from being in an electrified state for a long time, the SOC performance is improved, further, normal operation of all equipment of the automobile entertainment system is ensured, and the driving experience of the personnel in the automobile is improved.
Further, the step S30 before "controlling the car entertainment system to sleep and restart after sleep according to the sleep time period" may further include:
step S50, acquiring and storing system parameters before dormancy;
on this basis, after the step S30, the method may further include:
step S60, reading the restarted system parameters;
and step S70, comparing the restarted system parameters with the system parameters before dormancy to enable a user of the automobile entertainment system to evaluate a dormancy restarting test result.
Before the automobile entertainment system sleeps in a sleep time defined by a tester, current system parameters of the automobile entertainment system, such as a WIFI state, a Bluetooth state and the like, need to be temporarily stored in advance.
And then, the automobile entertainment system sleeps according to the sleep time defined by the testers, and acquires the restarted system parameters again after the automobile entertainment system is restarted. Further, the system parameters after restarting may be compared with the system parameters before dormancy, for example, to determine whether the bluetooth state after dormancy restarting is restored to the state before restarting (for example, the on state).
It should be noted that, in this embodiment, according to the above description, the tester performs the sleep and the restart operation after the sleep by operating "ACC OFF" through the external device during the user-defined sleep period, so that the real vehicle is in the flameout sleep state.
Furthermore, after the automobile entertainment system is restarted, a tester can operate ACC ON through external equipment to start display equipment of the automobile entertainment system, so that the comparison result of the comparison can be displayed through the display equipment, the tester can evaluate and record the test result, and whether the SOC and MCU of the automobile entertainment system are good or not, whether other peripheral faults exist or not is judged according to the test result.
In the invention, the automobile entertainment system is divided into the SOC and the MCU, and the SOC and the MCU have a complex interaction logic relationship, so that the sleep time of the SOC and the MCU can be respectively set, and the test accuracy of the automobile entertainment system is improved. In addition, the tester can set the effective parameters of the host SOC and the microcontroller MCU (selectable in [1,254 ]) on the interface as shown in fig. 3, respectively. And after detecting the effective parameters set by the testers, the automobile entertainment system forces the dormancy of the SOC and the MCU to be restarted according to the effective parameters. By the mode, the automobile entertainment system is flexibly restarted, and the problems of system blocking, abnormality and the like caused by the fact that the SOC is in the power-on state for a long time are avoided. And in addition, under the scene that the tester cannot customize the sleep time, the automobile entertainment system can be controlled to restart, so that the SOC of the automobile entertainment system can be restarted at regular time, the problems of system blocking, abnormal functions and the like caused by long-time power-on of the SOC are avoided, the normal operation of the automobile entertainment system is ensured, and the driving experience of personnel in the automobile is further improved.
In addition, as shown in fig. 4, fig. 4 is a schematic device structure diagram of a hardware running environment according to an embodiment of the present invention.
It should be noted that, the terminal device in the embodiment of the present invention may be an automobile entertainment system for implementing a system sleep restart.
As shown in fig. 3, the apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage system separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 3 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 3, an operating system, a network communication module, a user interface module, and a test program for system sleep restart may be included in a memory 1005, which is a type of computer storage medium. An operating system is a program that manages and controls the hardware and software resources of the device, supporting the running of test programs and other software or programs that the system is hibernating to restart. In the device shown in fig. 1, the user interface 1003 is mainly used for data communication with the student side; the network interface 1004 is mainly used for establishing communication connection with a server; and the processor 1001 may be configured to invoke a test program for system sleep restart stored in the memory 1005, and perform the following operations:
receiving a test instruction, and jumping to a preset dormancy configuration interface according to the test instruction;
acquiring a sleep duration configuration instruction triggered based on the sleep configuration interface, and determining the sleep duration of the automobile entertainment system according to the sleep duration configuration instruction;
and controlling the automobile entertainment system to sleep and restart after the sleep according to the sleep time.
Further, the processor 1001 may be further configured to invoke a test program for system sleep restart stored in the memory 1005, and further perform the following operations:
and determining the sleep time length corresponding to the host SOC and the microcontroller MCU according to the sleep time length configuration instruction.
Further, the processor 1001 may be further configured to invoke a test program for system sleep restart stored in the memory 1005, and further perform the following operations:
acquiring effective parameters corresponding to the dormancy duration configuration instruction;
and determining the sleep time length corresponding to the host SOC and the microcontroller MCU according to the effective parameters.
Further, after the step of acquiring the sleep duration configuration instruction triggered based on the sleep configuration interface and determining the sleep duration corresponding to the car entertainment system according to the sleep duration configuration instruction, the processor 1001 may be further configured to invoke a test program for restarting the system sleep stored in the memory 1005, and further perform the following operations:
under a preset condition, the sleep time length is adjusted to a preset default value, wherein the preset condition comprises the following steps: the car entertainment system resumes factory settings.
Further, the processor 1001 may be further configured to invoke a test program for system sleep restart stored in the memory 1005, and further perform the following operations:
and acquiring a dormancy instruction, controlling the automobile entertainment system to carry out dormancy according to the dormancy time length according to the dormancy instruction, and restarting the automobile entertainment system after the dormancy is finished.
Further, before the steps of controlling the car entertainment system to sleep and restart after sleep according to the sleep time period, the processor 1001 may be further configured to invoke a test program for system sleep restart stored in the memory 1005, and further perform the following operations:
acquiring and storing system parameters before dormancy;
after the steps of controlling the car entertainment system to sleep and restart after sleep according to the sleep time period, the processor 1001 may be further configured to invoke a test program for system sleep restart stored in the memory 1005, and further perform the following operations:
and comparing the restarted system parameters with the system parameters before dormancy to evaluate dormancy restarting test results by a user at the automobile entertainment system end.
In addition, an embodiment of the present invention further provides a device for testing system sleep restart, as shown in fig. 5, where the device for testing system sleep restart includes:
the configuration interface jumping module 10 is used for receiving a test instruction and jumping to a preset dormancy configuration interface according to the test instruction;
the sleep duration determining module 20 is configured to obtain a sleep duration configuration instruction triggered based on the sleep configuration interface, and determine a sleep duration of the automobile entertainment system according to the sleep duration configuration instruction;
and the dormancy restarting test module 30 is used for controlling the automobile entertainment system to carry out dormancy and restarting after dormancy according to the dormancy time.
Further, the car entertainment system includes: host SOC and microcontroller MCU, the sleep duration determination module 20 includes:
and the sleep time length confirmation unit is used for determining the sleep time length corresponding to the host SOC and the microcontroller MCU according to the sleep time length configuration instruction.
Further, the sleep duration confirmation unit includes:
an effective parameter obtaining subunit, configured to obtain an effective parameter corresponding to the sleep duration configuration instruction;
and the sleep time length confirmation subunit is used for determining the sleep time length corresponding to the host SOC and the microcontroller MCU according to the effective parameters.
Further, the system sleep restarting test device further includes:
the sleep duration adjusting module is configured to adjust the sleep duration to a preset default value under a preset condition, where the preset condition includes: the car entertainment system resumes factory settings.
Further, the sleep restart test module 30 includes:
and the dormancy restarting unit is used for acquiring a dormancy instruction, controlling the automobile entertainment system to carry out dormancy according to the dormancy instruction and the dormancy duration, and restarting the automobile entertainment system after the dormancy is finished.
Further, the system sleep restarting test device further includes:
the first system parameter acquisition module is used for acquiring and storing system parameters before dormancy;
the second system parameter acquisition module is used for reading the restarted system parameters;
and the system parameter comparison module is used for comparing the restarted system parameters with the system parameters before dormancy so as to enable the automobile entertainment system end user to evaluate the dormancy restarting test result.
The specific implementation manner of the system sleep restart test device is basically the same as the embodiments of the system sleep restart test method, and will not be described herein.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a system dormancy restarting test program, and the system dormancy restarting test program is executed by a processor to realize the steps of the system dormancy restarting test method.
Embodiments of the system sleep restart test system and the computer readable storage medium according to the present invention may refer to embodiments of the system sleep restart test method according to the present invention, and will not be described herein.
Furthermore, embodiments of the present invention provide a computer program product comprising a computer program which, when executed by a processor, implements the steps of the system hibernation restart test method according to any one of the embodiments of the system hibernation restart test method above.
The specific embodiments of the computer program product of the present invention are substantially the same as the embodiments of the method for testing a system sleep restart described above, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (8)
1. A method for testing system sleep restart, wherein the method for testing sleep restart is applied to an automobile entertainment system, and the method for testing system sleep restart comprises the following steps:
receiving a test instruction, and jumping to a preset dormancy configuration interface according to the test instruction;
acquiring a sleep duration configuration instruction triggered based on the sleep configuration interface, and determining the sleep duration of the automobile entertainment system according to the sleep duration configuration instruction;
controlling the automobile entertainment system to sleep and restart after the sleep according to the sleep time;
the car entertainment system includes: the method comprises the steps of determining the sleep time length of the automobile entertainment system according to the sleep time length configuration instruction, wherein the sleep time length configuration instruction comprises a first sleep time length configuration instruction and a second sleep time length configuration instruction which are triggered based on a sleep configuration interface, and the method comprises the following steps:
acquiring the sleep time length of the SOC according to a first sleep time length configuration instruction, and acquiring the sleep time length of the MCU according to a second sleep time length configuration instruction;
after the step of obtaining the sleep duration configuration instruction triggered based on the sleep configuration interface and determining the sleep duration of the automobile entertainment system according to the sleep duration configuration instruction, the method further comprises the steps of:
if the sleep time length configuration instruction is not acquired, configuring the maximum operation time length of the SOC and the MCU, and controlling the shutdown restarting of the automobile entertainment system according to the maximum operation time length.
2. The method for testing system sleep restart as set forth in claim 1, wherein the step of obtaining the sleep duration of the SOC according to the first sleep duration configuration instruction and obtaining the sleep duration of the MCU according to the second sleep duration configuration instruction comprises:
acquiring effective parameters corresponding to the first sleep duration configuration instruction and the second sleep duration configuration instruction;
and determining the sleep time length corresponding to the host SOC and the microcontroller MCU according to the effective parameters.
3. The method for testing system sleep restart as set forth in claim 1, further comprising, after said step of obtaining a sleep duration configuration instruction triggered based on said sleep configuration interface and determining a sleep duration corresponding to said car entertainment system according to said sleep duration configuration instruction:
under a preset condition, the sleep time length is adjusted to a preset default value, wherein the preset condition comprises the following steps: the car entertainment system resumes factory settings.
4. The method for testing system sleep restart as set forth in claim 1, wherein said step of controlling said car entertainment system to sleep and restart after sleep according to said sleep time period comprises:
and acquiring a dormancy instruction, controlling the automobile entertainment system to carry out dormancy according to the dormancy time length according to the dormancy instruction, and restarting the automobile entertainment system after the dormancy is finished.
5. The method for testing a system sleep restart as set forth in any one of claims 1 to 4, further comprising, prior to the step of controlling the car entertainment system to sleep and restart after sleep according to the sleep duration:
acquiring and storing system parameters before dormancy;
after the steps of controlling the automobile entertainment system to sleep and restart after sleep according to the sleep time length, the method further comprises the following steps:
reading the restarted system parameters;
and comparing the restarted system parameters with the system parameters before dormancy to evaluate dormancy restarting test results by a user at the automobile entertainment system end.
6. A system sleep restart test device, wherein the system sleep restart test device comprises:
the configuration interface jumping module is used for receiving a test instruction and jumping to a preset dormancy configuration interface according to the test instruction;
the sleep time length determining module is used for acquiring a sleep time length configuration instruction triggered based on the sleep configuration interface and determining the sleep time length of the automobile entertainment system according to the sleep time length configuration instruction, wherein the automobile entertainment system comprises: a host SOC and a microcontroller MCU; if the sleep time length configuration instruction is not acquired, configuring the maximum operation time length of the SOC and the MCU, and controlling the shutdown restarting of the automobile entertainment system according to the maximum operation time length;
the dormancy restarting test module is used for controlling the automobile entertainment system to carry out dormancy and restarting after dormancy according to the dormancy time;
the sleep duration configuration instruction comprises a first sleep duration configuration instruction and a second sleep duration configuration instruction triggered based on a sleep configuration interface, and the sleep duration determination module is further configured to:
and acquiring the sleep time length of the SOC according to the first sleep time length configuration instruction, and acquiring the sleep time length of the MCU according to the second sleep time length configuration instruction.
7. A terminal device comprising a memory, a processor and a system hibernation restart test program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the system hibernation restart test method according to any one of claims 1 to 5.
8. A computer readable storage medium, wherein a system hibernation restart test program is stored on the computer readable storage medium, and the system hibernation restart test program, when executed by a processor, implements the steps of the system hibernation restart test method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310641338.4A CN116382994B (en) | 2023-06-01 | 2023-06-01 | System dormancy restarting test method, device, terminal equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310641338.4A CN116382994B (en) | 2023-06-01 | 2023-06-01 | System dormancy restarting test method, device, terminal equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116382994A CN116382994A (en) | 2023-07-04 |
CN116382994B true CN116382994B (en) | 2023-11-28 |
Family
ID=86980963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310641338.4A Active CN116382994B (en) | 2023-06-01 | 2023-06-01 | System dormancy restarting test method, device, terminal equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116382994B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09212373A (en) * | 1996-01-30 | 1997-08-15 | Pfu Ltd | Process monitor device |
US6799147B1 (en) * | 2001-05-31 | 2004-09-28 | Sprint Communications Company L.P. | Enterprise integrated testing and performance monitoring software |
CN104866088A (en) * | 2014-12-22 | 2015-08-26 | 北汽福田汽车股份有限公司 | Vehicle entertainment main unit, vehicle entertainment main unit control method and vehicle entertainment main unit control device |
CN111474865A (en) * | 2020-03-31 | 2020-07-31 | 北京经纬恒润科技有限公司 | Dormancy awakening test system for intelligent vehicle-mounted terminal controller |
CN114625108A (en) * | 2022-03-21 | 2022-06-14 | 北京经纬恒润科技股份有限公司 | Simulation test method and device |
CN115167255A (en) * | 2022-09-05 | 2022-10-11 | 深圳市晶存科技有限公司 | Automatic dormancy awakening system, method, device and equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7213159B2 (en) * | 2004-06-15 | 2007-05-01 | Mitac Technology Corp. | Method for testing and verifying power management features of computer system |
-
2023
- 2023-06-01 CN CN202310641338.4A patent/CN116382994B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09212373A (en) * | 1996-01-30 | 1997-08-15 | Pfu Ltd | Process monitor device |
US6799147B1 (en) * | 2001-05-31 | 2004-09-28 | Sprint Communications Company L.P. | Enterprise integrated testing and performance monitoring software |
CN104866088A (en) * | 2014-12-22 | 2015-08-26 | 北汽福田汽车股份有限公司 | Vehicle entertainment main unit, vehicle entertainment main unit control method and vehicle entertainment main unit control device |
CN111474865A (en) * | 2020-03-31 | 2020-07-31 | 北京经纬恒润科技有限公司 | Dormancy awakening test system for intelligent vehicle-mounted terminal controller |
CN114625108A (en) * | 2022-03-21 | 2022-06-14 | 北京经纬恒润科技股份有限公司 | Simulation test method and device |
CN115167255A (en) * | 2022-09-05 | 2022-10-11 | 深圳市晶存科技有限公司 | Automatic dormancy awakening system, method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN116382994A (en) | 2023-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107656856B (en) | CPLD-based system state display method and device | |
KR20140063363A (en) | Monitoring and managing processor activity in power save mode of portable electronic device and portable electronic device supporting the same | |
CN111341090B (en) | Bluetooth remote controller pressure measurement method, control device and computer readable storage medium | |
CN109274807B (en) | Test method, device and system | |
CN102609356B (en) | Terminal product driver loading stability testing method | |
CN110132604B (en) | Engine reliability testing method, device, equipment and storage medium | |
CN111414285A (en) | Test method, test device and test equipment for starting function of server system | |
CN105120259A (en) | Detection method and apparatus for digital television | |
CN116382994B (en) | System dormancy restarting test method, device, terminal equipment and medium | |
CN108490289B (en) | Electronic equipment testing method and device and electronic equipment | |
CN114327606B (en) | Configuration management method and device, electronic equipment and computer readable storage medium | |
CN114610406A (en) | Code injection method, device, storage medium and electronic equipment | |
CN113703418A (en) | Vehicle diagnosis method and system, readable storage medium and vehicle | |
US7615886B2 (en) | Electronic apparatus and computer-executable program | |
KR102109125B1 (en) | Method for managing state of ECU in vehicle based on automotive open system architecture | |
CN113625690A (en) | Intelligent diagnosis method and system for automobile and mobile terminal | |
CN111176958B (en) | Information monitoring method, system and storage medium | |
CN107539239A (en) | For starting the method and system of automotive electronics in vehicle electronic control unit | |
CN110850850A (en) | Off-line detection method, device and equipment for cooling water pump and storage medium | |
US20120272103A1 (en) | Software operability service | |
CN116107855A (en) | Test method, system, chip, electronic device and storage medium | |
CN112579369A (en) | Multithreading flashing system, method, device, equipment and storage medium | |
CN114138312A (en) | Upgrade test method, device, electronic equipment and computer readable storage medium | |
CN113760326A (en) | Upgrading method and device, readable storage medium and vehicle | |
CN111208891B (en) | CPLD updating system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518000 floor 7, building C, Huafeng International Robot Industrial Park, Hangcheng Avenue, Nanchang community, Xixiang street, Bao'an District, Shenzhen, Guangdong Applicant after: Shenzhen Blue Whale Zhilian Technology Co.,Ltd. Address before: 518000 floor 7, building C, Huafeng International Robot Industrial Park, Hangcheng Avenue, Nanchang community, Xixiang street, Bao'an District, Shenzhen, Guangdong Applicant before: Shenzhen Lanjing Zhilian Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |