Power supply control method and device and storage medium

Controlling the terminal power supply into the corresponding shutdown mode through memory identification, solving the problem of high power consumption of tablet computers in a long shutdown state, extending the battery life and being suitable for different usage scenarios, and solving the problem that the powerless meter chip terminal cannot enter the energy-saving mode .

CN119088197APending Publication Date: 2024-12-06BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310654063.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-05
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the prior art, tablet computers consume a lot of power when shut down for a long time, resulting in over-discharge of the battery. Users need to charge for a long time to use it normally for the next time. Terminals without a meter chip cannot enter the energy-saving transportation mode, which affects the factory. Shipping and user use.

Method used

The shutdown status of the terminal is determined through the memory identification, and the power supply is controlled to enter the corresponding power shutdown mode, including the first and second power shutdown modes, disconnect or continue to supply power to reduce power consumption, which is suitable for factory production and user usage scenarios.

Benefits of technology

Extend the battery life of the terminal, avoid over-discharge of the battery, ensure that the user can turn on the computer normally the next time he uses it, and expand the energy-saving mode to the terminal that does not carry the charge meter chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088197A_ABST
    Figure CN119088197A_ABST
Patent Text Reader

Abstract

The invention relates to a power supply control method and device and a storage medium. The power supply control method is applied to the terminal and comprises the steps that in response to the fact that the terminal is triggered to be powered off, a memory identifier in the terminal is determined, the memory identifier is used for identifying the power-off state of the terminal, and the power-off state comprises the power-off state that the terminal is put into use or the power-off state that the terminal is not put into use; and controlling a power supply of the terminal to enter a power supply shutdown mode based on the shutdown state identified by the memory identifier. According to the invention, the power consumption of the system in the shutdown state can be reduced, and the endurance time can be prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of power management of portable devices such as terminals, and in particular to a power control method, device and storage medium. Background Art

[0002] At present, most of the chips for digital consumer products in the industry provide power saving mode (ShipMode), among which tablet computers (Tablet Personal Computer, Tablet PC) also widely support power saving mode. The size of tablet computers is between mobile phones and laptops. It is an integrated entertainment and office device with a wide range of application scenarios, which can meet users' entertainment, learning, light office and other scenarios. Users buy battery-powered portable products and hope to open it and use it immediately.

[0003] However, with the advent of the era of large-screen smartphones and the emergence of detachable laptops, the application scenarios of tablet computers have been limited, and users' usage habits have also changed. The tablet computers purchased by users are turned off for a long time due to the reduced frequency of use. Due to the high power consumption when turned off, when users use them after a few months, the tablet computers are already in an empty state and need to be charged for a long time before they can be used normally.

[0004] In the related art, the battery fuel gauge flash register is used as a counter to record the first shutdown state. When the factory shuts down the system for packaging and transportation, the system enters the energy-saving transportation mode to ensure long-distance transportation.

[0005] However, the current mode is only applied to the packaging and transportation scenarios of electronic equipment produced in factories, and terminals without power meter chips cannot enter the energy-saving transportation mode. Summary of the invention

[0006] In order to overcome the problems existing in the related art, the present disclosure provides a power control method, device and storage medium.

[0007] According to a first aspect of an embodiment of the present disclosure, there is provided a power control method, which is applied to a terminal, comprising, in response to the terminal being triggered to shut down, determining a memory identifier in the terminal, the memory identifier being used to identify a shutdown state of the terminal, the shutdown state including a shutdown state in which the terminal is put into use, or a shutdown state in which the terminal is not put into use; based on the shutdown state identified by the memory identifier, controlling the power of the terminal to enter a power shutdown mode.

[0008] In one embodiment, controlling the power supply of the terminal to enter a power shutdown mode based on the memory identifier includes: in response to the shutdown state identified by the memory identifier being a shutdown state that is not in use, controlling the power supply of the terminal to enter a first power shutdown mode; in the first power shutdown mode, the power supply stops supplying power to the terminal system.

[0009] In one embodiment, controlling the power of the terminal to enter a power shutdown mode based on the memory identifier includes: in response to the shutdown state identified by the memory identifier being a shutdown state that is put into use, determining whether the terminal starts a first type of application, the first type of application being an application that runs passively when the terminal is in a shutdown state; if the first type of application is started, controlling the power of the terminal to enter a second power shutdown mode, in which the power continues to supply power to the terminal system; if the first type of application is not started, determining the remaining power of the terminal, and based on the remaining power, controlling the power of the terminal to enter a power shutdown mode.

[0010] In one embodiment, controlling the power of the terminal to enter a power-off mode based on the remaining power includes: if the remaining power is less than or equal to a threshold, controlling the power of the terminal to enter a first power-off mode; or if the remaining power is greater than a threshold, based on whether the terminal currently starts a second type of application, controlling the power of the terminal to enter a power-off mode; the second type of application is an application that runs actively when the terminal is in a shutdown state.

