CN113258655B - Electric quantity control method and device, electronic equipment and storage medium - Google Patents
Electric quantity control method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113258655B CN113258655B CN202110718617.7A CN202110718617A CN113258655B CN 113258655 B CN113258655 B CN 113258655B CN 202110718617 A CN202110718617 A CN 202110718617A CN 113258655 B CN113258655 B CN 113258655B
- Authority
- CN
- China
- Prior art keywords
- electric quantity
- ups
- power supply
- terminal equipment
- main power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 230000008859 change Effects 0.000 claims abstract description 12
- 238000012544 monitoring process Methods 0.000 claims description 7
- 238000001514 detection method Methods 0.000 claims description 6
- 238000004146 energy storage Methods 0.000 abstract description 20
- 230000006378 damage Effects 0.000 abstract description 8
- 238000004891 communication Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000002950 deficient Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- 239000013589 supplement Substances 0.000 description 2
- 208000003443 Unconsciousness Diseases 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001502 supplementing effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
- H02J7/0048—Detection of remaining charge capacity or state of charge [SOC]
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0063—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J9/00—Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
- H02J9/04—Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
- H02J9/06—Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Remote Monitoring And Control Of Power-Distribution Networks (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Stand-By Power Supply Arrangements (AREA)
Abstract
The disclosure relates to an electric quantity control method, an electric quantity control device, an electronic device and a storage medium, wherein main power supply electric quantity of a terminal device and UPS electric quantity of an uninterrupted power supply are respectively obtained, power is supplied to the terminal device through the main power supply electric quantity in advance, change of the main power supply electric quantity is monitored, whether an operation request for using the UPS electric quantity is detected or not is detected under the condition that the main power supply electric quantity is smaller than a first preset value, and the terminal device is controlled to be automatically shut down under the condition that the operation request for using the UPS electric quantity is not detected within preset time. From this, can avoid terminal equipment's total electric quantity to be in the automatic shutdown under the insufficient voltage or the condition of limit insufficient voltage, harm the problem of energy storage module such as terminal equipment's battery.
Description
Technical Field
The present disclosure relates to the field of computer electronics, and in particular, to a method and an apparatus for controlling electric quantity, an electronic device, and a storage medium.
Background
In the related art, under the condition that the terminal device is in a low electric quantity, the system can automatically and forcibly execute a shutdown program, and at this time, energy storage modules such as a battery of the terminal device are likely to be in a power shortage state, even a limit power shortage state, and the terminal device is in the power shortage state, or the terminal device is automatically shut down to cause certain damage to the energy storage modules such as the battery of the terminal device.
Disclosure of Invention
The disclosure provides an electric quantity control method, an electric quantity control device, electronic equipment and a storage medium, and aims to at least solve the problem that in the related art, when terminal equipment is in a power-shortage state or a limit power-shortage state, an energy storage module such as a battery is damaged due to automatic shutdown. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an electric quantity control method, including: respectively acquiring main power supply electric quantity and Uninterrupted Power Supply (UPS) electric quantity of terminal equipment; supplying power to the terminal equipment in advance through the main power supply electric quantity, and monitoring the change of the main power supply electric quantity; detecting whether an operation request for using the UPS electric quantity is detected or not under the condition that the main power supply electric quantity is smaller than a first preset value; and controlling the terminal equipment to automatically shut down under the condition that an operation request for using the electric quantity of the UPS is not detected within a preset time.
In some embodiments, the method further comprises: and under the condition that an operation request using the UPS electric quantity is detected within preset time, supplying power to the terminal equipment through the UPS electric quantity.
In some embodiments, after the terminal device is powered by the UPS power, the method further includes: and controlling the terminal equipment to automatically shut down under the condition that the electric quantity of the UPS is smaller than a second preset value.
In some embodiments, after controlling the terminal device to automatically shut down if the operation request for using the power of the UPS is not detected within the preset time, the method further includes: and under the condition that a starting instruction for starting the terminal equipment is detected, the UPS electric quantity is used for supplying power to the terminal equipment so that the terminal equipment is in a starting state and normally operates within a preset time length.
In some embodiments, after controlling the terminal device to automatically shut down when the UPS power is less than a second preset value, the method further includes: the UPS power supply system comprises a UPS power supply module, a charging instruction module and a main power supply module, wherein the UPS power supply module is used for supplying power to the UPS power supply module, the main power supply module is used for supplying power to the UPS power supply module, and the main power supply module is used for supplying power to the UPS power supply module.
In some embodiments, the method further comprises: and under the condition that the UPS electric quantity is larger than or equal to a third preset value and the main power supply electric quantity is smaller than a fourth preset value, if a starting instruction for starting the terminal equipment is detected, the terminal equipment is powered by the UPS electric quantity, so that the terminal equipment is in a starting state and normally operates.
In some embodiments, the method further comprises: and under the condition that the main power supply electric quantity is greater than or equal to a fourth preset value, if a starting instruction for starting the terminal equipment is detected, the terminal equipment is powered through the main power supply electric quantity, so that the terminal equipment is in a starting state and normally operates.
In some embodiments, the controlling the terminal device to automatically shut down if the operation request for using the power of the UPS is not detected within the preset time includes: controlling the terminal equipment to automatically shut down under the condition that an operation request of not using the electric quantity of the UPS is detected within a preset time; or controlling the terminal equipment to automatically shut down under the condition that whether the operation request of the UPS electric quantity is used or not is not detected within the preset time.
In some embodiments, the method further comprises: under the condition of using the main power supply electric quantity, displaying the percentage of the main power supply electric quantity on a display interface of the terminal equipment, and displaying a first identifier; and under the condition of using the UPS electric quantity, displaying the percentage of the main power supply electric quantity on a display interface of the terminal equipment, and displaying a second identifier.
According to a second aspect of the embodiments of the present disclosure, there is also provided a power control apparatus, including: the device comprises an electric quantity acquisition unit, a first power supply unit, a detection unit and a first control unit.
The power acquisition unit is used for respectively acquiring the main power supply power of the terminal equipment and the UPS power;
the first power supply unit is used for supplying power to the terminal equipment in advance through the main power supply electric quantity and monitoring the change of the main power supply electric quantity; the detection unit is used for detecting whether an operation request for using the electric quantity of the UPS is detected or not under the condition that the main power supply electric quantity is smaller than a first preset value; the first control unit is used for controlling the terminal equipment to automatically shut down under the condition that an operation request for using the electric quantity of the UPS is not detected within preset time.
In some embodiments, the apparatus further comprises: and the second control unit is used for supplying power to the terminal equipment through the UPS electric quantity under the condition that the operation request using the UPS electric quantity is detected within the preset time.
In some embodiments, the apparatus further comprises: the first starting unit is used for supplying power to the terminal equipment through the UPS electric quantity under the condition that a starting instruction for starting the terminal equipment is detected, so that the terminal equipment is in a starting state and normally operates within a preset time length.
In some embodiments, the apparatus further comprises: and the third control unit is used for controlling the terminal equipment to automatically shut down under the condition that the electric quantity of the UPS is smaller than a second preset value.
In some embodiments, the apparatus further comprises: and the charging unit is used for detecting the charging instruction of the terminal equipment for charging, charging the UPS electric quantity through the charging instruction, and charging the main power supply electric quantity when the UPS electric quantity is larger than the preset electric quantity.
In some embodiments, the apparatus further comprises: and the second starting unit is used for supplying power to the terminal equipment through the UPS electric quantity if a starting instruction for starting the terminal equipment is detected under the condition that the UPS electric quantity is larger than or equal to a third preset value and the main power supply electric quantity is smaller than a fourth preset value, so that the terminal equipment is in a starting state and normally runs.
In some embodiments, the apparatus further comprises: and the third starting unit is used for supplying power to the terminal equipment through the main power supply electric quantity if a starting instruction for starting the terminal equipment is detected under the condition that the main power supply electric quantity is greater than or equal to a fourth preset value, so that the terminal equipment is in a starting state and normally operates.
According to a third aspect of the embodiments of the present disclosure, there is also provided an electronic apparatus, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the power control method as described above.
According to a fourth aspect of embodiments of the present disclosure, there is also provided a non-transitory computer-readable storage medium, wherein when a call instruction in the storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the power control method as described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the electric quantity control method provided in the embodiment of the disclosure acquires the main power supply electric quantity and the UPS electric quantity of the terminal device respectively, preferentially uses the main power supply electric quantity in the use process of the terminal device, and selects to use the UPS electric quantity under the condition that the main power supply electric quantity is smaller than the first preset value, so that the situation that the total electric quantity of the terminal device is in power shortage or limited power shortage automatic shutdown can be avoided, damage is caused to energy storage modules such as a battery of the terminal device, and the service life of the energy storage modules such as the battery can be prolonged to a certain extent. And the UPS power supply system can supply power to the terminal equipment by selecting the UPS power when the main power supply power is not enough to load the terminal equipment, so that a user can operate the terminal equipment to perform some operations, and emergency use is provided for the user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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 disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flow chart illustrating a method of controlling an amount of power according to an embodiment of the present disclosure;
fig. 2 is a flow chart illustrating another method of controlling an amount of power according to an embodiment of the present disclosure;
fig. 3 is a block diagram of an electric quantity control apparatus according to an embodiment of the present disclosure;
fig. 4 is a structural diagram illustrating another electric quantity control apparatus according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
Throughout the specification and claims, the term "comprising" is to be interpreted in an open, inclusive sense, i.e., as "including, but not limited to," unless the context requires otherwise. In the description of the specification, the terms "some embodiments" and the like are intended to indicate that a particular feature, structure, material, or characteristic described in connection with the embodiments or examples is included in at least one embodiment or example of the disclosure. The schematic representations of the above terms are not necessarily referring to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be included in any suitable manner in any one or more embodiments or examples.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, in the existing electric quantity control method of the terminal device, a system can automatically and forcibly execute a shutdown program under the condition that the terminal device is in low electric quantity, on one hand, the terminal device is in low electric quantity, at the moment, energy storage modules such as a battery of the terminal device are in a power-deficient state or a limited power-deficient state, certain damage can be caused to the energy storage modules such as the battery of the terminal device under the condition of automatic shutdown of the low electric quantity, and on the other hand, the problem that data is lost due to the fact that the terminal device is not stored due to forced shutdown is possibly caused. The present disclosure provides a method and an apparatus for controlling power, an electronic device, and a storage medium, and in particular, the method, the apparatus, the electronic device, and the storage medium provided by the present disclosure are described in detail below with reference to the accompanying drawings.
It should be noted that the power control method according to the embodiment of the present disclosure may be executed by the power control apparatus according to the embodiment of the present disclosure, where the power control apparatus may be implemented in software and/or hardware, and the power control apparatus may be configured in an electronic device, where the electronic device may install and run a power control program. The electronic device may include, but is not limited to, a hardware device having various operating systems, such as a smart phone, a tablet computer, and the like.
Fig. 1 is a flow chart illustrating a method of power control according to an exemplary embodiment.
As shown in fig. 1, the power control method provided by the embodiment of the present disclosure includes, but is not limited to, the following steps:
s1: and respectively acquiring the main power supply electric quantity and the UPS electric quantity of the terminal equipment.
In the electric quantity control method in the embodiment of the disclosure, a software scheme of emergency energy storage module endurance is adopted to obtain the maximum available capacity of the energy storage module of the real-time system of the terminal device as the total electric quantity M of the terminal device. The total electric quantity M is the maximum available capacity of an energy storage module of the real-time terminal equipment, and aging loss of the energy storage module is not included. The energy storage module of the terminal equipment comprises a system battery and a charging module.
In the embodiment of the present disclosure, a main Power Supply electric quantity and an (Uninterruptible Power Supply) UPS electric quantity are respectively obtained from a total electric quantity M of a terminal device, it can be understood that the main Power Supply electric quantity and the UPS electric quantity are respectively obtained from the total electric quantity M of the terminal device, a first part of the electric quantity in the total electric quantity M may be used as the main Power Supply electric quantity, a second part of the electric quantity is used as the UPS electric quantity, and a sum of the main Power Supply electric quantity and the UPS electric quantity may be equal to or less than the total electric quantity M.
In an exemplary embodiment, the sum of the main power supply capacity and the UPS capacity may be equal to the total capacity M, and in the embodiment of the present disclosure, the total capacity M of the terminal device is divided into the main power supply capacity and the UPS capacity according to a preset ratio.
In the embodiment of the disclosure, the main power supply electric quantity and the UPS electric quantity are obtained by dividing according to the preset proportion according to the total electric quantity M of the terminal equipment, and are stored. In the embodiment of the present disclosure, for convenience of distinction, the main power supply capacity is denoted as F (mAh, ma hour), and the UPS capacity is denoted as u (mAh).
In an exemplary embodiment, M = F + U, F =90% M, and U =10% M. The preset ratio is F/U =9/1, that is, the total electric quantity M is divided into F of 90% M and U of 10% M according to the preset ratio of 9/1.
In another exemplary embodiment, M = F + U, F =97% M, U =3% M. The preset ratio is F/U =97/3, that is, the total electric quantity M is divided into F of 97% M and U of 3% M according to the preset ratio of 97/3.
The UPS power F may be set according to the load degree of the terminal device, and may be set to 50mAh, 45 mAh, 40 mAh, 35 mAh, or 30 mAh, for example. On the basis of being capable of loading the terminal device to normally start up and maintaining the normal operation of the terminal device within the preset time, the terminal device can be arbitrarily set according to the requirement, and the embodiment of the disclosure does not specifically limit the terminal device.
S2: and supplying power to the terminal equipment in advance through the main power supply electric quantity, and monitoring the change of the main power supply electric quantity.
In the embodiment of the disclosure, under the condition that the terminal device includes the main power supply electric quantity and the UPS electric quantity, the main power supply electric quantity is used in advance to supply power to the terminal device, and under the condition that the main power supply electric quantity cannot carry the terminal device to operate, the UPS electric quantity can be selected to supply power to the terminal device.
And monitoring the change of the main power supply electric quantity, namely monitoring whether the main power supply electric quantity is smaller than a first preset value or not, in the process that the main power supply electric quantity supplies power to the terminal equipment. It can be understood that the main power supply amount supplies power to the terminal device, and the power amount of the main power supply amount is gradually reduced.
S3: and detecting whether an operation request for using the electric quantity of the UPS is detected or not under the condition that the main power supply electric quantity is smaller than a first preset value.
The main power supply electric quantity is smaller than the first preset value, namely that the main power supply electric quantity is in a low-electric-quantity state at the moment, long-time starting and running of the starting and ending terminal equipment cannot be carried out under the condition that the main power supply electric quantity is in the low-electric-quantity state, the starting and ending terminal equipment can only be carried out for a short time, and the terminal equipment can be automatically shut down due to the fact that the electric quantity is exhausted. The value of the first preset value may be set according to a load condition of the terminal device, and may be set arbitrarily on the basis of achieving the above technical effects, which is not specifically limited by the present disclosure.
In the embodiment of the disclosure, a user can select whether to use the UPS power to supply power to the terminal device when the main power supply power is smaller than the first preset value. And judging whether the UPS electric quantity is used for supplying power to the terminal equipment by detecting whether an operation request for using the UPS electric quantity is detected.
In an exemplary embodiment, when the main power supply capacity is smaller than a first preset value, the terminal device initiates a popup window, and initiates a request to a user whether to use the UPS power, a yes button and a no button, or an agreement button and a rejection button are set on the popup window, and the user can select whether to use the UPS power to supply power to the terminal device by clicking the corresponding buttons, so as to trigger an operation request for using the UPS power, or trigger an operation request for not using the UPS power.
S4: and controlling the terminal equipment to automatically shut down under the condition that an operation request for using the electric quantity of the UPS is not detected within the preset time.
It can be understood that, because the main power supply electric quantity is smaller than the first preset value, the long-time startup operation of the terminal equipment cannot be started, the terminal equipment can only be started to operate for a short time, and whether the operation request for using the UPS electric quantity is detected or not can not be detected for a long time, but can be detected only within the preset time.
The preset time may be 10 seconds, 15 seconds, 20 seconds, 25 seconds, 30 seconds, or the like. The value of the preset time can be set according to the load condition of the terminal device and the value of the first preset value, and can be set arbitrarily on the basis of realizing the technical effect, which is not specifically limited in the present disclosure.
In the embodiment of the disclosure, under the condition that an operation request for using the electric quantity of the UPS is not detected within the preset time, the main power supply electric quantity is in a power shortage state or a limit power shortage state, and the terminal equipment cannot be loaded to start up and operate, and under the condition, the terminal equipment is controlled to automatically shut down.
And this moment, though terminal equipment's main power supply electric quantity is in insufficient power or limit insufficient power, but, still include the UPS electric quantity in terminal equipment's total electric quantity, terminal equipment's total electric quantity is not in the condition of insufficient power or limit insufficient power, like this, because main power supply electric quantity is in under the condition of insufficient power or limit insufficient power, terminal equipment automatic shutdown, automatic shutdown when electric shock modules such as the battery that can not lead to terminal equipment are in insufficient power or limit insufficient power, consequently, can avoid terminal equipment's total electric quantity to be in automatic shutdown under the condition of insufficient power or limit insufficient power, energy storage modules such as battery to terminal equipment cause the harm.
The electric quantity control method provided in the embodiment of the disclosure is characterized in that the main power supply electric quantity and the Uninterruptible Power Supply (UPS) electric quantity of the terminal device are respectively acquired, the terminal device is supplied with power in advance through the main power supply electric quantity, the change of the main power supply electric quantity is monitored, whether an operation request using the UPS electric quantity is detected or not is detected under the condition that the main power supply electric quantity is smaller than a first preset value, and the terminal device is controlled to automatically shut down under the condition that the operation request using the UPS electric quantity is not detected within a preset time. From this, can avoid terminal equipment's total electric quantity to be in under the insufficient voltage or the limited insufficient voltage's the condition automatic shutdown, cause the harm to energy storage module such as terminal equipment's battery, to a certain extent, can increase energy storage module's such as battery life.
As shown in fig. 2, in some embodiments, the method for controlling power provided in the embodiments of the present disclosure further includes:
s5: and under the condition that an operation request for using the electric quantity of the UPS is detected within the preset time, supplying power to the terminal equipment through the electric quantity of the UPS.
In the embodiment of the disclosure, when the terminal device initiates a popup window and initiates a request whether to use the electric quantity of the UPS to a user, and the popup window is provided with a yes button and a no button, or an agreement button and a rejection button, the user clicks the yes button or the agreement button, selects to use the electric quantity of the UPS to supply power to the terminal device, and triggers an operation of using the electric quantity of the UPS, and at this time, the operation request of using the electric quantity of the UPS can be detected.
The UPS power supply control method comprises the steps that the UPS power supply is controlled to supply power to the terminal equipment under the condition that an operation request of using the UPS power is detected, so that the terminal equipment is supplied with power through the UPS power.
Under the condition, the UPS electric quantity is selected to supply power to the terminal equipment under the condition that the main power supply electric quantity of the terminal equipment is smaller than the first preset value, the UPS electric quantity can meet the requirement that the terminal equipment normally operates within a certain time, so that the terminal equipment can automatically store related data used by a user, or the related data used by the user is stored through user control, and therefore the situation that the terminal equipment is automatically shut down under the condition that the total electric quantity is insufficient or the limit is insufficient can be avoided, and the data which are used by the user and used by the terminal equipment can not be stored in time.
Referring again to fig. 2, in some embodiments, at S5: after the power is supplied to the terminal device by the UPS power, the power control method provided by the embodiment of the disclosure further includes:
s6: and controlling the terminal equipment to automatically shut down under the condition that the electric quantity of the UPS is smaller than the second preset value.
It can be understood that when the total electric quantity of the terminal equipment is divided according to the preset proportion, the electric quantity of the UPS is only prepared as an emergency power supply, and the electric quantity of the UPS is only a small part of the total electric quantity, so that the electric quantity of the UPS cannot load the terminal equipment for a long time to start and operate.
The UPS power is less than the second preset value, which means that the UPS power is in a low power state, and the UPS power cannot load the terminal device to start up when the UPS power is in the low power state, so that the terminal device is automatically powered off due to power exhaustion. The value of the second preset value may be set according to a load condition of the terminal device, and may be set arbitrarily on the basis of achieving the above technical effect, which is not specifically limited by the present disclosure.
In some embodiments, the second preset value is less than the first preset value.
It can be understood that the load of the terminal device is constant, the power amount for the terminal device to start up and operate is known according to the load condition of the terminal device, and whether an operation request using the UPS power amount is detected or not needs to be detected under the condition that the main power supply power amount is smaller than a first preset value, at this time, the main power supply power amount continuously supplies power to the terminal device, and the terminal device is controlled to automatically shut down under the condition that the operation request using the UPS power amount is not detected within a preset time. And when the electric quantity of the UPS is smaller than the second preset value, controlling the terminal device to automatically shut down, so in the embodiment of the present disclosure, the second preset value is smaller than the first preset value.
Please refer to fig. 2 again: in some embodiments, at S4: in a case that an operation request for using the power of the UPS is not detected within a preset time, after the terminal device is controlled to automatically shut down, the power control method provided in the embodiment of the present disclosure further includes:
s7: under the condition that a starting instruction for starting the terminal equipment is detected, the power of the UPS is used for supplying power to the terminal equipment, so that the terminal equipment is in a starting state and normally operates within a preset time length.
It can be understood that, under the condition that an operation request for using the power of the UPS is not detected within the preset time, the terminal device is controlled to automatically shut down, at this time, the main power supply power of the terminal device cannot load the terminal device to start up and operate, and the total power of the terminal device also includes the power of the UPS.
Under the condition, a starting instruction for starting the terminal equipment is detected, and under the condition that the starting instruction for starting the terminal equipment is detected, the power is supplied to the terminal equipment through the electric quantity of the UPS, so that the terminal equipment is in a starting state and normally operates within a preset time length. Therefore, the terminal equipment is automatically powered off under the unconscious condition of the user, the UPS can be used for powering on, and the terminal equipment is operated to carry out some operations, so that emergency use is provided for the user. Or, the user carries out the operation without using the electric quantity of the UPS in advance, so that the electric energy is saved for the terminal equipment, the terminal equipment can be started by using the electric quantity of the UPS in case of emergency, the terminal equipment is operated to carry out some operations, and the emergency use is provided for the user. The starting instruction is triggered by a user and starts the starting instruction of the terminal equipment. In some embodiments, when the start instruction is detected and the terminal device is in the power-on state through the power of the UPS, the terminal device only starts a specific application, which is an emergency application, such as a call application, or starts an instant messaging application without starting a video application and/or a music application with high power consumption.
In some embodiments, at S6: under the condition that the electric quantity of the UPS is smaller than the second preset value, after the terminal device is controlled to automatically shut down, the electric quantity control method provided by the embodiment of the disclosure further includes:
and under the condition that a charging instruction for charging the terminal equipment is detected, the electric quantity of the UPS is charged through the charging instruction, and when the electric quantity of the UPS is larger than the preset electric quantity, the main power supply electric quantity is charged.
It can be understood that, in the embodiment of the present disclosure, the total power amount is divided into the main power supply power amount and the UPS power amount according to a preset ratio, when the main power supply power amount is exhausted, the UPS power amount is selected to be used, and when the UPS power amount is smaller than the second preset value, the terminal device is controlled to automatically shut down. In this case, the UPS electric quantity is less than the second preset value, and the terminal device cannot be loaded to start up and operate, and a charging instruction for charging the terminal device needs to be detected to supplement the electric quantity of the terminal device.
And under the condition that a charging instruction for charging the terminal equipment is detected, the electric quantity of the UPS is charged through the charging instruction, and when the electric quantity of the UPS is larger than the preset electric quantity, the main power supply electric quantity is charged.
The preset electric quantity can be the UPS electric quantity divided by the total electric quantity, or other values larger than a second preset value, and can be set as required.
In some embodiments, when the UPS power is greater than or equal to the third preset value and the main power supply power is less than the fourth preset value, if a start instruction for starting the terminal device is detected, the terminal device is powered by the UPS power, so that the terminal device is in a powered-on state and operates normally.
The third preset value may be an amount of power that the UPS power can provide for the terminal device to run when the terminal device is powered on, and may be, for example, 0.5% U, or 1% U, or 1.5% U. The third preset value may be set according to a load condition of the terminal device, and may be set arbitrarily on the basis of achieving the above technical effects, which is not specifically limited in this disclosure.
In the embodiment of the disclosure, in the process of supplementing the electric quantity of the terminal device, the electric quantity of the UPS is supplemented in advance, and when the electric quantity of the UPS is greater than the preset electric quantity, the main power supply electric quantity is charged, and when the electric quantity of the UPS is greater than or equal to the third preset value and the main power supply electric quantity is less than the fourth preset value, if a start instruction for starting the terminal device is detected, the terminal device is powered by the electric quantity of the UPS, so that the terminal device is in a power-on state and operates normally. In some embodiments, in the operation process of the terminal device, when the main power supply capacity is greater than or equal to the fourth preset value, the power of the UPS is switched to the main power supply capacity, and the terminal device is powered by the main power supply capacity.
It can be understood that the UPS power is greater than or equal to the third preset value, and at this time, the UPS power can already load the terminal device to start up. However, if the main power supply capacity is greater than or equal to the fourth preset value, when a start instruction for starting the terminal device is detected, the terminal device directly uses the main power supply capacity to supply power to the terminal device, so that if the UPS capacity is greater than or equal to the third preset value and the main power supply capacity is less than the fourth preset value, the terminal device is powered by the UPS capacity to normally operate the terminal device when the start instruction for starting the terminal device is detected.
In some embodiments, the third preset value is equal to the second preset value.
And when the electric quantity of the UPS is larger than or equal to the third preset value, the electric quantity of the UPS can load the terminal equipment to start up and run. Therefore, in the embodiment of the present disclosure, the third preset value may be equal to the second preset value.
In some embodiments, when the main power supply amount is greater than or equal to the fourth preset value, if a start instruction for starting the terminal device is detected, the terminal device is powered by the main power supply amount, so that the terminal device is in a power-on state and operates normally.
The fourth preset value may be that the main power supply capacity can provide a capacity that meets the requirement of the terminal device for power on operation, and for example, the fourth preset value may be 0.5% F, or 1% F, or 1.5% F. The fourth preset value may be set according to a load condition of the terminal device, and may be set arbitrarily on the basis of achieving the above technical effects, which is not specifically limited in this disclosure.
In some embodiments, the fourth preset value is less than the first preset value.
In the embodiment of the disclosure, whether an operation request using the UPS power needs to be detected or not when the main power supply power is smaller than a first preset value, at this time, the main power supply power continuously supplies power to the terminal device, the terminal device is controlled to automatically shut down when the operation request using the UPS power is not detected within a preset time, the terminal device can also be supplied with power when the main power supply power is smaller than the first preset value, and the terminal device is automatically shut down after a certain time is maintained. And when the main power supply capacity is smaller than the fourth preset value, the terminal device cannot be loaded to start up operation, and when the load of the terminal device is certain, in the embodiment of the present disclosure, the fourth preset value is smaller than the first preset value.
In some embodiments, S4: under the condition that an operation request for using the electric quantity of the UPS is not detected within the preset time, the control terminal equipment is automatically shut down, and the method comprises the following steps:
under the condition that an operation request without using the electric quantity of the UPS is detected within a preset time, the terminal equipment is controlled to automatically shut down; or under the condition that whether the operation request of using the electric quantity of the UPS is detected within the preset time, the terminal equipment is controlled to be automatically powered off.
It can be understood that, the operation request using the power of the UPS is not detected within the preset time, and there are two cases, one is that the operation request not using the power of the UPS is detected within the preset time, and the other is that the user does not realize that the main power supply power of the terminal device is exhausted, does not notice the popup window initiated by the terminal device, or does not trigger the operation whether using the power of the UPS.
The operation request without using the electric quantity of the UPS is detected within the preset time, illustratively, a popup window is initiated at the terminal device, a request whether to use the electric quantity of the UPS is initiated to a user, and a button of 'yes' and 'no' is arranged on the popup window, or under the condition that the button of 'agree' and 'reject' is arranged on the popup window, the user clicks the button of 'no' or 'reject', selects not to use the electric quantity of the UPS to supply power for the terminal device, and performs the operation without using the electric quantity of the UPS, at this time, the operation request without using the electric quantity of the UPS can be detected.
In some embodiments, in the case of using the main power supply amount, displaying a percentage of the main power supply amount on a display interface of the terminal device, and displaying the first identifier; and under the condition of using the UPS electric quantity, displaying the percentage of the main power supply electric quantity on a display interface of the terminal equipment, and displaying the second identifier.
In an exemplary embodiment, in the case of using the main power supply capacity, a percentage of the main power supply capacity is displayed on a display interface of the terminal device, and a first identifier F is displayed; and under the condition of using the UPS electric quantity, displaying the percentage of the UPS electric quantity and displaying the second mark U on a display interface of the terminal equipment. Therefore, the information of the electric quantity can be visually seen through the display interface of the terminal equipment, so that the user can supplement the electric quantity of the terminal equipment in time. In the embodiment of the present disclosure, the display positions of the first mark F and the second mark U are not limited.
The electric quantity control method provided in the embodiment of the disclosure acquires the main power supply electric quantity and the UPS electric quantity of the terminal device respectively, preferentially uses the main power supply electric quantity in the use process of the terminal device, and selects to use the UPS electric quantity under the condition that the main power supply electric quantity is smaller than the first preset value, so that the situation that the total electric quantity of the terminal device is in power shortage or limited power shortage automatic shutdown can be avoided, damage is caused to energy storage modules such as a battery of the terminal device, and the service life of the energy storage modules such as the battery can be prolonged to a certain extent. And the UPS power supply system can supply power to the terminal equipment by selecting the UPS power when the main power supply power is not enough to load the terminal equipment, so that a user can operate the terminal equipment to perform some operations, and emergency use is provided for the user.
Fig. 3 is a block diagram illustrating an electric quantity control apparatus according to an exemplary embodiment.
As shown in fig. 3, the electric quantity control apparatus 10 includes: the power supply device comprises a power acquisition unit 11, a first power supply unit 12, a detection unit 13 and a first control unit 14.
The power acquiring unit 11 is configured to acquire a main power supply power of the terminal device and a power of the uninterruptible power supply UPS, respectively.
The first power supply unit 12 is configured to supply power to the terminal device in advance through the main power supply amount, and monitor a change of the main power supply amount.
The detection unit 13 is configured to detect whether an operation request for using the power of the UPS is detected when the main power supply power is smaller than a first preset value.
The first control unit 14 is configured to control the terminal device to automatically shut down if an operation request for using the power of the UPS is not detected within a preset time.
The electric quantity control method provided in the embodiment of the present disclosure is configured to obtain a main power supply electric quantity of a terminal device and an electric quantity of an Uninterruptible Power Supply (UPS) through an electric quantity obtaining unit 11, where a first power supply unit 12 is configured to supply power to the terminal device through the main power supply electric quantity in advance, and monitor a change of the main power supply electric quantity, a detection unit 13 is configured to detect whether an operation request for using the UPS electric quantity is detected when the main power supply electric quantity is smaller than a first preset value, and a first control unit 14 is configured to control the terminal device to automatically shut down when the operation request for using the UPS electric quantity is not detected within a preset time. From this, can avoid terminal equipment's total electric quantity to be in under the insufficient voltage or the limited insufficient voltage's the condition automatic shutdown, cause the harm to energy storage module such as terminal equipment's battery, to a certain extent, can increase energy storage module's such as battery life.
As shown in fig. 4, in some embodiments, the power control device 10 further includes: a second control unit 15.
The second control unit 15 is configured to supply power to the terminal device through the power of the UPS when an operation request for using the power of the UPS is detected within a preset time.
Referring again to fig. 4, in some embodiments, the power control apparatus 10 further includes: a third control unit 16.
The third control unit 16 is configured to control the terminal device to automatically shut down if the UPS power is less than the second preset value.
Referring again to fig. 4, in some embodiments, the power control apparatus 10 further includes: a first activation unit 17.
The first starting unit 17 is configured to, when a starting instruction for starting the terminal device is detected, supply power to the terminal device through the UPS power, so that the terminal device is in a powered-on state and normally operates within a preset time duration.
In some embodiments, the power control device 10 further includes: a charging unit.
The charging unit is used for charging the UPS electric quantity through the charging instruction under the condition that the charging instruction for charging the terminal equipment is detected, and charging the main power supply electric quantity when the UPS electric quantity is larger than the preset electric quantity.
In some embodiments, the power control device 10 further includes: a second starting unit.
The second starting unit is used for supplying power to the terminal equipment through the electric quantity of the UPS if a starting instruction for starting the terminal equipment is detected under the condition that the electric quantity of the UPS is larger than or equal to a third preset value and the electric quantity of the main power supply is smaller than a fourth preset value, so that the terminal equipment is in a starting state and normally operates.
In some embodiments, the power control device 10 further includes: and a third starting unit.
The third starting unit is used for supplying power to the terminal equipment through the main power supply electric quantity if a starting instruction for starting the terminal equipment is detected under the condition that the main power supply electric quantity is larger than or equal to a fourth preset value, so that the terminal equipment is in a starting state and normally operates.
In some embodiments, the first control unit 12 is specifically configured to: under the condition that an operation request without using the electric quantity of the UPS is detected within a preset time, the terminal equipment is controlled to automatically shut down; or under the condition that whether the operation request of using the electric quantity of the UPS is detected within the preset time, the terminal equipment is controlled to be automatically powered off.
In some embodiments, the power control device 10 further includes: the display device comprises a first control display unit and a second control display unit.
The first control display unit is used for displaying the percentage of the main power supply electric quantity on a display interface of the terminal equipment and displaying the first mark under the condition that the main power supply electric quantity is used.
The second control display unit is used for displaying the percentage of the main power supply electric quantity on a display interface of the terminal equipment and displaying a second mark under the condition of using the UPS electric quantity.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The electric quantity control device provided in the embodiments of the present disclosure may perform the electric quantity control method according to some embodiments, and the beneficial effects thereof are the same as those of the electric quantity control method described above, and are not described herein again.
Fig. 5 is a block diagram of an electronic device 100 for a power control method according to an example embodiment.
Illustratively, the electronic device 100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
As shown in fig. 5, electronic device 100 may include one or more of the following components: processing component 101, memory 102, power component 103, multimedia component 104, audio component 105, interface to input/output (I/O) 106, sensor component 107, and communication component 108.
The processing component 101 generally controls overall operations of the electronic device 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 101 may include one or more processors 1011 to execute instructions to perform all or part of the steps of the method described above. Further, the processing component 101 may include one or more modules that facilitate interaction between the processing component 101 and other components. For example, the processing component 101 may include a multimedia module to facilitate interaction between the multimedia component 104 and the processing component 101.
The memory 102 is configured to store various types of data to support operations at the electronic device 100. Examples of such data include instructions for any application or method operating on the electronic device 100, contact data, phonebook data, messages, pictures, videos, and so forth. The Memory 102 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as an SRAM (Static Random-Access Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a PROM (Programmable Read-Only Memory), a ROM (Read-Only Memory), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
The power supply component 103 provides power to the various components of the electronic device 100. Power components 103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 100.
The multimedia component 104 includes a touch-sensitive display screen that provides an output interface between the electronic device 100 and a user. In some embodiments, the Touch Display screen may include an LCD (Liquid Crystal Display) and a TP (Touch Panel). 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 boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 104 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 100 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 105 is configured to output and/or input audio signals. For example, the audio component 105 includes a MIC (Microphone) configured to receive external audio signals when the electronic device 100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 102 or transmitted via the communication component 108. In some embodiments, audio component 105 also includes a speaker for outputting audio signals.
The I/O interface 2112 provides an interface between the processing component 101 and peripheral interface modules, which may be 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.
The sensor assembly 107 includes one or more sensors for providing various aspects of status assessment for the electronic device 100. For example, the sensor component 107 may detect an open/closed state of the electronic device 100, the relative positioning of components, such as a display and keypad of the electronic device 100, the sensor component 107 may also detect a change in the position of the electronic device 100 or a component of the electronic device 100, the presence or absence of user contact with the electronic device 100, orientation or acceleration/deceleration of the electronic device 100, and a change in the temperature of the electronic device 100. The sensor assembly 107 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 107 may also include a light sensor, such as a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 107 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 108 is configured to facilitate wired or wireless communication between the electronic device 100 and other devices. The electronic device 100 may 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 108 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 108 further includes a Near Field Communication (NFC) module to facilitate short-range Communication. For example, the NFC module may be implemented based on an RFID (Radio Frequency Identification) technology, an IrDA (Infrared Data Association) technology, an UWB (Ultra Wide Band) technology, a BT (Bluetooth) technology, and other technologies.
In an exemplary embodiment, the electronic Device 100 may be implemented by one or more ASICs (Application specific integrated circuits), DSPs (Digital Signal processors), Digital Signal Processing Devices (DSPDs), PLDs (Programmable Logic devices), FPGAs (Field Programmable Gate arrays), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described power control method. It should be noted that, for the implementation process and the technical principle of the electronic device of the embodiment, reference is made to the foregoing explanation of the electricity quantity control method of the embodiment of the present disclosure, and details are not described here.
The electronic device 100 provided in the embodiment of the present disclosure may execute the power control method according to the above embodiments, and the beneficial effects thereof are the same as those of the power control method described above, and are not described herein again.
In order to implement the above embodiments, the present disclosure also provides a storage medium.
Wherein the instructions in the storage medium, when executed by a processor of the electronic device, enable the electronic device to perform the power control method as previously described. For example, the storage medium may be a ROM (Read Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
To implement the above embodiments, the present disclosure also provides a computer program product, which, when executed by a processor of an electronic device, enables the electronic device to perform the power control method as described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 appended claims.
Claims (16)
1. An electric quantity control method, characterized by comprising:
respectively acquiring main power supply electric quantity and Uninterrupted Power Supply (UPS) electric quantity of terminal equipment, wherein the total electric quantity of the terminal equipment is divided into the main power supply electric quantity and the UPS electric quantity according to a preset proportion;
supplying power to the terminal equipment in advance through the main power supply electric quantity, and monitoring the change of the main power supply electric quantity;
detecting whether an operation request for using the UPS electric quantity is detected or not under the condition that the main power supply electric quantity is smaller than a first preset value, wherein when the main power supply electric quantity is smaller than the first preset value, the main power supply electric quantity is in a low electric quantity state;
controlling the terminal equipment to automatically shut down under the condition that an operation request for using the electric quantity of the UPS is not detected within preset time;
wherein the method further comprises:
and under the condition that the UPS electric quantity is larger than or equal to a third preset value and the main power supply electric quantity is smaller than a fourth preset value, if a starting instruction for starting the terminal equipment is detected, the terminal equipment is powered by the UPS electric quantity, so that the terminal equipment is in a starting state and normally operates.
2. The method of claim 1, further comprising:
and under the condition that an operation request using the UPS electric quantity is detected within preset time, supplying power to the terminal equipment through the UPS electric quantity.
3. The method of claim 2, wherein after the terminal device is powered by the UPS power, the method further comprises:
and controlling the terminal equipment to automatically shut down under the condition that the electric quantity of the UPS is smaller than a second preset value.
4. The method according to claim 3, wherein after controlling the terminal device to automatically shut down if the UPS power is less than a second preset value, the method further comprises:
the UPS power supply system comprises a UPS power supply module, a charging instruction module and a main power supply module, wherein the UPS power supply module is used for supplying power to the UPS power supply module, the main power supply module is used for supplying power to the UPS power supply module, and the main power supply module is used for supplying power to the UPS power supply module.
5. The method of claim 4, further comprising:
and under the condition that the main power supply electric quantity is greater than or equal to a fourth preset value, if a starting instruction for starting the terminal equipment is detected, the terminal equipment is powered through the main power supply electric quantity, so that the terminal equipment is in a starting state and normally operates.
6. The method according to claim 1, wherein after controlling the terminal device to automatically shut down if the operation request for using the power of the UPS is not detected within the predetermined time, the method further comprises:
and under the condition that a starting instruction for starting the terminal equipment is detected, the UPS electric quantity is used for supplying power to the terminal equipment so that the terminal equipment is in a starting state and normally operates within a preset time length.
7. The method of claim 1, wherein the controlling the terminal device to automatically shut down if no operation request for using the power of the UPS is detected within a predetermined time comprises:
controlling the terminal equipment to automatically shut down under the condition that an operation request of not using the electric quantity of the UPS is detected within a preset time; or
And controlling the terminal equipment to automatically shut down under the condition that whether the operation request of the UPS electric quantity is used or not is not detected within the preset time.
8. The method of any one of claims 1 to 7, further comprising:
under the condition of using the main power supply electric quantity, displaying the percentage of the main power supply electric quantity on a display interface of the terminal equipment, and displaying a first identifier;
and under the condition of using the UPS electric quantity, displaying the percentage of the UPS electric quantity on a display interface of the terminal equipment, and displaying a second identifier.
9. An electrical quantity control apparatus, the apparatus comprising:
the system comprises an electric quantity obtaining unit, a power supply control unit and a power supply control unit, wherein the electric quantity obtaining unit is used for respectively obtaining main power supply electric quantity and uninterrupted power supply UPS electric quantity of terminal equipment, and the total electric quantity of the terminal equipment is divided into the main power supply electric quantity and the uninterrupted power supply UPS electric quantity according to a preset proportion;
the first power supply unit is used for supplying power to the terminal equipment in advance through the main power supply electric quantity and monitoring the change of the main power supply electric quantity, wherein when the main power supply electric quantity is smaller than a first preset value, the main power supply electric quantity is in a low electric quantity state;
the detection unit is used for detecting whether an operation request for using the electric quantity of the UPS is detected or not under the condition that the main power supply electric quantity is smaller than a first preset value;
the first control unit is used for controlling the terminal equipment to automatically shut down under the condition that an operation request for using the electric quantity of the UPS is not detected within preset time;
the device, still include:
and the second starting unit is used for supplying power to the terminal equipment through the UPS electric quantity if a starting instruction for starting the terminal equipment is detected under the condition that the UPS electric quantity is larger than or equal to a third preset value and the main power supply electric quantity is smaller than a fourth preset value, so that the terminal equipment is in a starting state and normally runs.
10. The apparatus of claim 9, further comprising:
and the second control unit is used for supplying power to the terminal equipment through the UPS electric quantity under the condition that the operation request using the UPS electric quantity is detected within the preset time.
11. The apparatus of claim 10, further comprising:
and the third control unit is used for controlling the terminal equipment to automatically shut down under the condition that the electric quantity of the UPS is smaller than a second preset value.
12. The apparatus of claim 11, further comprising:
and the charging unit is used for detecting the charging instruction of the terminal equipment for charging, charging the UPS electric quantity through the charging instruction, and charging the main power supply electric quantity when the UPS electric quantity is larger than the preset electric quantity.
13. The apparatus of claim 12, further comprising:
and the third starting unit is used for supplying power to the terminal equipment through the main power supply electric quantity if a starting instruction for starting the terminal equipment is detected under the condition that the main power supply electric quantity is greater than or equal to a fourth preset value, so that the terminal equipment is in a starting state and normally operates.
14. The apparatus of claim 9, further comprising:
the first starting unit is used for supplying power to the terminal equipment through the UPS electric quantity under the condition that a starting instruction for starting the terminal equipment is detected, so that the terminal equipment is in a starting state and normally operates within a preset time length.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 8.
16. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110718617.7A CN113258655B (en) | 2021-06-28 | 2021-06-28 | Electric quantity control method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110718617.7A CN113258655B (en) | 2021-06-28 | 2021-06-28 | Electric quantity control method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113258655A CN113258655A (en) | 2021-08-13 |
CN113258655B true CN113258655B (en) | 2021-11-23 |
Family
ID=77189838
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110718617.7A Active CN113258655B (en) | 2021-06-28 | 2021-06-28 | Electric quantity control method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113258655B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114285151A (en) * | 2021-12-24 | 2022-04-05 | 中国工商银行股份有限公司 | Monitoring system and control method for uninterrupted power supply equipment state |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610304A (en) * | 2008-06-20 | 2009-12-23 | 希姆通信息技术(上海)有限公司 | The changing method of mobile communication terminal and double-battery charge and power supply thereof |
CN103369129A (en) * | 2012-03-30 | 2013-10-23 | 马维尔国际有限公司 | Method and device for supplying power to mobile terminal |
CN105871052A (en) * | 2016-04-27 | 2016-08-17 | 乐视控股(北京)有限公司 | Power supply switching method and apparatus |
CN109941149A (en) * | 2019-04-12 | 2019-06-28 | 爱驰汽车有限公司 | Multi-source battery pack charging/discharging thereof, device, electronic equipment, storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101607121B1 (en) * | 2013-11-11 | 2016-03-29 | 이재진 | Direct current uninterruptible power supply system |
CN110557506B (en) * | 2019-08-30 | 2022-03-25 | 维沃移动通信有限公司 | Electric quantity distribution method and device |
CN111008090B (en) * | 2019-12-06 | 2023-06-20 | Tcl移动通信科技(宁波)有限公司 | Battery electric quantity control method and device, storage medium and terminal equipment |
-
2021
- 2021-06-28 CN CN202110718617.7A patent/CN113258655B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610304A (en) * | 2008-06-20 | 2009-12-23 | 希姆通信息技术(上海)有限公司 | The changing method of mobile communication terminal and double-battery charge and power supply thereof |
CN103369129A (en) * | 2012-03-30 | 2013-10-23 | 马维尔国际有限公司 | Method and device for supplying power to mobile terminal |
CN105871052A (en) * | 2016-04-27 | 2016-08-17 | 乐视控股(北京)有限公司 | Power supply switching method and apparatus |
CN109941149A (en) * | 2019-04-12 | 2019-06-28 | 爱驰汽车有限公司 | Multi-source battery pack charging/discharging thereof, device, electronic equipment, storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113258655A (en) | 2021-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106375604B (en) | The method and apparatus of controlling terminal electricity | |
CN106774774B (en) | Method and device for displaying electric quantity of terminal battery | |
CN111211595B (en) | Charging method and device, electronic equipment and storage medium | |
EP3832841A1 (en) | Charging circuit, electronic device, charging control method and device | |
CN113824195B (en) | Charging control method and device, terminal and computer readable storage medium | |
CN106407079A (en) | Mobile terminal charging prompting method, device and equipment | |
EP3764505B1 (en) | Method and apparatus for controlling charge | |
CN108539804B (en) | Battery charging control method, battery charging control device and electronic equipment | |
CN113258655B (en) | Electric quantity control method and device, electronic equipment and storage medium | |
CN109471666A (en) | Charge starting processing method, equipment and storage medium | |
CN110828923B (en) | Battery charging method, device and medium | |
CN107733021B (en) | Control method and device of electronic equipment | |
CN107528098B (en) | Charging method and device | |
CN106791089B (en) | Method and device for prompting battery electric quantity | |
CN110879658A (en) | Method and device for adjusting display brightness, electronic equipment and storage medium | |
CN105260007B (en) | Battery saving mode starts method, apparatus and terminal | |
CN105161780B (en) | terminal device charging method and terminal device | |
CN108874107B (en) | Control method and device for state of charge | |
CN108539823B (en) | Charging method and device | |
CN113075551A (en) | Battery-based processing method and device, electronic equipment and storage medium | |
CN106776204B (en) | Method and device for determining power consumption application | |
CN111130223B (en) | Wireless charging display method and device | |
CN111864857B (en) | Battery charging method, device and medium | |
US11635468B2 (en) | Method, apparatus and storage medium for determining charging time length of battery | |
CN109066850B (en) | Battery management method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |