STR-based quick start method and system, electronic equipment and storage medium
By pre-starting the application in the configuration list when the vehicle system is restarted and exiting the STR mode after unlocking, it realizes that the application is started from the pre-start state when clicking the application, solving the problem of slow application startup speed in STR mode, significantly speeding up The startup speed of the application.
Patent Information
- Application Number
- CN202411530394.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-11
AI Technical Summary
When starting an application in STR mode, it is necessary to go through a more complex cold start scenario, which leads to a slow start speed when starting a time-consuming application.
When the vehicle system restarts, the applications in the configuration list are pre-started one by one, and exit STR mode after receiving the unlock signal, when the user clicks on the pre-start application, it continues to start from the pre-start state.
It effectively speeds up the application startup speed and solves the problem of slow application cold start.
Smart Images

Figure CN119415178A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle computer systems, and in particular to a fast startup method, system, electronic equipment and storage medium based on STR (Suspend to RAM, a special power supply working mode). Background Art
[0002] When an application is started in STR mode, the system creates a new process and assigns it to the application. That is to say, the Application class is created and initialized first, and then the MainActivity class is created and initialized, which contains a series of measurement layout drawing, and finally displayed on the interface. Specifically, it includes: the constructor method of the Application class → attachBaseContext (a method of the ContextWrapper class in Android development, which allows you to change or attach a basic context of a Context) → onCreate (a message response function) → the constructor of Activity (representing a user interface screen) → onCreate → configure the background and other properties in the theme → onStart (a method in the Android life cycle, which is one of the methods called before the Activity or Fragment enters the foreground) → onResume (a method in the Android life cycle, which is called before the Activity is resumed and starts to interact with the user) → measurement layout drawing is displayed on the interface.
[0003] When starting an application in the existing STR mode, it is necessary to go through a relatively complex cold start scenario, which results in a slow start speed when starting a relatively time-consuming application. Summary of the invention
[0004] In view of the above shortcomings of the prior art, the purpose of the present invention is to provide a quick startup method, system, electronic device and storage medium based on STR, which is used to solve the problem in the prior art that when starting an application in STR mode, it is necessary to go through a more complex cold start scenario, resulting in a slower startup speed when starting a more time-consuming application.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides a system startup method based on STR, comprising the following steps: in response to a change in the power mode of the vehicle system corresponding to the STR mode, restarting the vehicle system; in the process of restarting the vehicle system, pre-starting the applications in the configuration list in sequence; when all the applications in the configuration list are pre-started, entering the STR mode; when an unlock signal is received, exiting the STR mode; when the user clicks on the pre-started application, executing the continued startup of the application in the corresponding configuration list.
[0006] In one embodiment of the present invention, in response to a change in the power mode of the vehicle system corresponding to the STR mode, the vehicle system is restarted, including: monitoring the change in the power mode of the vehicle system when the user locks the car; when a change in the power mode of the vehicle system when the user locks the car is detected, restarting the vehicle system.
[0007] In one embodiment of the present invention, during the restart of the vehicle system, the applications in the pre-start configuration list are pre-started in sequence, including: obtaining the change information of the MCU power status and the screen status of the vehicle system; judging whether to pre-start based on the change information of the MCU power status and the screen status of the vehicle system: if so, determining the applications in the pre-start configuration list; if not, returning to the step of obtaining the change information of the MCU power status and the screen status of the vehicle system.
[0008] In one embodiment of the present invention, pre-starting the applications in the configuration list in sequence includes: parsing the applications in the configuration list; pre-starting the applications in the configuration list in sequence according to the parsing order; after the pre-starting is completed in sequence according to the parsing order, pulling up the display desktop of the screen of the vehicle system.
[0009] In one embodiment of the present invention, exiting the STR mode includes: in the STR mode, detecting the user's unlocked vehicle status; when it is determined that the vehicle has been unlocked, executing an exit operation on the STR mode and lighting up the screen in the vehicle system for displaying the desktop.
[0010] In one embodiment of the present invention, the user's unlocked vehicle status detection is performed, including: detecting the unlocked status of the unlocked position of the user controller of the vehicle system; when it is determined that the unlocked position is unlocked, setting the vehicle system status to the unlocked vehicle status.
[0011] In one embodiment of the present invention, when a user clicks on a pre-launched application, the application in the corresponding configuration list is continued to be launched, including: obtaining click information of the pre-launched application on the screen used to display the desktop; matching the application in the corresponding configuration list based on the click information, and continuing to complete the second startup process based on the first startup process in which the application in the configuration list has been pre-launched.
[0012] The present invention also provides a quick start system based on STR, including: a restart control unit, used to restart the vehicle system in response to a change in the power mode of the vehicle system corresponding to the STR mode; an application pre-start unit, used to pre-start the applications in the configuration list in sequence during the restart of the vehicle system; a mode switching unit, used to enter the STR mode when all applications in the configuration list are pre-started; an exit management unit, used to exit the STR mode when an unlock signal is received; and an application start unit, used to continue starting the application in the corresponding configuration list when the user clicks on the pre-started application.
[0013] The present invention further provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the aforementioned STR-based quick start method.
[0014] The present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor of a computer, enables the computer to execute the aforementioned STR-based quick start method.
[0015] As described above, the STR-based quick startup method, system, electronic device and storage medium of the present invention have the following beneficial effects: before the vehicle enters the STR mode, the vehicle system is restarted according to the change of the power mode before entering the STR mode, and when the vehicle system restarts, the time-consuming applications in the configuration list are pre-started once, and then the STR mode is entered. When the vehicle is unlocked, the vehicle system exits the STR mode, and when the corresponding application is clicked to start, the application in the corresponding configuration list that has completed the pre-start will continue to start, thereby effectively speeding up the startup speed of the application and solving the problem of slow cold start of the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a process flow of a quick startup method provided by an embodiment of the present invention.
[0017] Figure 2 Shown is a structural block diagram of a quick start system provided by an embodiment of the present invention.
[0018] Figure 3 Shown is a structural schematic diagram of an electronic device according to an embodiment of the present invention.
[0019] Component number description
[0020] Electronic device 1; quick start system 11; memory 12; processor 13; restart control unit 111; application pre-start unit 112; mode switching unit 113; exit management unit 114; application start unit 115. DETAILED DESCRIPTION
[0021] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0022] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0023] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0024] See also Figure 1 In one embodiment of the present invention, the present invention provides a system startup method based on STR, comprising the following steps:
[0025] Step S10: Restarting the vehicle system in response to the change of the power mode of the vehicle system corresponding to the STR mode.
[0026] Step S20: During the process of restarting the vehicle computer system, pre-start the applications in the configuration list in sequence.
[0027] Step S30: When all applications in the configuration list are pre-launched, the STR mode is entered.
[0028] Step S40: When the unlock signal is received, exit the STR mode.
[0029] Step S50: When the user clicks on the pre-started application, the application in the corresponding configuration list is continued to be started.
[0030] In this embodiment, through step S10: in response to the change of the power mode of the vehicle system corresponding to the STR mode, the vehicle system is restarted. It can be seen that during the startup of the vehicle system, it can be based on the STR mode. Specifically, after the user locks the car, for example, the change of the power mode of the vehicle system is monitored. When the change of the power mode corresponds to the power mode of the vehicle system corresponding to the STR mode, the vehicle system is restarted. Among them, the change of the power mode of the vehicle system corresponding to the STR mode is the change of the power mode before entering the STR mode.
[0031] Through step S20: during the process of restarting the vehicle system, pre-starting the applications in the configuration list in sequence, it can be seen that when the vehicle system is restarted, in order to ensure the timeliness of entering the STR mode, the applications in the configuration list can be pre-started in sequence to ensure that the applications in the configuration list are started in advance before entering the STR mode, so as to facilitate the startup speed of the corresponding pre-started applications when exiting the STR mode. For example, the applications in the configuration list can be some time-consuming applications configured, so by pre-starting these time-consuming applications in advance before entering the STR mode, the startup speed of the applications when starting after exiting the STR mode can be effectively improved.
[0032] Through step S30: when all applications in the configuration list are pre-started, the STR mode is entered. It can be seen that before entering the STR mode, the pre-start configuration of all applications in the configuration list needs to be completed. And after the pre-start is completed, the STR mode is entered, so that before entering the STR mode, the high-time-consuming applications such as the high-time-consuming applications are pre-started one by one according to the configuration list, so that when the high-time-consuming application on the screen of the vehicle system is clicked, the application corresponding to the configuration list that has been pre-started can be quickly started.
[0033] Through step S40: when receiving the unlock signal, exit the STR mode, it can be seen that after the vehicle enters the STR mode, the vehicle system can determine whether the vehicle has been unlocked by establishing unlock signal detection at set intervals. And when receiving the unlock signal, that is, for example, when receiving the vehicle key to unlock the vehicle or unlocking and opening the door, the system has completed the unlocking, automatically exits the STR mode, and lights up the screen of the vehicle system, so that after exiting the STR mode, the corresponding pre-started application can be started.
[0034] Through step S50: when the user clicks on the pre-started application, the application in the corresponding configuration list is continued to be started. It can be seen that in the pre-start process, the pre-start of the application can be a partial process to complete the entire startup process. After the vehicle is unlocked and exits the STR mode, you can click on the corresponding pre-started application on the screen, and the application will directly continue the partial process of the application in the configuration list to continue to complete the startup of the application. Through the above steps, the startup speed of the application after exiting the STR mode can be effectively improved, so that the cold start that was originally the first startup is configured as a hot start after the pre-start has been completed, thereby solving the problem of slow application startup.
[0035] In one embodiment of the present invention, before the vehicle system enters the STR mode and restarts, it is determined whether the change in the power mode of the vehicle system corresponds to the change in the power mode of the vehicle system before the vehicle system enters the STR mode and restarts the vehicle system. Specifically, in response to the change in the power mode of the vehicle system corresponding to the STR mode, restarting the vehicle system includes: monitoring the change in the power mode of the vehicle system when the user locks the vehicle; and restarting the vehicle system when the change in the power mode of the vehicle system when the user locks the vehicle is detected.
[0036] In this embodiment, after the user leaves the vehicle and completes the locking of the vehicle, the vehicle system will monitor the change of the power mode of the vehicle system, and based on this change, determine that the vehicle is currently in the locked state. In the power mode corresponding to the locked state, the vehicle system is restarted, and after the vehicle system restarts, it further enters the STR mode.
[0037] In one embodiment of the present invention, different power modes correspond to each stage, such as when the user locks the vehicle, the vehicle system restarts, the application restarts, and the vehicle unlocks. In order to improve the configuration speed of application startup, it is also determined whether the change in the power mode during the vehicle system restart process corresponds to the change in the power mode during the vehicle system restart process before entering the STR mode, based on the vehicle system restart process before entering the STR mode, so as to configure and start applications that are time-consuming, for example. Specifically, during the vehicle system restart process, the applications in the configuration list are pre-started in sequence, including: obtaining the change information of the MCU power status and the screen status of the vehicle system; judging whether to pre-start based on the change information of the MCU power status and the screen status of the vehicle system: if so, determining the application in the pre-start configuration list; if not, returning to the step of obtaining the change information of the MCU power status and the screen status of the vehicle system.
[0038] Specifically, when judging whether to pre-start based on the change information of the MCU power status and the screen status of the vehicle system, it can be further judged whether the following two conditions are met at the same time: the change information of the MCU power status is consistent with the change information of the MCU power status during the restart process of the vehicle system before entering the STR mode; the screen status of the vehicle system for displaying the desktop is in the off state; if so, determine the application in the pre-start configuration list, if not, re-acquire the change information of the MCU power status and the screen status of the vehicle system, and continue to judge whether to pre-start based on the change information of the MCU power status and the screen status of the vehicle system, until the change information of the MCU power status is consistent with the change information of the MCU power status during the restart process of the vehicle system before entering the STR mode, and the screen status of the vehicle system for displaying the desktop is in the off state, then pre-start the application in the configuration list.
[0039] In this embodiment, the vehicle system will be restarted before entering the STR mode. Before the vehicle system restarts before entering the STR mode, it will correspond to the change of the power mode when the user locks the car, and the vehicle system will be restarted according to the change of the power mode when the user locks the car. During the restart of the vehicle system before entering the STR mode, the change of the power mode will be switched to the change of the power mode during the restart of the vehicle system before entering the STR mode. The change of the power mode during the restart of the vehicle system before entering the STR mode depends on the change of the MCU power state. Therefore, after monitoring the change information of the MCU power state, it will be further determined whether the change information of the MCU power state is consistent with the change information of the MCU power state during the restart of the vehicle system corresponding to the STR mode. When it is confirmed that the change information of the MCU power state is consistent with the change information of the MCU power state during the restart of the vehicle system corresponding to the STR mode, and when it is determined that the screen used to display the desktop in the vehicle system has been turned off, it can be determined that the current vehicle system can perform the pre-start operation of the application in the configuration list.
[0040] Specifically, before starting the applications in the configuration list, it is necessary to perform a pre-start detection on the applications in the configuration list, and pre-start is performed only when the relevant requirements for pre-start are met. This can be done by judging whether the current MCU power state change information is consistent with the power state change information during the corresponding vehicle system restart process before entering the STR mode. If they are consistent, it is further judged whether the screen used by the current vehicle system to display the desktop is in a turned-off state. If it is in a turned-off state, it is determined to pre-start the applications in the configuration list. Specifically, a binder (a way for Android to implement inter-process communication (IPC)) communication call can be made to AMS (ActivityManagerService, responsible for managing the life cycle of applications, process management, and activity status) to prepare to start the application.
[0041] In one embodiment of the present invention, the applications in the pre-start configuration list are performed during the restart of the vehicle system before entering the STR mode. Specifically, the applications in the pre-start configuration list are pre-started in sequence, including: parsing the applications in the configuration list; pre-starting the applications in the configuration list in sequence according to the parsing order; after the pre-starting is completed in sequence according to the parsing order, pulling up the display desktop of the screen of the vehicle system. In this embodiment, when parsing the applications in the configuration list, the package name, class name and start time of the pre-start application can be parsed, and after the parsing is completed, it is stored in a collection, and the pre-start is completed in sequence according to the corresponding parsing order. Specifically, the parsed configuration list can be a list in xml (a file format). After all applications have completed the parsing and starting, the display desktop of the screen of the vehicle system can be pulled up, so that when the vehicle is unlocked and the screen is turned on, it is directly entered into the display desktop, so that the relevant pre-start applications displayed in the display desktop can be quickly clicked. Of course, the display desktop also includes some applications that are not set to pre-start and have a relatively short start time.
[0042] In one embodiment of the present invention, when the vehicle is unlocked, the vehicle system will automatically exit the STR mode. Specifically, exiting the STR mode includes: in the STR mode, detecting the user's unlocked vehicle status; when it is determined that the vehicle has been unlocked, executing the exit operation of the STR mode, and lighting up the screen in the vehicle system for displaying the desktop. In this embodiment, when all the applications in the configuration list are pre-started, the vehicle will immediately enter the STR mode. When the vehicle is unlocked again, the vehicle will automatically exit the STR mode, and control the lighting of the screen of the vehicle system to display the applications on the desktop, thereby realizing continued startup based on the pre-started applications. In addition, displaying the desktop can also realize the startup of cold-start applications with short startup time.
[0043] In one embodiment of the present invention, before the application is started, it is necessary to further determine whether it is actually in the unlocked vehicle state. Specifically, the user's unlocked vehicle state detection is performed, including: the unlocked position of the user controller of the vehicle system is detected; when it is determined that the unlocked position is unlocked, the vehicle system state is set to the unlocked vehicle state. In this embodiment, the unlocking timing can be exposed by plugging in the unlocked location of UserController.java (user controller class file). And a timer can be set to check whether the vehicle system is truly unlocked every 1s, for example, to ensure that the application can be truly started.
[0044] In one embodiment of the present invention, after exiting the STR mode, the application in the corresponding configuration list that has completed pre-starting can be further started up based on the selection information of the pre-started application, such as a click, etc. Specifically, when the user clicks on the pre-started application, the application in the corresponding configuration list is started up again, including: obtaining click information of the pre-started application on the screen for displaying the desktop; matching the application in the corresponding configuration list based on the click information, and continuing to complete the second startup process based on the first startup process of the application in the configuration list that has completed pre-starting.
[0045] In this embodiment, after exiting the STR mode, the screen of the vehicle system will enter the display desktop. The user can deploy the application in the corresponding configuration list by clicking on the pre-started application on the display desktop. And because the application in the configuration list has completed the pre-start of the first startup process. Therefore, on the basis of the first startup process, the second startup process can be continued to be completed, so that after the second startup process is completed, the startup of the clicked application is completed. Specifically, the first startup process can be to create and initialize the Application (application) class, and enter the onResume (a method in the Android life cycle, which is called before the Activity is restored and starts to interact with the user) interface to realize the display interface directly from invisible to visible. The second startup process can be to create and initialize a MainActivity (main page) class.
[0046] In a preferred embodiment of the present invention, in the process of starting an application that takes a short time, since the background is not set to start the corresponding application pre-start, the system will create a new process assigned to the application. By first creating and initializing the Application class, then creating and initializing the MainActivity class, a series of measurement layout drawing is included, and finally displayed on the interface. Specifically including: the constructor method of the Application class → attachBaseContext (a method of the ContextWrapper class in Android development, which allows you to change or attach a basic context of a Context) → onCreate (a message response function) → the construction method of Activity (representing a user interface screen) → onCreate → configure the background and other properties in the theme → onStart (a method in the Android life cycle, which is one of the methods called before the Activity or Fragment enters the foreground) → onResume (a method in the Android life cycle, which is called before the Activity is restored and starts to interact with the user) → measurement layout drawing is displayed on the interface. In the process of starting a time-consuming application, by completing the pre-startup of the application in each configuration list, for example, the application that takes a long time to start is clicked on the desktop to start the time-consuming application that has completed the pre-startup, at this time, only a MainActivity class is created and initialized, and there is no need to create and initialize the Application class, which can significantly speed up the startup speed.
[0047] In a preferred embodiment of the present invention, when the user locks the car and enters the STR, first determine whether it is a restart when entering the STR mode according to the system restart mark (such as the change of the power mode). Then tell AMS that the application can be started through Binder communication. By inserting a stub in the code that the user unlocks (for example, inserting a stub in the unlocking place of UserController.java to expose the unlocking timing), it is convenient to notify the service A that starts the application. If the service A receives the notification, it can set a time interval to perform a timed detection every 1s. By parsing the application to be started in the configuration list in the xml format file, for example, including the package name, type and time. After the system is unlocked, service A will start in order according to the application in the configuration list. In the process of starting, wait until the application is started, and finally start to display the desktop, waiting for the next user to unlock. When unlocking and getting on the car, the unlocking timing of the unlocking position of the user controller is exposed, and the car system is determined to be truly unlocked at this time. By clicking on the application configured in the list, the application is opened, and the speed of opening the application is significantly improved.
[0048] like Figure 2 As shown, in one embodiment of the present invention, the present invention further provides a quick start system 11 based on STR, including: a restart control unit 111, used to restart the vehicle system in response to the change of the power mode of the vehicle system corresponding to the STR mode; an application pre-start unit 112, used to pre-start the applications in the configuration list in sequence during the restart of the vehicle system; a mode switching unit 113, used to enter the STR mode when all applications in the configuration list are pre-started; an exit management unit 114, used to exit the STR mode when an unlock signal is received; and an application start unit 115, used to execute the continued start of the application in the corresponding configuration list when the user clicks on the pre-started application.
[0049] In this embodiment, when the user locks the car and leaves, the restart control unit 111 can monitor the change of the power mode before the vehicle system is restarted before entering the STR mode, and when the power mode change is detected to correspond to the change of the power mode before the vehicle system is restarted before entering the STR mode, the vehicle system will be controlled to restart. The application pre-start unit 112 can be used to pre-start the applications in the configuration list in sequence when the vehicle system is restarted. The mode switching unit 113 can be used to switch the vehicle system to the STR mode after all the applications in the configuration list are pre-started. After the vehicle system is in the STR mode, the vehicle unlocking signal is monitored by the exit management unit 114, and the STR mode is exited when the unlocking signal is detected. After the screen of the vehicle system lights up, click on the pre-started application on the desktop, and start the corresponding application in the configuration list through the application startup module 115, so that the application continues to complete the startup on the basis of being pre-started, thereby greatly accelerating the startup speed.
[0050] It should be noted that the STR-based quick start system 11 provided in the above embodiment and the STR-based quick start method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the STR-based quick start system 11 provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0051] See also Figure 3 The electronic device 1 may include a memory 12, a processor 13 and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a fast startup program based on STR.
[0052] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 12 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 12 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 12 can not only be used to store application software and various types of data installed in the electronic device 1, such as STR-based quick start code, etc., but also can be used to temporarily store data that has been output or is to be output.
[0053] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (Control Unit) of the electronic device 1, and uses various interfaces and lines to connect various components of the entire electronic device 1, and executes or executes programs or modules (such as STR-based quick start programs, etc.) stored in the memory 12, and calls data stored in the memory 12 to execute various functions of the electronic device 1 and process data.
[0054] The processor 13 executes the operating system and various installed application programs of the electronic device 1. The processor 13 executes the application programs to implement the steps in the above-mentioned STR-based fast startup method.
[0055] Exemplarily, the computer program may be divided into one or more modules, one or more modules are stored in the memory 12, and executed by the processor 13 to complete the present application. One or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into a restart control unit 111, an application pre-start unit 112, a mode switching unit 113, an exit management unit 114, and an application start unit 115.
[0056] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium, and the computer-readable storage medium can be non-volatile or volatile. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to perform part of the functions of the STR-based fast startup method of each embodiment of the present application.
[0057] In summary, the present invention discloses a quick startup method, system, electronic device and storage medium based on STR, which completes the restart of the vehicle system by changing the power mode before the vehicle enters the STR mode according to the change of the power mode before entering the STR mode, and when the vehicle system restarts, pre-starts the time-consuming applications in the configuration list before entering the STR mode. When the vehicle is unlocked, the vehicle system exits the STR mode, and when the corresponding application is clicked to start, the application in the corresponding configuration list that has completed the pre-start will continue to start, thereby effectively speeding up the startup speed of the application and solving the problem of slow cold start of the application. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has a high industrial utilization value.
[0058] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A system startup method based on STR, characterized in that: The steps include: In response to a change in the power mode of the vehicle computer system corresponding to the STR mode, restarting the vehicle computer system; During the restart of the vehicle system, the applications in the configuration list are pre-started one by one; When all applications in the configuration list are pre-launched, enter STR mode; When receiving the unlock signal, exit STR mode; When the user clicks on a pre-launched application, the application in the corresponding configuration list is continued to be launched.
2. The STR-based rapid start-up method according to claim 1, characterized in that: In response to a change in the power mode of the vehicle system corresponding to the STR mode, restarting the vehicle system includes: Monitor the change of the power mode of the vehicle system when the user locks the vehicle; When a change in the power mode of the vehicle system is detected when the user locks the vehicle, the vehicle system is restarted.
3. The STR-based rapid start-up method according to claim 1, characterized in that: During the restart of the vehicle system, the applications in the pre-start configuration list are started in sequence, including: Obtaining the change information of the MCU power state and the screen state of the vehicle system; Determine whether to pre-start based on the change information of the MCU power state and the screen state of the vehicle system: If so, determine the application in the pre-start configuration list; If not, return to the step of obtaining the change information of the MCU power state and the screen state of the vehicle system.
4. The STR-based rapid start-up method according to claim 1, characterized in that: Pre-start the applications in the configuration list in turn, including: Parse the applications in the configuration list; Pre-start the applications in the configuration list in the parsing order; After the pre-start is completed in the parsing order, pull up the display desktop of the car system screen.
5. The STR-based rapid start-up method according to claim 1, characterized in that: Exiting STR mode includes: In STR mode, the user's unlocking and boarding status is detected; When it is determined that the vehicle has been unlocked, the STR mode is exited and the screen in the vehicle system for displaying the desktop is lit.
6. The STR-based rapid start-up method according to claim 5, characterized in that: Detect the user's unlocking and boarding status, including: Performing unlocking status detection on the unlocking position of the user controller of the vehicle system; When it is determined that the unlocking position is unlocked, the vehicle system status is set to the unlocked vehicle status.
7. The STR-based rapid start-up method according to claim 1, characterized in that: When the user clicks on the pre-launched application, the application in the corresponding configuration list is continued to be launched, including: Obtaining click information of a pre-launched application on a screen for displaying a desktop; According to the click information, the application in the corresponding configuration list is matched, and based on the first startup process in which the application in the configuration list has been pre-started and completed, the second startup process is continued to be completed.
8. A rapid start system based on STR, characterized in that: include: A restart control unit, used to restart the vehicle system in response to a change in the power mode of the vehicle system corresponding to the STR mode; An application pre-start unit is used to pre-start the applications in the configuration list in sequence during the restart of the vehicle system; A mode switching unit, used to enter the STR mode after all applications in the configuration list are pre-launched; Exit management unit, used to exit STR mode when receiving unlock signal; as well as The application startup unit is used to execute the continued startup of the application in the corresponding configuration list when the user clicks on the pre-started application.
9. An electronic device, characterized in that: Electronic equipment includes: one or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, enables the electronic device to implement the STR-based fast startup method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the STR-based rapid start-up method according to any one of claims 1 to 7.