[0011] In one embodiment, based on whether the terminal currently starts the second type of application, controlling the power of the terminal to enter the power shutdown mode includes: if the terminal currently starts the second type of application, controlling the power of the terminal to enter the second power shutdown mode; if the terminal does not currently start the second type of application, controlling the power of the terminal to enter the first power shutdown mode.

[0012] In one implementation, the method further includes: determining that the terminal has not triggered a restart.

[0013] According to a second aspect of an embodiment of the present disclosure, there is provided a power control device, which is applied to a terminal, and includes a determination module, for determining a memory identifier in the terminal in response to the terminal being triggered to shut down, the memory identifier being used to identify a shutdown state of the terminal, the shutdown state including a shutdown state in which the terminal is put into use, or a shutdown state in which the terminal is not put into use; and a processing module, for controlling the power supply of the terminal to enter a power shutdown mode based on the shutdown state identified by the memory identifier.

[0014] In one embodiment, the processing module controls the power supply of the terminal to enter a power shutdown mode based on the memory identifier in the following manner: in response to the shutdown state identified by the memory identifier being a shutdown state that is not in use, the power supply of the terminal is controlled to enter a first power shutdown mode; in the first power shutdown mode, the power supply stops supplying power to the terminal system.

[0015] In one embodiment, it includes: a determination module, which is used to determine whether the terminal starts a first type of application in response to the shutdown state identified by the memory identifier being a shutdown state that is put into use, the first type of application being an application that runs passively when the terminal is in the shutdown state; if the first type of application is started, the processing module is used to control the power supply of the terminal to enter a second power shutdown mode, in which the power supply continues to supply power to the terminal system; if the first type of application is not started, the processing module is used to determine the remaining power of the terminal, and based on the remaining power, control the power supply of the terminal to enter the power shutdown mode.

[0016] In one embodiment, the processing module controls the power of the terminal to enter a power-off mode based on the remaining power in the following manner: if the remaining power is less than or equal to a threshold, the power of the terminal is controlled to enter a first power-off mode; or if the remaining power is greater than a threshold, based on whether the terminal currently starts a second type of application, the power of the terminal is controlled to enter a power-off mode; the second type of application is an application that runs actively when the terminal is in a shutdown state.

[0017] In one embodiment, the processing module controls the power of the terminal to enter a power shutdown mode based on whether the terminal currently starts a second type of application: if the terminal currently starts a second type of application, the power of the terminal is controlled to enter a second power shutdown mode; if the terminal does not currently start a second type of application, the power of the terminal is controlled to enter a first power shutdown mode.

[0018] In one implementation, it includes: a determination module, configured to determine that the terminal has not triggered a restart.

[0019] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by responding to the terminal being triggered to shut down, determining the memory identifier in the terminal, the memory identifier is used to identify the shutdown state of the terminal, and through the power control method of the present disclosure, according to the shutdown state of the terminal, determining the application scenario of the terminal: two scenarios: ordinary user scenario, i.e., the scenario where the terminal is put into use by users, and factory production packaging and transportation scenario, i.e., the scenario where the terminal is not put into use by users; based on the shutdown state identified by the memory identifier, the power of the terminal is controlled to enter the corresponding power shutdown mode when it is shut down, thereby entering the corresponding energy-saving mode, reducing the shutdown power consumption, and ensuring that the terminal can be turned on normally the next time the user uses it, without affecting user use.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0022] Figure 1 It is a schematic diagram showing a scenario in which a terminal is shut down and enters an energy-saving transportation mode in a factory production and packaging transportation scenario according to an exemplary embodiment.

[0023] Figure 2 The figure is a flow chart of a power control method according to an exemplary embodiment.

[0024] Figure 3 It is a schematic diagram showing a scenario in which the power of a terminal is controlled to enter a power saving mode in a factory production and packaging transportation according to an exemplary embodiment.

[0025] Figure 4 The present invention is a flowchart showing a method of controlling the power of a terminal to enter a power off mode based on a memory identifier according to an exemplary embodiment.

[0026] Figure 5 It is a schematic diagram showing a first power off mode according to an exemplary embodiment.

[0027] Figure 6 It is a schematic diagram showing a terminal in a user usage scenario, according to an exemplary embodiment, controlling the power of the terminal to enter a power saving mode.

[0028] Figure 7 The present invention is a flowchart showing a method of controlling the power of a terminal to enter a power off mode based on a memory identifier according to an exemplary embodiment.

[0029] Figure 8 is a schematic diagram showing a second power shutdown mode according to an exemplary embodiment.

[0030] Fig. 9 The present invention is a flowchart showing a method of controlling the power supply of a terminal to enter a power off mode based on the remaining power according to an exemplary embodiment.

[0031] Fig.10 The present invention is a flowchart showing a method of controlling the power of a terminal to enter a power off mode based on whether the terminal currently starts a second type of application according to an exemplary embodiment.

[0032] Fig.11 The diagram is a schematic diagram showing a method of controlling the power of a terminal to enter a power shutdown mode according to an exemplary embodiment.

[0033] Fig.12 It is a schematic diagram showing that the power of a terminal is controlled to enter a first power shutdown mode in a shutdown state that is not put into use according to an exemplary embodiment.

[0034] Fig.13 The figure is a block diagram of a power control device according to an exemplary embodiment.

[0035] Fig.14 The invention is a block diagram of a device for power control according to an exemplary embodiment. DETAILED DESCRIPTION

[0036] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0037] The power control method provided in the embodiments of the present disclosure can be used in the field of power management of portable devices such as tablet computers / mobile phones, wherein the portable devices involved can be expanded to charging electronic devices, etc., and the present disclosure does not make specific limitations on this.

[0038] At present, most of the chips for digital consumer products in the industry provide power saving mode (ShipMode), among which tablet computers (Tablet Personal Computer, Tablet PC) also widely support power saving mode. The size of tablet computers is between mobile phones and laptops. It is an integrated entertainment and office device with a wide range of application scenarios, which can meet users' entertainment, learning, light office and other scenarios. Users buy battery-powered portable products and hope to open it and use it immediately.

[0039] However, with the advent of the era of large-screen smartphones and the emergence of detachable laptops, the application scenarios of tablet computers have been limited, and users' usage habits have also changed. The tablet computers purchased by users are turned off for a long time due to the reduced frequency of use. Due to the high power consumption when turned off, when users use them after a few months, the tablet computers are already in an empty state and need to be charged for a long time before they can be used normally.

[0040] Figure 1 FIG. 1 is a schematic diagram showing a scenario in which a terminal is shut down and enters an energy-saving transportation mode in a factory production and packaging transportation scenario according to an exemplary embodiment. Figure 1 As shown, in the related technology, the battery meter flash register can be used as a counter to record the first shutdown state. When the factory is shut down for packaging and transportation, the system enters the energy-saving transportation mode to ensure that the terminal reduces the system shutdown power consumption during packaging and transportation. Among them, BIOS is the abbreviation of "Basic Input Output System" in English, which can be understood as "Basic Input Output System". BIOS is the first software loaded when a personal computer starts up, and HLOS is the abbreviation of "High Level Operating System", which can be understood as a high-level operating system.

[0041] However, the current mode is only applied to the packaging and transportation scenarios of electronic equipment produced in factories, and terminals without power meter chips cannot enter the energy-saving transportation mode.

[0042] In view of this, the embodiment of the present disclosure provides a power control method, which is not only applicable to the scenario of shutting down for packaging and transportation in factory production, but also applicable to the scenario of user use. The power control method provided by the present disclosure can effectively prevent the battery from still supplying power to the system when the terminal is in a long-term shutdown state, thereby causing the battery to be in an empty state, and can also control the power supply of the terminal to enter the energy-saving mode, thereby reducing the power consumption of the system in the shutdown state, thereby extending the battery life.

[0043] Figure 2 is a flow chart of a power control method according to an exemplary embodiment. Figure 2 As shown, the method includes step S101 and step S102. Step S101 and step S102 will be described below respectively.

[0044] In step S101, in response to a terminal being triggered to shut down, a memory identifier in the terminal is determined.

[0045] In the embodiment of the present disclosure, the memory identifier is used to identify the shutdown state of the terminal, and the shutdown state includes the shutdown state of the terminal being put into use or the shutdown state of not being put into use. The terminal being put into use means that the terminal is put into the market and purchased and used by the user, and the terminal not being put into use means a terminal in the factory production stage.

[0046] In the embodiment of the present disclosure, the DDR memory can be used as a terminal counter to identify the shutdown state of the terminal. The present disclosure uses the DDR memory as a counter to record the shutdown state of the terminal, so that the terminal that is not put into use can enter the power saving mode in the shutdown state and be extended to the terminal that does not carry the power meter chip.

[0047] The two different shutdown states correspond to different memory identifiers.

[0048] In step S102, based on the shutdown state identified by the memory identifier, the power supply of the terminal is controlled to enter a power shutdown mode.

[0049] In the embodiment of the present disclosure, based on detecting the shutdown state identified by the DDR memory identifier, the power supply of the terminal is controlled to enter a power shutdown mode.

[0050] Furthermore, based on the shutdown state identified by the DDR memory, the application scenario of the terminal can be determined. The application scenario includes the scenario where the terminal is put into use and the scenario where the terminal is not put into use, which can be understood as the user use scenario and the factory production packaging and transportation scenario.

[0051] When the terminal is in a shutdown state and is not in use, the counter value of the DDR memory can be pre-set to an identification value, such as 1, to record the current shutdown state as a shutdown operation performed by the terminal in a scenario where the terminal is produced and packaged for transportation in a factory, and control the power supply of the terminal to enter a power saving mode, so as to extend the product sales and production cycle and ensure that the terminal has sufficient power to start up and use when it reaches the user.

[0052] When the terminal is in the shutdown state and is put into use, it is detected that the current value of the counter of the DDR memory is not equal to the identification value, that is, it is determined that the operation of the current terminal being triggered to shut down is a shutdown operation executed in the user usage scenario, and the power of the terminal is controlled to enter the power saving mode.

[0053] In another embodiment of the present disclosure, the power shutdown mode includes a first power shutdown mode and a second power shutdown mode. In the first power shutdown mode, the power supply path between the battery and the system is disconnected, so that the power supply of the terminal enters the energy-saving mode; in the second power shutdown mode, the battery continues to supply power to the system, does not affect the applications started before the terminal is shut down, and can still operate normally in the shutdown state. In the embodiment of the present disclosure, the first power shutdown mode can also be called the power saving mode, and this is not specifically limited in the following embodiments.

[0054] By determining different memory identifiers in the terminal, the power of the terminal is controlled to enter a power shutdown mode corresponding to the memory identifier.

[0055] Through the above embodiments of the present disclosure, it can not only be applied to factory production and shipment packaging scenarios, so that the terminal can extend the terminal's factory transportation and storage cycle, but the power saving mode can also be extended to terminals that do not carry a power meter chip. In addition, it can also be applied to user usage scenarios to ensure that the user can start the device normally the next time they use it, and even if the terminal is turned off due to empty power, it can be quickly turned on after plugging in a charger.

[0056] The following embodiments mainly describe in detail how to control the power of the terminal to enter a power shutdown mode corresponding to the memory identifier according to the memory identifier when the shutdown state is not in use.

[0057] Figure 3 FIG. 1 is a schematic diagram showing a control terminal power supply entering a power saving mode in a scenario of factory production and packaging transportation according to an exemplary embodiment. Figure 3 As shown in the figure, the same power saving mode can also be applied to scenarios where the terminal is not in use, that is, in factory production and packaging and transportation scenarios. Download the latest system image through the factory PDL factory, complete the basic verification at the CQR factory, and enter the power saving mode after the terminal is shut down, which helps to extend the terminal's factory transportation and storage cycle, reduce the power consumption of the system in the shutdown state, and avoid the problem of users being unable to start the device after unpacking due to over-discharge of the battery.

[0058] Among them, the CQR work station scans the code for various detailed inspections of the terminal before leaving the factory. After scanning the code, various information and parameters of the terminal are checked. After the inspection, the terminal is packaged and waits for transportation.

[0059] Figure 4 is a flowchart showing a method of controlling the power of a terminal to enter a power off mode based on a memory identifier according to an exemplary embodiment. Figure 4 As shown, the method includes step S201 and step S202. Step S201 and step S202 will be described below respectively.

[0060] In step S201, based on the memory identifier, the power of the terminal is controlled to enter a power off mode.

[0061] In step S202, in response to the shutdown state identified by the memory identifier being a shutdown state that is not put into use, the power supply of the terminal is controlled to enter a first power shutdown mode.

[0062] In the embodiment of the present disclosure, in the first power shutdown mode, the power supply stops supplying power to the terminal system. In the first power shutdown mode, the terminal power supply is in energy-saving mode, which can reduce shutdown power consumption and ensure that the user can start the device normally the next time the user uses it, without affecting the user's use.

[0063] In response to the shutdown state identified by the memory identifier being a shutdown state that is not in use, in order to ensure that the terminal reaches the user after a long period of transportation and storage in the scenario of factory production, packaging and transportation, the power of the terminal is controlled to enter the first power shutdown mode.

[0064] Furthermore, Figure 5 FIG. 1 is a schematic diagram showing a first power off mode according to an exemplary embodiment. Figure 5 As shown, when the power supply of the terminal enters the first power shutdown mode, the power supply (VPH_PWR) path between the battery and the system is disconnected to avoid leakage current and low power of the platform power management chip (PowerManagementIC) and peripheral devices on the power supply path, causing the system to still consume power in the shutdown state and causing the terminal to be unable to start up when it is turned on again due to empty power.

[0065] Furthermore, when the terminal is in the factory production stage, the value of the DDR memory counter can be set to the shutdown state when the terminal is not in use through basic verification operations, so that the terminal can enter the power saving mode in the factory production packaging and transportation scenario.

[0066] In the related technology, the power saving mode is currently only applied to the scene of factory production of electronic equipment packaging and shipment, and the implementation method in the related technology is only for terminals with fuel meter chips. The fuel meter chip identifies the shutdown state of the terminal during factory production and packaging and transportation. Therefore, for electronic devices without fuel meter chips, it is impossible to identify the shutdown state, let alone enter the power saving mode. In addition, if the fuel meter chip device fails, it will also cause problems such as the terminal being unable to shut down or shutting down slowly. During the shutdown process, the fuel meter chip and SoC (system-on-chip) need to communicate to read the shutdown state value. However, if the fuel meter chip fails at this time, it will affect the communication process, which will lead to the inability to shut down or slow shutdown.

