Mobile power supply, mobile power supply management method and electronic equipment
By monitoring the status of the power bank with a control chip and switching to a low-power mode when idle, the problem of power loss in the standby state of the power bank is solved, and power preservation and security are improved.
Patent Information
- Application Number
- CN202410651299.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2025-11-25
AI Technical Summary
Existing power banks continue to discharge in standby mode, resulting in significant power loss, posing safety hazards, and shortening their lifespan.
The control chip monitors the status information of the power bank. If there is no change within a preset time, it switches to low power mode, stops supplying power to all functional modules, and resumes power supply when a trigger signal is received.
It reduces the power loss of the power bank, extends the standby time on a single charge, improves the user experience, and reduces standby power consumption.
Smart Images

Figure CN121012146A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of mobile power supply, in particular to a mobile power supply, a management method of the mobile power supply and an electronic device. BACKGROUND
[0002] With the continuous development of electronic devices, various digital products have become indispensable in people's daily life or work, and the power of digital products itself cannot meet the demand for endurance time in daily use, and people travel more and more use mobile power supply.
[0003] However, in the prior art, the mobile power supply continues to discharge in standby state, that is, when the mobile power supply is not connected to the electronic device, it always keeps discharging state, resulting in over-discharge. Therefore, when the mobile power supply is left for a long time, it will cause a large amount of power consumption, resulting in a decrease in the single use time of the mobile power supply. At the same time, the mobile power supply is in over-discharge state for a long time, which will cause the battery of the mobile power supply to appear virtual electricity and bulge after over-discharge for many times, and the use of the mobile power supply has safety hazards, and causes the service life of the mobile power supply to be shortened and other problems. SUMMARY
[0004] The present application provides a mobile power supply, a management method of the mobile power supply and an electronic device, which can solve the problem of high standby power consumption of the existing mobile power supply.
[0005] The first aspect of the present application provides a management method of a mobile power supply, the mobile power supply comprising a control chip and at least one functional module connected to the control chip, the method comprising:
[0006] obtaining use information of the mobile power supply, wherein the use information comprises a last use time of the mobile power supply;
[0007] in response to a time interval between the last use time of the mobile power supply and a current time being greater than a preset threshold, controlling the mobile power supply to change from a working mode to a low-power-consumption mode, so that the control chip controls the mobile power supply to stop outputting voltage to all functional modules.
[0008] Further, the method further comprises:
[0009] in response to the mobile power supply being in the low-power-consumption mode, obtaining a trigger signal;
[0010] controlling the mobile power supply to change from the low-power-consumption mode to the working mode based on the trigger signal, so that the control chip outputs voltage to the at least one functional module and controls the corresponding functional module to work; the trigger signal represents the start of the mobile power supply.
[0011] Further, the use information comprises power information, and the step of obtaining the use information of the mobile power supply comprises:
[0012] obtaining power information of the mobile power supply, the power information comprising at least one of a charge amount, a capacity, and an energy of the battery;
[0013] in response to a change in the power information, determining that the mobile power supply is in the working mode.
[0014] Further, the method further comprises:
[0015] obtaining power information of the mobile power supply at an initial time and a current time;
[0016] in response to the power information of the mobile power supply at the current time being inconsistent with the power information of the mobile power supply at the initial time, recording the current time as a last use time of the mobile power supply;
[0017] comparing power information of the mobile power supply at a next time and the current time; wherein a time interval between the next time and the current time is equal to a time interval between the initial time and the current time.
[0018] Further, the step of obtaining the trigger signal comprises:
[0019] receiving a control signal, and controlling a first pin of the control chip to change a level based on the control signal; wherein the control chip is connected to at least one functional module through the first pin;
[0020] generating the trigger signal based on the change of the level.
[0021] Further, the step of controlling the first pin of the control chip to change the level based on the control signal comprises:
[0022] controlling the first pin of the control chip to change from a first level to a second level, and a duration of the second level is greater than or equal to a preset time.
[0023] Further, the step of controlling the first pin of the control chip to change the level based on the control signal comprises:
[0024] controlling the level of the first pin of the control chip to change periodically, and a number of times of the level change of the first pin of the control chip in one period is equal to or greater than a preset number of times.
[0025] Further, the step of controlling the mobile power supply to change from the low-power mode to the working mode based on the trigger signal comprises:
[0026] controlling an enable pin of the control chip to change the level based on the trigger signal, so as to activate the enable pin;
[0027] awakening the control chip by using the enable pin.
[0028] The second aspect of the present application provides a mobile power supply, comprising a control chip and at least one functional module connected to the control chip.
[0029] The control chip is configured to acquire usage information of the mobile power supply, wherein the usage information comprises a last usage time of the mobile power supply.
[0030] In response to a time interval between the last usage time of the mobile power supply and a current time being greater than a preset threshold, the control chip controls the mobile power supply to change from a working mode to a low-power-consumption mode, and stops outputting a voltage to all the functional modules.
[0031] The third aspect of the present application provides an electronic device, comprising a memory and a processor coupled to each other, and the processor is configured to execute program instructions stored in the memory to implement the management method of the mobile power supply as described above.
[0032] Compared with the prior art, the present application controls the power supply output to the at least one functional module by the control chip, and monitors the state information of the mobile power supply in time, and controls the mobile power supply to be in the low-power-consumption mode when it is determined that the state information of the mobile power supply has not changed within a preset time, i.e. the control chip of the mobile power supply stops the power supply output to all the functional modules, thereby reducing the power loss of the mobile power supply, and the mobile power supply does not need to be recharged when the control chip is reawakened, which can improve the user experience. Meanwhile, the present application controls the mobile power supply to change from the low-power-consumption mode to the working mode only after receiving a trigger signal, so as to make the control chip resume the power supply to the corresponding functional module, which can effectively reduce the standby power consumption of the mobile power supply, reduce the power loss of the mobile power supply, and improve the single standby time of the mobile power supply.
[0033] It should be understood that the general description above and the detailed description below are only exemplary and explanatory, but not limiting the present application. BRIEF DESCRIPTION OF DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0035] Figure 1 is a flowchart of the first embodiment of the management method of the mobile power supply of the present application;
[0036] Figure 2 is Figure 1 a specific flowchart of step S11 in the embodiment;
[0037] Figure 3is a flowchart of a second embodiment of the management method of the mobile power supply of the present application;
[0038] Figure 4 is a flowchart of a third embodiment of the management method of the mobile power supply of the present application;
[0039] Figure 5 is Figure 4 is a detailed flowchart of step S31 in the mobile power supply of the present application;
[0040] Figure 6 is Figure 5 is a detailed flowchart of the first embodiment of step S311 in the mobile power supply of the present application;
[0041] Figure 7 is Figure 5 is a detailed flowchart of the second embodiment of step S311 in the mobile power supply of the present application;
[0042] Figure 8 is Figure 5 is a detailed flowchart of step S32 in the mobile power supply of the present application;
[0043] Figure 9 is a structural diagram of the mobile power supply of the present application;
[0044] Figure 10 is a framework diagram of an embodiment of the electronic device of the present application;
[0045] Figure 11 is a framework diagram of an embodiment of the computer readable storage medium of the present application. DETAILED DESCRIPTION
[0046] In order for those skilled in the art to better understand the technical solutions of the present application, the mobile power supply, the management method of the mobile power supply and the electronic device provided by the present application are described in further detail below in combination with the drawings and specific embodiments. It can be understood that the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0047] The terms "first", "second", etc. in the present application are used to distinguish different objects, and are not used to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device.
[0048] The existing mobile power supply is in over-discharged state for a long time, resulting in serious power loss, virtual power, and bulging, etc. The mobile power supply has problems such as less single use time and shorter service life. In order to solve the above technical problems, the application provides a mobile power supply management method. When the mobile power supply is not used for a long time and triggers, that is, in the idle state, the mobile power supply can be switched to an ultra-low power consumption mode, and only the control chip of the mobile power supply is powered on, and all functional modules of the mobile power supply except the control chip are powered off.
[0049] In some possible implementation manners, the mobile power supply management method can be realized by calling computer readable instructions stored in the memory by the processor.
[0050] Specifically, the mobile power supply of the application can be composed of a battery, a control chip and a plurality of functional modules. The power supply is used to provide working voltage to the control chip and the functional modules. The control chip is connected to the functional modules and is used to control whether the power supply outputs voltage to the functional modules. Optionally, the functional modules can be functional elements of any mobile power supply or external functional components externally connected to the mobile power supply, such as protocol IC (integrated circuit) and the like. Optionally, the number of functional modules is not limited, as long as the control chip can control the power supply to be powered on or off.
[0051] Please refer to Figure 1 , Figure 1 is a flowchart of the first embodiment of the mobile power supply management method of the application. Specifically, the mobile power supply management method of the embodiment of the application can include the following steps:
[0052] Step S11: obtaining use information of the mobile power supply, wherein the use information includes the last use time of the mobile power supply.
[0053] In this embodiment, the use information of the mobile power supply includes the last use time of the mobile power supply. By comparing the last time of the mobile power supply with the current time, the idle duration of the mobile power supply can be determined.
[0054] Optionally, the mobile power supply of the application can use the timer of the control chip to record the time, that is, to record the current system time through the timer of the control chip. At the same time, the mobile power supply of the application can use the time monitoring task to monitor the use information of the mobile power supply.
[0055] Further, the use information of the mobile power supply further includes the power information of the mobile power supply. For details of the process of obtaining the use information of the mobile power supply, please refer to Figure 2 , Figure 2 isFigure 1 The specific flowchart of step S11 is shown. Specifically, the following steps are included:
[0056] Step S111: Obtain the power information of the power bank.
[0057] In this embodiment, the power information includes at least one of the charge amount, the capacity, and the energy of the battery. Specifically, the charge amount refers to the amount of charge of the battery; the capacity refers to the capacity of the battery under certain conditions and at a certain current; and the energy refers to the energy of the battery within a working voltage range and at a certain current.
[0058] Step S112: In response to a change in the power information, determine that the power bank is in a working mode.
[0059] In this embodiment, by detecting the power information representing the charging capacity of the battery of the power bank, the current state of the power bank can be determined, and the corresponding state information can be obtained. Specifically, by determining that the power information has changed, i.e., any one of the charge amount, the capacity, or the energy of the battery has decreased, it can be determined that the output voltage of the battery of the power bank is charging the electronic device connected to the power bank, i.e., the power bank is in a working mode.
[0060] Alternatively, when it is determined that the power information has not changed, it can be determined that the power bank is in an idle state.
[0061] Further, the present application also provides another management method of a power bank, which is used to iteratively confirm the last use time of the power bank. For details, please refer to Figure 3 , Figure 3 is the flowchart of the second embodiment of the management method of the power bank of the present application. Specifically, the following steps are included:
[0062] Step S21: Obtain the power information of the power bank at an initial time and a current time.
[0063] In this embodiment, the power information of the power bank at the initial time and the power information of the power bank at the current time can be obtained, wherein the initial time can be the time recorded by the timer of the control chip for the first time.
[0064] Step S22: In response to the power information at the current time being inconsistent with the power information at the initial time, record the current time as the last use time of the power bank.
[0065] In this embodiment, when it is determined that the power information at the current time is inconsistent with the power information at the initial time, it is determined that the power bank has been used between the initial time and the current time, and therefore the current time is recorded as the last use time of the power bank.
[0066] Step S23: comparing the power information of the power bank at the next time with the power information of the power bank at the current time.
[0067] In this embodiment, the time interval between the next time and the current time is equal to the time interval between the initial time and the current time.
[0068] Specifically, the state information of the power bank at the initial time in this embodiment can be the initial state information of the power bank acquired for the first time, the state information of the power bank at the current time can be the state information of the power bank acquired for the second time or the nth time, and the state information at the initial time and the state information at the current time are used to represent that the power bank is in different working states.
[0069] When the power bank is in the normal working state, the control chip supplies power to all functional modules, records the current system time TIME1 through the timer of the control chip, starts the time monitoring task TASK, and acquires the state information of the power bank at an interval time period. The interval time period can be 24 hours, i.e., the user can set to monitor the state of the power bank at a fixed time every day.
[0070] For example, the user can set to monitor the state of the power bank at 8 pm every day, acquire the current system time TIME2, and when the acquired state information is different from the initial state information, i.e., the power bank is in the normal working state and charges the electrically connected electronic device, the newly acquired current system time TIME2 is taken as the new current system time TIME1, and the next round of monitoring is entered.
[0071] This embodiment acquires the state information of the power bank at an interval time period, continuously iteratively updates the last use time of the power bank, and can further improve the accuracy of determining whether the power bank needs to switch modes.
[0072] Step S12: in response to the time interval between the last use time of the power bank and the current time being greater than a preset threshold, the power bank is changed from the working mode to the low-power-consumption mode, so that the control chip controls the power bank to stop outputting voltage to all functional modules.
[0073] In this embodiment, based on the last use time of the power bank determined in step S11, the last use time and the current time are compared, and the time interval therebetween is calculated to determine the idle time of the power bank, i.e., to determine the standby duration of the power bank.
[0074] Specifically, when the time interval between the last use time of the power bank and the current time is greater than the preset threshold, it can be judged that the standby duration of the power bank is too long, in order to avoid the power bank from further continuing to be over-discharged, the embodiment controls the power bank to change from the working mode to the low-power mode, so that the control chip controls the power bank to stop outputting voltage to all functional modules, reduces the power consumption of the power bank in the standby state, and the standby power consumption can be lower than 25uA.
[0075] Optionally, the preset threshold of the embodiment can be set based on the battery capacity or the battery charge amount of the power bank, for example, can be set to 15 days.
[0076] The application controls the power supply output to at least one functional module by the control chip, and monitors the state information of the power bank in time, and when it is judged that the state information of the power bank does not change within the preset time, the power bank is controlled to be in the low-power mode, that is, the control chip of the power bank stops the power supply output to all functional modules, reduces the power loss of the power bank, and when the control chip is re-awakened, the power bank does not need to be recharged, which can improve the user experience.
[0077] Further, the application also provides another management method of the power bank, which is used for reactivating the power bank in the low-power mode, please refer to Figure 4 , Figure 4 is the flowchart of the third embodiment of the management method of the power bank of the application. Specifically, it includes the following steps:
[0078] Step S31: in response to the power bank being in the low-power mode, a trigger signal is acquired.
[0079] When the power bank is controlled to switch from the working mode to the low-power mode based on step S12, the power bank at this time cannot charge the electrically connected electronic device. Therefore, when the power bank needs to be charged, the power bank needs to be activated to switch to the working mode.
[0080] Specifically, the control chip of the embodiment can receive an externally input trigger signal, and the trigger signal represents the start of the power bank, that is, the trigger signal is used to judge whether the user starts the operation of the power bank.
[0081] Step S32: based on the trigger signal, the power bank is controlled to change from the low-power mode to the working mode, so that the control chip outputs voltage to at least one functional module and controls the corresponding functional module to work.
[0082] Wherein, the embodiment is based on the step S31 to acquire the trigger signal, and based on the trigger signal to control the mobile power supply to change from the low-power mode to the working mode, so as to control the control chip to output the voltage to at least one functional module, and control the corresponding functional module to work.
[0083] Specifically, the trigger signal of the embodiment is used to represent the start of the mobile power supply, that is, the control chip receives the corresponding operation instruction of the user. Wherein, the mobile power supply of the embodiment can be provided with a button connected to the control chip, and the user can press the button in different ways to generate a corresponding trigger signal.
[0084] Further, the specific process of acquiring the trigger information is described in detail with reference to Figure 5 , Figure 5 is Figure 4 the specific flowchart of step S31 in the embodiment. Specifically, the following steps are included:
[0085] Step S311: receiving a control signal, and based on the control signal to control the first pin of the control chip to occur level conversion.
[0086] Wherein, the control chip of the embodiment is connected to the functional module through the first pin, which can also be called the GPIO (General-purpose input / output, general-purpose input / output) configuration pin. The high and low level of the first pin is used to change the working state of the control chip, thereby realizing the power-on and power-off control of the functional module.
[0087] Specifically, the control chip of the embodiment can be controlled by the user to operate the button to adjust the level conversion of the first pin, including but not limited to long-pressing or multiple pressing the button. Alternatively, the level setting of the first pin is related to the configuration mode of the control chip and the functional module. For example, in some embodiments, the functional module is started at low level, and the control chip outputs working voltage to the functional module when the first pin is at low level, and the control chip stops outputting working voltage to the functional module when the first pin is at high level; or, in some embodiments, the functional module is started at high level, and the control chip outputs working voltage to the functional module when the first pin is at high level, and the control chip stops outputting working voltage to the functional module when the first pin is at low level.
[0088] Further, the specific process of controlling the first pin of the control chip to occur level conversion based on the control signal is described in detail with reference to Figure 6 , Figure 6 is Figure 5 the specific flowchart of step S311 of the first embodiment in the embodiment. Specifically, the following steps are included:
[0089] Step S3111: control the first pin of the control chip to change from the first level to the second level, and the duration of the second level is greater than or equal to the preset time.
[0090] In this embodiment, the first level and the second level are high level and low level respectively, or the first level and the second level are low level and high level respectively, and the first level and the second level can be set based on the configuration of the control chip and the functional module.
[0091] Specifically, in this embodiment, when the user presses the key to generate a control signal, the first pin changes from the first level to the second level based on the control signal, and the duration of the second level is greater than or equal to the preset time, that is, when the user continuously presses the key for more than or equal to the preset time, the trigger signal can be generated.
[0092] Alternatively, the preset time of this embodiment can be set by the user, for example, the preset time is set to 10S, 15S, etc., and only when the user presses the key for more than or equal to the preset time, the trigger signal can be generated.
[0093] Further, the process of controlling the first pin of the control chip to change the level based on the control signal will be described in detail with reference to Figure 7 , Figure 7 is Figure 5 the specific flowchart of the second embodiment of step S311. Specifically, the following steps are included:
[0094] Step S3112: control the level of the first pin of the control chip to change periodically, and the number of level changes of the first pin of the control chip in one period is equal to or greater than the preset number.
[0095] In this embodiment, when the user presses the key, the level of the first pin of the control chip will change, for example, from high level to low level, or from low level to high level, and when the user releases the key, the level of the first pin of the control chip will change again, so that the user can control the level of the first pin of the control chip to change alternately by pressing and releasing the key, and the number of level changes can be used to determine whether the trigger signal is generated.
[0096] Specifically, in this embodiment, when the user presses the key to generate a control signal, the first pin changes from the first level to the second level based on the control signal, and when the user releases the key to generate another control signal, the first pin changes from the second level to the first level based on the another control signal. Alternatively, the first level and the second level of this embodiment are high level and low level respectively, or the first level and the second level are low level and high level respectively, and the first level and the second level can be set based on the configuration of the control chip and the functional module.
[0097] Optionally, in an embodiment, the control chip monitors the number of times of the level change of the first pin within a preset period of time, and the number of times is equal to or greater than a preset number, that is, the number of times of the first level changing into the second level and the number of times of the second level changing into the first level is equal to or greater than the preset number, that is, the total number of times of pressing the key and releasing the key by the user in a single period of time is equal to or greater than the preset number.
[0098] Optionally, in another embodiment, the control chip monitors the number of times of the level change of the first pin within a preset period of time, and the number of times is equal to or greater than a preset number, that is, the number of times of the first level changing into the second level is equal to or greater than the preset number, that is, the total number of times of pressing the key by the user in a single period of time is equal to or greater than the preset number. That is, in this embodiment, only the operation of pressing the key by the user is counted, and the operation of releasing the key is only used to restore the current level of the first pin to the initial level.
[0099] In this embodiment, the single period of time and the preset number can be set by the user, for example, the single period of time is set to 10S, 15S, etc., and the preset number is set to 3 times, 5 times, etc. In an embodiment, the single period of time is set to 10S, and the preset number is set to 3 times. When the number of times of pressing the key by the user in 10S reaches 3 times, the control chip judges that the number of times of the level change of the first pin in a single period of time is equal to the preset number, that is, it is judged that the trigger signal is generated.
[0100] Step S312: generating a trigger signal based on the level conversion.
[0101] In this embodiment, the control chip can monitor the level change of the first pin based on step S3111 or step S3112, and judge whether a trigger signal is generated based on the specific monitoring result.
[0102] Optionally, when the control chip judges that no trigger signal is generated, the control chip is still in the sleep state, and the ultra-low power consumption mode of the mobile power supply is maintained; when the control chip judges that a trigger signal is generated, step S312 is further executed.
[0103] Further, in response to obtaining the trigger signal, the process of controlling the mobile power supply to change from the low-power consumption mode to the working mode will be described in detail with reference to Figure 8 , Figure 8 is Figure 5 the specific flowchart of step S32 in
[0104] Step S321: based on the trigger signal, the control chip controls the enable pin to change the level to activate the enable pin.
[0105] The control chip is provided with an enable pin, and the enable pin is used to enable the control chip. When the enable pin is activated, the control chip can be switched to a normal working state. Optionally, the configuration of the enable pin of the embodiment is related to the control chip. For example, when the control chip is started at a high level, the level of the enable pin needs to be switched to a high level to wake up the control chip.
[0106] Step S322: waking up the control chip by using the enable pin.
[0107] In the embodiment, the enable pin is activated based on step S321, and then the control chip is woken up, that is, the control chip is switched from a sleep state to a working state.
[0108] In the embodiment, the control chip is woken up based on step S322, so that the control chip is switched from a sleep state to a working state. At this time, the control chip can output a voltage to the functional module connected thereto. Different functional modules have different working voltages, so the control chip can output corresponding voltages to different functional modules, and then control the mobile power supply to enter a normal working mode.
[0109] The control chip of the mobile power supply in the application only changes the mobile power supply from a low-power mode to a working mode after receiving a trigger signal, so that the control chip resumes to supply power to the corresponding functional module. This can effectively reduce the standby power consumption of the mobile power supply, reduce the power loss of the mobile power supply, and improve the single standby time of the mobile power supply.
[0110] The application also provides a mobile power supply for executing the steps in any of the management method embodiments of the mobile power supply described above. Please refer to Figure 9 , Figure 9 is a structural schematic diagram of the mobile power supply in the application. As Figure 9 shown, the mobile power supply 50 in the embodiment includes a control chip 51 and at least one functional module 52 connected to the control chip 51.
[0111] Specifically, the control chip 51 of the embodiment acquires usage information of the mobile power supply 50, and the usage information includes the last usage time of the mobile power supply 50. The usage information of the mobile power supply 50 can be used to determine the usage of the mobile power supply 50.
[0112] The control chip 51 is used to supply power to the at least one functional module 52 and control the corresponding functional module 52 to work. Specifically, when the mobile power supply 50 is in a low-power mode, the control chip 51 is in a sleep state, and the control chip 51 stops outputting working voltage to the functional module 52. When the mobile power supply 50 is in a working mode, the control chip 51 is in a working state. Since different functional modules 52 have different working voltages, the control chip 51 outputs corresponding working voltages to the functional modules 52.
[0113] In response to a time interval between the last use time of the mobile power supply 50 and the current time monitored by the control chip 51 being greater than a preset threshold, the control chip 51 controls the mobile power supply 50 to change from the working mode to the low-power-consumption mode, and stops outputting the voltage to all the functional modules 52.
[0114] In addition, when the mobile power supply 50 is in the low-power-consumption mode, in response to obtaining a trigger signal, the control chip 51 controls the mobile power supply 50 to change from the low-power-consumption mode to the working mode, and outputs the voltage to at least one functional module 52, so as to control the corresponding functional module 52 to work; the trigger signal represents that the mobile power supply 50 is started.
[0115] The present application also provides an electronic device, please refer to Figure 10 , Figure 10 is a frame schematic diagram of an embodiment of the electronic device of the present application. The electronic device 60 comprises a memory 61 and a processor 62 coupled with each other, and the processor 62 is configured to execute program instructions stored in the memory 61, so as to implement the steps in any of the embodiments of the management method of the mobile power supply described above. In a specific implementation scenario, the electronic device 60 can include but is not limited to: a microcomputer, a server, in addition, the electronic device 60 can also include a notebook computer, a tablet computer and other mobile devices, which are not limited here.
[0116] Specifically, the processor 62 is configured to control itself and the memory 61 to implement the steps in any of the embodiments of the management method of the mobile power supply described above. The processor 62 can also be called CPU (Central Processing Unit, central processing unit). The processor 62 can be an integrated circuit chip with signal processing capability. The processor 62 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. In addition, the processor 62 can be realized by integrated circuit chips together.
[0117] The present application also provides a computer readable storage medium, please refer to Figure 11 , Figure 11is a schematic diagram of a framework of an embodiment of the computer readable storage medium of the present application. The computer readable storage medium 70 stores a computer program 71 capable of being executed by a processor, and the computer program 71 is used to implement the steps in any of the embodiments of the method for managing a mobile power supply described above.
[0118] In some embodiments, the apparatus provided by the embodiments of the present disclosure has functions or includes modules that can be used to perform the methods described in the above method embodiments, and the specific implementation can refer to the description of the above method embodiments. For brevity, details are not repeated here.
[0119] The above description of various embodiments tends to emphasize the differences between various embodiments, and the same or similar parts can be mutually referred to. For brevity, details are not repeated here.
[0120] In several embodiments provided in the present application, it should be understood that the disclosed methods and apparatuses can be implemented in other ways. For example, the above-described apparatus implementation is only schematic. For example, the division of modules or units is only a logical function division, and there can be another division manner in actual implementation. For example, a unit or component can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed mutual elements can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0121] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The above integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0122] If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that makes a contribution to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0123] The above merely provides the examples of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made according to the content of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method of managing a mobile power source, characterized by, The mobile power supply comprises a control chip and at least one functional module connected to the control chip, and the method comprises: obtaining usage information of the mobile power supply, wherein the usage information comprises a last usage time of the mobile power supply; in response to a time interval between the last usage time of the mobile power supply and a current time being greater than a preset threshold, controlling the mobile power supply to change from a working mode to a low-power-consumption mode, so that the control chip controls the mobile power supply to stop outputting voltage to all the functional modules.
2. The management method of a mobile power supply according to claim 1, characterized in that, The method further comprises: in response to the mobile power supply being in the low-power-consumption mode, obtaining a trigger signal; based on the trigger signal, controlling the mobile power supply to change from the low-power-consumption mode to the working mode, so that the control chip outputs voltage to the at least one functional module and controls the corresponding functional module to work.
3. The management method of a mobile power supply according to claim 1, characterized by, The usage information comprises power information, and the step of obtaining the usage information of the mobile power supply comprises: obtaining power information of the mobile power supply, wherein the power information comprises at least one of a charge amount, a capacity and an energy of a battery; in response to the power information changing, determining that the mobile power supply is in the working mode.
4. The management method of a mobile power supply according to claim 3, characterized in that, The method further comprises: obtaining power information of the mobile power supply at an initial time and a current time; in response to the power information of the mobile power supply at the current time being inconsistent with the power information of the mobile power supply at the initial time, recording the current time as the last usage time of the mobile power supply; comparing the power information of the mobile power supply at a next time and the current time, wherein a time interval between the next time and the current time is equal to a time interval between the initial time and the current time.
5. The management method of a mobile power supply according to claim 2, wherein The step of obtaining the trigger signal comprises: receiving a control signal and controlling a first pin of the control chip to change in level based on the control signal, wherein the control chip is connected to the at least one functional module through the first pin; generating the trigger signal based on the change in level.
6. The management method of a mobile power supply according to claim 5, wherein The step of controlling the first pin of the control chip to change in level based on the control signal comprises: controlling the first pin of the control chip to change from a first level to a second level, and a duration of the second level is greater than or equal to a preset time.
7. The management method of a mobile power supply according to claim 5, wherein The step of controlling the first pin of the control chip to change in level based on the control signal comprises: controlling the level of the first pin of the control chip to change periodically, and a number of times of change in level of the first pin of the control chip in one period is equal to or greater than a preset number of times.
8. The management method of a mobile power supply according to claim 5, characterized by, The step of controlling the mobile power supply to change from the low-power-consumption mode to the working mode based on the trigger signal comprises: controlling an enable pin of the control chip to change in level based on the trigger signal, so as to activate the enable pin; awakening the control chip by using the enable pin.
9. A mobile power source, characterized by, The mobile power supply comprises a control chip and at least one functional module connected to the control chip; the control chip is configured to obtain usage information of the mobile power supply, wherein the usage information comprises a last usage time of the mobile power supply; In response to a time interval between a last use time of the mobile power supply and a current time being greater than a preset threshold, the control chip controls the mobile power supply to change from an operating mode to a low-power consumption mode, and stops outputting voltage to all the functional modules.
10. An electronic device, comprising: The mobile power supply comprises a memory and a processor coupled with each other, and the processor is configured to execute program instructions stored in the memory to implement the management method of the mobile power supply according to any one of claims 1-8.