Control method, control device and control system of electronic equipment and storage medium

By obtaining power in the electronic device and controlling entering the target power consumption mode according to the set conditions, the problem of large power consumption of electronic devices in the sleep mode is solved, and power consumption is reduced and battery life is extended.

CN119847311APending Publication Date: 2025-04-18BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411400170.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

Electronic devices still consume a lot of power in sleep mode, affecting battery life.

Method used

By acquiring the power of the electronic device, the device is controlled to enter the target power consumption mode with a unit time power consumption less than the sleep mode according to the setting conditions.

Benefits of technology

Reduces power consumption of electronic devices in sleep mode and extends battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847311A_ABST
    Figure CN119847311A_ABST
Patent Text Reader

Abstract

The invention discloses a control method, a control device and a control system of electronic equipment and a storage medium. In response to an instruction for the electronic equipment to enter the sleep mode, the electronic equipment is controlled to enter the target power consumption mode with unit time power consumption smaller than that of the sleep mode based on the electric quantity of the electronic equipment. Therefore, the power consumption of the electronic equipment in the sleep mode can be reduced, and the battery life of the electronic equipment is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic control technology, and in particular to a control method, a control device, a control system and a storage medium for an electronic device. Background Art

[0002] When an electronic device enters sleep mode, it means putting the device into a low-power mode to reduce the energy consumption of the electronic device and extend the battery life of the electronic device. In sleep mode, some functions and peripherals of the electronic device are usually turned off or reduced to minimize power consumption, while maintaining some necessary functions to quickly wake up the electronic device when needed. However, when an electronic device enters sleep mode, the microcontroller unit will continue to consume power, thus affecting the power of the electronic device. If the electronic device is not used for a long time, the battery will be consumed to within the protection voltage, and it is easy to fail to charge, which will shorten the battery life of the electronic device. Summary of the invention

[0003] The purpose of the present application is to provide a control method, a control device, a control system and a storage medium for an electronic device, so as to solve the problem of high power consumption of the electronic device in sleep mode in the related art.

[0004] In order to achieve the above object, according to a first aspect of the present application, a control method of an electronic device is provided, comprising:

[0005] In response to an instruction to enter a sleep mode, obtaining a power level of the electronic device;

[0006] When the power level meets the set conditions, the electronic device is controlled to enter a target power consumption mode, wherein the power consumption per unit time of the electronic device in the target power consumption mode is less than the power consumption per unit time when the electronic device is in a sleep mode.

[0007] In an embodiment of the present application, when the power level meets the set condition, controlling the electronic device to enter the target power consumption mode includes:

[0008] If the power level meets the first setting condition, the electronic device is controlled to enter the sleep mode, and after the target sleep time, the electronic device is controlled to enter the target power consumption mode;

[0009] If the power level meets the second setting condition, controlling the electronic device to enter the target power consumption mode;

[0010] The first setting condition indicates that the power level can satisfy the sleep mode of the electronic device for the target sleep time, and the second setting condition indicates that the power level cannot satisfy the sleep mode of the electronic device for the target sleep time.

[0011] In an embodiment of the present application, if the power level meets the first setting condition, controlling the electronic device to enter the sleep mode, and controlling the electronic device to enter the target power consumption mode after the target sleep time, includes:

[0012] Determine a first set power according to the second set power and the set sleep time, and obtain a first set voltage, the first set power being greater than the second set power;

[0013] If the power of the electronic device is greater than or equal to the first set power, and the battery voltage of the electronic device is greater than the first set voltage, the set sleep time is determined as the target sleep time;

[0014] Control the electronic device to enter the target power consumption mode after the target sleep time.

[0015] In the embodiment of the present application, if the power level meets the second setting condition, controlling the electronic device to enter the target power consumption mode includes:

[0016] If the power of the electronic device is less than the second set power, the electronic device is controlled to enter a target power consumption mode.

[0017] In the embodiment of the present application, if the power level meets the second setting condition, controlling the electronic device to enter the target power consumption mode includes:

[0018] If the power level of the electronic device is greater than or equal to the first set power level, and the battery voltage is less than or equal to the first set voltage, the electronic device is controlled to enter a target power consumption mode.

[0019] In an embodiment of the present application, if the power level meets the first setting condition, controlling the electronic device to enter the sleep mode, and controlling the electronic device to enter the target power consumption mode after the target sleep time, includes:

[0020] If the power of the electronic device is less than the first set power and greater than or equal to the second set power, obtaining a second set voltage;

[0021] If the battery voltage is greater than the second set voltage, determining a target sleep time according to the second set power;

[0022] The electronic device is controlled to enter a target power consumption mode after a target sleep time.

[0023] In the embodiment of the present application, determining the target sleep time according to the second set power includes:

[0024] Get the daily power consumption of electronic devices in sleep mode;

[0025] The target sleep time is determined according to the power of the electronic device, the second set power and the daily power consumption.

[0026] In the embodiment of the present application, if the power level meets the second setting condition, controlling the electronic device to enter the target power consumption mode includes:

[0027] If the battery voltage is lower than the second set voltage, the electronic device is controlled to enter a target power consumption mode.

[0028] In an embodiment of the present application, after a target sleep time, controlling the electronic device to enter a target power consumption mode includes:

[0029] When the electronic device is in the sleep mode, if no wake-up instruction is received, it enters the target power consumption mode after the target sleep time.

[0030] According to a second aspect of the present application, a control device for an electronic device is provided, comprising:

[0031] An acquisition module, used for acquiring the power of the electronic device in response to an instruction to enter a sleep mode;

[0032] The control module is used to control the electronic device to enter a target power consumption mode when the power level meets a set condition, wherein the power consumption per unit time of the electronic device in the target power consumption mode is less than the power consumption per unit time when the electronic device is in a sleep mode.

[0033] According to a third aspect of the present application, a control system for an electronic device is provided, comprising:

[0034] a memory configured to store instructions; and

[0035] The processor is configured to call instructions from the memory and implement the above-mentioned control method of the electronic device when executing the instructions.

[0036] In the embodiment of the present application, the control system further includes:

[0037] A micro control unit, used for controlling the electronic device to enter a sleep mode;

[0038] A charging module, used to supply power to the micro control unit;

[0039] A timing module, used for timing the sleep mode of the electronic device;

[0040] The power acquisition module is used to acquire the power of the electronic device.

[0041] In the embodiment of the present application, the control system further includes:

[0042] The wake-up module is used to wake up the electronic device in sleep mode.

[0043] According to a fourth aspect of the present application, a machine-readable storage medium is provided, on which instructions are stored, and when the instructions are executed by a processor, the processor is configured to implement the control method of the electronic device described above.

[0044] In response to an instruction for an electronic device to enter a sleep mode, the present application controls the electronic device to enter a target power consumption mode with a power consumption per unit time lower than that of the sleep mode based on the power level of the electronic device. In this way, the power consumption of the electronic device in the sleep mode can be reduced, and the battery life of the electronic device can be improved.

[0045] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 A schematic diagram of a flow chart of a control method of an electronic device provided in one embodiment of the present application;

[0048] Figure 2 A flowchart of a control method of an electronic device provided in a specific embodiment of the present application;

[0049] Figure 3 A schematic diagram of the structure of a control device of an electronic device provided in an embodiment of the present application;

[0050] Figure 4 A structural block diagram of a control system of an electronic device provided in an embodiment of the present application;

[0051] Figure 5 A functional implementation structure diagram of a control system of an electronic device provided in a specific embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0053] In the description of the present application, it should be understood that the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. In the present application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in the present application is not necessarily interpreted as being more preferred or more advantageous than other embodiments. In order to enable any technician in the field to implement and use the present application, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can also be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.

[0054] Generally, electronic devices may include multiple power consumption modes, such as working mode, sleep mode, or shipping mode. Working mode refers to a state in which all functions of the electronic device are in normal operation. Since all functions of the electronic device are active in working mode, the electronic device consumes more power in working mode. Sleep mode is a mode in which an electronic device is in low power consumption. In sleep mode, the electronic device remains powered on, but most functions are turned off or in standby mode. Therefore, compared with working mode, electronic devices in sleep mode consume less power. Shipping mode is to turn off or limit the functions of some electronic devices, for example, turn off wireless connections (such as Wi-Fi, Bluetooth, or mobile data), reduce screen brightness, stop background applications, etc., to minimize the power consumption of electronic devices. Electronic devices in shipping mode consume less power than electronic devices in sleep mode.

[0055] In the related art, when it is necessary to put an electronic device into sleep mode, a command is sent to make the microcontroller unit (MCU) enter sleep mode to reduce power consumption. However, in this sleep mode, the MCU itself consumes a lot of power, which makes the standby time of the electronic device shorter. If the electronic device is not used for a long time, the battery will be consumed to within the protection voltage, and it is easy to be unable to charge, etc., which shortens the battery life of the electronic device.

[0056] Based on this, an embodiment of the present application provides a method for an electronic device to enter a sleep mode. When the electronic device enters the sleep mode for a long time, the electronic device can be controlled to enter a target power consumption mode with lower power consumption per unit time, thereby reducing the power consumption of the electronic device in the sleep mode and improving the battery life of the electronic device. Among them, the target power consumption mode refers to a mode in which the power consumption is less than the power consumption of the sleep mode, that is, the power consumption per unit time of the electronic device in the target power consumption mode is less than the power consumption per unit time of the electronic device in the sleep mode. In one example, the target power consumption mode can be a shipping mode. For example, a charging module that communicates with the MCU can be set to power the MCU. By controlling the on and off between the charging module and the MCU, the MCU is in different power consumption modes. When the electronic device needs to enter the target power consumption mode, the power supply of the charging module to the MCU can be cut off. At this time, the MCU will not generate power consumption, thereby realizing an ultra-long standby time of the electronic device.

[0057] The following is an explanation of a method for controlling an electronic device to enter a sleep mode according to an embodiment of the present application.

[0058] Figure 1 The following is a flow chart of a control method of an electronic device provided in one embodiment of the present application. Figure 1 As shown, the control method may include steps 101-102, which are described in detail below.

[0059] Step 101: In response to an instruction to enter a sleep mode, obtain the power level of the electronic device.

[0060] Step 102: When the power level meets the set condition, control the electronic device to enter a target power consumption mode, wherein the power consumption per unit time of the electronic device in the target power consumption mode is less than the power consumption per unit time when the electronic device is in a sleep mode.

[0061] In an embodiment of the present application, the electronic device may include, but is not limited to, a laptop computer, a tablet computer, a mobile communication device, a smart watch, an electronic cigarette, and other electronic devices including multiple power consumption modes. When the electronic device is required to enter sleep mode, the user can send a command to enter sleep mode to the electronic device. For example, the command can be sent through a button related to the command on the electronic device, or through a sliding operation on the touch screen related to the command, or the command can be sent in the form of voice input, etc. Among them, the method of sending the sleep mode command can be set in advance based on user needs.

[0062] In order to minimize the power consumption of an electronic device when it enters sleep mode, the embodiment of the present application can enter a target power consumption mode with lower power consumption after the electronic device enters sleep mode for a period of time. Due to differences in the power of electronic devices, if the power is too low, it may not be enough to support the entire time period of the pre-set sleep mode, or even fail to meet the conditions for entering sleep mode, and it is necessary to directly enter the target power consumption mode. Therefore, after receiving the sleep mode instruction, it is necessary to first obtain the power of the electronic device, and then control the way in which the electronic device enters the target power consumption mode based on the actual power situation.

[0063] The set conditions in the embodiments of the present application refer to the conditions for determining whether an electronic device enters a target power consumption mode. When the power level meets the set conditions, the electronic device can be controlled to enter the target power consumption mode. In one example, multiple set conditions can be set, one set condition can determine whether the electronic device directly enters the target power consumption mode, and another set condition can determine whether the electronic device enters the target power consumption mode after entering the sleep mode for a period of time. In this way, the way in which the electronic device enters the target power consumption mode can be controlled based on different set conditions, so that sleep control can be accurately implemented for electronic devices with different power levels, and the power consumption of the electronic device can be accurately reduced and the battery life of the electronic device can be improved.

[0064] In response to an instruction for an electronic device to enter a sleep mode, an embodiment of the present application controls the electronic device to enter a target power consumption mode with lower power consumption per unit time based on the power level of the electronic device, thereby reducing the power consumption of the electronic device in the sleep mode and improving the battery life of the electronic device.

[0065] In step 102 of the embodiment of the present application, the setting conditions may include a first setting condition and a second setting condition. Among them, the first setting condition represents that the power can satisfy the sleep mode of the electronic device for the target sleep time. In this way, if the power meets the first setting condition, it means that the current electronic device can enter the sleep mode first, and then, after the target sleep time, the electronic device is controlled to enter the target power consumption mode. Among them, the target sleep time refers to the time that the electronic device is in the sleep mode determined based on factors such as the power of the electronic device, the daily power consumption in the sleep mode, and the battery voltage. The second setting condition represents that the power cannot satisfy the sleep mode of the electronic device for the target sleep time. If the power meets the second setting condition, it means that the power of the electronic device is not enough to make the electronic device enter the sleep mode. Therefore, the electronic device can be controlled to directly enter the target power consumption mode to minimize the power consumption of the electronic device.

[0066] In the embodiment of the present application, a first set power and a second set power can be set, and a preliminary judgment can be made on the way in which the electronic device enters the target power consumption mode based on the comparison of the power of the electronic device with the first set power and the second set power. Among them, the second set power refers to the set power for determining whether the electronic device needs to directly enter the target power consumption mode. For example, the second set power can be the threshold power for the electronic device to enter the target power consumption mode, such as 5%. The second set power can be set based on the performance of the electronic device. The first set power refers to the minimum power that satisfies the set time for the electronic device to enter the sleep mode, which can be calculated based on the set sleep time, the second set power, and the daily power consumption of the electronic device in the sleep mode. Therefore, the first set power is greater than the second set power. Take the second set power as M, the daily power consumption of the electronic device in the sleep mode as P, and the set standby days as N as an example. Then the first set power can be the value calculated by M+N*P. For example, the second set power is 5%, the set sleep days are 7 days, and the daily power consumption is 0.4%, then the first set power is 7.8%.

[0067] In actual use, as the use time of the electronic device increases, the battery of the electronic device decays. Therefore, in order to more accurately determine the maximum sleep time of the electronic device. A first set voltage and a second set voltage can also be set. Among them, the first set voltage can be a set voltage for determining whether it is necessary to directly enter the target power consumption mode when the power of the electronic device is greater than or equal to the first set power. The second set voltage can be a set voltage for determining whether it is necessary to directly enter the target power consumption mode when the power of the electronic device is less than the first set power but greater than the second set power. The first set voltage and the second set voltage can also be set according to actual needs, for example, the first set voltage is set to 3.64V, the second set voltage is set to 3.6V, etc.

[0068] Figure 2 The following is a flow chart of a control method of an electronic device provided in a specific embodiment of the present application. Figure 2 As shown, in a specific embodiment, taking the first set power, the second set power, the first set voltage and the second set voltage as an example, the control method can meet steps 201-212, which are described in detail below.

[0069] Step 201: In response to an instruction to enter a sleep mode, obtain the power level of the electronic device.

[0070] In one example, the power level of the electronic device can be collected by a device that can obtain power, such as a power meter, so as to obtain the power level of the electronic device that needs to enter the sleep mode in real time.

[0071] Step 202: Determine a first set power level according to a second set power level and a set sleep time, wherein the first set power level is greater than the second set power level.

[0072] The first set power may be a value calculated by adding the second set power M+the set sleep time P*the daily power consumption N.

[0073] Step 203, determine whether the power of the electronic device is greater than or equal to the first set power. If the power of the electronic device is greater than or equal to the first set power, proceed to step 204 to determine the battery voltage of the electronic device. If the power of the electronic device is less than the first set power, proceed to step 206 to determine the power and the second set power.

[0074] Step 204: Determine whether the battery voltage of the electronic device is greater than the first set voltage. If so, proceed to step 205. Otherwise, proceed to step 212.

[0075] Step 205 : Determine the set sleep time as the target sleep time, that is, the power of the electronic device can ensure that the electronic device maintains the sleep mode of the set sleep time. Then, proceed to step 209 .

[0076] Step 206: Determine whether the power of the electronic device is greater than or equal to the second set power. If the power is greater than or equal to the second set power, there is no need to directly enter the target power consumption mode, so proceed to step 207 to determine the battery voltage. If the power is less than the second set power, it means that the power of the electronic device cannot meet the electronic device entering the sleep mode, and it is necessary to directly enter the target power consumption mode, so proceed to step 212.

[0077] Step 207, determine whether the battery voltage of the electronic device is greater than the second set voltage. If so, it means that the battery of the electronic device can satisfy the electronic device to enter the sleep mode for a period of time. However, the battery voltage cannot satisfy the electronic device to maintain the sleep mode for the set sleep time, so it is necessary to enter step 208 to determine the target sleep time. And enter step 209. Otherwise, it means that the battery of the electronic device cannot satisfy the electronic device to enter the sleep mode, and it is necessary to directly enter the target power consumption mode, so it enters step 212.

[0078] Step 208, obtain the daily power consumption of the electronic device in sleep mode, and determine the target sleep time according to the power of the electronic device, the second set power and the daily power consumption. Then, proceed to step 209. Specifically, target sleep time = (power of the electronic device - second set power) / daily power consumption. In this way, it can be determined that when the power of the electronic device is greater than the second set power and the battery voltage is greater than the second set voltage, the maximum time that the sleep mode can be maintained. In this way, the sleep time of the electronic device can be accurately controlled to improve the battery life of the electronic device.

[0079] Step 209: Enter the target sleep time.

[0080] Step 210, determine whether a wake-up instruction is received. In an embodiment of the present application, a wake-up instruction refers to an instruction to wake up an electronic device. If the electronic device is not awakened in sleep mode, the power consumption of the electronic device matches the calculated power consumption, and step 211 is entered. However, if the electronic device is awakened in sleep mode, the power consumption of the electronic device will change, and it is necessary to respond to the instruction to enter sleep mode again to accurately control the time and method of the sleep mode of the electronic device, that is, return to step 201. In one example, the power control button of an external electronic device can be used. In this way, the electronic device can be awakened by operating the power control button without a charger.

[0081] Step 211: Control the electronic device to enter a target power consumption mode after the target sleep time.

[0082] Step 212: Control the electronic device to enter a target power consumption mode.

[0083] Among them, step 211 is the control method executed when the power of the electronic device meets the first set condition, and step 212 is the control method executed when the power of the electronic device meets the second set condition. In addition, in the embodiment of the present application, the time when the electronic device is in sleep mode can also be accurately controlled by an external real-time clock (RTC).

[0084] The embodiment of the present application determines the first set condition and the second set condition based on the first set power, the second set power, the first set voltage and the second set voltage. The first set condition is used to characterize the sleep mode in which the power can satisfy the target sleep time of the electronic device, and the second set condition is used to characterize the sleep mode in which the power cannot satisfy the target sleep time of the electronic device. If the power satisfies the first set condition, the electronic device is controlled to enter the sleep mode, and after the target sleep time, the electronic device is controlled to enter the target power consumption mode. If the power satisfies the second set condition, the electronic device is controlled to enter the target power consumption mode. In this way, when an instruction for the electronic device to enter the sleep mode is received, the electronic device can be controlled to enter the target power consumption mode with lower power consumption per unit time based on parameters such as the power of the electronic device and the battery voltage, thereby more accurately reducing the power consumption of the electronic device in the sleep mode and improving the battery life of the electronic device.

[0085] Figure 3 Schematic diagram of the structure of a control device 300 of an electronic device provided in an embodiment of the present application. Figure 3As shown, the control device 300 may include an acquisition module 301 and a control module 302. The acquisition module 301 is used to obtain the power of the electronic device in response to an instruction to enter the sleep mode. The control module 302 is used to control the electronic device to enter the target power consumption mode when the power meets the set conditions, wherein the power consumption per unit time of the electronic device in the target power consumption mode is less than the power consumption per unit time when the electronic device is in the sleep mode.

[0086] Among them, the acquisition module 301 and the control module 302 can be used to execute steps 101-102 in the embodiment corresponding to the control method of the above-mentioned electronic device respectively. For the specific implementation methods of these modules and more details, please refer to the corresponding method part, which will not be repeated here.

[0087] Figure 4 This is a structural block diagram of a control system of an electronic device provided in one embodiment of the present application. Figure 4 As shown, in one embodiment, the control system may include a memory 401 and a processor 402. The memory 401 is configured to store instructions. The processor is configured to call instructions from the memory and implement the above-mentioned control method of the electronic device when executing the instructions.

[0088] In the embodiment of the present application, multiple modules may be configured to communicate with the memory 401 and the processor 402. Figure 5 A specific example is used to illustrate. Figure 5 This is a functional implementation structure diagram of a control system of an electronic device provided in a specific embodiment of the present application. In this specific embodiment, in addition to the above-mentioned memory 401 and processor 402 ( Figure 5 (not shown) may also include a micro control unit 501 communicating with the memory 401 and the processor 402, a charging module 502, a timing module 503, a power acquisition module 504 and a wake-up module 505.

[0089] The microcontroller unit 501 can control the electronic device to enter the sleep mode based on the instruction of the processor 402. The microcontroller unit 501 is the MCU. The charging module 502 is connected to the microcontroller unit 501 to supply power to the microcontroller unit 501.

[0090] In one example, the charging module 502 may be a charging integrated circuit (IC) that can communicate with the MCU via I2C (Inter-Integrated Circuit). When it is necessary to enter the target power consumption mode, a command may be sent to the charging IC, and the charging IC disconnects the power supply to the MCU, thereby causing the electronic device to enter the target power consumption mode.

[0091] In the related art, the power consumption in sleep mode is mainly the power consumption of MCU, which is generally tens or hundreds of microamperes. However, the embodiment of the present application reduces the power consumption of MCU and reduces the power consumption of the entire electronic device to less than 10 microamperes, thereby achieving the purpose of ultra-long standby time.

[0092] The timing module 503 communicates with the microcontroller unit 501 to time the sleep mode of the electronic device. In one example, the timing module 503 may include an external RTC, so that the target sleep time can be customized and the electronic device can be controlled to enter the target power consumption mode after the target sleep time.

[0093] The power acquisition module 504 communicates with the microcontroller unit 501 to acquire the power of the electronic device. In one example, the power acquisition module 504 may include a power meter to accurately acquire the current power of the electronic device, so as to accurately determine the way in which the electronic device enters the target power consumption mode, and calculate the target sleep time when the power meets the first set condition.

[0094] The wake-up module 505 communicates with the microcontroller unit 501 and the charging module 502 to wake up the electronic device in the sleep mode. In one example, the wake-up module 505 may include a power control button. After entering the target power consumption mode, the electronic device can generally only be woken up by connecting a charger. However, by adding a power control button, the electronic device can be woken up even without a charger.

[0095] An embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to perform the control method of the electronic device described above.

[0096] Since the instructions stored in the electronic device and the machine-readable storage medium can execute the steps in the control method of any electronic device provided in the embodiments of the present application, the beneficial effects that can be achieved by the control method of any electronic device provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0097] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0098] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0099] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0101] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0102] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0103] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated communication signals and carrier waves.

[0104] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0105] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A control method for an electronic device, characterized in that: include: In response to an instruction to enter a sleep mode, obtaining a power level of the electronic device; When the power level meets a set condition, the electronic device is controlled to enter a target power consumption mode, wherein the power consumption per unit time of the electronic device in the target power consumption mode is less than the power consumption per unit time when the electronic device is in a sleep mode.

2. The control method according to claim 1, characterized in that: When the power level meets a set condition, controlling the electronic device to enter a target power consumption mode includes: If the power level meets the first setting condition, control the electronic device to enter the sleep mode, and after the target sleep time, control the electronic device to enter the target power consumption mode; If the power level meets a second setting condition, controlling the electronic device to enter the target power consumption mode; The first setting condition indicates that the power level can satisfy the sleep mode of the electronic device for the target sleep time, and the second setting condition indicates that the power level cannot satisfy the sleep mode of the electronic device for the target sleep time.

3. The control method according to claim 2, characterized in that: If the power level satisfies a first setting condition, controlling the electronic device to enter the sleep mode, and after a target sleep time, controlling the electronic device to enter the target power consumption mode, comprises: Determine a first set power according to the second set power and the set sleep time, and obtain a first set voltage, wherein the first set power is greater than the second set power; If the power of the electronic device is greater than or equal to the first set power, and the battery voltage of the electronic device is greater than the first set voltage, the set sleep time is determined as the target sleep time; The electronic device is controlled to enter the target power consumption mode after the target sleep time.

4. The control method according to claim 3, characterized in that: If the power level satisfies a second setting condition, controlling the electronic device to enter a target power consumption mode includes: If the power level of the electronic device is less than the second set power level, the electronic device is controlled to enter the target power consumption mode.

5. The control method according to claim 3, characterized in that: If the power level satisfies a second setting condition, controlling the electronic device to enter a target power consumption mode includes: If the power level of the electronic device is greater than or equal to the first set power level, and the battery voltage is less than or equal to the first set voltage, the electronic device is controlled to enter the target power consumption mode.

6. The control method according to claim 3, characterized in that: If the power level satisfies a first setting condition, controlling the electronic device to enter the sleep mode, and after a target sleep time, controlling the electronic device to enter the target power consumption mode, comprises: If the power of the electronic device is less than the first set power and greater than or equal to the second set power, obtaining a second set voltage; If the battery voltage is greater than the second set voltage, determining the target sleep time according to the second set power; The electronic device is controlled to enter the target power consumption mode after the target sleep time.

7. The control method according to claim 6, characterized in that: The determining the target sleep time according to the second set power includes: Obtaining daily power consumption of the electronic device in the sleep mode; The target sleep time is determined according to the power of the electronic device, the second set power and the daily power consumption.

8. The control method according to claim 6, characterized in that: If the power level satisfies a second setting condition, controlling the electronic device to enter the target power consumption mode includes: If the battery voltage is lower than the second set voltage, the electronic device is controlled to enter the target power consumption mode.

9. The control method according to claim 2, characterized in that: After the target sleep time, controlling the electronic device to enter the target power consumption mode includes: When the electronic device is in the sleep mode, if no wake-up instruction is received, the target power consumption mode is entered after the target sleep time.

10. A control device for an electronic device, characterized in that: include: An acquisition module, used for acquiring the power of the electronic device in response to an instruction to enter a sleep mode; The control module is used to control the electronic device to enter a target power consumption mode when the power level meets a set condition, wherein the power consumption per unit time of the electronic device in the target power consumption mode is less than the power consumption per unit time when the electronic device is in a sleep mode.

11. A control system for an electronic device, characterized in that: include: a memory configured to store instructions; as well as A processor is configured to call the instruction from the memory and implement the control method of the electronic device according to any one of claims 1 to 9 when executing the instruction.

12. The control system according to claim 11, characterized in that: Also includes: A micro control unit, used for controlling the electronic device to enter a sleep mode; A charging module, used to supply power to the micro control unit; A timing module, used for timing the sleep mode of the electronic device; The power acquisition module is used to acquire the power of the electronic device.

13. The control system according to claim 12, characterized in that: Also includes: The wake-up module is used to wake up the electronic device in the sleep mode.

14. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions, which, when executed by a processor, enable the processor to be configured to execute the control method of the electronic device according to any one of claims 1 to 9.