[0067] The disclosed embodiment uses DDR memory as a counter to replace the fuel meter chip, which has two main functions: on the one hand, for factory production packaging and transportation scenarios, DDR memory is used to record the shutdown state that is not in use, and the power saving mode in the factory production packaging and transportation scenario is extended to the terminal that does not carry the fuel meter chip; on the other hand, it avoids the problem of being unable to shut down or slow shutdown due to a malfunction of the fuel meter chip when the fuel meter chip is used as a counter.

[0068] Through the embodiments of the present disclosure, it can also be ensured that when the product is transported over long distances or has a long sales and production cycle, it will have enough power to start up and use when it reaches the user, thus solving the problem of unpacking damage caused by over-discharge of the battery when it reaches the user.

[0069] The following embodiments mainly describe in detail how to control the power of the terminal to enter a power shutdown mode corresponding to the memory identifier according to the memory identifier when the shutdown state is put into use.

[0070] in, Figure 6 FIG. 1 is a schematic diagram showing a terminal in a user usage scenario, and controlling the power of the terminal to enter a power saving mode according to an exemplary embodiment. Figure 6 As shown, this power saving method is mainly used in the scenario where the terminal is put into use. When the terminal is triggered to shut down, if the user does not use it for a long time, the battery will be over-discharged due to the excessive shutdown power consumption. By entering the power saving mode when shutting down, the shutdown power consumption is reduced to ensure that the user can start up normally the next time he uses it, without affecting the user's use.

[0071] Figure 7 is a flowchart showing a method of controlling the power of a terminal to enter a power off mode based on a memory identifier according to an exemplary embodiment. Figure 7 As shown, the method includes step S301, step S302a and step S302b. Step S301, step S302a and step S302b will be introduced below respectively.

[0072] In step S301, in response to the shutdown state identified by the memory identifier being the shutdown state being put into use, it is determined whether the terminal starts a first type of application.

[0073] In the embodiments of the present disclosure, the first type of application is an application based on passive operation when the terminal is turned off. Applications based on passive operation can be understood as applications or devices that can be operated without power supply, and the first type of application is an application that can be operated without power supply when the terminal is turned off. Such as NFC chips and applications using NFC technology.

[0074] Furthermore, since the NFC chip is a passive device, passive NFC can only send data, which contains information that can be read by other devices, but it does not read any information itself. Passive NFC can operate without power, so passive NFC can be embedded in various devices that need to communicate with other devices.

[0075] In response to the shutdown state identified by the memory identifier being the shutdown state being put into use, that is, the terminal is in a user usage scenario, a real-time decision is made based on the user usage scenario whether to control the power of the terminal to enter a power saving mode after the terminal enters the shutdown state.

[0076] Furthermore, when the terminal enters the user usage scenario, the user will start some applications according to his or her own needs. In order to ensure that the normal working state of some applications that can still run after the terminal is shut down is not affected, the present invention controls the power of the terminal to enter the power shutdown mode according to the specific started application, remaining power and other conditions when the shutdown state is put into use.

[0077] In step S302a, if the first type of application is started, the power of the terminal is controlled to enter the second power off mode.

[0078] In the embodiment of the present disclosure, in the second power shutdown mode, the power supply continues to supply power to the terminal system. Figure 8 FIG. 1 is a schematic diagram showing a second power off mode according to an exemplary embodiment. Figure 8 As shown, when the power of the terminal enters the second power shutdown mode, the battery supplies power to the system through the platform charging chip. After entering this shutdown mode, the battery continues to supply power to the system (VPH_PWR), and even in the shutdown state, it does not affect the normal operation of various applications.

[0079] Furthermore, when the shutdown state is the shutdown state in which the device is put into use, and it is detected that the terminal has started the first category of applications and the first category of applications are in working state, since the application can realize passive operation, even if the battery of the terminal does not provide power for the first category of applications, the first category of applications can still work normally, and the terminal will also be awakened normally. Therefore, the terminal in this shutdown state cannot enter the first power shutdown mode, and the power of the terminal is controlled to enter the second power shutdown mode.

[0080] Passive NFC devices include NFC tags and other small transmitters that can send information to other NFC devices without the need for power and work through inductive power.

[0081] In step S302b, if the first type of application is not started, the remaining power of the terminal is determined, and based on the remaining power, the power of the terminal is controlled to enter a power off mode.

[0082] If the first category of applications is not started in the terminal, it is necessary to determine the remaining power of the terminal and control the terminal to enter a power-off mode according to the remaining power.

[0083] In another embodiment of the present disclosure, if it is detected that the first type of application is not launched in the terminal, such as the application using NFC technology is not launched, the remaining power of the terminal is further determined, and based on the remaining power of the terminal, the terminal is controlled to reduce the power consumption of the system in the shutdown state without affecting the normal operation of the second type of application.

[0084] Fig. 9 is a flowchart showing a method of controlling the power of a terminal to enter a power off mode based on the remaining power according to an exemplary embodiment. Fig. 9 As shown, the method includes step S401, step S402a and step S402b. Step S401, step S402a and step S402b will be described below respectively.

[0085] In step S401, based on the remaining power, the power of the terminal is controlled to enter a power off mode.

[0086] In step S402a, if the remaining power is less than or equal to the threshold, the power of the terminal is controlled to enter the first power off mode.

[0087] In the disclosed embodiment, when the terminal is powered off, if the remaining power of the terminal is less than or equal to a threshold value, i.e., the remaining power is small, the power supply of the terminal is controlled to enter a state where the power supply stops supplying power to the terminal system. The threshold value can be set to a relatively small power, such as 2%. When the terminal does not start the first category of applications and the remaining power of the terminal is less than or equal to 2%, the power supply of the terminal is controlled to enter a power saving mode to reduce the power consumption of the system in the powered off state, thereby extending the battery life.

[0088] In step S402b, if the remaining power is greater than the threshold, based on whether the second type of application is currently started on the terminal, the power of the terminal is controlled to enter the power off mode.

[0089] In the embodiment of the present disclosure, the second type of application is an application that runs based on active power when the terminal is in a shutdown state. An application that runs based on active power refers to an application that requires power to run. The second type of application is an application that is started by power supply when the terminal is in a shutdown state, such as an alarm clock, a clock, etc.

[0090] In the disclosed embodiment, when the remaining power of the terminal is greater than a threshold value, it is determined whether the second type of application is currently started on the terminal, and then the power of the terminal is controlled to enter the corresponding power shutdown mode according to the actual situation, so as to achieve that when the remaining power is relatively large, it will not affect the operation of the second type of application in the shutdown state.

[0091] The following embodiments will explain in detail how to control the power of the terminal to enter the corresponding power off mode based on determining whether the terminal currently starts the second type of application.

[0092] Fig.10 is a flowchart showing a method of controlling the power of a terminal to enter a power off mode based on whether the terminal currently starts a second type of application according to an exemplary embodiment. Fig.10 As shown, the method includes step S501, step S502a and step S502b. Step S501, step S502a and step S502b will be described below respectively.

[0093] In step S501, based on whether the terminal currently starts the second type of application, the power of the terminal is controlled to enter a power off mode.

[0094] The second type of application is an alarm clock, a clock, etc. If the terminal is set with an alarm clock, the alarm clock will ring even if the terminal is in a shutdown state. Therefore, the embodiment of the present disclosure controls the power of the terminal to enter the corresponding power shutdown mode by judging whether the terminal currently starts the second type of application.

[0095] In step S502a, if the terminal currently starts the second type of application, the power of the terminal is controlled to enter the second power off mode.

[0096] In an embodiment of the present disclosure, when the terminal is in a shutdown state, the remaining power of the terminal is greater than a threshold value, and the terminal currently starts a second type of application. Before the terminal triggers shutdown, the second type of application is started, such as setting an alarm. Therefore, in order not to affect the operation of the second type of application, the power of the terminal is controlled to enter the second power shutdown mode to ensure that the battery continues to power the system when the terminal is in a shutdown state.

[0097] In step S502b, if the terminal currently does not start the second type of application, the power of the terminal is controlled to enter the first power off mode.

[0098] In the disclosed embodiment, when the terminal is powered off, the remaining power of the terminal is greater than the threshold, and the terminal currently does not start the second type of application, the power of the terminal is controlled to enter the first power off mode. By disconnecting the path between the battery and the system power supply (VPH_PWR), the power consumption of the system in the power off state is reduced, the battery life is extended, and the user can be guaranteed to start the device normally the next time the device is used, without affecting the user's use.

[0099] Through the above embodiments, by determining that the terminal currently starts the second category of applications, it is helpful to ensure that the operation of the second category of applications in the shutdown state is not affected when the terminal has relatively large remaining power; by determining that the terminal does not currently start the second category of applications, the power consumption of the system in the shutdown state can be reduced, thereby extending the battery life.

[0100] In an embodiment of the present disclosure, when the terminal is triggered to shut down, the terminal starts to execute a shutdown process, and determines the power shutdown mode of the terminal in the shutdown state in real time according to different user scenarios.

[0101] Fig.11 FIG. 1 is a schematic diagram showing a method of controlling the power of a terminal to enter a power off mode according to an exemplary embodiment. Fig.11 As shown, when the terminal starts to execute the shutdown process, the shutdown state of the terminal identified by the memory is pre-determined, and then based on different memory identifiers, the power supply of the terminal is controlled to enter the power shutdown mode.

