CN108539721B - Overcurrent protection method and electronic equipment - Google Patents
Overcurrent protection method and electronic equipment Download PDFInfo
- Publication number
- CN108539721B CN108539721B CN201810291462.1A CN201810291462A CN108539721B CN 108539721 B CN108539721 B CN 108539721B CN 201810291462 A CN201810291462 A CN 201810291462A CN 108539721 B CN108539721 B CN 108539721B
- Authority
- CN
- China
- Prior art keywords
- preset
- current value
- voltage
- electronic equipment
- preset threshold
- 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
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02H—EMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
- H02H9/00—Emergency protective circuit arrangements for limiting excess current or voltage without disconnection
- H02H9/02—Emergency protective circuit arrangements for limiting excess current or voltage without disconnection responsive to excess current
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/165—Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
- G01R19/16533—Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application
- G01R19/16538—Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application in AC or DC supplies
- G01R19/16542—Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application in AC or DC supplies for batteries
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Secondary Cells (AREA)
- Emergency Protection Circuit Devices (AREA)
- Protection Of Static Devices (AREA)
Abstract
The application provides an overcurrent protection method, which comprises the following steps: detecting the battery voltage of the electronic equipment and the current value of a system; judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result; and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from being automatically shut down. By adopting the scheme, after the voltage of the battery is quickly reduced to the first preset threshold value, the current value of the system is determined to be the overcurrent, then the anti-shaking mechanism is triggered, the automatic shutdown of the equipment caused by the continuous period of the pulse current as the overcurrent is prevented, the battery cannot be automatically shut down when the residual electric quantity is more, and the user experience is improved.
Description
Technical Field
The present invention relates to the field of electronic devices, and in particular, to an overcurrent protection method and an electronic device.
Background
With the development of electronic technology, the performance of a processor of an electronic device is continuously improved, and the corresponding power consumption is also continuously improved, while in the operation process of the electronic device, an overcurrent condition easily occurs, for example, a pulse current peak value (lasting from several seconds to several minutes) greatly exceeds a current value in normal operation, and the peak value is still continuously improved, and as the pulse current is longer in lasting discharge time, the battery voltage is easily extremely attenuated, thereby causing some problems.
In the prior art, in order to prevent the battery voltage from being extremely attenuated, the shutdown process is started when the battery voltage reaches the forced shutdown voltage. By adopting the method, once the pulse current occurs, the automatic shutdown process is triggered, so that the equipment is automatically shut down, but the residual electric quantity of the battery is still much at the moment, and the user experience is reduced.
Disclosure of Invention
In view of this, the present invention provides an overcurrent protection method, which solves the problem in the prior art that an automatic shutdown process is triggered once a pulse current occurs.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for overcurrent protection, the method being applied to an electronic device, the method comprising:
detecting the battery voltage of the electronic equipment and the current value of a system;
judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result;
and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from being automatically shut down.
In the foregoing method, preferably, after the battery voltage is decreased from the first voltage value to the first preset threshold value within the preset time period, before the determining whether the current value meets the preset overcurrent condition, the method further includes:
judging whether the first voltage value of the battery voltage is greater than a second preset threshold value or not to obtain a second judgment result;
a first voltage value representing the battery voltage based on the second judgment result is greater than a second preset threshold value, and the execution step judges whether the current value meets a preset overcurrent condition;
and controlling the electronic equipment to enter a shutdown process based on the second judgment result that the first voltage value representing the battery voltage is not greater than a second preset threshold value.
In the foregoing method, preferably, the triggering an anti-shake mechanism to prevent the electronic device from being automatically turned off includes:
and adjusting the operating parameters of the electronic equipment so that the electronic equipment maintains a starting state until the current value returns to meet the preset normal condition.
In the foregoing method, preferably, the adjusting the operating parameter of the electronic device specifically includes:
and reducing the shutdown voltage of the electronic equipment from a first preset threshold value to a third preset threshold value, wherein the third preset threshold value is related to the first preset threshold value based on the internal resistance of a battery and the current value of the system.
In the above method, preferably, after the adjusting the operating parameter of the electronic device, the method further includes:
and when the current value returns to meet the preset normal condition, adjusting the shutdown voltage of the electronic equipment from a third preset threshold value to a first preset threshold value.
In the foregoing method, preferably, the adjusting the operating parameter of the electronic device specifically includes:
acquiring a first application program, wherein the operation of the first application program causes the current value of the system to be increased to meet a preset overcurrent condition;
stopping the running of the first application program;
and generating prompt information, wherein the prompt information is used for prompting a user that the system is shut down due to the fact that the user continues to operate the first application program.
An overcurrent protected electronic device comprising:
a battery;
a system;
the processor is used for detecting the battery voltage of the electronic equipment and the current value of a system; judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result; and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from being automatically shut down.
Preferably, the electronic device mentioned above, wherein the processor triggers the anti-shake mechanism to prevent the electronic device from automatically turning off, specifically includes:
and adjusting the operating parameters of the electronic equipment so that the electronic equipment maintains a starting state until the current value returns to meet a preset normal condition.
In the above electronic device, preferably, the processor adjusts the operating parameters of the electronic device, and specifically includes:
and reducing the shutdown voltage of the electronic equipment from a first preset threshold value to a third preset threshold value, wherein the third preset threshold value is related to the first preset threshold value based on the internal resistance of a battery and the current value of the system.
In the above electronic device, preferably, the processor adjusts the operating parameters of the electronic device, and specifically includes:
acquiring a first application program, wherein the operation of the first application program causes the current value of the system to be increased to meet a preset overcurrent condition;
stopping the running of the first application program;
and generating prompt information, wherein the prompt information is used for prompting a user that the system is shut down due to the fact that the user continues to operate the first application program.
As can be seen from the foregoing technical solutions, compared with the prior art, an embodiment of the present invention provides an overcurrent protection method, including: detecting the battery voltage of the electronic equipment and the current value of a system; judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result; and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from being automatically shut down. By adopting the scheme, after the voltage of the battery is quickly reduced to the first preset threshold value, the current value of the system is determined to be the overcurrent, then the anti-shaking mechanism is triggered, the automatic shutdown of the equipment caused by the continuous period of the pulse current as the overcurrent is prevented, the battery cannot be automatically shut down when the residual electric quantity is more, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an embodiment 1 of a method for overcurrent protection provided by the present application;
fig. 2 is a flowchart of embodiment 2 of a method for overcurrent protection provided by the present application;
fig. 3 is a flowchart of embodiment 3 of a method for overcurrent protection provided by the present application;
fig. 4 is a flowchart of an embodiment 4 of a method for overcurrent protection provided by the present application;
fig. 5 is a flowchart of an embodiment 5 of a method for overcurrent protection provided by the present application;
fig. 6 is a flowchart of embodiment 6 of a method for overcurrent protection provided by the present application;
fig. 7 is a schematic structural diagram of an electronic device embodiment 1 for overcurrent protection according to the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The electronic equipment comprises a battery and a system, wherein the battery is a component for providing electric quantity for the electronic equipment, and internal resistance exists in the battery; the system is a system formed by structures in the electronic equipment, and the battery supplies power to the system of the electronic equipment.
As shown in fig. 1, a flowchart of an embodiment 1 of a method for overcurrent protection provided by the present application is applied to an electronic device, where the electronic device includes a battery and a system, and the method includes the following steps:
step S101: detecting the battery voltage of the electronic equipment and the current value of a system;
the electronic equipment runs a program which can detect the battery voltage of the electronic equipment and the current value of a system.
Note that the battery voltage detected by the program is the output voltage of the battery.
When the system of the electronic equipment works normally, the current value of the system is low, and correspondingly, the voltage drop of the internal resistance of the battery is also very low (almost zero).
For example, when the system is operating normally, the current value is a small current lower than 1A (ampere), and the internal resistance of the battery is 100mohm (milliohm).
Step S102: judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result;
the preset time period may refer to a shorter time, such as an instant.
When the system of the electronic device normally operates, the voltage value is higher, and when the power of the battery is reduced to cause shutdown, the voltage value is a first preset threshold value.
For example, the first preset threshold may also be referred to as a shutdown voltage of the electronic device, and if the first preset threshold is set to 3.4V (volts), the voltage value of the electronic device is greater than the 3.4V when the system of the electronic device operates normally.
Correspondingly, when the pulse current occurs in the system of the electronic device, the peak value of the pulse current is generally higher and the duration is longer, so that the internal resistance of the battery generates voltage drop, the internal resistance of the battery generates larger voltage drop, and the output voltage of the battery is further reduced.
For example, if a pulse current of 4A or more occurs when the first voltage value of the battery voltage is 3.8V, the battery voltage is momentarily pulled down to 3.4V (═ 3.8V-0.1ohm × 4A), and the shutdown voltage of the electronic device may be 3.4V.
Because the voltage of the battery is reduced to the shutdown voltage, in order to prevent the problem of mistaken shutdown, whether the current in the electronic equipment is normal needs to be judged, if the current is normal, the electric quantity of the battery in the electronic equipment is not enough to support the system operation in the electronic equipment, and shutdown is needed, and if the current is over-current, the electronic equipment can be considered to be capable of normally operating under a certain condition.
The overcurrent condition refers to that the current value of the electronic device is greater than a certain threshold, for example, the threshold may be 2V; the current value of the electronic device may also be close to a threshold value larger than the normal operation current, such as 4A, 3.5A, 3A, 2.5A, etc., for example, 3.51-4A is close to 4A; 3.01-3.5A is approximately 3.5A; 2.51-3A is approximately 3A; 2.01-2.5A is approximately 2.5A … …
Step S103: and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from being automatically shut down.
When the current value of the system meets the preset overcurrent condition, an anti-shaking mechanism is triggered, the anti-shaking mechanism is used for shaking the voltage of the battery of the electronic equipment, namely when pulse current occurs, the voltage of the battery of the electronic equipment can be greatly changed, and the anti-shaking mechanism is set for preventing the electronic equipment from being influenced by the large change so as to prevent the electronic equipment from being automatically shut down.
It should be noted that, in the following embodiments, the trigger anti-shake mechanism will be explained in detail, and details are not described in this embodiment.
It should be noted that the values of the thresholds in this embodiment are not limited to the values in this embodiment, and in a specific implementation, other values may also be adopted.
In summary, the method for overcurrent protection provided in this embodiment includes: detecting the battery voltage of the electronic equipment and the current value of a system; judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result; and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from being automatically shut down. By adopting the scheme, after the voltage of the battery is quickly reduced to the first preset threshold value, the current value of the system is determined to be the overcurrent, then the anti-shaking mechanism is triggered, the automatic shutdown of the equipment caused by the continuous period of the pulse current as the overcurrent is prevented, the battery cannot be automatically shut down when the residual electric quantity is more, and the user experience is improved.
As shown in fig. 2, a flowchart of embodiment 2 of a method for overcurrent protection provided by the present application is provided, where the method includes the following steps:
step S201: detecting the battery voltage of the electronic equipment and the current value of a system;
step S201 is the same as step S101 in embodiment 1, and details are not described in this embodiment.
Step S202: based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, judging whether the first voltage value of the battery voltage is larger than a second preset threshold value or not, and obtaining a second judgment result;
in specific implementation, when a battery voltage of the electronic device is greater than a second preset threshold, the electronic device can support system operation, and when the battery voltage is not greater than the second preset threshold, the battery voltage is considered to be less in electric quantity.
Therefore, it is also necessary to determine whether the first voltage value of the battery voltage is greater than a second preset threshold, where the second preset threshold is a value slightly greater than the first preset threshold.
For example, if the shutdown voltage (i.e., the first preset threshold) of the electronic device is 3.4V, the second preset threshold may be 3.5V.
Step S203: controlling the electronic equipment to enter a shutdown process based on the second judgment result that the first voltage value representing the battery voltage is not greater than a second preset threshold value;
when the first voltage value of the battery voltage is not greater than the second preset threshold, it indicates that the remaining capacity of the battery is not sufficient to support the operation of the system, and at this time, the electronic device is controlled to enter a shutdown process to prevent the battery voltage from being extremely attenuated and damaging hardware (batteries and/or other structures) of the electronic device.
Correspondingly, if the first voltage value of the battery voltage is greater than the second preset threshold, it indicates that the remaining capacity of the battery can support the operation of the system, and at this time, to prevent the electronic device from being powered off by mistake, the subsequent steps S204 to S205 are performed.
Step S204: judging whether the current value meets a preset overcurrent condition or not based on the fact that the first voltage value representing the battery voltage of the second judgment result is larger than a second preset threshold value, and obtaining a first judgment result;
step S205: and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from being automatically shut down.
Steps S204 to 205 are the same as steps S102 to 103 in embodiment 1, and are not described in detail in this embodiment.
It should be noted that the values of the thresholds in this embodiment are not limited to the values in this embodiment, and in a specific implementation, other values may also be adopted.
In summary, in the method for overcurrent protection provided in this embodiment, after determining whether the battery voltage is reduced from the first voltage value to the first preset threshold within the preset time period, before determining whether the current value satisfies the preset overcurrent condition, the method further includes: judging whether the first voltage value of the battery voltage is greater than a second preset threshold value or not to obtain a second judgment result; a first voltage value representing the battery voltage based on the second judgment result is greater than a second preset threshold value, and the execution step judges whether the current value meets a preset overcurrent condition; and controlling the electronic equipment to enter a shutdown process based on the second judgment result that the first voltage value representing the battery voltage is not greater than a second preset threshold value. By adopting the method, whether the residual capacity of the battery is enough to support the operation of the system is determined based on the judgment of whether the battery voltage is larger than the second preset threshold value, and the extreme attenuation of the battery voltage is prevented.
As shown in fig. 3, a flowchart of embodiment 3 of a method for overcurrent protection provided by the present application is provided, where the method includes the following steps:
step S301: detecting the battery voltage of the electronic equipment and the current value of a system;
step S302: judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result;
steps S301 to S302 are the same as steps S101 to S102 in embodiment 1, and are not described in detail in this embodiment.
Step S303: and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and adjusting the operating parameters of the electronic equipment so that the electronic equipment maintains a starting state until the current value returns to meet a preset normal condition.
The triggering anti-shake mechanism specifically includes adjusting an operating parameter of the electronic device.
In specific implementation, the operation parameters of the electronic equipment are adjusted, so that the operation state of the electronic equipment is changed correspondingly, and the system can still maintain startup operation even if the current of the system is overcurrent.
Of course, in the specific implementation, since the electronic device operates in the overcurrent state for a period of time, in order to ensure that the battery voltage of the electronic device does not decay excessively, a warning message needs to be generated to remind the user of charging in time.
It should be noted that, since the battery voltage is caused to decrease from the first voltage value to the first preset threshold value within the preset time period due to the pulse current, the pulse current is characterized by a short duration (e.g. several minutes), so that the adjusted operation parameter of the electronic device only needs to be executed during the duration of the pulse current.
In summary, in the method for overcurrent protection provided in this embodiment, the triggering an anti-shake mechanism to prevent the electronic device from automatically shutting down includes: and adjusting the operating parameters of the electronic equipment so that the electronic equipment maintains a starting state until the current value returns to meet the preset normal condition. By adopting the method, the operation state of the electronic equipment is correspondingly changed by adjusting the operation parameters of the electronic equipment, and the system can still maintain startup operation even if the current of the system is overcurrent, so that the user experience is ensured.
As shown in fig. 4, a flowchart of embodiment 4 of a method for overcurrent protection provided by the present application is provided, where the method includes the following steps:
step S401: detecting the battery voltage of the electronic equipment and the current value of a system;
step S402: judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result;
steps S401 to 402 are the same as steps S301 to 302 in embodiment 3, and are not described in detail in this embodiment.
Step S403: and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and reducing the shutdown voltage of the electronic equipment from a first preset threshold value to a third preset threshold value so that the electronic equipment maintains a startup state until the current value returns to meet a preset normal condition.
Wherein the third preset threshold is based on the internal resistance of the battery, the current value of the system and the first preset threshold.
When a pulse current (that is, a current value meets a preset overcurrent condition) occurs in a system of the electronic device, the peak value of the pulse current is generally high and the duration is long, so that the internal resistance of the battery is divided into voltages, the voltage drop of the internal resistance of the battery is large, and the output voltage of the battery is reduced.
And in order to ensure the overall voltage balance of the battery, the shutdown voltage of the electronic equipment is adjusted by combining the internal resistance voltage drop of the battery.
In specific implementation, the third preset threshold value can be calculated according to the internal resistance of the battery, the system current value and the first preset threshold value. Wherein, U1Representing a first predetermined threshold value, U2Representing a third predetermined threshold value, R0Indicating the internal resistance of the battery, I indicating the system current value,
according to the principle of partial pressure, U2=U1-IR0
Namely, the third predetermined threshold is the difference between the first predetermined threshold and the voltage drop of the internal resistance of the battery.
In summary, in the method for overcurrent protection provided in this embodiment, the adjusting the operating parameter of the electronic device specifically includes: and reducing the shutdown voltage of the electronic equipment from a first preset threshold value to a third preset threshold value, wherein the third preset threshold value is related to the first preset threshold value based on the internal resistance of a battery and the current value of the system. By adopting the method, the shutdown voltage of the electronic equipment is adjusted to a lower threshold value, so that the electronic equipment can still operate when pulse current occurs in a system, and the phenomenon of mistaken shutdown is avoided.
As shown in fig. 5, a flowchart of embodiment 5 of a method for overcurrent protection provided by the present application is provided, where the method includes the following steps:
step S501: detecting the battery voltage of the electronic equipment and the current value of a system;
step S502: judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result;
step S503: characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and reducing the shutdown voltage of the electronic equipment from a first preset threshold value to a third preset threshold value so that the electronic equipment maintains a startup state until the current value returns to meet a preset normal condition;
steps S501 to 503 are the same as steps S401 to 403 in embodiment 4, and are not described in detail in this embodiment.
Step S504: and when the current value returns to meet the preset normal condition, adjusting the shutdown voltage of the electronic equipment from a third preset threshold value to a first preset threshold value.
In specific implementation, since the reason that the battery voltage is reduced from the first voltage value to the first preset threshold value within the preset time period is due to the pulse current, and the pulse current is characterized by lasting for a period of time, the current value of the system can be restored to be normal after a period of time, that is, the current value is restored to meet the preset normal condition, at this time, in order to ensure that the electronic device can be shut down when the electric quantity is low, so as to prevent the battery voltage from being extremely attenuated, the shutdown voltage needs to be adjusted back to the first preset threshold value.
In summary, in the method for overcurrent protection provided in this embodiment, after the adjusting the operating parameter of the electronic device, the method further includes: and when the current value returns to meet the preset normal condition, adjusting the shutdown voltage of the electronic equipment from a third preset threshold value to a first preset threshold value. By adopting the method, when the current value of the system is recovered to be normal, the shutdown voltage of the electronic equipment is adjusted to be higher than a first preset threshold value, so that the electronic equipment can be shut down when the electric quantity is lower, and the problem of preventing the extreme attenuation of the battery voltage is prevented.
As shown in fig. 6, a flowchart of embodiment 6 of a method for overcurrent protection provided by the present application is provided, where the method includes the following steps:
step S601: detecting the battery voltage of the electronic equipment and the current value of a system;
step S602: judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result;
steps S601 to 602 are the same as steps S301 to S302 in embodiment 3, and are not described in detail in this embodiment.
Step S603: representing that the current value meets a preset overcurrent condition based on the first judgment result, and acquiring a first application program;
wherein the first application program operation causes the current value of the system to be increased to meet a preset overcurrent condition.
In specific implementation, when an application program in the electronic device is started, the current changes correspondingly.
When an application program starts to run, the current value of the system is increased to meet a preset overcurrent condition, and the application program can be determined to be a first application program.
In specific implementation, the program for detecting the voltage and the current value of the battery in the electronic device may also detect the started application program and the corresponding current value, or other programs in the electronic device may be used in cooperation with the program for detecting the voltage and the current value of the battery, so as to detect the started application program by the other programs.
Step S604: stopping the running of the first application program;
and correspondingly, stopping the operation of the first application program to enable the system current value to return to the original state.
In a specific implementation, the stopping of the running of the first application program may include a shutdown or pause manner.
Step S605: and generating prompt information, wherein the prompt information is used for prompting a user that the system is shut down due to the fact that the user continues to operate the first application program.
The first application program is generally started according to the operation of the user, and accordingly the user needs to be prompted.
Specifically, the prompt is performed in a manner of generating a prompt message, and the prompt message prompts a user that the system is shut down and needs to be charged in time when the user continues to operate the first application program.
In a specific implementation, the prompt may be in the form of a dialog box popped up from the screen, and the dialog box may include corresponding options for turning off the first application and continuing the first application, so that the user may make an autonomous selection.
In specific implementation, the first application program may be turned off according to an operation fed back by a user, so that the current value returns to satisfy a preset normal condition (i.e., an original state), and the electronic device may maintain the power-on state until the current value is restored.
In summary, in the method for overcurrent protection provided in this embodiment, the adjusting the operating parameter of the electronic device specifically includes: acquiring a first application program, wherein the operation of the first application program causes the current value of the system to be increased to meet a preset overcurrent condition; stopping the running of the first application program; and generating prompt information, wherein the prompt information is used for prompting a user that the system is shut down due to the fact that the user continues to operate the first application program. By adopting the method, the current value of the system is reduced by stopping the operation of the first application program which causes the current value of the system to be increased to meet the preset overcurrent condition, and the problem of preventing the extreme attenuation of the voltage of the battery is prevented.
Corresponding to the embodiment of the method for overcurrent protection provided by the application, the application also provides an embodiment of electronic equipment applying the method for overcurrent protection.
Fig. 7 is a schematic structural diagram of an embodiment 1 of an electronic device for overcurrent protection according to the present application, where the electronic device includes the following structures: a battery 701, a system 702, and a processor 703;
the battery 701 provides power for the electronic device;
the system 702 is a generic term for a component structure in an electronic device, which consumes power of the battery;
the processor 703 is configured to detect a battery voltage of the electronic device and a current value of a system; judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result; and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from being automatically shut down.
In one embodiment, the battery also provides power to the processor, which may be a component of the system.
In a specific implementation, the processor may be a structure with data processing capability, such as a Central Processing Unit (CPU).
Preferably, the processor triggers an anti-shake mechanism to prevent the electronic device from automatically shutting down, and specifically includes:
and adjusting the operating parameters of the electronic equipment so that the electronic equipment maintains a starting state until the current value returns to meet a preset normal condition.
Preferably, the processor adjusts the operating parameters of the electronic device, and specifically includes:
and reducing the shutdown voltage of the electronic equipment from a first preset threshold value to a third preset threshold value, wherein the third preset threshold value is related to the first preset threshold value based on the internal resistance of a battery and the current value of the system.
Preferably, the processor adjusts the operating parameters of the electronic device, and specifically includes:
acquiring a first application program, wherein the operation of the first application program causes the current value of the system to be increased to meet a preset overcurrent condition;
stopping the running of the first application program;
and generating prompt information, wherein the prompt information is used for prompting a user that the system is shut down due to the fact that the user continues to operate the first application program.
In summary, the electronic device for overcurrent protection provided by this embodiment includes: a battery; a system; the processor is used for detecting the battery voltage of the electronic equipment and the current value of a system; judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result; and characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from being automatically shut down. By adopting the scheme, after the voltage of the battery is quickly reduced to the first preset threshold value, the current value of the system is determined to be the overcurrent, then the anti-shaking mechanism is triggered, the automatic shutdown of the equipment caused by the continuous period of the pulse current as the overcurrent is prevented, the battery cannot be automatically shut down when the residual electric quantity is more, and the user experience is improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.
Claims (6)
1. A method for overcurrent protection, the method being applied to an electronic device, the method comprising:
detecting the battery voltage of the electronic equipment and the current value of a system;
judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result;
characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from automatically shutting down;
wherein the triggering an anti-shake mechanism to prevent the electronic device from automatically shutting down includes:
adjusting the operating parameters of the electronic equipment so that the electronic equipment maintains a starting state until the current value returns to meet a preset normal condition;
wherein, the adjusting the operation parameters of the electronic device specifically includes:
and reducing the shutdown voltage of the electronic equipment from a first preset threshold value to a third preset threshold value, wherein the third preset threshold value is related to the first preset threshold value based on the internal resistance of the battery and the current value of the system, so that the electronic equipment maintains a startup state until the current value returns to meet a preset normal condition.
2. The method of claim 1, wherein after determining whether the battery voltage decreases from the first voltage value to the first preset threshold value within a preset time period, and before determining whether the current value satisfies a preset overcurrent condition, the method further comprises:
judging whether the first voltage value of the battery voltage is greater than a second preset threshold value or not to obtain a second judgment result;
a first voltage value representing the battery voltage based on the second judgment result is greater than a second preset threshold value, and the execution step judges whether the current value meets a preset overcurrent condition;
and controlling the electronic equipment to enter a shutdown process based on the second judgment result that the first voltage value representing the battery voltage is not greater than a second preset threshold value.
3. The method of claim 1, wherein after adjusting the operating parameter of the electronic device, further comprising:
and when the current value returns to meet the preset normal condition, adjusting the shutdown voltage of the electronic equipment from a third preset threshold value to a first preset threshold value.
4. The method according to claim 1, wherein the adjusting the operating parameters of the electronic device specifically comprises:
acquiring a first application program, wherein the operation of the first application program causes the current value of the system to be increased to meet a preset overcurrent condition;
stopping the running of the first application program;
and generating prompt information, wherein the prompt information is used for prompting a user that the system is shut down due to the fact that the user continues to operate the first application program.
5. An electronic device, comprising:
a battery;
a system;
the processor is used for detecting the battery voltage of the electronic equipment and the current value of a system; judging whether the current value meets a preset overcurrent condition or not based on the fact that the battery voltage is reduced from a first voltage value to a first preset threshold value within a preset time period, and obtaining a first judgment result; characterizing that the current value meets a preset overcurrent condition based on the first judgment result, and triggering an anti-shake mechanism to prevent the electronic equipment from automatically shutting down;
the processor triggers an anti-shake mechanism to prevent the electronic device from automatically shutting down, and specifically includes:
adjusting the operating parameters of the electronic equipment so that the electronic equipment maintains a starting state until the current value returns to meet a preset normal condition;
wherein, the processor adjusts the electronic device operation parameters, and specifically comprises:
and reducing the shutdown voltage of the electronic equipment from a first preset threshold value to a third preset threshold value, wherein the third preset threshold value is related to the first preset threshold value based on the internal resistance of a battery and the current value of the system.
6. The electronic device of claim 5, wherein the processor adjusts the operating parameters of the electronic device, and specifically comprises:
acquiring a first application program, wherein the operation of the first application program causes the current value of the system to be increased to meet a preset overcurrent condition;
stopping the running of the first application program;
and generating prompt information, wherein the prompt information is used for prompting a user that the system is shut down due to the fact that the user continues to operate the first application program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810291462.1A CN108539721B (en) | 2018-03-30 | 2018-03-30 | Overcurrent protection method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810291462.1A CN108539721B (en) | 2018-03-30 | 2018-03-30 | Overcurrent protection method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108539721A CN108539721A (en) | 2018-09-14 |
CN108539721B true CN108539721B (en) | 2020-06-23 |
Family
ID=63482329
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810291462.1A Active CN108539721B (en) | 2018-03-30 | 2018-03-30 | Overcurrent protection method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108539721B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104584371B (en) * | 2013-05-17 | 2017-06-27 | 三洋电机株式会社 | The discharge control method of Battery pack and secondary cell |
CN104423275B (en) * | 2013-08-19 | 2017-02-08 | 联想移动通信科技有限公司 | System voltage control device, method and terminal |
WO2017140383A1 (en) * | 2016-02-19 | 2017-08-24 | Toyota Motor Europe | Systems and methods for battery micro-short estimation |
CN106210263B (en) * | 2016-06-21 | 2020-04-03 | 贵州财富之舟科技有限公司 | Mobile terminal shutdown method and system and mobile terminal |
-
2018
- 2018-03-30 CN CN201810291462.1A patent/CN108539721B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108539721A (en) | 2018-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10776128B2 (en) | Method and device for low power power-on processing | |
US9472967B2 (en) | Power management system and method for a portable device | |
EP4164080A1 (en) | On-grid/off-grid scheduling method and apparatus, and energy-storage power supply system | |
KR100677455B1 (en) | Booting control apparatus and method for mobile communication device | |
US20090134704A1 (en) | Electric power-supply apparatus and over-discharge control method for use therewith | |
KR20120113165A (en) | Method for controlling charging current | |
CN102959488B (en) | For controlling the method and system of supply voltage | |
CN113453108A (en) | Wireless earphone, wireless earphone system and wireless earphone shutdown method | |
EP2782202B1 (en) | Protection method of electronic device and electronic device | |
US20130222957A1 (en) | Electronic device and protection circuit and protection method | |
CN108539721B (en) | Overcurrent protection method and electronic equipment | |
CN112534675A (en) | Fast battery charging | |
CN107202958B (en) | Method and apparatus for testing condition of battery | |
JP4435000B2 (en) | Battery control circuit, electronic device equipped with the battery control circuit, charge control program, and charge control method | |
US11218015B2 (en) | Charge protection circuit, charger, electronic device, and charge protection method | |
CN106877452B (en) | Charging method and charging device | |
JP5334546B2 (en) | How to calculate the remaining battery capacity | |
CN115173535A (en) | Discharge circuit of energy storage module, standby power capacity determination method and related components | |
US20230148678A1 (en) | Electrical System for an Aerosol Generating Device | |
KR20180098148A (en) | Power supply circuit for memory, control apparatus, and power supply method for memory | |
WO2011093014A1 (en) | Information processing apparatus and control method of information processing apparatus | |
JP5851980B2 (en) | Power supply start / stop control circuit | |
CN218124342U (en) | Power supply system and ultrasonic diagnostic equipment | |
US11445111B2 (en) | Image capture apparatus and control method | |
CN116598614A (en) | Energy storage device and key processing method thereof |
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 |