Equipment operation method and device, electronic equipment and computer readable storage medium
By using processor systems with high and low power consumption in electronic devices, switching and co-operating according to the power threshold, the problem of low battery life of traditional equipment operation methods is solved, and efficient power management and long-term operation of equipment are achieved.
Patent Information
- Application Number
- CN202411322383.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-09
- Publication Date
- 2024-11-22
AI Technical Summary
Traditional equipment operation methods have the problem of low battery life, especially when electronic equipment is insufficient, which may cause the equipment to shut down.
Two processor systems are adopted: a first processor with high power consumption and a second processor with low power consumption. The first processor is used when the power is greater than the first power threshold, and the second processing is used when the power is less than the second power threshold. and operate in concert when the power is between the two to optimize power usage.
It effectively improves the battery life of electronic devices, reduces power consumption when the power is insufficient, extends the use time of the equipment, and provides better operating performance when the power is sufficient.
Smart Images

Figure CN119002673A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a device operation method, apparatus, electronic device and computer-readable storage medium. Background Art
[0002] With the development of computer technology, more and more electronic devices have emerged, such as smart phones, computers, smart bracelets, etc. During the operation of electronic devices, power supplies are required. When the power of electronic devices is low, it will affect the operation of electronic devices and even shut down the electronic devices. Therefore, various technologies for saving power have emerged during the operation of electronic devices.
[0003] However, the traditional equipment operation method still has the problem of low endurance. Summary of the invention
[0004] The embodiments of the present application provide a device operation method, an apparatus, an electronic device, and a computer-readable storage medium, which can improve the battery life of the electronic device.
[0005] A device operation method is applied to an electronic device, the electronic device comprising a first processor and a second processor, a first operating system is operated by the first processor, a second operating system is operated by the second processor, and power consumption of the second processor is less than power consumption of the first processor; the method comprises:
[0006] When the power level of the electronic device is less than the power threshold, the electronic device is in a state where the second operating system is running.
[0007] A device operation apparatus is applied to an electronic device, the electronic device comprising a first processor and a second processor, a first operating system is operated by the first processor, a second operating system is operated by the second processor, and power consumption of the second processor is less than power consumption of the first processor; the apparatus comprises:
[0008] The second operating system running module is used to enable the electronic device to be in a state of running the second operating system when the power level of the electronic device is less than a power threshold.
[0009] An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the device operation method as described above.
[0010] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.
[0011] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, the steps of the above method are implemented.
[0012] The above-mentioned device operation method, apparatus, electronic device, computer-readable storage medium and computer program product, the electronic device includes a first processor and a second processor, the first operating system is run by the first processor, and the second operating system is run by the second processor, the power consumption of the second processor is less than the power consumption of the first processor, then, when the power of the electronic device is less than the power threshold, the electronic device is in a state where the second operating system is running, that is, the second operating system is run by the second processor with lower power consumption, which can improve the battery life of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0014] FIG1 is an application environment diagram of a device operation method in one embodiment;
[0015] Figure 2 A flowchart of a method for operating a device in one embodiment;
[0016] Figure 3 A flowchart of a method for operating a device in another embodiment;
[0017] Figure 4 A flowchart of a step in an embodiment in which when the power level of the electronic device is greater than or equal to the second power level threshold and less than or equal to the first power level threshold, the electronic device is in a state where the first operating system and the second operating system are running in coordination;
[0018] Figure 5 A flowchart of a method for operating a device in another embodiment;
[0019] Figure 6 A flowchart of a method for operating a device in another embodiment;
[0020] Figure 7 A timing diagram of the first operating system and the second operating system cooperating when the power level of the electronic device is greater than or equal to the second power level threshold and less than or equal to the first power level threshold in an embodiment;
[0021] Figure 8 It is a structural block diagram of a device operating apparatus in one embodiment;
[0022] FIG. 9 is a schematic diagram of the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0024] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first operating system may be referred to as a second operating system, and similarly, a second operating system may be referred to as a first operating system. Both the first operating system and the second operating system are operating systems, but they are not the same operating system.
[0025] FIG1 is a schematic diagram of an application environment of a device operation method in an embodiment. As shown in FIG1 , the application environment includes an electronic device 102, and the electronic device 102 includes a first processor and a second processor. The electronic device 102 can detect the power. When the power of the electronic device is greater than the first power threshold, the electronic device is in a state where the first operating system is running; when the power of the electronic device is less than the second power threshold, the electronic device is in a state where the second operating system is running; the first operating system is run by the first processor, and the second operating system is run by the second processor; the first power threshold is greater than the second power threshold, and the power consumption of the second processor is less than the power consumption of the first processor; when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, the electronic device is in a state where the first operating system and the second operating system are running in coordination. Among them, the electronic device can be one of wearable devices such as smart watches, smart bracelets, smart glasses, headphones, etc., and can also be, but not limited to, various personal computers, laptops, smart phones, and tablet computers.
[0026] Figure 2 FIG. 1 is a flow chart of a method for operating a device in one embodiment. Figure 2 As shown, it is applied to an electronic device, the electronic device includes a first processor and a second processor, and includes steps 202 to 206.
[0027] Step 202: When the power level of the electronic device is greater than a first power level threshold, the electronic device is in a state where a first operating system is running.
[0028] The power of an electronic device refers to the amount of remaining power in the electronic device. The more power an electronic device has, the longer the electronic device can run. Optionally, the electronic device may include a power source such as a battery, and the power source in the electronic device provides power. The electronic device may also be provided with power by an external independent power source, such as a power bank.
[0029] The electronic device includes a first processor and a second processor. The first operating system is executed by the first processor, and the second operating system is executed by the second processor.
[0030] The first processor refers to a processor with high power consumption. The second processor refers to a processor with low power consumption. The computing performance of the first processor is higher than that of the second processor. The first processor is, for example, a Snapdragon processor, and the second processor is, for example, an MCU (Microcontroller Unit).
[0031] An operating system (OS) is a computer program that manages the hardware and software resources of a computer. An OS handles basic tasks such as managing and configuring memory, determining the priority of system resource supply and demand, controlling input and output devices, operating networks, and managing file systems. An OS also provides an interface for users to interact with the system.
[0032] The first operating system refers to the operating system running on the first processor, and accordingly, the first operating system can provide better operating performance, such as higher picture clarity, faster response speed, better sound quality, etc. The first operating system can be an Android system, an iOS (iPhone Operating System, Apple mobile device operating system) system, a Windows Phone system, etc.
[0033] The electronic device is in a state where the first operating system is running, and this state means that the electronic device is controlled by the first operating system. For example, the first operating system is an Android system, and when the electronic device is in a state where the Android system is running, this state is controlled by the Android system.
[0034] In one embodiment, the electronic device turns on the first processor and the second processor. When the power of the electronic device is greater than the first power threshold, the electronic device is in a state where the first operating system is running, and the screen is controlled by the first processor to display the interface to be displayed on the screen, while the second processor provides algorithm and database capabilities. Among them, the algorithms provided by the second processor include pedometer algorithms, heart rate algorithms, electrocardiogram algorithms, etc. The database of the second processor includes an external memory and a driver for the external memory. The second processor provides database capabilities, which means that the second processor can retrieve data from the database.
[0035] For example, the first processor is a Snapdragon processor, the second processor is an MCU, and the first operating system is an Android system. When the power of the electronic device is greater than the first power threshold, the electronic device is in a state where the Android system is running, the screen is controlled by the Snapdragon processor, and algorithm and database capabilities are provided by the MCU.
[0036] In another embodiment, the electronic device turns on the first processor, and when the power of the electronic device is greater than the first power threshold, the electronic device is in a state where the Android system is running, and the screen is controlled by the first processor to display the interface to be displayed on the screen. The first processor can also provide algorithm and database capabilities. Among them, the algorithms provided by the first processor include pedometer algorithms, heart rate algorithms, electrocardiogram algorithms, etc. The database of the first processor includes an external memory and a driver for the external memory. The database capability provided by the first processor means that the first processor can fetch data from the database.
[0037] The first power threshold can be set according to user needs. The power threshold can be expressed in percentage, for example, the first power threshold can be 80%, 90%, or 78%, without limitation thereto. The power threshold can also be expressed in numerical values, such as when the total power is represented by 100, the power threshold can be 80, 90, etc., without limitation thereto.
[0038] The electronic device detects the power level of the power supply. When the power level of the electronic device is greater than the first power threshold, it indicates that the remaining power level of the power supply of the electronic device is sufficient to support the operation of the electronic device for a long time, and the electronic device is in a state where the first operating system is running. In the first operating system, complex images, such as videos, animations, etc., can be displayed, and complex functions, such as playing games, taking pictures, etc., can also be implemented, which can achieve better interface display effects and fluency.
[0039] Step 204, when the power of the electronic device is less than the second power threshold, the electronic device is in a state where the second operating system is running; the first operating system is run by the first processor, and the second operating system is run by the second processor; the first power threshold is greater than the second power threshold, and the power consumption of the second processor is less than the power consumption of the first processor.
[0040] The second power threshold can be set according to user needs, and the first power threshold is greater than the second power threshold. For example, the first power threshold can be 80%, and the second power threshold can be 25%, 30%, or 10%, not limited thereto.
[0041] The second operating system refers to the operating system running on the second processor. If the second processor has low power consumption, when the electronic device is in the state of running the second operating system, it can save power when the electronic device is running and improve the endurance of the electronic device. The second operating system is, for example, an RTOS (real-time operating system) system.
[0042] The electronic device is in a state where the second operating system is running, and this state means that the electronic device is controlled by the second operating system. For example, when the second operating system is an RTOS system, and the electronic device is in a state where the RTOS system is running, this state is controlled by the RTOS system.
[0043] In one embodiment, when the power of the electronic device is less than the second power threshold, the electronic device turns on the second processor, the electronic device is in a state where the second operating system is running, and the screen is controlled by the second processor to display the interface to be displayed on the screen. Among them, the second processor also provides algorithm and database capabilities. The algorithms provided by the second processor include pedometer algorithms, heart rate algorithms, electrocardiogram algorithms, etc. The database of the second processor includes an external memory and a driver for the external memory. The second processor provides database capabilities, which means that the second processor can retrieve data from the database.
[0044] For example, the first processor is a Snapdragon processor, the second processor is an MCU, and the second operating system is an RTOS system. When the power of the electronic device is less than the second power threshold, the electronic device turns on the MCU, the electronic device is in a state where the RTOS system is running, the screen is controlled by the MCU, and the algorithm and database capabilities are provided by the MCU.
[0045] The electronic device detects the power level of the power supply. When the power level of the electronic device is less than the second power threshold, it means that the remaining power level of the electronic device is small, which may affect the operation of the electronic device and even cause the power to be too low and shut down. The electronic device is then in a state where the second operating system is running, which can save power and improve the battery life of the electronic device.
[0046] In one embodiment, when the power of the electronic device is less than the second power threshold, a prompt message can be generated, and the prompt message is used to prompt the user to charge the electronic device. The prompt message can be a signal light, a text message, an audio message, a vibration, etc. The signal light can emit different colors to give a prompt, and different colors can indicate the urgency of the prompt, such as red for very urgent and yellow for urgent. The text message can be pre-set, such as "The battery is low, please charge in time." The audio message can be pre-configured with prompt music or a ringtone. The vibration can be a preset vibration frequency, or the corresponding vibration frequency can be configured according to the urgency of the prompt.
[0047] In one embodiment, when the power level of the electronic device is less than a second power threshold, the electronic device closes various applications running in the background.
[0048] Specifically, when the power of the electronic device is less than a second power threshold, the electronic device obtains the background running time of each application running in the background, wherein the background running time refers to the time when the application last switched from foreground running to background running; a preset number of applications are determined from the various applications running in the background in the order of the background running times as first-category applications, the first-category applications continue to run, and the applications other than the first-category applications are regarded as second-category applications, and the second-category applications are closed.
[0049] The order of the background running time may be the order of the background running time, or may be the reverse order of the background running time, and is not limited thereto.
[0050] It can be understood that the closer the background running time of an application is to the current time, the more recently the application was used by the user, and the greater the probability that the user will use the application again. Therefore, the application whose background running time is close to the current time can be regarded as the first category application and continue to run.
[0051] The farther the background running time of an application is from the current time, it means that the application was used by the user a long time ago, and the probability that the user will use the application again is small. Therefore, the application whose background running time is far from the current time can be classified as the second category application and closed to save power.
[0052] For example, when the power of the electronic device is less than the second power threshold, the background running applications of the electronic device include A, B, C and D. The background running time of A is 15:30, the background running time of B is 15:25, the background running time of C is 15:32, and the background running time of D is 15:40. The preset number is 2. Then, from the four background running applications A, B, C, and D, 2 applications are determined as the first category of applications in the order of the background running time. Continue to run applications A and B, use C and D as the second category of applications, and close applications C and D. This can save power of the electronic device and improve the battery life of the electronic device.
[0053] Step 206: When the power level of the electronic device is greater than or equal to the second power level threshold and less than or equal to the first power level threshold, the electronic device is in a state where the first operating system and the second operating system are running in coordination.
[0054] When the power level of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, it indicates that the power level of the electronic device is medium, and the electronic device can be in a state where the first operating system and the second operating system are running in coordination, that is, the electronic device can control the switching between the first operating system and the second operating system, thereby achieving coordinated operation of the first operating system and the second operating system.
[0055] For example, the first power threshold is 80%, the second power threshold is 20%, and when the power of the electronic device is 78%, greater than or equal to 20% and less than or equal to 80%, the electronic device can control the first processor to run the first operating system when playing videos, animations, and other images with high definition requirements, that is, the electronic device is in the state of running the first operating system. In the screen-off state, and when browsing text pages, displaying dials, and other pages with low definition requirements, the second processor is controlled to run the second operating system, that is, the electronic device is in the state of running the second operating system.
[0056] In the above-mentioned device operation method, when the power of the electronic device is greater than the first power threshold, the electronic device is in a state where the first operating system is running; when the power of the electronic device is less than the second power threshold, it indicates that the power of the electronic device is less, and the electronic device is in a state where the second operating system is running; the first operating system is run by the first processor, and the second operating system is run by the second processor, and the power consumption of the second processor is less than the power consumption of the first processor, and the power consumption of the electronic device can be reduced when the power of the electronic device is less than the second power threshold, thereby improving the battery life; when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, it indicates that the power of the electronic device is medium, and the electronic device is in a state where the first operating system and the second operating system are running in coordination, and both the first processor with higher power consumption can be used to ensure better operating performance, and the second processor can be used to reduce power consumption and improve battery life.
[0057] In one embodiment, when the power of the electronic device is greater than a first power threshold, the electronic device is in a state where the first operating system is running, and the electronic device is in a first mode; when the power of the electronic device is less than a second power threshold, the electronic device is in a state where the second operating system is running, and the electronic device is in a second mode; when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, the electronic device is in a state where the first operating system and the second operating system are running in coordination, and the electronic device is in a third mode; wherein the power consumption of the electronic devices in the first mode, the third mode, and the second mode decreases sequentially.
[0058] For example, when the power of the electronic device is greater than 80%, the electronic device is in a state where the Android system is running, and the electronic device is in a first mode; when the power of the electronic device is less than 20%, the electronic device is in a state where the RTOS system is running, and the electronic device is running in a second mode; when the power of the electronic device is greater than or equal to 20% and less than or equal to 80%, the electronic device is in a state where the Android system and the RTOS system are running in coordination, and the electronic device is in a third mode; wherein the power consumption of the electronic devices in the first mode, the third mode, and the second mode decreases successively.
[0059] In one embodiment, Figure 3 As shown, the electronic device executes step 302 to detect the power level; executes step 304 to determine whether the power level is less than a second power level threshold, if so, executes step 306, if not, executes step 308.
[0060] Step 306: Enter the second mode, that is, the electronic device is in a state where the second operating system is running.
[0061] Step 308 , determining whether the power level is greater than a first power level threshold, if so, executing step 310 , if not, executing step 312 .
[0062] Step 310: Enter the first mode, that is, the electronic device is in a state where the first operating system is running.
[0063] Step 312, entering the third mode. That is, when the power level of the electronic device is greater than or equal to the second power level threshold and less than or equal to the first power level threshold, the electronic device is in a state where the first operating system and the second operating system are running in coordination.
[0064] In this embodiment, when the power of the electronic device is greater than the first power threshold, the electronic device is in a state where the first operating system is running, and the electronic device is in a first mode; when the power of the electronic device is less than the second power threshold, it indicates that the power of the electronic device is less, then the electronic device is in a state where the second operating system is running, and the electronic device is in a second mode, and the power consumption of the second processor is less than the power consumption of the first processor, and the power consumption can be reduced when the power of the electronic device is less than the second power threshold to improve the battery life; when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, it indicates that the power of the electronic device is medium, then the electronic device is in a state where the first operating system and the second operating system are running in coordination, and the electronic device is in a third mode, and better operating performance can be ensured by the first processor with higher power consumption, and power consumption can be reduced by the second processor to improve the battery life.
[0065] In one embodiment, Figure 4 As shown, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, the electronic device is in a state where the first operating system and the second operating system are running in coordination, including:
[0066] Step 402: When the power level of the electronic device is greater than or equal to the second power level threshold and less than or equal to the first power level threshold, and the multimedia information to be output by the electronic device belongs to the first information, the electronic device is in a state where the second operating system is running.
[0067] Multimedia information refers to a combination of multiple media information, and may include information in multiple media forms such as sound, image, text, etc. The first information refers to multimedia information supported by the second operating system, that is, multimedia information with low power consumption. For example, the first information may be a picture with low definition requirements, a sound with low volume, etc.
[0068] Various first information supported by the second operating system is pre-set in the electronic device, for example, a picture with a definition requirement lower than a preset definition threshold is set as information output by the second operating system. When the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, the multimedia information to be output by the electronic device is matched with the pre-set first information. When the match is successful, the multimedia information belongs to the first information, that is, the multimedia information is multimedia information supported by the second operating system. The electronic device can be in a state where the second operating system is running, and the multimedia information is processed by the second processor, thereby outputting the processed multimedia information.
[0069] Step 404: When the power level of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, the electronic device is in a state where the first operating system is running.
[0070] The second information refers to other multimedia information except the first information. The first information is multimedia information with low power consumption, and the second information is multimedia information with high power consumption. It should be noted that the first operating system can support both the first information and the second information.
[0071] It is understandable that when the electronic device is in a state where the second operating system is running, it can output multimedia information with low power consumption, and multimedia information with high power consumption needs to be output through the first operating system. Therefore, when the multimedia information to be output by the electronic device belongs to the second information, that is, the multimedia information is multimedia information with high power consumption, the electronic device is in a state where the first operating system is running, and the multimedia information is processed by the first processor, thereby outputting the processed multimedia information. The electronic device controls the first processor to run the first operating system to ensure better operating performance.
[0072] In this embodiment, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the first information, it means that the power of the electronic device is medium, and the multimedia information to be output belongs to the information supported by the second operating system, then the electronic device controls the second processor to run the second operating system, which can save power; when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, it means that the power of the electronic device is medium, and the multimedia information to be output is not the information supported by the first operating system, then the electronic device is in the state of running the first operating system. The electronic device runs the first operating system and the second operating system in coordination, which can not only ensure better operating performance through the first processor with higher power consumption, but also reduce power consumption and improve battery life through the second processor.
[0073] In one embodiment, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the first information, the electronic device is in a state where the second operating system is running, including: when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the first information, detecting whether the currently running system is the first operating system; when the currently running system is the first operating system, switching the currently running system to the second operating system.
[0074] When the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output belongs to the first information, it is detected whether the currently running system is the first operating system. When the currently running system is the first operating system, the currently running system is switched to the second operating system. The electronic device is in a state where the second operating system is running. The second operating system is run by a second processor. The power consumption of the second processor is low, which can save power of the electronic device.
[0075] In another embodiment, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the first information, it is detected whether the currently running system is the first operating system; when the currently running system is not the first operating system, the electronic device continues to be in the state of running the second operating system.
[0076] When the power level of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the first information, it is detected whether the currently running system is the first operating system; when the currently running system is not the first operating system, that is, the currently running system is the second operating system, there is no need to switch the operating system, and the electronic device continues to be in a state where the second operating system is running, thereby improving the operating efficiency of the electronic device.
[0077] In one embodiment, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, the first processor is controlled to run the first operating system, including: when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, detecting whether the currently running system is the second operating system; when the currently running system is the second operating system, switching the currently running system to the first operating system.
[0078] When the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, it is detected whether the currently running system is the second operating system. When the currently running system is the second operating system, the currently running system is switched to the first operating system, and the electronic device is in the state of the first operating system, and better operating performance is achieved through the first operating system.
[0079] In another embodiment, when the power level of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, it is detected whether the currently running system is the second operating system; when the currently running system is not the second operating system, the electronic device continues to be in the state of running the first operating system.
[0080] When the power level of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, it is detected whether the currently running system is the second operating system; when the currently running system is not the second operating system, that is, the currently running system is the first operating system, there is no need to switch the operating system, and the electronic device continues to be in the state of running the first operating system, thereby improving the operating efficiency of the electronic device.
[0081] In one embodiment, the multimedia information includes a display interface. Figure 5 As shown, when the currently running system is the first operating system, after switching the currently running system to the second operating system, the method further includes:
[0082] Step 502: Obtain the pages and control elements included in the display interface from the memory of the second operating system; the pages and control elements stored in the memory of the second operating system are the same as those stored in the first operating system.
[0083] Step 504: Display the page and control elements corresponding to the page display instruction on the screen of the electronic device through the second operating system.
[0084] The display interface refers to the interface displayed on the screen of the electronic device. The display interface may include pages and control elements. Control elements refer to the encapsulation of data and methods. Control elements are independent of pages and are displayed on the screen.
[0085] There are independent memories in the first operating system and the second operating system. The data generated and obtained in the first operating system can be stored in the memory of the first operating system. The memory of the first operating system is, for example, NOR Flash. The data generated and obtained in the second operating system can be stored in the memory of the second operating system.
[0086] After the electronic device switches the currently running system to the second operating system, the second operating system obtains the pages and control elements included in the display interface from the memory of the second operating system, and then displays the obtained pages and control elements on the screen of the electronic device through the second operating system.
[0087] After the electronic device switches the first operating system to the second operating system, the screen is also switched from being taken over by the first operating system to being taken over by the second operating system accordingly. That is to say, before the system is switched, the pages and control elements included in the display interface are displayed on the screen of the electronic device through the first operating system; after the system is switched, the pages and control elements included in the display interface are displayed on the screen of the electronic device through the second operating system. If the pages and control elements stored in the memory of the second operating system are the same as those stored in the first operating system, then in the process of switching from displaying the pages and control elements through the first operating system to displaying the pages and control elements through the second operating system, the pages and control elements displayed on the screen are the same, that is, the pages and control elements are switched seamlessly without the user noticing, avoiding the waste of resources caused by attracting the user's attention and checking the electronic device during the switching process.
[0088] In another embodiment, the multimedia information includes a display interface; when the currently running system is a first operating system, after switching the currently running system to a second operating system, it also includes: obtaining pages and control elements included in the display interface from a common storage set through the second operating system; both the first operating system and the second operating system obtain pages and control elements from a common storage set; and displaying the pages and control elements corresponding to the page display instructions on the screen of the electronic device through the second operating system.
[0089] The display interface refers to the interface displayed on the screen of the electronic device. The display interface may include pages and control elements. Control elements refer to the encapsulation of data and methods. Control elements are independent of pages and are displayed on the screen.
[0090] The common storage set refers to a set of data that can be stored and obtained by both the first operating system and the second operating system. A common storage set is set in the electronic device, and the common storage set stores data such as pages and control elements included in the display interface.
[0091] After the electronic device controls the second processor to run the second operating system, the second operating system obtains the pages and control elements included in the display interface from the common storage set, and then displays the obtained pages and control elements on the screen of the electronic device through the second operating system.
[0092] After the electronic device switches the first operating system to the second operating system, the screen is also switched from being taken over by the first operating system to being taken over by the second operating system accordingly. That is to say, before the system is switched, the pages and control elements included in the display interface are displayed on the screen of the electronic device through the first operating system; after the system is switched, the pages and control elements included in the display interface are displayed on the screen of the electronic device through the second operating system. Since both the first operating system and the second operating system obtain pages and control elements from a common storage set, in the process of switching from displaying pages and control elements through the first operating system to displaying pages and control elements through the second operating system, the pages and control elements displayed on the screen are the same, that is, the pages and control elements are switched seamlessly without the user noticing, avoiding waste of resources caused by attracting the user's attention and checking the electronic device during the switching process.
[0093] In one embodiment, the multimedia information includes a display interface. When the currently running system is the second operating system, after switching the currently running system to the first operating system, the method further includes: obtaining, by the first operating system, pages and control elements included in the display interface from the first operating system's own memory; the pages and control elements stored in the memory of the first operating system are the same as the pages and control elements stored in the second operating system; and displaying, by the first operating system, the pages and control elements corresponding to the page display instruction on the screen of the electronic device.
[0094] The display interface refers to the interface displayed on the screen of the electronic device. The display interface may include pages and control elements. Control elements refer to the encapsulation of data and methods. Control elements are independent of pages and are displayed on the screen.
[0095] There are independent memories in the first operating system and the second operating system. The data generated and obtained in the first operating system can be stored in the memory of the first operating system. The data generated and obtained in the second operating system can be stored in the memory of the second operating system.
[0096] After the electronic device controls the first processor to run the first operating system, the first operating system obtains the pages and control elements included in the display interface from the memory of the first operating system, and then displays the obtained pages and control elements on the screen of the electronic device through the first operating system.
[0097] After the electronic device switches the second operating system to the first operating system, the screen is also switched from being taken over by the second operating system to being taken over by the first operating system accordingly. That is to say, before the system is switched, the pages and control elements included in the display interface are displayed on the screen of the electronic device through the second operating system; after the system is switched, the pages and control elements included in the display interface are displayed on the screen of the electronic device through the first operating system. If the pages and control elements stored in the memory of the first operating system are the same as those stored in the second operating system, then in the process of switching from displaying the pages and control elements through the second operating system to displaying the pages and control elements through the first operating system, the pages and control elements displayed on the screen are the same, that is, the pages and control elements are switched seamlessly without the user noticing, avoiding the waste of resources caused by attracting the user's attention and checking the electronic device during the switching process.
[0098] In another embodiment, the multimedia information includes a display interface; when the currently running system is a second operating system, after switching the currently running system to the first operating system, it also includes: obtaining pages and control elements included in the display interface from a common storage set through the first operating system; both the second operating system and the first operating system obtain pages and control elements from a common storage set; and displaying the pages and control elements corresponding to the page display instructions on the screen of the electronic device through the first operating system.
[0099] The display interface refers to the interface displayed on the screen of the electronic device. The display interface may include pages and control elements. Control elements refer to the encapsulation of data and methods. Control elements are independent of pages and are displayed on the screen.
[0100] The common storage set refers to a set of data that can be stored and obtained by both the first operating system and the second operating system. A common storage set is set in the electronic device, and the common storage set stores data such as pages and control elements included in the display interface.
[0101] After the electronic device controls the first processor to run the first operating system, the first operating system obtains the pages and control elements included in the display interface from the common storage set, and then displays the obtained pages and control elements on the screen of the electronic device through the first operating system.
[0102] After the electronic device switches the second operating system to the first operating system, the screen is also switched from being taken over by the second operating system to being taken over by the first operating system accordingly. That is to say, before the system is switched, the pages and control elements included in the display interface are displayed on the screen of the electronic device through the second operating system; after the system is switched, the pages and control elements included in the display interface are displayed on the screen of the electronic device through the first operating system. Since both the second operating system and the second operating system obtain pages and control elements from a common storage set, in the process of switching from displaying pages and control elements through the second operating system to displaying pages and control elements through the first operating system, the pages and control elements displayed on the screen are the same, that is, the pages and control elements are switched seamlessly without the user noticing, avoiding waste of resources caused by attracting the user's attention and checking the electronic device during the switching process.
[0103] In one embodiment, the display interface includes an interface whose display duration is greater than a preset duration, and an interface corresponding to an interface in which the difference between the picture clarity when displayed through the first operating system and the picture clarity when displayed through the second operating system is less than a threshold.
[0104] If the interface is displayed for a longer time than the preset time, it means that the interface is displayed for a longer time and consumes more power, then the electronic device controls the second processor to run the second operating system. The preset time can be set as needed.
[0105] The interface that displays a duration longer than the preset duration, such as the running data interface displayed when running, the heart rate data interface when testing heart rate, the interface that displays the watch face, etc.
[0106] Picture clarity refers to the degree of picture clarity. When the bit rate is fixed, picture clarity is inversely proportional to picture resolution, that is, the higher the picture resolution, the lower the picture clarity; when the resolution is fixed, picture clarity is proportional to bit rate, that is, the higher the bit rate, the higher the picture clarity.
[0107] It is understandable that when the difference between the picture clarity of an interface displayed through the first operating system and the picture clarity of an interface displayed through the second operating system is less than a threshold, it means that the difference in picture clarity between the first operating system and the second operating system is small, and the electronic device is in a state where the second operating system with low power consumption is running. The threshold can be set according to user needs.
[0108] In one embodiment, the electronic device controlling the second processor to run the second operating system may also include the following situations: a display interface of a simple animation; a stopwatch timing interface; an interface where the electronic device waits for input of an unlock password. The display interface of a simple animation is, for example, a display interface of a dial state without complex animation, a display interface of simple number changes in a running APP, a display interface of a user contact list in a phone APP, a display interface of text chatting with friends in a social APP, and so on.
[0109] In one embodiment, when the power level of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the screen of the electronic device is in the screen-off state, the electronic device is in a state where the second operating system is running.
[0110] The screen off state refers to the state where the screen backlight is turned off and the screen is off normally. The screen is in the screen off state to save power consumption.
[0111] When the power level of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the screen of the electronic device is in the screen-off state, it indicates that the remaining power level of the electronic device is medium, and there is no need to display an interface on the screen of the electronic device. The electronic device is in a state where the second operating system is running, which can save more power of the electronic device and improve the battery life of the electronic device.
[0112] In one embodiment, Figure 6 As shown, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device is the first information, after the electronic device is in the state of running the second operating system, the method further includes:
[0113] Step 602: The first processor is in a sleep state.
[0114] The sleep state means that all running real-time data is stored on the hard disk and all unnecessary hardware is turned off to save power. The first processor is in the sleep state, all running real-time data of the first processor is stored on the hard disk, and all unnecessary hardware supporting the first operating system is turned off to save power.
[0115] When the power level of the electronic device is greater than or equal to the second power level threshold and less than or equal to the first power level threshold, and the multimedia information to be output by the electronic device belongs to the second information, the electronic device is in a state where the first operating system is running, including:
[0116] Step 604, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, the first processor in the dormant state is awakened, and the electronic device is in a state where the first operating system is running.
[0117] It is understandable that after shutting down the first processor, it takes a long time to restart the first processor. If the first processor is in a dormant state, when the multimedia information belongs to the second information, the first processor in the dormant state can be quickly awakened, and the electronic device can more efficiently control the first processor to run the first operating system and be in a state where the first operating system is running.
[0118] In one embodiment, the method further includes: when the power level of the electronic device is less than a second power level threshold, the first processor is in a shutdown state.
[0119] When the power of the electronic device is less than the second power threshold, it means that the remaining power of the electronic device is small, and the first processor is turned off, that is, the first processor is in the off state, which can save more power of the electronic device and improve the battery life of the electronic device.
[0120] In one embodiment, Figure 7 As shown, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, the electronic device is in a state where the first operating system and the second operating system are running together. When the first processor controls the screen, the electronic device is in a state where the first operating system is running; when the second processor controls the screen, the electronic device is in a state where the second operating system is running. The following is an example of a user using a sports APP (Application). The specific process is as follows:
[0121] (1) When the user event detected is the user raising his hand, the second processor controls the screen to light up and display the watch face selected by the user. When the user event detected is the user clicking a function button, the first processor controls the screen to display the APP list. When the user event detected is the user using a sports APP and starting to exercise, the first processor controls the screen to display a complex transition animation of the start of exercise.
[0122] (2) When the motion starts and the complex transition animation is displayed, the electronic device switches the first operating system to the second operating system, the first processor is in a dormant state, and the second processor controls the screen to display the motion data interface.
[0123] (3) When the user event detected is that the user clicks the exercise pause button, the second processor controls the screen to display the exercise pause interface. When the user event detected is that the user clicks the exercise resume button, the second processor controls the screen to display the exercise data interface. When the user event detected is that the user clicks the exercise end button, the electronic device wakes up the first processor, and the first processor controls the screen to display the exercise end animation and the dynamic map.
[0124] (4) After the motion end animation and the dynamic map are displayed, the electronic device switches the first operating system to the second operating system, the first processor is in a sleep state, and the second processor controls the screen to display the watch face selected by the user.
[0125] In the above-mentioned device operation method, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, the electronic device is in a state where the first operating system and the second operating system are running in coordination. Even if the electronic device is in a state where the first operating system is running, the time that the first processor is in a sleep state can be greatly increased, thereby greatly saving the power of the electronic device and greatly improving the battery life of the electronic device.
[0126] It should be understood that although Figures 2 to 7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 2 to 7 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0127] Figure 8 FIG. 1 is a structural block diagram of a device operating apparatus according to an embodiment. Figure 8 As shown, a device operation apparatus 800 is provided, which is applied to an electronic device, and the electronic device includes a first processor and a second processor, including: a first operating system operation module 802, a second operating system operation module 804 and a collaborative operation module 806, wherein:
[0128] The first operating system running module 802 is used to enable the electronic device to be in a state of running the first operating system when the power level of the electronic device is greater than a first power threshold.
[0129] The second operating system running module 804 is used to, when the power level of the electronic device is less than the second power threshold, the electronic device is in a state where the second operating system is running; the first operating system is run by the first processor, and the second operating system is run by the second processor; the first power threshold is greater than the second power threshold, and the power consumption of the second processor is less than the power consumption of the first processor.
[0130] The collaborative operation module 806 is used to enable the electronic device to be in a state of collaborative operation of the first operating system and the second operating system when the power level of the electronic device is greater than or equal to the second power level threshold and less than or equal to the first power level threshold.
[0131] The above-mentioned device operation device, when the power of the electronic device is greater than the first power threshold, the electronic device is in a state where the first operating system is running; when the power of the electronic device is less than the second power threshold, it means that the power of the electronic device is less, and the electronic device is in a state where the second operating system is running; the first operating system is run by the first processor, and the second operating system is run by the second processor, and the power consumption of the second processor is less than the power consumption of the first processor, and the power consumption of the electronic device can be reduced when the power of the electronic device is less than the second power threshold, thereby improving the battery life; when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, it means that the power of the electronic device is medium, and the electronic device is in a state where the first operating system and the second operating system are running in coordination, and both can ensure better operating performance through the first processor with higher power consumption, and can reduce power consumption through the second processor to improve the battery life.
[0132] In one embodiment, the collaborative operation module 806 is also used to, when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the first information, the electronic device is in a state where the second operating system is running; when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, the electronic device is in a state where the first operating system is running.
[0133] In one embodiment, the collaborative operation module 806 is also used to detect whether the currently running system is the first operating system when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the first information; when the currently running system is the first operating system, switch the currently running system to the second operating system.
[0134] In one embodiment, the collaborative operation module 806 is also used to detect whether the currently running system is the second operating system when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information; when the currently running system is the second operating system, switch the currently running system to the first operating system.
[0135] In one embodiment, the multimedia information includes a display interface; the above-mentioned device operating device 800 also includes a display module, which is used to obtain the pages and control elements included in the display interface from its own memory through the second operating system; the pages and control elements stored in the memory of the second operating system are the same as the pages and control elements stored in the first operating system; the pages and control elements corresponding to the page display instructions are displayed on the screen of the electronic device through the second operating system.
[0136] In one embodiment, the multimedia information includes a display interface; the above-mentioned display module is also used to obtain the pages and control elements included in the display interface from a common storage set through the second operating system; the first operating system and the second operating system both obtain the pages and control elements from the common storage set; and the pages and control elements corresponding to the page display instructions are displayed on the screen of the electronic device through the second operating system.
[0137] In one embodiment, the display interface includes an interface whose display duration is greater than a preset duration, and an interface corresponding to an interface in which the difference between the picture clarity when displayed through the first operating system and the picture clarity when displayed through the second operating system is less than a threshold.
[0138] In one embodiment, the second operating system running module 804 is also used for the electronic device to be in a state where the second operating system is running when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the screen of the electronic device is in a screen-off state.
[0139] In one embodiment, the first processor is in a sleep state; the above-mentioned collaborative operation module 806 is also used to wake up the first processor in a sleep state when the power of the electronic device is greater than or equal to the second power threshold and less than or equal to the first power threshold, and the multimedia information to be output by the electronic device belongs to the second information, and the electronic device is in a state where the first operating system is running.
[0140] In one embodiment, the device operation apparatus 800 further includes a shutdown module, which is used to shut down the first processor when the power level of the electronic device is less than a second power threshold.
[0141] The division of the various modules in the above-mentioned equipment operation device is only for illustration. In other embodiments, the equipment operation device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned equipment operation device.
[0142] For the specific definition of the device operation device, please refer to the definition of the device operation method above, which will not be repeated here. Each module in the above-mentioned device operation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0143] FIG9 is a schematic diagram of the internal structure of an electronic device in an embodiment. As shown in FIG9 , the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a device operation method provided in each of the following embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium. The electronic device can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc.
[0144] The implementation of each module in the device operation device provided in the embodiment of the present application can be in the form of a computer program. The computer program can be run on a terminal or a server. The program module constituted by the computer program can be stored in the memory of the electronic device. When the computer program is executed by the processor, the steps of the method described in the embodiment of the present application are implemented.
[0145] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to execute the steps of the device operation method.
[0146] A computer program product comprising instructions, when executed on a computer, causes the computer to execute a device operation method.
[0147] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0148] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A device operation method, applied to an electronic device, characterized in that: The electronic device comprises a first processor and a second processor, a first operating system is run by the first processor, a second operating system is run by the second processor, and power consumption of the second processor is less than power consumption of the first processor; the method comprises: When the power level of the electronic device is less than the power threshold, the electronic device is in a state where the second operating system is running.
2. The method according to claim 1, characterized in that The power threshold is 25%, 30% or 10%.
3. The method according to claim 1, characterized in that The method also includes: when the power level of the electronic device is less than a power threshold, the first processor is in a shutdown state.
4. The method according to any one of claims 1 to 3, characterized in that: The method also includes: controlling the screen through the second processor to display the interface to be displayed on the screen, wherein the second processor also provides algorithm and database capabilities, the algorithms provided by the second processor include one or more of a pedometer algorithm, a heart rate algorithm, and an electrocardiogram algorithm, and the second processor providing the database capability means that the second processor retrieves data from a database.
5. The method according to any one of claims 1 to 3, characterized in that: The electronic device includes: a state in which the first operating system is running; and / or a state in which the second operating system is running; and / or a state in which the first operating system and the second operating system are running in coordination. In the coordinated running state, the electronic device can control the switching between the first operating system and the second operating system.
6. The method according to any one of claims 1 to 3, characterized in that: After the electronic device switches the currently running system to the second operating system, the method further includes: obtaining the pages and control elements included in the display interface from the memory of the second operating system through the second operating system, and then displaying the obtained pages and control elements on the screen of the electronic device through the second operating system.
7. The method according to claim 6, characterized in that The pages and control elements stored in the memory of the second operating system are the same as the pages and control elements stored in the first operating system.
8. The method according to any one of claims 1 to 3, characterized in that: When the currently running system is the first operating system, after switching the currently running system to the second operating system, the method also includes: obtaining the pages and control elements included in the display interface from a common storage set through the second operating system; both the first operating system and the second operating system obtain the pages and the control elements from a common storage set; and displaying the pages and the control elements corresponding to the page display instructions on the screen of the electronic device through the second operating system.
9. The method according to any one of claims 1 to 3, characterized in that: The method further includes: when the power level of the electronic device is less than a power threshold, the electronic device shuts down each application program running in the background.
10. The method according to claim 9, characterized in that The electronic device closing each application running in the background includes: the electronic device obtaining the background running time of each application running in the background, wherein the background running time refers to the time when the application last switched from foreground running to background running; determining a preset number of applications from the various applications running in the background in order of the background running time as first category applications, continuing to run the first category applications, and determining each application except the first category application as second category applications, and closing the second category applications.
11. The method according to any one of claims 1 to 3, characterized in that: The method further includes: when the power level of the electronic device is less than a power threshold, the electronic device generates prompt information, where the prompt information is used to prompt a user to charge the electronic device.
12. A device operation device, applied to electronic equipment, characterized in that: The electronic device comprises a first processor and a second processor, a first operating system is run by the first processor, a second operating system is run by the second processor, and power consumption of the second processor is less than power consumption of the first processor; the device comprises: The second operating system running module is used to enable the electronic device to be in a state of running the second operating system when the power level of the electronic device is less than a power threshold.
13. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the device operation method according to any one of claims 1 to 11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