[0102] In an implementation of the present disclosure, when the shutdown state identified by the memory identifier is the shutdown state put into use, it can be understood that the terminal is in a user use scenario, and in this scenario, it is necessary to determine whether to trigger the terminal to restart. If the terminal restart operation is triggered, the terminal is controlled to restart.

[0103] If the terminal restart operation is not triggered, it is determined whether the current terminal has started the first type of application. If the first type of application is started, the power of the terminal is controlled to enter the second power shutdown mode, and the terminal battery continues to power the system; if the first type of application is not started, it is determined whether the remaining power of the terminal is less than or equal to the threshold.

[0104] When the remaining power of the terminal is less than or equal to the threshold, the power of the terminal is controlled to enter the first power shutdown mode, and the power supply path between the battery and the system is disconnected to ensure that the terminal can extend the battery life when the power is low. When the remaining power of the terminal is greater than the threshold, it is necessary to determine whether the terminal starts the second type of application.

[0105] If the terminal starts the second type of application, the power of the terminal is controlled to enter the second power shutdown mode, and the terminal battery continues to power the system; if the second type of application is not started, the power of the terminal is controlled to enter the first power shutdown mode. It can be understood that if the user does not set an alarm, the terminal will enter the first power shutdown mode during the shutdown process, thereby extending the battery life in the shutdown state and solving the problem of the user not being able to start up the terminal normally the next time it is used due to long-term non-use.

[0106] When the shutdown state identified by the memory identifier is a shutdown state that is not in use, it can be understood that the terminal is in a factory production and packaging and transportation scenario. The shutdown ShutDown process in this scenario is executed to make the terminal enter the first power shutdown mode to extend the terminal's factory transportation and storage cycle, reduce the system's power consumption in the shutdown state, and avoid the problem of the user being unable to start the computer after unpacking due to over-discharge of the battery.

[0107] In another embodiment of the present disclosure, if the terminal enters a factory for maintenance, and the terminal is triggered to shut down after the maintenance is completed, its shutdown process also follows the process in the factory production, packaging and transportation scenario.

[0108] Fig.12 The figure is a schematic diagram showing that the power of the control terminal enters the first power shutdown mode in a shutdown state that is not put into use according to an exemplary embodiment. In the factory production packaging and transportation scenario, that is, the power of the control terminal enters the first power shutdown mode in the shutdown state that is not put into use. Fig.12 As shown, by scanning the code at the CQR workstation, the basic verification of the terminal is completed, and the shutdown state of the DDR memory identifier is set to a shutdown state that is not put into use.

[0109] In another embodiment of the present disclosure, Fig.12 As shown, the DDR memory is used as a counter to record the shutdown state of the current terminal. The identification value of the counter is set to a preset value representing that the terminal is not put into use, such as 1, which represents that the terminal is not put into use. When the terminal is triggered to shut down, the terminal starts to execute the ShutDown process. According to the detection that the identification value of the counter is equal to the preset value 1, it can be determined that the current shutdown state is a shutdown state that is not put into use. If the scene is a factory production packaging and transportation scene, the power supply of the terminal is controlled to enter the first power shutdown transportation mode, that is, the power supply path between the battery and the system is disconnected.

[0110] Furthermore, if the preset value of the counter is 1, it means that this scene is a scene of factory production for packaging and transportation, then the identification value of the counter is set to 1, indicating that this shutdown process enters the first power shutdown mode. Among them, the factory interface is kept confidential and not open to users. Since the embodiment of the present disclosure uses DDR memory as a counter, this power control method can be extended to a terminal that does not carry an electricity meter chip.

[0111] Based on the same concept, an embodiment of the present disclosure also provides a power control device.

[0112] It is understandable that, in order to realize the above functions, the power control device provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0113] Fig.13 FIG. 1 is a block diagram of a power control device 100 according to an exemplary embodiment. Fig.13 The device 100 includes a determination module 101 and a processing module 102.

[0114] The determination module 101 is used to determine a memory identifier in the terminal in response to the terminal being triggered to shut down, where the memory identifier is used to identify the shutdown state of the terminal, where the shutdown state includes a shutdown state where the terminal is put into use or a shutdown state where the terminal is not put into use.

[0115] The processing module 102 is used to control the power supply of the terminal to enter a power shutdown mode based on the shutdown state identified by the memory identifier.

[0116] In one implementation, the determination module 101 is used to determine whether the terminal starts a first type of application in response to the shutdown state identified by the memory identifier being a shutdown state in use, where the first type of application is an application that runs passively when the terminal is in the shutdown state.

[0117] In one implementation, the determining module 101 is used to determine that the terminal has not triggered a restart.

