CN114911335A - Electronic device, and power management method and medium thereof - Google Patents

Electronic device, and power management method and medium thereof Download PDF

Info

Publication number
CN114911335A
CN114911335A CN202110179459.2A CN202110179459A CN114911335A CN 114911335 A CN114911335 A CN 114911335A CN 202110179459 A CN202110179459 A CN 202110179459A CN 114911335 A CN114911335 A CN 114911335A
Authority
CN
China
Prior art keywords
application
installation package
social
electronic equipment
control module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110179459.2A
Other languages
Chinese (zh)
Other versions
CN114911335B (en
Inventor
房帅磊
徐蓓
谭飏
黄励哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110179459.2A priority Critical patent/CN114911335B/en
Priority claimed from CN202110179459.2A external-priority patent/CN114911335B/en
Publication of CN114911335A publication Critical patent/CN114911335A/en
Application granted granted Critical
Publication of CN114911335B publication Critical patent/CN114911335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Power Sources (AREA)

Abstract

The application relates to the technical field of electronics, and discloses electronic equipment and a power utilization management method and medium thereof. The embodiment of the application provides a power utilization management method for electronic equipment, which comprises the following steps: under the condition that the electronic equipment is in a first power utilization mode, the electronic equipment adopts a first control module to operate a plurality of functions of preset applications on the electronic equipment; under the condition that the electronic equipment is switched from the first electricity mode to the second electricity mode, the electronic equipment closes the first control module and adopts the second control module to run partial functions in the multiple functions of the preset application; the running power consumption of the first control module in the first electric mode is larger than that of the second control module in the second electric mode. Therefore, the preset application can be used in the second power utilization mode, the power consumption of the electronic equipment caused by the fact that the first control module is still in the working state can be reduced, and the user experience is improved.

Description

Electronic device, and electricity management method and medium therefor
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an electronic device, and a power management method and medium thereof.
Background
A "super power saving" application is management software dedicated to saving power for electronic devices (e.g. Android phones, pads).
When the user sees or thinks that the power of the electronic device is low or insufficient (for example, the power remains 20%), or when the electronic device detects that the power is low or insufficient (for example, the power remains 20%), the electronic device prompts the user whether to start the power saving mode, and the user can start the power saving mode of the electronic device, for example, the user can start the power saving mode by clicking the "super power saving" control. In the power saving mode, the electronic device may turn off a service function with relatively large power consumption, for example, turn off WIFI, turn off bluetooth, and turn off GPS positioning; only part of the service functions with less power consumption, such as basic service functions of making a call, sending a short message, inquiring a telephone contact, etc., are allowed to be used.
Disclosure of Invention
The embodiment of the application provides electronic equipment, and a power utilization management method and medium thereof.
In a first aspect, an embodiment of the present application provides a power management method for an electronic device, where the electronic device includes a first control module and a second control module;
the method comprises the following steps:
under the condition that the electronic equipment is in a first power utilization mode, the electronic equipment adopts the first control module to run a plurality of functions of preset applications on the electronic equipment;
under the condition that the electronic equipment is switched from a first electricity utilization mode to a second electricity utilization mode, the electronic equipment closes the first control module and adopts the second control module to run partial functions in the plurality of functions of the preset application;
wherein the operating power consumption of the first control module in the first power mode is greater than the operating power consumption of the second control module in the second power mode.
In this way, when the electronic device switches from the first electric mode to the second electric mode, the electronic device turns off the first control module with higher power consumption due to a larger workload. And running part of service functions in the preset application by utilizing the second control module with smaller workload and lower power consumption. Therefore, the preset application can be used in the second power utilization mode, the power consumption of the electronic equipment caused by the fact that the first control module is still in the working state can be reduced, and the user experience is improved.
In this embodiment, the first control module may be a main processor, and the second control module may be a coprocessor. The first power mode may be a normal operation mode (normal operation mode) of the electronic device, and the second power mode may be a power saving operation mode of the electronic device. The electronic device turns off the first control module, that is, the electronic device puts the first control module in a power-off state.
Under the condition that the electronic equipment detects user operation for switching the conventional mode to the power saving mode, after the electronic equipment coordinates the contents of part of service functions in the application program with the power saving function to the coprocessor, the main processor with larger power consumption caused by larger workload is closed. And running a part of service functions after cooperation in the application program by using the coprocessor with smaller workload and lower power consumption. Therefore, the application program can be used in the power saving mode, the power consumption of the electronic equipment caused by the fact that the main processor is still in the working state can be reduced, and the user experience is improved.
In one possible implementation of the first aspect, the method further includes: the electronic equipment acquires an installation package of the preset application, wherein the installation package comprises a first installation file set and a second installation file set;
the electronic equipment installs the first version of the preset application on the electronic equipment through the first installation file set of the installation package, and installs the second version of the preset application on the electronic equipment through the second installation file set of the installation package, wherein the first version comprises the plurality of functions of the preset application, and the second version comprises part of the plurality of functions of the preset application.
In this embodiment of the application, the first installation file set may be a normal mode (normal operating mode) installation package, and the second installation file set may be a power saving mode installation package. The first version may be a regular version and the second version may be a power-saving version.
If the preset application is a social application program, the multiple functions of the social application program can be a friend circle, an address list, a short video, a message list, a message reminder and an incoming call reminder, and part of the multiple functions of the social application program can include the message list, the message reminder and the incoming call reminder.
In a possible implementation of the first aspect, the method further includes: and under the condition that the electronic equipment determines that the user selects to install the first version and simultaneously installs the second version, the electronic equipment installs the first version of the preset application on the electronic equipment through the first installation file set of the installation package, and installs the second version of the preset application on the electronic equipment through the second installation file set of the installation package.
In a possible implementation of the first aspect, the preset application includes any one or more of a social application, an alarm clock application, a browser application, a shopping application, a video application, a news application, a telephone application, a contacts application, and an information application.
In a possible implementation of the first aspect, the electronic device includes any one of a mobile phone, a computer, a laptop, a tablet computer, a television, a watch, and a vehicle-mounted terminal.
In one possible implementation of the first aspect, the first control module includes a central processing unit; the second control module comprises any one of a microcontroller, a digital signal processor and a control circuit.
In a second aspect, this application provides in its implementation a machine-readable medium having stored thereon instructions that, when executed on a machine, cause the machine to perform any one of the possible implementations of the method for power management of the first aspect.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory for storing instructions by a first control module and a second control module of the electronic device;
and the first control module and the second control module are used for executing any one of the possible realized electricity utilization management methods of the first aspect.
In a possible implementation of the third aspect, the electronic device further includes: under the condition that the electronic equipment is in a first power utilization mode, the electronic equipment is used for running a plurality of functions of preset applications on the electronic equipment by adopting the first control module;
and under the condition that the electronic equipment is switched from a first electric mode to a second electric mode, the electronic equipment is used for closing the first control module and running part of the plurality of functions of the preset application by adopting the second control module.
In a possible implementation of the third aspect, the first control module includes a central processing unit; the second control module comprises any one of a microcontroller, a digital signal processor and a control circuit.
Drawings
Fig. 1A-1E illustrate schematic interface changes for setting a power saving mode on a mobile phone 100, according to some embodiments of the present disclosure;
2A-2B illustrate an application scenario diagram of a power management method, according to some embodiments of the present application;
fig. 3 illustrates a hardware architecture diagram of a handset 100, according to some embodiments of the present application;
fig. 4 is a schematic structural diagram illustrating a power saving management system of the electronic device 100 according to an embodiment of the application;
FIG. 5 illustrates a flow diagram of a method of power management, according to some embodiments of the present application;
FIG. 6 illustrates a flow diagram of a method of power management, according to some embodiments of the present application;
fig. 7 is a schematic view illustrating an application scenario of a power consumption management method according to an embodiment of the present application;
FIG. 8 illustrates a flow diagram of a method of power management, according to some embodiments of the present application;
FIG. 9 illustrates a flow diagram of a method of power management, according to some embodiments of the present application;
FIG. 10 is a diagram illustrating a watch 100 implementing aspects of the present application, according to some embodiments of the present application;
fig. 11 is a schematic diagram illustrating a structure of a power saving management system of the wristwatch 100 according to an embodiment of the present application.
Detailed Description
Illustrative embodiments of the present application include, but are not limited to, an electronic device and a power management method thereof. The technical solutions of the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1A to 1E are schematic diagrams illustrating interface changes for setting a power saving mode on a mobile phone 100 according to some embodiments of the present application, as shown in fig. 1A, in a display interface of the mobile phone 100, assuming that a user needs to start a power saving service function of the mobile phone 100, a finger of the user slides downward from the top of the display interface, and the mobile phone 100 displays a top menu bar. As shown in fig. 1B, the handset 100 displays a top menu bar that includes a "super power save" control 11. After the user clicks the "super power saving" control 11, as shown in fig. 1C, the mobile phone 100 displays a "power saving mode on" prompt box 2, where the prompt box 2 includes prompt information: "in super power saving mode, only part of the applications are available. Is it turned on? ". The prompt box 2 also includes an "open" control 21 and a "cancel" control 22 for selection by the user. Assume that the user selects the "open" control 21. For example, after the user clicks the "open" control 21, as shown in fig. 1D, the mobile phone 100 enters a power saving mode interface, and reduces the screen brightness, for example, the theme of the power saving mode interface changes from the previous lighting mode to a gray or black mode, and displays basic service functions such as dialing, texting, querying phone contacts, adding applications, and the like, for example, the mobile phone 100 displays the "dialing" control 3, the "information" control 4, the "contacts" control 5, the "adding" control 6, and the like, for the user to select and use.
In addition, the user may customize the application that needs to be used in the power saving mode according to the preference, for example, as shown in fig. 1E, a social application is added to the "add" control 6, and the application that is not added is limited by default and is not allowed to run and operate, so that the purpose of saving power is achieved. However, in this case, even in the power saving mode, the main processor of the cellular phone 100 is actually in an operating state, and the power saving effect is not significant. After the user adds the active application program (e.g., social application program), the network interaction of the application program (e.g., social application program) still frequently wakes up the main processor, which results in a large power consumption overhead.
In order to solve the above problem, in the embodiment of the present application, when the user sees or thinks that the power of the electronic device is low or insufficient (for example, 20% of the remaining power), or when the electronic device detects that the power is low or insufficient (for example, 20% of the remaining power), the user is prompted whether to turn on the power saving mode, and the user may turn on the power saving mode of the electronic device, for example, click the "super power saving" control to turn on the power saving mode. Under the condition that the electronic equipment detects user operation for switching the conventional mode to the power saving mode, after the electronic equipment coordinates the contents of part of service functions in an application program with the power saving function to the coprocessor, the main processor with larger power consumption caused by larger workload is closed. And running a part of service functions after cooperation in the application program by using the coprocessor with smaller workload and lower power consumption. Therefore, the application program can be used in the power saving mode, the power consumption of the electronic equipment caused by the fact that the main processor is still in the working state can be reduced, and the user experience is improved.
For convenience of description, the following description takes an application as an example of a social application. However, it is understood that the technical solution of the present application is applicable to any application installed on the electronic device 100, including a third party application and a system application of the electronic device 100 itself.
For example, fig. 2A-2B illustrate application scenarios of a power management method according to some embodiments of the present application.
In the technical solution of the present Application, when installing an Application (App), the electronic device 100 may select to install a power-saving version installation package and a normal version installation package. The power saving management scheme of the embodiment of the present application can be used only when the power saving version installation package is installed in the electronic device 100, that is, the coprocessor of the electronic device 100 runs part of service functions of the social application program in the power saving mode. In the case where the electronic apparatus 100 installs the regular version installation package, the electronic apparatus 100 may run all business functions of the social application in the power saving management mode.
For example, the application installation phase is shown in FIGS. 2A-2B. Specifically, in this scenario, as shown in fig. 2A, assuming that the user wants to install the application, the user may find the App that needs to be installed by opening the application mall application, for example, the electronic device 100 displays an "application mall" control 7, and after the user selects (e.g., clicks) the "application mall" control 7, the application mall App is opened. As shown in fig. 2B, the electronic device 100 displays various applications that can be installed, such as the "social" application 8, on the operation interface of the App. The electronic device 100 may also display an "install power save version" control 81 and an "install regular version" control 82 for selection by the user.
As shown in fig. 2B, if the user selects (e.g., clicks) the "install power saving version" control 81, the electronic device 100 downloads the power saving mode social installation package and installs the power saving mode social installation package. The power saving mode social installation package is used for the electronic device 100 to run part of business functions of the social application program in the power saving mode.
After the power-saving version of the social application program is installed, if the electronic device 100 enters the power-saving mode, the main processor 101 of the electronic device 100 does not operate, but the coprocessor is used to run a service function that needs to be processed by the social application program in the power-saving mode, that is, a part of the service function of the social application program. Specifically, as shown in fig. 4, a message list service, a message alert service, and an incoming call alert service of the social application are processed on the coprocessor, and a buddy circle service, an address book service, a short video service, and the like that are originally executed on the main processor in the normal mode cannot be executed.
In addition, if the user selects (e.g., clicks on) the "install conventional version" control 82, the electronic device 100 downloads the conventional-mode social installation package and installs the conventional-mode social installation package. It is to be appreciated that the conventional mode social installation package is used for all business functions of the electronic device 100 running the social application in the conventional mode. And after the electronic device 100 enters the power saving mode, the service function of the social application program is not run.
It will be appreciated that an electronic device 100 suitable for use with embodiments of the present application may be an electronic device having two or more processors, e.g., a main processor and a co-processor, as described above. For example: mobile phones, computers, laptop computers, tablet computers, televisions, watches, vehicle terminals, etc. For convenience of explanation, the following description will be given by taking a mobile phone as an example.
The following describes in detail a technical solution of the power utilization management method provided in the present application, taking the electronic device 100 as a mobile phone 100 as an example.
Fig. 3 illustrates a hardware architecture diagram of a handset 100, according to some embodiments of the present application. As shown in fig. 3, the mobile phone 100 includes a main processor 101, a co-processor 102, a display screen 103, a sensor module 104, a communication module 105, a memory 106, and a power module 107.
Host processor 101 may include one or more processing units, such as: the host processor 101 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), a host processor, and the like. The different processing units may be separate devices or may be integrated into one or more processors.
The main processor 101 is responsible for running various applications of the terminal, including UI human-computer interaction interface, cloud server interaction, and the like. Therefore, the main processor 101 generally consumes a high power and has a high processing capability. The host processor 101 may be a Central Processing Unit (CPU), a DSP, or the like, and the embodiments of the present invention are not limited thereto.
Coprocessor 102 may continue to operate in power save mode. The coprocessor 190 is connected to the main processor 101. For example, the host processor 101 and the coprocessor 102 are connected via a wired communication connection (e.g., a serial bus or a parallel bus) or a wireless communication connection.
In this embodiment of the application, after the main processor 101 detects that the user selects the event of the power saving mode, after the main processor 101 coordinates part of the service function content in the social App to the coprocessor 102, the main processor 101 with a large workload and a large power consumption is turned off, so that the mobile phone 100 executes part of the service function in the social App by using the coprocessor 102 with a small workload and a low power consumption.
The coprocessor 120 may be a low-power processor such as a Microcontroller (MCU) or a Digital Signal Processor (DSP). The power consumption of the main processor 101 in the normal mode is larger than the power consumption of the coprocessor 120 in the power saving mode.
The display screen 103 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like.
The sensor module 104 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like. The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor may be disposed on the display screen 103. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor, the capacitance between the electrodes changes. The handset 100 determines the intensity of the pressure from the change in capacitance. When a touch operation is applied to the display screen 103, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor. The cellular phone 100 can also calculate the touched position based on the detection signal of the pressure sensor. And determining a corresponding operation instruction according to the touch position. In the embodiments of the present application, for example: if the user selects (e.g., clicks on) the "install power save version" control, the mobile phone 100 detects the user operation, downloads the power save mode social installation package, and installs the power save mode social installation package using the coprocessor 102.
The communication module 105 may be used to enable the handset 100 to communicate with other electronic devices.
The memory 106 is used for storing software programs and data, and the main processor 101 or the coprocessor 102 executes various functional applications and data processing of the mobile phone 100 by operating the software programs and data stored in the memory 108.
The power module 107 is used for supplying power to the main processor 101, the coprocessor 102, the display screen 103, the sensor module 104, the communication module 105, the memory 106 and the like.
It is understood that fig. 3 is only an exemplary structure for implementing the functions of the mobile phone 100 in the present embodiment, and the mobile phone 100 having other structures and capable of implementing similar functions is also applicable to the present embodiment, and is not limited herein.
The following describes the main hardware main processor 101 and the coprocessor 102 related to the embodiment of the present application, and the functional modules of the main processor 101 and the coprocessor 102 mainly related to the installation process of the social application, taking the application as an example of the social application.
Fig. 4 is a schematic structural diagram illustrating a power saving management system of an electronic device 100 according to an embodiment of the present application, and as shown in fig. 4, the power saving management system of the electronic device 100 includes a package installation service module a7 and a collaboration service module a8 executed by a main processor 101 running a program, and a buddy module a1, a contact list module a2, a short video module a3, a message list module a4, a message alert module a5, and an incoming call alert module a6 executed by the main processor 101 running a program in a normal mode. The power saving management system of the electronic device 100 further includes a package installation service module b7 and a collaboration service module b8 executed by the coprocessor 102 running program, and a message list module b4, a message reminding module b5 and an incoming call reminding module b6 executed by the coprocessor 102 running program in the power saving mode.
Among them, the package installation service module a7 is used to manage how to install the regular mode installation package in the electronic apparatus 100 and pass the power saving mode installation package to the package installation service module b7 in the electronic apparatus 100. After installing the normal mode installation package, the electronic apparatus 100 may implement various installed functions, for example, a buddy function, an address book function, a short video function, a message list function, a message alert function, and a call alert function, through the main processor 101.
The package installation service module b7 is used to manage how to install the power saving mode installation package in the electronic device 100. After installing the power saving mode installation package, the electronic device 100 may implement various installed functions, such as a message list function, a message alert function, and an incoming call alert function, through the coprocessor 102.
Specifically, the package installation service module a7 is used to install all business function modules in the social application, for example, a buddy module a1, an address book module a2, a short video module a3, a message list module a4, a message alert module a5, and an incoming call alert module a6 in an application layer of the electronic device 100.
The package installation service module b7 is used for installing part of service function modules in the social application, such as the message list module b4, the message alert module b5 and the incoming call alert module b6 in the application layer of the electronic device 100.
The friend circle module a1 is used to manage the social friend circle, for example, display the friend circle, update the friend circle, and so on. The address book module a2 is used to manage the address book, for example, display the address book, update the address book, and the like. The short video module a3 is used to manage short videos, such as playing short videos, updating short videos, and the like. The message list module a4 is used for managing message lists, for example, displaying message lists, updating message lists, and the like. The message reminder module a5 is used to manage message reminders, such as displaying message reminder information and the like. The incoming call alert module a6 is used for managing incoming call alerts, for example, playing corresponding incoming call alert audio at the time of message alert.
The framework layer of the electronic device 100 further includes a collaboration services module a8, and the framework layer of the co-processor 102 further includes a collaboration services module b 8.
The cooperative service module a8 is configured to cooperate with the cooperative service module b8 when the mobile phone 100 starts the power saving mode, coordinate part of service function contents of a conventional mode service function in the social App in the mobile phone 100 to the coprocessor and then continue to operate, and close the main processor 101 with a large workload and a large power consumption, so that the mobile phone 100 executes part of service functions in the social App by using the coprocessor 102 with a small workload and a low power consumption.
Specifically, the message list module b4 corresponds to the message list module a4, the message alert module b5 corresponds to the message alert module a5, and the incoming call alert module b6 corresponds to the incoming call alert module a 6. Under the condition that the mobile phone 100 is switched to the power saving mode, history contents of a message list module b4, a message reminding module b5 and an incoming call reminding module b6 in the main processor 101 are synchronized with a message list module b4, a message reminding module b5 and an incoming call reminding module b6 in the coprocessor 102, after synchronization is completed, the main processor is closed, and the coprocessor 102 executes service functions corresponding to the message list module b4, the message reminding module b5 and the incoming call reminding module b 6.
It can be understood that, as shown in fig. 4, the system operating environment (operating system) supported by the mobile phone 100, such as a hong meng system or an android system, is deployed at the kernel layer of the main processor 101 and the coprocessor 102 in the mobile phone 100, that is, the technical solution of the embodiment of the present application is applicable to a hong meng system and an android system, but may also be other terminal operating systems, which is not limited thereto.
It can be understood that if the system operating environment (operating system) supported by the mobile phone 100 is an Android system, the relevant application of the Android system mobile phone is an Android package (apk).
Thus, when the mobile phone 100 runs the social application program in the power saving mode, the electronic device closes the main processor with higher power consumption, and runs part of service functions after cooperation in the social application program by using the coprocessor with lower power consumption, so that the user can use the social application program in the power saving mode, the power consumption of the power-consuming electronic device can be reduced, and the user experience is improved.
It is understood that the power saving mode and the power saving mode are only exemplary names, and besides, the power saving mode and the power saving mode may also be a super power saving mode and a super power saving mode.
It is understood that the installation package is only an exemplary name, and may be a software package, and in other embodiments of the present application, the installation package may be named by other names, which are not limited herein.
Taking the electronic device 100 as the mobile phone 100 and the application as the social application as an example, based on the structure in fig. 4, the following further describes the social application installation package installation stage, the power saving mode social application running stage, and the social application uninstalling stage in the present technical solution in detail with reference to the accompanying drawings.
Stage of installing social application installation package
Example one
The mobile phone 100 may install the social installation package with the power saving service function under the condition that the user has a perception, for example, "install power saving version" and "install regular version" are displayed on the display interface of the mobile phone 100 for the user to select, and the embodiment of the present application is further described below with reference to the drawings.
FIG. 5 illustrates a flow diagram of a method for power management, according to some embodiments of the present application. The steps in fig. 5 may be performed for the package installation service module a7 in the framework layer of the handset 100, and specifically, as shown in fig. 5, the method includes:
step 501: whether the user selects the operation of installing the social installation package of the power-saving version or selects the operation of installing the social installation package of the conventional version is detected. If the user selects the operation of installing the social installation package of the power-saving version is detected, the step S502 is switched to; if it is detected whether the user selects the operation of installing the social installation package of the regular version, the step S505 is proceeded to.
For example, as shown in fig. 2B, the mobile phone 100 displays various applications that can be installed, such as the "social" application 8, on the operating interface of the App mall App.
The handset 100 also displays an "install power saving version" control 81 and an "install regular version" control 82 for selection by the user. Assuming that the user selects to install the social application with power saving service function, for example, the user selects (e.g., clicks on) the "install power saving version" control 81 corresponding to the "social" application 8, the handset 100 starts downloading and installing the social application installation package with power saving function in response to this operation by the user, so that the handset 100 runs the normal mode service function of the social application in the normal mode and runs the power saving mode service function of the social application when the handset 100 switches to the power saving mode.
If the user selects (e.g., clicks on) the "install conventional version" control 82, electronic device 100 downloads the conventional-mode social installation package and installs the conventional-mode social installation package.
Step 502: and downloading the social installation package in the power saving mode.
Step 503: and when the fact that the social installation package in the power saving mode is downloaded is detected, installing the social installation package in the power saving mode.
It is understood that, in some embodiments, the mobile phone 100 may directly start to install the social installation package after detecting that the social installation package is downloaded without the user's perception.
Further, it is understood that in other embodiments, the cell phone 100 may initiate installation of the social installation package with the user's perception. For example, after the mobile phone 100 detects that the social installation package is completely downloaded, the mobile phone 100 displays, to the user, a prompt that the social installation package is completely downloaded, and an "install" button and a "cancel" button for the user to select, and after the user selects the "install" button, the mobile phone 10 starts to install the social installation package.
It is understood that since the installation package (Install pack), i.e. the software installation package, is a collection of files that can be decompressed by itself, including all files of the software installation. Therefore, the package installation service module a7 in the framework layer of the main processor 101 of the mobile phone 100 extracts the power saving mode social installation package from the social installation package, decompresses the power saving mode social installation package and sends the decompressed package to the package installation service module b7 in the coprocessor 102, and the package installation service module b7 instructs the coprocessor 102 to install the power saving mode social installation package.
Step 504: the regular pattern social installation package is downloaded.
For example, as shown in FIG. 2B, cell phone 100 displays various applications that may be installed, such as "social" application 8. The handset 100 also displays installation versions of various applications for selection by the user, such as an "install power saving version" control 81 and an "install regular version" control 82 in regular mode for selection by the user. Assuming that the user selects to install the social application with regular mode business functionality, e.g., the user clicks the "install" control 82 of regular mode corresponding to the "social" application 8, the handset 100, in response to this operation by the user, starts downloading and installing the social installation package with regular mode business functionality by the handset 100.
Step 505: and when the fact that the conventional mode social installation package is downloaded is detected, installing the conventional mode social installation package.
It will be appreciated that after installing the regular mode social installation package, the cell phone 100 can run all business functions of the social application in regular mode (regular mode business functions).
Example two
The second embodiment is different from the first embodiment in that, in the second embodiment, the mobile phone 100 may install the social installation package with the power saving service function under the condition that the user does not perceive, at this time, after detecting whether the social installation package has the power saving mode social installation package, the mobile phone 100 needs to perform corresponding installation operation after detecting that the social installation package has the power saving mode social installation package. For example, when it is determined that the power saving mode social installation package exists, the mobile phone 100 extracts the power saving mode social installation package from the social installation package, and installs the power saving mode social installation package (see steps 601 to 603 for details). The embodiments of the present application will be further described with reference to the accompanying drawings.
FIG. 6 illustrates a flow diagram of a method for power management, according to some embodiments of the present application. The steps in fig. 6 may be performed for the package installation service module a7 in the framework layer of the handset 100, and specifically, as shown in fig. 6, the method includes:
step 601: and detecting that the user selects the operation of downloading the social installation package, and downloading the social installation package.
For example, fig. 7 is a schematic diagram illustrating an application scenario of the power consumption management method according to an embodiment of the present application, and as shown in fig. 7, in this scenario, a mobile phone 100 displays an operation interface of an application mall App to display various social applications that can be installed, for example, a "social application 8. Handset 100 also displays an "install" control 83 for user selection. Assuming that the user selects to install the social application, e.g., the user selects (e.g., clicks on) the "install" control 83 corresponding to the "social application 8, the handset 100, in response to this operation by the user, starts downloading and installing this social application by the handset 100.
Step 602: and starting and installing the social installation package after detecting that the downloading of the social installation package is finished.
Step 603: judging whether the social installation package has a power-saving mode social installation package, if so, turning to step 604; if not, go to step 605.
It will be appreciated that in some embodiments, the handset 100 determines whether the social installation package exists by checking whether the power save mode field exists. For example, an installation package service function declaration file may be set in the installation package, and the mobile phone 100 may determine whether the social installation package has a power saving mode social installation package by checking whether the installation package service function declaration file has a power saving mode field.
The mobile phone 100 may determine whether a power saving mode installation package exists in the downloaded installation package through the package installation service, specifically, after the social installation package is downloaded, the main processor 101 parses the installation package service declaration file by running the package installation service (for example, the package installation service module a7 in fig. 4), determines whether a field < spm-app > including the power saving mode installation package is configured in the installation package service declaration file, if the field exists and is set to true, it is considered that the installation package supports the power saving mode installation package, then determines whether the system supports the power saving mode, and if the system supports the power saving mode, then performs the next installation of the installation package program (for example, step 604).
For example, when a developer develops an application, it is declared whether a social installation package with a power saving mode is provided in an installation package service function declaration file (installation package configuration file) of a social APP, and when the mobile phone 100 determines that the installation package service function declaration file includes the content of the social installation package with the power saving mode, it indicates that the social installation package includes the social installation package with the power saving mode; otherwise, such social installation package is not included.
Step 604: and extracting the power-saving mode social installation package from the social installation package, and installing the power-saving mode social installation package.
Step 604 is based on the same inventive concept as step 503 in the first embodiment, and is not described herein again.
Step 605: install the social installation package in regular mode.
This step 604 is the same as the technical means for installing the conventional pattern social application based on the conventional pattern social installation package in the step 505 in the first embodiment, and is not described herein again.
EXAMPLE III
The third embodiment is different from the second embodiment in that, in the third embodiment, since the installation environment of the social installation package may not be compatible with the running environment of the mobile phone 100, there is a problem that the installed social application cannot be installed or cannot be used even if the social installation package is installed, and therefore, in order to solve the problem, when the mobile phone 100 determines that the power saving mode social installation package exists in the social installation package, it needs to determine whether the power saving mode social installation package meets the installation condition (see step 804 for details). And if the installation condition is met, installing the power saving mode social installation package, and if the installation condition is not met, not installing the power saving mode social installation package. The following detailed description is to be read with reference to the drawings and the examples.
FIG. 8 illustrates a flow diagram of a method for power management, according to some embodiments of the present application. The steps in fig. 8 may be performed for the package installation service module a7 in the framework layer of the handset 100, and specifically, as shown in fig. 8, the method includes:
step 801: and detecting that the user selects the operation of downloading the social installation package, and downloading the social installation package.
Step 802: and starting and installing the social installation package after detecting that the downloading of the social installation package is finished.
Step 803: judging whether the social installation package has a power-saving mode social installation package, if so, turning to step 804; if not, go to step 807.
Steps 801 to 803 are based on the same inventive concept as steps 601 to 603 in the second embodiment, and are not described herein again.
Step 804: and judging whether the power-saving mode social installation package meets the installation conditions or not, if not, turning to 805, namely not performing installation operation on the power-saving mode social installation package, and also performing installation operation on the conventional mode social installation package. If yes, go to step S806.
It is understood that the social installation package in power saving mode meets the installation condition can be determined by the same system capability supported by the mobile phone 100 in power saving mode as the system capability relied on by the social application in power saving mode.
It is understood that the Operating System (OS)) is a System run by the mobile phone 100, and generally there is a System capability declaration of the mobile phone 100, where the System capability declaration is used to describe System capabilities supported by the mobile phone 100 in different modes (power saving mode, normal mode) that the mobile phone 100 has, and one service function of the social application is implemented by System capabilities that one or more social applications depend on, for example, an incoming call message alert service function of the social application is implemented by a display phone icon control supported by the mobile phone 100 and support of playing incoming call alert audio.
It can be understood that, if the mobile phone 100 determines that the social application program in the social installation package has a requirement for the system capability of the mobile phone 100 in the power saving mode, after the social installation package is downloaded, the mobile phone 100 may start the system capability (system attribute) supported by the mobile phone 100 in the power saving mode to be compared with the system capability of the social application program in the power saving mode, so as to determine whether the system of the mobile phone 100 supports the installation of the social installation package in the power saving mode.
In addition, it can be appreciated that there may or may not be a requirement for the system capabilities relied upon within the social installation package. If there is no requirement for the system capability relied upon in the social installation package or it is determined after comparison that the capability declaration requirement can be satisfied, proceed to install the installation package program next step (for example, step 806).
For example, when a developer develops an application, a system attribute (system function declaration) is defined according to whether the mobile phone 100 has the coprocessor 102 and supports the power saving mode, and if the mobile phone 100 has the coprocessor 102 and supports the power saving mode, a system capability (system attribute) is declared: and < spm-support > otherwise false.
It is understood that "spm-support" indicates that the machine 100 is equipped with the coprocessor 102 and supports a power-save mode. If the system capability of the mobile phone 100 to obtain the social installation package in power saving mode is that the mobile phone 100 has the coprocessor 102 and supports the power saving mode, and the mobile phone 100 has the system capability, it is determined that the mobile phone 100 has the environment in which the social installation package in power saving mode runs.
For another example, when the mobile phone 100 determines that the social installation package downloaded by the user has the power saving mode installation package, the mobile phone 100 may obtain the system capability that the power saving mode social installation package depends on according to the field < uses-availability xxx: name ═ xxx.
In some embodiments, when a developer develops an application, if a power saving mode application is supported, system capabilities that need to run in the power saving mode are explicitly developed and declared according to business function features of the power saving mode social application, as shown below (or some special hardware capability definitions are also possible). If the APP developed by the developer has no special appeal to the system capability, the capability may not be declared. Statement method < uses-ability xxx: name ═ xxx
Examples of the business function declaration in the social installation package refer to table 1:
TABLE 1
Figure BDA0002941025400000121
For example, in table 1, a name ═ xxx.ability.ability.network "/> indicates network access capability, and the column Y in the normal mode indicates that the mobile phone 100 supports the network access capability when running the social application program in the normal mode; the column N in the power saving mode indicates that the mobile phone 100 does not support the network access capability when running the social application in the power saving mode; if the mobile phone 100 obtains the system capability that the power saving mode social installation package depends on according to the < uses-availability xxx, name ═ xxx.
The parameters in table 1 are only exemplary, and it is understood that the parameters may be any parameters suitable for the technical solution of the present application, and are not limited herein.
The determination process in this step may be implemented by a package installation service, specifically, when the package installation service (for example, the package installation service module a7 in fig. 4) determines that the social installation package downloaded by the user has the power saving mode installation package, the package installation service (for example, the package installation service module a7 in fig. 4) obtains, according to a field of < uses-availability xxx: name: "xxx.availability.xxx"/> the system capability that the power saving mode social installation package depends on, and then the package installation service (for example, the package installation service module a7 in fig. 4) compares, according to the system capability that the mobile phone 100 has, with the service function (for example, a service set composed of multiple services) that the social installation package of the mobile phone 100 has, so as to determine whether the mobile phone 100 has an environment in which the power saving mode social installation package operates.
It is to be appreciated that in some embodiments, there is a declaration of system capabilities that the social APP relies on in the installation package business function declaration file (installation package configuration file) in the power saving mode.
Step 806: and extracting the power-saving mode social installation package from the social installation package, and installing the power-saving mode social installation package.
Step 807: install the social installation package in regular mode.
The step 807 is the same as the step 605 in the second embodiment, and is not repeated herein.
After the installation of the social application is completed, the operation phase of the social application is further described below with reference to the drawings.
Running power-saving mode social applications
FIG. 9 illustrates a flow diagram of a method for power management, according to some embodiments of the present application. Specifically, as shown in fig. 9, the method includes:
s901: the cooperative service module a8 of the mobile phone 100 detects that the user selects the power saving mode, and synchronizes information of part of the service functions in the social application program running in the main processor to the cooperative service module b 8.
It is understood that the normal mode social application is used to run all the service functions of the social application in the normal mode (normal mode service functions), and the power saving mode social application is used to run part of the service functions of the social application in the power saving mode (power saving mode service functions), so as to reduce the power consumption of the mobile phone 100.
For example, referring to fig. 4, the collaboration service module a8 is configured to cooperate with the collaboration service module b8 when the mobile phone 100 turns on the power saving mode, coordinate part of the service function content of the regular mode service function in the social App in the mobile phone 100 to the collaboration service module b8, and the coprocessor continues to operate to turn off the main processor 101 with a larger workload and a larger power consumption, so that the electronic device 100 executes part of the service function in the social App by using the coprocessor 102 with a smaller workload and a lower power consumption.
For example, the handset 100 runs part of the business functions of the social application in a power saving mode. For example, the mobile phone 100 runs service functions such as message list, message alert, incoming call alert and the like in the power saving mode, and the mobile phone 100 does not run service functions such as no friend circle, address list, short video and the like in the power saving mode.
S902: the collaboration service module a8 of the mobile phone 100 determines whether the information of part of the business functions in the social application is completed synchronously, if yes, the process goes to step 503, otherwise, the detection is continued.
S503: the handset 100 shuts down the main processor and performs some of the business functions in the social application using the co-processor.
It can be understood that the selection of the specific normal mode and the power saving mode is realized based on the mode switching operation of the user, and different service functions are run in different modes, so as to switch the running mode of the mobile phone 100 from the normal mode to the power saving mode. When the user switches to the power saving mode, the main processor is turned off to save power, and the coprocessor runs the power saving mode, and in the power saving mode, as shown in fig. 4, only service functions such as a message list, message reminding, incoming call reminding and the like are supported.
Uninstalling social applications
The handset 100, upon detecting that the user uninstalls the APP in the normal mode, notifies the package management service (e.g., the package installation service module a7) to uninstall the corresponding social installation package in the power saving mode.
The handset 100 also notifies the package management service (e.g., the package installation service module b7) to uninstall the corresponding social installation package in the normal mode when detecting that the user uninstalls the APP in the power saving mode.
It should be understood that the above describes the technical solution of the present application by taking the electronic device 100 as a mobile phone as an example. The following describes the technical solution of the present application, taking the example that the electronic device 100 is a watch.
First, a schematic structural diagram of a watch 100 that can implement the technical solution of the present application is introduced. Specifically, fig. 10 shows a schematic structural diagram of a watch 100 implementing the technical solution of the present application according to some embodiments of the present application, as shown in fig. 10, the watch 100 includes a main processor 201, a coprocessor 202, a touch display 203, a communication module 204, a memory 205, a capacitive sensor 206, an Infrared spectrum detection unit (IR) 207, an ECG detection module 208, and the like.
The main processor 201 may include one or more processing units, such as: the host processor 201 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), a host processor, and the like. The different processing units may be separate devices or may be integrated into one or more processors.
The main processor 201 is responsible for running various applications of the terminal, including UI human-computer interaction interface, cloud server interaction, and the like. Therefore, the main processor 201 generally consumes a high power and has a high processing capability. The host processor 201 may be a Central Processing Unit (CPU), a DSP, or the like, and the embodiment of the present invention is not limited thereto.
The coprocessor 202 may continue to operate in a power-save mode to detect user operations. Coprocessor 190 is coupled to main processor 201. For example, the main processor 201 and the coprocessor 202 are connected via a wired communication connection (e.g., a serial bus or a parallel bus) or a wireless communication connection.
In this embodiment of the application, after the main processor 201 detects that the user selects the event of the power saving mode, the main processor 201 coordinates part of the service function content in the social App to the coprocessor 202, and then the main processor 201 with a large workload and a large power consumption is closed, so that the mobile phone 200 executes part of the service function in the social App by using the coprocessor 202 with a small workload and a low power consumption.
The coprocessor 120 may be a Microcontroller (MCU) or a Digital Signal Processor (DSP).
The touch screen 203 may be used as a touch panel to collect the touch operation of the user thereon and drive the responding connection device according to a preset program. For example, in some embodiments of the present application, if the user selects (e.g., clicks on) the "install power save version" control, the mobile phone 100 detects the user operation, downloads the normal mode social installation package and the power save mode social installation package, installs the normal mode social application program on the main processor 101 of the mobile phone 100 based on the normal mode social installation package, and installs the power save mode social application program on the coprocessor 102 of the mobile phone 100 based on the power save mode social installation package.
The communication module 204 may be used to enable the watch 100 to communicate with other electronic devices and connect to a network through other electronic devices, for example, in some embodiments of the present application, the mobile phone 100 may establish a connection with a social backend server through the communication module 109, and receive a message sent by the social backend server from another social account to the social account number in the mobile phone 100.
The memory 205 is used for storing software programs and data, and the main processor 201 or the coprocessor 202 executes various functional applications and data processing of the mobile phone 100 by operating the software programs and data stored in the memory 205.
The capacitance sensor 206 may be used to detect a capacitance between the human body and the watch 100, which may reflect whether the contact between the human body and the watch 100 is good.
And the infrared spectrum detection unit 207 is used for detecting the wearing state according to different reflection values of different substances.
An Electrocardiogram (ECG) detection module 208 for processing the detected electrical signals of the human body into an ECG waveform.
Next, taking an alarm clock application as an example, the installation and running process of the alarm clock App is described.
Fig. 11 is a schematic diagram illustrating a structure of a power saving management system of the wristwatch 100 according to an embodiment of the present application. As shown in fig. 11, the power saving management system of the wristwatch 100 includes an alarm clock module c1, a stopwatch module c2, a timer module c3, an online world time inquiry module c4, which are executed by the main processor 101 running programs in the normal mode, and an alarm clock module d1, a stopwatch module d2, and a timer module d3, which are executed by the coprocessor 102 running programs in the power saving mode.
The package installation service module c5 in the frame layer of the watch 100 is the same as the package installation service module a7 and the package installation service module d5 in the frame layer of the watch 100 as the package installation service module b7, and the description thereof is omitted.
In particular, the package installation service module c5 is used to install all the business function modules in the alarm clock App, such as the alarm clock module c1, the stopwatch module c2, the timer module c3, and the online world time inquiry module c4 in the application layer of the watch 100.
The package installation service module d5 is used to install part of the business function modules in the alarm clock App, for example, the alarm clock module d1, the stopwatch module d2 and the timer module d3 are installed in the application layer of the watch 100. The alarm clock module c1 is used to manage an alarm clock, for example, detect whether a user inputs an alarm clock set time, prompt the user in the form of vibration or sound at the user set time.
The stopwatch module c2 is used to manage the movement of the stopwatch, for example, by displaying the change in time in the form of a digital movement when the user is detected to turn on the stopwatch service function.
The timer module c3 is used to manage the timer, for example to display the change in time remaining in the form of a digital pulse in case it is detected that the user has started the timer service function.
The online world time inquiry module c4 is used for managing a world clock, for example, displaying a change in time in a world standard when a user is detected to inquire about a business function when the online world is turned on.
The cooperative service module c6 is the same as the above-mentioned cooperative service module a8 and the cooperative service module d6 as the above-mentioned cooperative service module b8, and details thereof are not repeated herein.
However, compared with the alarm clock module c1, the stopwatch module c2 and the timer module c3, the online world time query module c4 consumes too many service functions during operation, so in the technical solution of the present application, when the mobile phone 100 switches to the power saving mode, the history contents of the alarm clock module c1, the stopwatch module c2 and the timer module c3, which are operated by the main processor 101, are synchronized with the alarm clock module d1, the stopwatch module d2 and the timer module d3 in the coprocessor 102 to continue to operate, after synchronization is completed, the main processor is turned off, and the coprocessor 102 executes the service functions corresponding to the alarm clock module d1, the stopwatch module d2 and the timer module d 3.
Thus, when the alarm clock application runs in the power saving mode, the watch 100 will turn off the main processor with larger power, and run a part of service functions after cooperation in the alarm clock application by using the coprocessor with smaller power consumption, so that the user can use the alarm clock application in the power saving mode, the power consumption of the watch 100 can be reduced, and the user experience is improved.
The steps of the first embodiment, the second embodiment, the third embodiment and the fourth embodiment are also applicable to the watch 100.
Taking the electronic device 100 as the watch 100 and the application program as the alarm clock App as an example, based on the structure in fig. 11, the following briefly describes, with reference to the accompanying drawings, a stage of installing the alarm clock App installation package, a stage of running the power saving mode alarm clock App, and a stage of unloading the alarm clock App in the technical solution of the present application.
Stage of installing social application installation package
Example one
The watch 100 may install an alarm clock installation package with a power saving business function in the presence of the user's perception.
Specifically, the package installation service module c5 in the framework layer of the watch 100 detects whether the user has selected an operation to install a power-saving version of the social installation package or a regular version of the social installation package. And if the operation that the user selects to install the social installation package of the power-saving version is detected, downloading the alarm clock installation package of the power-saving mode. And starting and installing the alarm clock installation package in the power-saving mode when the fact that the alarm clock installation package is completely downloaded is detected.
That is, the package installation service module c5 transmits the power saving mode alarm clock installation package to the package installation service module d5, and the package installation service module d5 installs the alarm clock installation package indicating the power saving mode of the wristwatch 100.
If the package installation service module c5 in the framework layer of the watch 100 detects that the user selects an operation to install a regular version of the social installation package. The normal mode alarm clock installation package is downloaded. And when detecting that the clock installation package of the alarm clock in the conventional mode is completely downloaded, installing the clock installation package of the alarm clock in the conventional mode.
Example two
The second embodiment is different from the first embodiment in that, in the second embodiment, the watch 100 may install the alarm clock installation package having the power saving service function under the condition that the user does not sense the alarm clock installation package, at this time, the watch 100 needs to perform corresponding installation operation after detecting whether the alarm clock installation package has the power saving mode alarm clock installation package or not and after detecting that the alarm clock installation package has the power saving mode alarm clock installation package. For example, the watch 100 installs the power saving mode alarm clock installation package in a case where it is determined that there is the power saving mode alarm clock installation package.
Specifically, the package installation service module c5 in the frame layer of the watch 100 detects that the user selects an operation of downloading the alarm clock installation package, downloads the alarm clock installation package, and starts to install the alarm clock installation package after detecting that the alarm clock installation package is completely downloaded. Then judging whether the alarm clock installation package has a power-saving mode alarm clock installation package, if so, extracting the power-saving mode alarm clock installation package from the alarm clock installation package, and installing the power-saving mode alarm clock installation package; that is, the package installation service module c5 extracts the power saving mode alarm clock installation package from the alarm clock installation package, and sends the extracted power saving mode alarm clock installation package to the package installation service module d5, and the package installation service module d5 instructs the wristwatch 100 to install the power saving mode alarm clock installation package.
And if the alarm clock installation package is judged to have no power-saving mode alarm clock installation package, installing the alarm clock installation package in a conventional mode.
EXAMPLE III
The third embodiment is different from the second embodiment in that, in the third embodiment, because the installation environment of the alarm clock installation package may not be compatible with the running environment of the watch 100, there is a problem that the installed alarm clock application cannot be installed or cannot be used even if the alarm clock application is installed, and therefore, in order to solve the problem, the watch 100 needs to determine whether the power saving mode alarm clock installation package meets the installation condition or not under the condition that the power saving mode alarm clock installation package is determined to exist in the alarm clock installation package. And if the installation condition is met, installing the power-saving mode alarm clock installation package, and if the installation condition is not met, not installing the power-saving mode alarm clock installation package.
Specifically, the package installation service module c5 in the frame layer of the watch 100 detects that the user has selected an operation of downloading the alarm clock installation package, downloads the alarm clock installation package, and starts to install the alarm clock installation package after detecting that the alarm clock installation package is downloaded completely. And then judging whether the alarm clock installation package has a power-saving mode alarm clock installation package, and if the alarm clock installation package has the power-saving mode alarm clock installation package, judging whether the power-saving mode alarm clock installation package meets the installation condition. If the alarm clock installation package in the power-saving mode meets the installation condition, extracting the alarm clock installation package in the power-saving mode from the alarm clock installation package, and installing an alarm clock installation package in a conventional mode; and extracting the power saving mode alarm clock installation package from the alarm clock installation package, sending the extracted power saving mode alarm clock installation package to a package installation service module d5, and installing the power saving mode alarm clock installation package by a package installation service module d 5.
If the package installation service module c5 in the frame layer of the watch 100 determines that the alarm clock installation package does not have the power saving mode alarm clock installation package, then the conventional mode social installation package is installed.
If the package installation service module c5 in the frame layer of the watch 100 determines that the power saving mode alarm clock installation package does not conform to the installation condition, the installation operation is not performed on the power saving mode alarm clock installation package.
Running power saving mode alarm clock application
The cooperation service module c6 of the watch 100 detects that the user selects the power saving mode of operation, and synchronizes information of a part of the service functions in the alarm clock application in the main processor to the cooperation service module d 6.
The collaboration service module c6 of the watch 100 determines whether the information of the partial service functions in the alarm clock application is completed synchronously, if yes, the watch 100 turns off the main processor, and executes the partial service functions in the alarm clock application by using the coprocessor, and if not, the detection is continued.
Uninstalling alarm clock applications
The watch 100, upon detecting that the user uninstalls the APP in the normal mode, notifies a package management service (e.g., the package installation service module c5) to uninstall a corresponding alarm clock installation package in the power saving mode;
the watch 100 also notifies the package management service (e.g., the package installation service module d5) to uninstall the corresponding alarm clock installation package in the normal mode, in the event that the user's operation of uninstalling the APP in the power saving mode is detected.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as computer programs or program code executing on programmable systems comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the various business functions described herein and to generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. The program code can also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in this application are not limited in scope to any particular programming language. In any case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or via other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy diskettes, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), Random Access Memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared digital signals, etc.) using the internet in an electrical, optical, acoustical or other form of propagated signal. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some features of structures or methods may be shown in a particular arrangement and/or order. However, it is to be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different from that shown in the illustrative figures. In addition, the inclusion of a structural or methodological feature in a particular figure is not meant to imply that such feature is required in all embodiments, and in some embodiments may not be included or may be combined with other features.
It should be noted that, all units/modules mentioned in the embodiments of the apparatuses in this application are logic units/modules, and physically, one logic unit/module may be one physical unit/module, or may be a part of one physical unit/module, and may also be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logic units/modules itself is not the most important, and the combination of the service functions implemented by the logic units/modules is the key to solve the technical problem proposed in this application. Furthermore, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units/modules which are not so closely related to solve the technical problems presented in the present application, which does not indicate that no other units/modules exist in the above-mentioned device embodiments.
It is noted that, in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the use of the verb "comprise a" to define an element does not exclude the presence of another, same element in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (10)

