Charging protection method and device, equipment and storage medium
By periodically detecting the battery charging current and setting it is not greater than the historical average, the problems of current jitter and interruption during charging are solved, and the battery durability and service life are improved.
Patent Information
- Application Number
- CN202311007963.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-10
- Publication Date
- 2025-02-18
AI Technical Summary
The prior art directly performs step-down and current limiting during the charging process, causing charging current to jitter, causing charging interruption, and affecting the normal cutoff of the charging process.
By periodically detecting the charging current value of the battery, when the current limiting condition is met, the average value of the most recently detected historical charging current value is determined, and the charging current is set to not exceed the average value.
The charging current value is achieved to reduce the charging current value, avoid the sudden decrease and increase of the charging current, reduce the risk of charging outage, and extend the service life of the battery.
Smart Images

Figure CN119482782A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a charging protection method, device, equipment and computer-readable storage medium. Background Art
[0002] In the related art, in order to improve battery aging and battery durability, voltage reduction and current limiting are directly performed during the charging process. However, directly performing voltage reduction and current limiting during the charging process will cause the charging current to fluctuate, thereby causing charging interruption and affecting the normal termination of the charging process. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a charging protection method, device, equipment and computer-readable storage medium, which can solve the above problems.
[0004] According to a first aspect of an embodiment of the present disclosure, a charging protection method is provided, which is executed by a terminal, and the method includes: periodically detecting the charging current value of a battery; when the battery meets a current limiting condition, determining an average value of a first number of historical charging current values recently detected by the battery; and setting the charging current of the battery to be no greater than the average value.
[0005] According to a second aspect of an embodiment of the present disclosure, a charging protection device is provided, which is configured in a terminal, and the device includes: a detection unit, configured to periodically detect the charging current value of a battery; a determination unit, configured to determine an average value of a first number of historical charging current values recently detected by the battery when the battery meets a current limiting condition; and a setting unit, configured to set the charging current of the battery to be no greater than the average value.
[0006] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the charging protection method as described in the first aspect by calling the computer program.
[0007] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the charging protection method as described in the first aspect is implemented.
[0008] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0009] In the case where current limiting is required during the charging process, the present disclosure performs current limiting based on the average value of the first number of charging current values recently detected by the battery, so that the charging current value can be reduced more gradually, and will not suddenly decrease and then suddenly increase to cause fluctuations, causing charging interruption. By reducing the charging power through current limiting, battery aging can be slowed down and battery durability can be improved.
[0010] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0012] Figure 1 It is a schematic flow chart of a charging protection method according to an exemplary embodiment of the present disclosure.
[0013] Figure 2 It is a schematic diagram for comparing the effects of a charging protection method according to an exemplary embodiment of the present disclosure.
[0014] Figure 3 It is a schematic diagram of a method for storing a charging current value according to an exemplary embodiment of the present disclosure.
[0015] Figure 4 It is a schematic flow chart of a charging protection method according to an exemplary embodiment of the present disclosure.
[0016] Figure 5 It is a block diagram of a charging protection device according to an exemplary embodiment of the present disclosure.
[0017] Figure 6 It is a schematic block diagram of a charging protection device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0019] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0020] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0021] Figure 1 The present invention is a schematic flow chart of a charging protection method according to an embodiment of the present invention, and the charging protection method can be executed by a terminal. The terminal includes but is not limited to a communication device such as a mobile phone, a tablet computer, a wearable device, a sensor, and an Internet of Things device.
[0022] like Figure 1 As shown, the charging protection method includes:
[0023] In step S101, the charging current value of the battery is periodically detected;
[0024] In step S102, when the battery meets the current limiting condition, an average value of a first number of historical charging current values recently detected by the battery is determined;
[0025] In step S103, the charging current of the battery is set to be no greater than the average value.
[0026] In some embodiments, the terminal may periodically detect the charging current value of the battery through FCC voting.
[0027] In some embodiments, the terminal may record the detected charging current value.
[0028] The terminal may determine an average value of the first number of historical charging current values according to the recorded charging current values.
[0029] In some embodiments, the historical charging current value recorded by the terminal is not less than a first number and not greater than a second number, wherein the second number is greater than the first number.
[0030] The terminal can erase the historical charging current values that are far away from the current moment according to the timestamp of the recorded charging current value, and record a new charging current value to ensure that the recorded charging current value can meet the requirement of determining the average value of the first number of historical charging current values and is not greater than the second number to avoid wasting storage resources.
[0031] In some embodiments, when the battery meets the current limiting condition, the average value of the first number of historical charging current values recently detected by the battery is determined. When the battery meets the current limiting condition, it means that the charging power needs to be limited.
[0032] The battery charging can include constant current fast charging mode and constant voltage slow charging mode. The terminal can limit the current in the following situations: when switching from constant current fast charging mode to constant voltage slow charging mode; when there is a fault in the battery; when the battery temperature rises too quickly.
[0033] If the current limiting conditions are met, it indicates that the battery does not need to be charged at the current higher power, or that continuing to charge the battery at a higher power will be dangerous. In this case, the charging process can be current limited to avoid battery damage, improve battery durability, and prevent battery aging.
[0034] In some embodiments, the value of the first number may affect the technical effect of current limiting.
[0035] Specifically, if the value of the first number is larger, the impact of the charging current value reduced at the current moment on the average value of the historical charging current values of the first number will be smaller, making the current limiting process smoother but taking longer; if the value of the first number is smaller, the charging current value reduced at the current moment will have a greater impact on the average value of the historical charging current of the first number, resulting in the charging current value decreasing at a faster rate after the current limiting measures are taken. While shortening the current limiting time, it will also cause the charging current value to change more dramatically during the current limiting process, which may cause the wireless charging to be disconnected or repeatedly to a higher charging current value due to the fast charging algorithm.
[0036] In some embodiments, the first number may be thirty.
[0037] In some embodiments, determining the average value of the first number of historical charging current values that are most recently detected by the battery includes: the terminal can determine the arithmetic mean of the FCC vote of the jeita specification (Japan Electronics and Information Technology Industries Association) of the first number of battery detections most recently through FCC voting, as the average value of the first number of historical charging current values that are most recently detected by the battery.
[0038] In some embodiments, the charging current of the battery is set to be no greater than the average value.
[0039] It should be noted that after executing the charging protection method proposed in the present disclosure, each charging current value is based on the average value, and the current charging current value is set to be no greater than the average value.
[0040] Furthermore, since the terminal is still continuously detecting the charging current of the battery, the reduced charging current value will also be counted in the first number of historical charging current values, so that each reduction in the charging current value will reduce the average value of the most recent first number of historical charging current values, and each reduced charging current value has a small impact on the average value, so that the average value will not be reduced too quickly, and each charging current value will not be reduced too much. Therefore, the charging current set to be no greater than the average value can maintain a relatively gentle reduction trend.
[0041] In some embodiments, setting the charging current of the battery to be no greater than the average value includes: setting the current charging current of the battery to the product of the average value and a first coefficient, where the first coefficient is greater than 0 and less than 1.
[0042] The technical effect of the method disclosed herein will be described below with the first coefficient being 0.8.
[0043] In the related technology, current limiting is performed on the basis of the last charging current. Therefore, if the last charging current is 4000mA, after executing the current limiting algorithm, the first charging current drops to 3200mA, the second charging current drops to 2560mA, the third charging current drops to 2048mA, and the fourth charging current drops to 1638.4mA. The current limiting time interval for each charging current is short, resulting in a rapid decrease in the charging current within a short period of time. At this time, other charging algorithms of the terminal may be triggered. Based on the incomplete battery capacity, the low charging current is corrected and raised to 4000mA again, completing a charging current fluctuation.
[0044] In the present disclosure, the first number is 30 as an example. Since the battery is in constant current charging before the current limiting algorithm is executed, the charging current values for 30 times are all 4000mA, and the average value is also 4000mA. At this time, the first current limiting reduces the charging current to 3200mA. When the current limiting operation is performed for the second time, since it is necessary to determine the average value of the charging currents of the first 30 times, the new charging current of 3200mA replaces the earliest charging current of 4000mA, so that the average value becomes (29×4000mA+3200mA) / 30=3973mA. Therefore, the second current limiting reduces the charging current to 3973mA×0.8=3178mA. Similarly, during the third current limiting, the average value of the charging currents of the first 30 times is (28×4000mA+3200mA+3178mA) / 30=3946mA, and the charging current for the third time is reduced to 3946mA×0.8=3157mA.
[0045] Without using the charging protection method disclosed in the present invention, the current limiting of the charging current is reduced from 4000mA to 3200mA and 2560mA, while with the method disclosed in the present invention, the current limiting of the charging current is reduced from 4000mA to 3200mA, 3178mA and 3157mA.
[0046] Figure 2 FIG. 1 is a schematic diagram showing a comparison of the effects of a charging protection method according to an embodiment of the present disclosure. Figure 2 As shown, Figure 2 The dashed box in the figure is the current limiting process of the charging current during the charging process. The charging protection method disclosed in the present invention can make the current limiting process of the charging current smoother, avoid the problem of wireless charging interruption caused by the rapid decrease of the charging current, and the repeated fluctuation of the charging current, thereby improving the durability of the battery and avoiding battery aging.
[0047] The charging protection method proposed in the present invention achieves smooth current limiting of the charging current by determining the average value of the first number of historical charging current values recently detected by the battery, and sets a charging current not greater than the average value based on the average value, thereby avoiding fluctuations in the charging current. When the battery meets the current limiting conditions, the charging power is reduced, the battery aging is slowed down, and the durability of the battery is improved.
[0048] In some embodiments, the detected charging current value may be stored in the form of a circle queue.
[0049] When the terminal enters the charging state, the circular queue structure can be cleared, and the size (size) of the circular queue structure is specified according to the value of the first quantity, and is smaller than the maximum value (Max Size) of the circular queue structure.
[0050] Figure 3 FIG. 1 is a schematic diagram of a method for storing a charging current value according to an embodiment of the present disclosure. Figure 3 As shown, in the circular queue 301, a head pointer 303 and a tail pointer 302 are included, which are used to indicate the head and tail of the historical charging current value 304 stored in the circular queue. The historical charging current value 304 is stored between the head pointer 303 and the tail pointer 302, wherein each black square indicates that a historical charging current value is stored, and the circular queue in the figure stores 36 historical charging current values.
[0051] Whenever the terminal detects a new charging current value, the newly detected charging current value can be stored in the memory space pointed to by the head pointer. The head pointer 303 will Figure 3 If the number of historical charging current values 304 stored in the circular queue exceeds the set size, the tail pointer 302 will also move one grid to the right to eliminate the charging current value stored in the memory space pointed to by the tail pointer 302; if the head pointer 303 coincides with the tail pointer 302, the tail pointer 302 will also move one grid to the right.
[0052] In some embodiments, the method further includes: determining status information of the battery; and judging whether the battery meets the current limiting condition according to the status information.
[0053] The current limiting condition may include the conversion stage of the charging mode of the battery during the normal charging process. For example, the conversion from the constant current fast charging mode to the constant voltage slow charging mode. It may also include the battery being in an abnormal state. In an abnormal state, current limiting is used to avoid further damage to the battery due to excessive charging power, thereby improving battery durability.
[0054] Figure 4 It is a schematic flow chart of a charging protection method according to an embodiment of the present disclosure.
[0055] In some embodiments, determining the status information of the battery includes:
[0056] In step 401, a preset register on the battery management module is read to obtain the status information of the battery; wherein the status information of the battery is written into the preset register after the firmware burned on the battery management module detects the status of the battery.
[0057] like Figure 4 As shown, the process of calling the charging protection method disclosed in the present invention is as follows:
[0058] In step 400, the terminal can determine whether it is in a charging state. If it is not in a charging state, the process ends. If it is in a charging state, the battery detection task can be started and step 401 is executed to achieve periodic detection of the battery status.
[0059] In step 401, a preset register on the battery management module 410 can be read to obtain battery status information; wherein, the terminal can periodically read the preset register through the IIC bus (Inter-Integrated Circuit) protocol, and the preset register includes at least one of the following: an internal short circuit (ISC) register and a safe operating area (SOA) register; ISC can be used to determine the short circuit condition inside the battery, and SOA can be used to determine whether the temperature change rate of the battery exceeds a preset value.
[0060] In step 402, it is determined whether the preset register on the battery is set, that is, whether the content stored in the register is changed; if there is no change, the battery is continuously detected and step 401 is executed; if the register is set, step 403 is executed;
[0061] In step 403, the charging protection method is called, that is, the charging protection method proposed in the present disclosure is executed, and when it is determined according to the battery status information that the battery meets the current limiting condition, the current limiting method is executed.
[0062] In the above process, the battery status information is written into the preset register by the battery management module 410. The battery management module 410 is described below:
[0063] The battery management module 410 includes a burned firmware; the firmware can periodically execute step 411 to detect the status information of the wire transfer in real time, and execute step 412 to update the preset register according to the current status information of the battery.
[0064] The battery management module can thus update a preset register according to the current status information of the battery, and provide the status information in the preset register to the terminal in step 401 .
[0065] By detecting the battery, the terminal can determine whether there are any hardware abnormalities in the battery during charging, and can detect changes in battery materials caused by the battery in some application scenarios, such as slight drops of the terminal, natural aging, high temperature environments, long-term use, etc. These scenarios will cause the materials inside the battery to change to varying degrees.
[0066] However, if a high-power charging method is still used when the internal materials of the battery have changed and there may be abnormalities, it may cause the battery to age faster, reduce durability, or even be damaged. In severe cases, the battery may burn or explode. Therefore, when the present invention determines that the terminal battery has a hardware abnormality and meets the current limiting conditions, it reduces the charging current and the charging power, thereby improving the battery durability.
[0067] In some embodiments, the status information includes at least one of the following: internal short-circuit current of the battery; and temperature information of the battery.
[0068] The internal short-circuit current of the battery can be determined by reading the status information of the ISC register, and the temperature information of the battery can be determined by reading the status information of the SOA register.
[0069] In some embodiments, judging whether the battery meets the current limiting condition based on the status information includes at least one of the following: judging whether there is a short circuit in the battery based on the internal short-circuit current; judging whether the temperature change rate of the battery is greater than a first threshold value based on the temperature information.
[0070] For example, the short circuit level can be set according to the value of the internal short circuit circuit, and the higher the short circuit level, the more serious the internal short circuit of the battery. When the internal short circuit current of the battery reaches the set short circuit level, it is determined that the battery meets the current limiting condition.
[0071] For example, the temperature of the battery can be determined based on the temperature information, and when the battery temperature is greater than a temperature threshold, it is determined that the battery is in a high temperature environment and meets the current limiting condition.
[0072] For example, based on the temperature information, it can be determined whether the temperature change rate of the battery is greater than the first threshold. When the temperature change rate is greater than the first threshold, it is determined that the terminal battery may be heating up too quickly due to hardware abnormalities or the external usage environment. It is then determined that the current limiting conditions are met and the charging current needs to be reduced to reduce the charging power, thereby avoiding battery aging problems caused by rapid heating and improving battery durability.
[0073] In some embodiments, the method further includes: determining a charging voltage of the battery in a constant voltage charging state, the charging voltage being less than a floating voltage of the battery; and charging the battery in the constant voltage charging state according to the determined charging voltage.
[0074] Generally speaking, the floating voltage of a battery is the maximum voltage that the battery reaches when fully charged, and is also the charging voltage during constant voltage charging. However, in order to speed up the charging process, some manufacturers increase the floating voltage to charge the battery with a higher voltage, which may cause oversaturation of charging.
[0075] For example, the full-charge voltage of the battery is 4.5V, and some fast-charging algorithms will use a floating voltage of 4.53V to charge the battery. However, the present disclosure controls the charging voltage to be lower than the floating voltage of the battery to avoid over-saturation of the battery and affect the battery life.
[0076] In some embodiments, controlling the charging voltage to be less than the floating voltage of the battery includes: the charging voltage value is the difference between the floating voltage value and a preset reduction; and / or the charging voltage value is the product of the floating voltage value and a second coefficient, and the second coefficient is greater than 0 and less than 1.
[0077] If the preset reduction is too large, it will greatly affect the speed at which the battery is fully charged under constant voltage charging. If the preset reduction is too small, it cannot prevent oversaturation charging. Therefore, the specific preset reduction can be measured in the laboratory, and different batteries and terminals can also use different preset reductions.
[0078] In some embodiments, the preset reduction amplitude may be 15 mV.
[0079] For the above-mentioned battery with a full-charge voltage of 4.5V, the floating voltage based on the fast charging algorithm is 4.53V. The preset reduction can be determined as 15mV based on the laboratory test results, that is, the constant-voltage charging voltage determined by the present disclosure for the battery can be 4.515V, which can avoid over-saturation while ensuring charging efficiency.
[0080] In some embodiments, the preset reduction rate can be adjusted according to the user's usage habits.
[0081] For example, based on the usage habits of a certain user, it is determined that it takes a total of 3 hours for the user's terminal to enter the constant-voltage charging process and disconnect from the charger to end charging, and the battery of the terminal reaches the full charging voltage for the first time after 1 hour of constant-voltage charging. The preset reduction rate can be adjusted so that the terminal reaches the full charging voltage for the first time after 3 hours of the constant-voltage charging process, which is in line with the user's usage habits and avoids oversaturation of the battery.
[0082] In some embodiments, setting the charging current of the battery to be no greater than the average value includes: when the voltage of the battery is less than the fast charge cut-off voltage and / or the battery is in a non-constant voltage charging mode, setting the charging current of the battery to be no greater than the average value.
[0083] When the battery voltage reaches the fast charge cut-off voltage, the battery is about to be fully charged. At this time, the battery will generally adjust the charging strategy, not use a large current for charging, and adopt a certain degree of current limiting. Therefore, the battery protection method of the present invention may not be executed; similarly, when the battery is in a constant voltage charging mode, the voltage is constant, and as the battery capacity increases, the charging current will gradually decrease. At this time, there is no problem of high charging power due to a large charging current, and the battery life and durability will not be affected.
[0084] Therefore, when the battery voltage is lower than the fast charge cut-off voltage, and / or the battery is in a non-constant voltage charging mode, it means that the terminal will execute a fast charge strategy, using a larger current and a larger charging power to charge the battery. This, combined with a hardware failure in the battery, may lead to serious consequences such as reduced battery life and durability.
[0085] In some embodiments, the method also includes: when the voltage of the terminal battery is less than the fast charging cut-off voltage and the battery is in a non-constant voltage charging mode, when it is determined according to the battery status information that the current limiting condition is met, executing a current limiting and voltage reduction method to achieve charging protection for the battery.
[0086] Corresponding to the embodiment of the charging protection method of the present disclosure, the present disclosure also provides an embodiment of a corresponding charging protection device.
[0087] See also Figure 5 , Figure 5 FIG. 1 is a block diagram of a charging protection device in one embodiment of the present disclosure. Figure 5 As shown, the charging protection device includes:
[0088] The detection unit 510 is configured to periodically detect the charging current value of the battery;
[0089] A determination unit 520, configured to determine an average value of a first number of historical charging current values recently detected by the battery when the battery meets the current limiting condition;
[0090] The setting unit 530 is configured to set the charging current of the battery to be no greater than the average value.
[0091] In some embodiments, the device is further configured to: determine status information of the battery; and determine whether the battery meets the current limiting condition based on the status information.
[0092] In some embodiments, determining the status information of the battery includes: reading a preset register on a battery management module to obtain the status information of the battery; wherein the status information of the battery is written into the preset register after the firmware burned on the battery management module detects the status of the battery.
[0093] In some embodiments, the status information includes at least one of the following: internal short-circuit current of the battery; and temperature information of the battery.
[0094] In some embodiments, judging whether the battery meets the current limiting condition based on the status information includes at least one of the following: judging whether there is a short circuit in the battery based on the internal short-circuit current; judging whether the temperature change rate of the battery is greater than a first threshold value based on the temperature information.
[0095] In some embodiments, the device is further configured to: determine a charging voltage of the battery in a constant voltage charging state, wherein the charging voltage is less than a floating voltage of the battery; and charge the battery in the constant voltage charging state according to the determined charging voltage.
[0096] In some embodiments, the setting unit is specifically configured to: when the voltage of the battery is less than the fast charge cut-off voltage and / or the battery is in a non-constant voltage charging mode, set the charging current of the battery to be no greater than the average value.
[0097] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0098] An embodiment of the present disclosure further provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute a charging protection method as described in any of the above embodiments by calling the computer program.
[0099] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the charging protection method as described in any of the above embodiments is implemented.
[0100] Figure 6 6 is a schematic block diagram of a charging protection device 600 according to an embodiment of the present disclosure. For example, the device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0101] Reference Figure 6 , the device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0102] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned information receiving method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0103] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0104] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0105] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0106] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0107] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0108] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and the temperature change of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0109] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 616 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 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0110] In an exemplary embodiment, the device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned information receiving method.
[0111] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 to complete the above-mentioned information receiving method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0112] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0113] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0114] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0115] The method and device provided in the embodiments of the present disclosure are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method of the present disclosure and its core idea. At the same time, for those skilled in the art, according to the idea of the present disclosure, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present disclosure.
Claims
1. A charging protection method, characterized in that: Executed by a terminal, the method includes: Periodically detect the charging current value of the battery; When the battery meets the current limiting condition, determining an average value of a first number of historical charging current values recently detected by the battery; The charging current of the battery is set to be no greater than the average value.
2. The method according to claim 1, characterized in that The method further comprises: Determining status information of the battery; It is determined whether the battery meets the current limiting condition according to the status information.
3. The method according to claim 2, characterized in that The determining the status information of the battery includes: Reading a preset register on a battery management module to obtain status information of the battery; The battery status information is written into the preset register after the firmware burned into the battery management module detects the battery status.
4. The method according to claim 2, characterized in that: The status information includes at least one of the following: The internal short-circuit current of the battery; Temperature information of the battery.
5. The method according to claim 4, characterized in that The determining, according to the status information, whether the battery meets the current limiting condition includes at least one of the following: judging whether there is a short circuit in the battery according to the internal short-circuit current; It is determined whether a temperature change rate of the battery is greater than a first threshold value according to the temperature information.
6. The method according to claim 1, characterized in that The method further comprises: determining a charging voltage of the battery in a constant voltage charging state, the charging voltage being less than a floating voltage of the battery; In the constant voltage charging state, the battery is charged according to a determined charging voltage.
7. The method according to any one of claims 1 to 6, characterized in that The step of setting the charging current of the battery to be no greater than the average value comprises: When the voltage of the battery is less than the fast charge cut-off voltage and / or the battery is in a non-constant voltage charging mode, the charging current of the battery is set to be no greater than the average value.
8. A charging protection device, characterized in that: Configured in a terminal, the device includes: A detection unit, configured to periodically detect a charging current value of the battery; a determining unit configured to determine an average value of a first number of historical charging current values recently detected by the battery when the battery meets a current limiting condition; The setting unit is configured to set the charging current of the battery to be no greater than the average value.
9. An electronic device, characterized in that: include: Processor, memory; The memory is used to store computer programs; The processor is used to execute the charging protection method according to any one of claims 1 to 7 by calling the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the charging protection method described in any one of claims 1 to 7 is implemented.