[0118] In one embodiment, the processing module 102 is used to control the power supply of the terminal to enter a power shutdown mode based on a memory identifier: in response to the shutdown state identified by the memory identifier being a shutdown state that is not in use, the power supply of the terminal is controlled to enter a first power shutdown mode; in the first power shutdown mode, the power supply stops supplying power to the terminal system.

[0119] In one implementation, if the first type of application is started, the processing module 102 is used to control the power supply of the terminal to enter the second power shutdown mode. In the second power shutdown mode, the power supply continues to supply power to the terminal system.

[0120] In one implementation, if the first type of application is not started, the processing module 102 is used to determine the remaining power of the terminal, and based on the remaining power, control the power of the terminal to enter a power off mode.

[0121] In one embodiment, the processing module 102 is used to control the power of the terminal to enter a power shutdown mode based on the remaining power: if the remaining power is less than or equal to a threshold, the power of the terminal is controlled to enter a first power shutdown mode; or if the remaining power is greater than the threshold, based on whether the terminal currently starts a second type of application, the power of the terminal is controlled to enter a power shutdown mode; the second type of application is an application that runs actively when the terminal is in a shutdown state.

[0122] In one embodiment, the processing module 102 is used to control the power of the terminal to enter a power shutdown mode based on whether the terminal currently starts the second type of application: if the terminal currently starts the second type of application, the power of the terminal is controlled to enter the second power shutdown mode; if the terminal does not currently start the second type of application, the power of the terminal is controlled to enter the first power shutdown mode.

[0123] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0124] Fig.14 2 is a block diagram of a device 200 for power control according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0125] Reference Fig.14 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0126] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.

[0127] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0128] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0129] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0130] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.

[0131] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0132] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0133] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0134] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0135] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0136] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0137] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0138] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0139] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0140] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0141] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A power control method, characterized in that: Applied to terminals, including: In response to the terminal being triggered to shut down, determining a memory identifier in the terminal, the memory identifier being used to identify a shutdown state of the terminal, the shutdown state including a shutdown state in which the terminal is put into use or a shutdown state in which the terminal is not put into use; Based on the shutdown state identified by the memory identifier, the power supply of the terminal is controlled to enter a power shutdown mode.

2. The method according to claim 1, characterized in that The controlling the power supply of the terminal to enter a power off mode based on the memory identifier includes: In response to the shutdown state identified by the memory identifier being a shutdown state that is not put into use, controlling the power supply of the terminal to enter a first power shutdown mode; In the first power shutdown mode, the power supply stops supplying power to the terminal system.

3. The method according to claim 1, characterized in that The controlling the power supply of the terminal to enter a power off mode based on the memory identifier includes: In response to the memory identifying that the shutdown state is a shutdown state that is put into use, determining whether the terminal starts a first type of application, where the first type of application is an application that the terminal runs passively in the shutdown state; If the first type of application is started, the power supply of the terminal is controlled to enter a second power shutdown mode, in which the power supply continues to supply power to the terminal system; If the first type of application is not started, the remaining power of the terminal is determined, and based on the remaining power, the power of the terminal is controlled to enter a power shutdown mode.

4. The method according to claim 3, characterized in that The controlling the power supply of the terminal to enter a power off mode based on the remaining power includes: If the remaining power is less than or equal to a threshold, controlling the power of the terminal to enter a first power shutdown mode; or If the remaining power is greater than the threshold, based on whether the terminal currently starts the second type of application, controlling the power of the terminal to enter a power shutdown mode; The second type of application is an application that runs actively when the terminal is in a shutdown state.

5. The method according to claim 4, characterized in that The controlling the power supply of the terminal to enter the power off mode based on whether the terminal currently starts the second type of application includes: If the terminal currently starts the second type of application, controlling the power of the terminal to enter the second power shutdown mode; If the terminal does not currently start the second type of application, the power of the terminal is controlled to enter a first power shutdown mode.

6. The method according to any one of claims 2 to 5, characterized in that The method further comprises: It is determined that the terminal does not trigger a reboot.

7. A power supply control device, characterized in that: Applied to terminals, including: a determination module, configured to determine, in response to the terminal being triggered to shut down, a memory identifier in the terminal, the memory identifier being used to identify a shutdown state of the terminal, the shutdown state including a shutdown state in which the terminal is put into use, or a shutdown state in which the terminal is not put into use; The processing module is used to control the power supply of the terminal to enter a power shutdown mode based on the shutdown state identified by the memory identifier.

8. The device according to claim 7, characterized in that The processing module controls the power supply of the terminal to enter the power off mode based on the memory identifier in the following manner: In response to the shutdown state identified by the memory identifier being a shutdown state that is not put into use, controlling the power supply of the terminal to enter a first power shutdown mode; In the first power shutdown mode, the power supply stops supplying power to the terminal system.

9. A power supply control device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is used to: execute the power control method described in any one of claims 1-6.

10. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the power control method according to any one of claims 1 to 6.