1. The power utilization management method of the electronic equipment is characterized in that the electronic equipment comprises a first control module and a second control module;
the method comprises the following steps:
under the condition that the electronic equipment is in a first power utilization mode, the electronic equipment adopts the first control module to run a plurality of functions of preset applications on the electronic equipment;
when the electronic equipment is switched from a first electric mode to a second electric mode, the electronic equipment closes the first control module and adopts the second control module to run part of the multiple functions of the preset application;
wherein the operation power consumption of the first control module in the first electric mode is larger than the operation power consumption of the second control module in the second electric mode.
2. The method of claim 1, further comprising:
the electronic equipment acquires an installation package of the preset application, wherein the installation package comprises a first installation file set and a second installation file set;
the electronic equipment installs the first version of the preset application on the electronic equipment through the first installation file set of the installation package, and installs the second version of the preset application on the electronic equipment through the second installation file set of the installation package, wherein the first version comprises the plurality of functions of the preset application, and the second version comprises part of the plurality of functions of the preset application.
3. The method of claim 2, further comprising:
and under the condition that the electronic equipment determines that the user selects to install the first version and simultaneously installs the second version, the electronic equipment installs the first version of the preset application on the electronic equipment through the first installation file set of the installation package, and installs the second version of the preset application on the electronic equipment through the second installation file set of the installation package.
4. The method of claim 1, wherein the preset application comprises any one or more of a social application, an alarm clock application, a browser application, a shopping application, a video application, a news application, a phone application, a contacts application, and an information application.
5. The method according to claim 1, wherein the electronic device comprises any one of a mobile phone, a computer, a laptop, a tablet, a television, a watch, and a vehicle-mounted terminal.
6. The method of claim 1, wherein the first control module comprises a central processor; the second control module comprises any one of a microcontroller, a digital signal processor and a control circuit.
7. A machine-readable medium having stored thereon instructions which, when executed on a machine, cause the machine to perform the electricity management method of any of claims 1 to 6.
8. An electronic device, comprising:
a memory for storing instructions by a first control module and a second control module of the electronic device;
and the first control module and the second control module for executing the electricity management method according to any one of claims 1 to 6.
9. The electronic device according to claim 8, wherein when the electronic device is in a first power utilization mode, the electronic device is configured to run a plurality of functions of a preset application on the electronic device by using the first control module;
and under the condition that the electronic equipment is switched from a first electric mode to a second electric mode, the electronic equipment is used for closing the first control module and running part of the plurality of functions of the preset application by adopting the second control module.
10. The electronic device of claim 9, wherein the first control module comprises a central processor; the second control module comprises any one of a microcontroller, a digital signal processor and a control circuit.
CN202110179459.2A 2021-02-09 Electronic device, power consumption management method and medium thereof Active CN114911335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110179459.2A CN114911335B (en) 2021-02-09 Electronic device, power consumption management method and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110179459.2A CN114911335B (en) 2021-02-09 Electronic device, power consumption management method and medium thereof

Publications (2)

Publication Number Publication Date
CN114911335A true CN114911335A (en) 2022-08-16
CN114911335B CN114911335B (en) 2024-05-14

Family

ID=

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012195784A (en) * 2011-03-16 2012-10-11 Fujitsu Ltd Wireless communication device and power saving control method
US20160224091A1 (en) * 2015-02-02 2016-08-04 Lenovo (Beijing) Co., Ltd. Control method and control system
WO2016179953A1 (en) * 2015-05-14 2016-11-17 中兴通讯股份有限公司 Power saving method and apparatus for communication device
CN106604369A (en) * 2016-10-26 2017-04-26 惠州Tcl移动通信有限公司 Terminal device with dual-mode switching function
CN111813212A (en) * 2020-07-01 2020-10-23 深圳传音控股股份有限公司 Terminal power saving method, terminal and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012195784A (en) * 2011-03-16 2012-10-11 Fujitsu Ltd Wireless communication device and power saving control method
US20160224091A1 (en) * 2015-02-02 2016-08-04 Lenovo (Beijing) Co., Ltd. Control method and control system
WO2016179953A1 (en) * 2015-05-14 2016-11-17 中兴通讯股份有限公司 Power saving method and apparatus for communication device
CN106604369A (en) * 2016-10-26 2017-04-26 惠州Tcl移动通信有限公司 Terminal device with dual-mode switching function
CN111813212A (en) * 2020-07-01 2020-10-23 深圳传音控股股份有限公司 Terminal power saving method, terminal and readable storage medium

Similar Documents

Publication Publication Date Title
US10747353B2 (en) Electronic device and method of controlling the electronic device based on touch input
CN108614722B (en) Application program preloading method and device, storage medium and terminal
US10853979B2 (en) Electronic device and method for displaying screen thereof
CN109313519B (en) Electronic device comprising a force sensor
US10739994B2 (en) Method and electronic device for recognizing touch
US10860084B2 (en) Method and apparatus for reducing power consumption based on use pattern of user
CN111142711B (en) Firmware configuration method and device, storage medium and mobile terminal
CN108804153B (en) Application program preloading method and device, storage medium and terminal
CN112987986B (en) Method, device, storage medium and electronic equipment for realizing game application
EP3220261B1 (en) Multiple display device and method of operating the same
CN109901695B (en) Screen power-saving display method, mobile terminal and computer-readable storage medium
US10296184B2 (en) Webpage navigation method, mobile terminal using the same, and volatile storage medium recording the same
CN109416615B (en) Method for processing touch event and electronic device suitable for method
CN106897134B (en) Positioning function management method and device
CN111713176B (en) Data transmission method and terminal
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
WO2019085533A1 (en) Application processing method for terminal device and terminal device
CN106886351B (en) Display method and device of terminal time information and computer equipment
CN114911335B (en) Electronic device, power consumption management method and medium thereof
CN114911335A (en) Electronic device, and power management method and medium thereof
EP3663900B1 (en) Method for controlling screen and terminal
CN106933576B (en) Terminal unlocking method and device and computer equipment
US11455139B2 (en) Electronic device and method for independently controlling a plurality of displays
US20230229462A1 (en) Terminal Device, Gesture Operation Method Thereof, and Medium
CN111045738B (en) Electronic equipment control method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant