Charging method and electronic equipment
By adjusting the cutoff voltage during the coordinated working of the charging chip and the battery meter, the problem of insufficient battery full charge capacity caused by charging chip detection error is solved, and the battery charging efficiency and safety are improved.
Patent Information
- Application Number
- CN202310575327.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-19
- Publication Date
- 2024-11-22
AI Technical Summary
Due to the sampling error when the charging chip detects the battery voltage, the cutoff voltage setting is insufficient, which affects the actual capacity when the battery is fully charged.
By adjusting the cutoff voltage according to the battery voltage detected by the battery meter in the coordinated work of the charging chip and the battery meter, ensuring that the actual voltage of the battery during the constant voltage charging stage is maximized and overcharge is avoided.
It improves the actual battery voltage and capacity when the battery is fully charged, and at the same time enhances charging safety to prevent overcharge or overdischarge caused by excessive cutoff voltage adjustments.
Smart Images

Figure CN119010246A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a charging method and an electronic device. Background Art
[0002] Electronic devices such as mobile phones, tablet computers, and laptop computers include batteries and charging chips. When the electronic device is connected to a charger, the power output by the charger needs to be input to the battery through the charging chip. The charging chip can adjust the charging voltage and charging current input to the battery. In the related art, a cut-off voltage is set in the charging chip. When the charging chip detects that the battery voltage is equal to the cut-off voltage, it starts to charge the battery at a constant voltage at the cut-off voltage.
[0003] However, since the charging chip has sampling errors when detecting the battery voltage, the cut-off voltage is generally lower than the rated voltage of the battery to prevent overcharging of the battery. In this case, when the charging chip detects that the battery voltage is equal to the cut-off voltage, due to the sampling error of the charging chip, the actual minimum battery voltage may be the difference between the cut-off voltage and the sampling error of the charging chip, which will greatly affect the actual capacity of the battery when fully charged. Summary of the invention
[0004] The present application provides a charging method and an electronic device, which can increase the actual battery voltage when the battery is fully charged, thereby increasing the actual capacity of the battery when it is fully charged.
[0005] In a first aspect, a charging method is provided. The charging method is applied to a charging chip in an electronic device. When the charging chip is working, the battery in the electronic device can be charged according to the cut-off voltage. That is, when the battery voltage detected by the charging chip is equal to the cut-off voltage, the charging chip performs constant voltage charging on the battery. The cut-off voltage is the initial voltage when the battery enters the constant voltage charging stage. The electronic device also includes a fuel meter, and the sampling error of the fuel meter is less than the sampling error of the charging chip. The charging method includes the following steps:
[0006] During the constant voltage charging process of the battery, if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, the cut-off voltage is increased by a preset voltage; after the cut-off voltage is increased by a first preset time after the preset voltage, if the charging chip determines that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and less than or equal to the second voltage threshold, the cut-off voltage is kept unchanged during the constant voltage charging process of the battery.
[0007] Wherein, the charging chip is connected to the fuel gauge for receiving the battery voltage detected by the fuel gauge and sent by the fuel gauge. The value range of the first voltage threshold is: the first voltage threshold is greater than or equal to the difference between the initial voltage and the sampling error of the charging chip, and the first voltage threshold is less than or equal to the sum of the initial voltage and the sampling error of the charging chip. The first voltage threshold is less than the second voltage threshold. The second voltage threshold is less than or equal to the difference between the rated voltage of the battery and the sampling error of the fuel gauge. In some embodiments, the first voltage threshold may be equal to the initial voltage. The second voltage threshold may be equal to the difference between the rated voltage of the battery and the sampling error of the fuel gauge.
[0008] In the present application, during the constant voltage charging process of the battery, the charging chip can adjust the cut-off voltage according to the battery voltage detected by the fuel gauge with a small sampling error. When the battery enters the constant voltage charging stage, the cut-off voltage is the initial voltage. In this case, if the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, it indicates that the actual battery voltage is small. At this time, the charging chip increases the cut-off voltage by a preset voltage, that is, the cut-off voltage is increased. After the cut-off voltage is increased, the actual battery voltage will change. After the first preset time after the cut-off voltage increases by the preset voltage, the battery voltage detected by the charging chip is equal to the cut-off voltage after the preset voltage is increased. At this time, if the battery voltage detected by the fuel gauge is greater than the first voltage threshold and less than or equal to the second voltage threshold, indicating that the actual battery voltage is large, the cut-off voltage is kept unchanged during the constant voltage charging process of the battery. That is, at this time, the battery is charged at a constant voltage according to the increased cut-off voltage. In this process, since the cut-off voltage is increased and the battery voltage error detected by the fuel gauge is small, the minimum and maximum values of the actual battery voltage when the battery is fully charged will increase, which can increase the actual battery voltage when the battery is fully charged, thereby increasing the actual capacity of the battery when it is fully charged.
[0009] In some embodiments, the charging method further includes the step of: the charging chip sets M equal to 0 when the battery enters the constant voltage charging stage.
[0010] In this case, during the constant voltage charging of the battery, if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, the step of increasing the cut-off voltage by a preset voltage may specifically be: during the constant voltage charging of the battery, if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, and M is equal to 0, the cut-off voltage is increased by a preset voltage, and M=M+1.
[0011] At this time, the charging method further includes the following steps: after the cut-off voltage is increased by the preset voltage for the first preset time, if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, and M is less than the first preset threshold, the cut-off voltage is increased by the preset voltage, and M=M+1. And, after the cut-off voltage is increased by the preset voltage for the first preset time, if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, and M is greater than or equal to the first preset threshold, the cut-off voltage is set to the initial voltage.
[0012] Among them, M can be used to characterize the number of times the cut-off voltage increases by a preset voltage. The first preset threshold is an integer greater than or equal to 2. The first preset threshold is used to characterize the threshold number of times the cut-off voltage increases by a preset voltage. In this way, the first preset threshold can be adjusted to prevent the cut-off voltage from increasing by too many times to cause overcharging of the battery. At the same time, when the number of times the cut-off voltage increases by the preset voltage reaches the threshold number, the battery voltage detected by the fuel gauge is still less than or equal to the first voltage threshold, indicating that an error may have occurred in the process. At this time, the cut-off voltage is directly set to the initial voltage. In this way, the charging safety of the battery can be improved.
[0013] In some embodiments, the charging method further comprises the following steps: after the cut-off voltage is increased by a preset voltage for a first preset time, if the charging chip determines that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, then the cut-off voltage is reduced by a preset voltage. And, after the cut-off voltage is reduced by a preset voltage for a first preset time, if the charging chip determines that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and less than or equal to the second voltage threshold, then the cut-off voltage is kept unchanged during the constant voltage charging process of the battery.
[0014] Among them, when the battery voltage detected by the fuel gauge is greater than the second voltage threshold, it indicates that the actual battery voltage is too large. In this case, the cut-off voltage can be reduced by a preset voltage to reduce the actual battery voltage, so that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and less than or equal to the second voltage threshold. That is to say, in the present application, only when the battery voltage detected by the fuel gauge is greater than the first voltage threshold and less than or equal to the second voltage threshold after the cut-off voltage is adjusted, the battery will be charged according to the adjusted cut-off voltage. In this way, the actual battery voltage when the battery is fully charged can be increased, the actual capacity of the battery when it is fully charged can be increased, and the charging safety of the battery can be improved.
[0015] In some embodiments, the charging method further includes the step of: the charging chip setting N equal to 0 when the battery enters the constant voltage charging stage.
[0016] In this case, after the cut-off voltage is increased by the preset voltage for the first preset time period, if the charging chip determines that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, the cut-off voltage is reduced by the preset voltage. Specifically, it can be: after the cut-off voltage is increased by the preset voltage for the first preset time period, if the charging chip determines that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, and N is equal to 0, the cut-off voltage is reduced by the preset voltage, and N=N+1.
[0017] At this time, the charging method further includes the following steps: after the cut-off voltage is reduced by the preset voltage for the first preset time, if the charging chip determines that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, and N is less than the second preset threshold, then the cut-off voltage is reduced by the preset voltage, and N=N+1. And, after the cut-off voltage is reduced by the preset voltage for the first preset time, if the charging chip determines that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, and N is greater than or equal to the second preset threshold, then the cut-off voltage is set to the initial voltage.
[0018] Among them, N can be used to characterize the number of times the cut-off voltage is reduced by a preset voltage. The second preset threshold is an integer greater than or equal to 2. The second preset value is used to characterize the threshold number of times the cut-off voltage is reduced by the preset voltage. In this way, by adjusting the first preset threshold, it is possible to prevent the cut-off voltage from being reduced by too many times, resulting in the actual battery voltage being too small. At the same time, when the number of times the cut-off voltage is reduced by the preset voltage reaches the threshold number, the battery voltage detected by the fuel gauge is still greater than the second voltage threshold, indicating that an error may have occurred in the process. At this time, the cut-off voltage is directly set to the initial voltage. In this way, the charging safety of the battery can be improved.
[0019] In some embodiments, the charging method further includes the step of: during the constant voltage charging process of the battery, if the charging chip determines that the battery voltage detected by the fuel gauge is greater than a first voltage threshold, setting the cut-off voltage to an initial voltage.
[0020] That is, when the battery enters the constant voltage charging stage, if the battery voltage detected by the fuel gauge is greater than the first voltage threshold, it indicates that the actual battery voltage is relatively large. At this time, the cut-off voltage is not adjusted to ensure the charging safety of the battery.
[0021] In some embodiments, during the constant voltage charging process of the battery, if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, before increasing the cut-off voltage by a preset voltage, the step of periodically detecting whether the battery enters the constant voltage charging stage may be further included. If the battery enters the constant voltage charging stage, the step of increasing the cut-off voltage by a preset voltage and subsequent steps are performed during the constant voltage charging process of the battery if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold.
[0022] In some embodiments, during the constant voltage charging process of the battery, if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, before increasing the cut-off voltage by a preset voltage, the step of periodically detecting the charging current of the battery may be further included. If the charging current is within the preset current range, the step of increasing the cut-off voltage by a preset voltage and subsequent steps are performed during the constant voltage charging process of the battery, if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold.
[0023] In some embodiments, during the constant voltage charging process of the battery, if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, before increasing the cut-off voltage by a preset voltage, the step may also be included: detecting the temperature of the battery after the battery enters the constant voltage charging stage. If the temperature of the battery is within the preset temperature range, the step of increasing the cut-off voltage by a preset voltage and subsequent steps during the constant voltage charging process of the battery if the charging chip determines that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold is performed. If the temperature of the battery is not within the preset temperature range, the cut-off voltage is set to the initial voltage to ensure the charging safety of the battery.
[0024] In some embodiments, the charging method further comprises the step of: if charging of the battery is stopped, setting the cut-off voltage to the initial voltage.
[0025] In a second aspect, an electronic device is also provided. The electronic device includes a battery, a charging chip, and a fuel gauge. The charging chip includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, a charging method as described in any one of the first aspects is implemented.
[0026] The technical effect obtained by the above-mentioned second aspect is similar to the technical effect obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 This is a schematic diagram of a charging scenario of a first electronic device provided in an embodiment of the present application;
[0028] Figure 2is a schematic diagram of a charging scenario of a second electronic device provided in an embodiment of the present application;
[0029] Figure 3 is a structural schematic diagram of a first electronic device provided in an embodiment of the present application;
[0030] Figure 4 It is a charging curve diagram of an electronic device in the related art;
[0031] Figure 5 is a structural schematic diagram of a second electronic device provided in an embodiment of the present application;
[0032] Figure 6 is a structural schematic diagram of a third electronic device provided in an embodiment of the present application;
[0033] Figure 7 is a flow chart of a first charging method provided in an embodiment of the present application;
[0034] Figure 8 This is the first voltage curve diagram provided in the embodiment of the present application;
[0035] Fig. 9 is a flow chart of a second charging method provided in an embodiment of the present application;
[0036] Fig.10 This is the second voltage curve diagram provided in the embodiment of the present application;
[0037] Fig.11 This is the third voltage curve diagram provided in the embodiment of the present application;
[0038] Fig.12 is a flow chart of a third charging method provided in an embodiment of the present application;
[0039] Fig.13 This is a flow chart of the fourth charging method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0041] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0042] Before explaining the charging method provided in the embodiment of the present application in detail, the application scenario of the charging method is first explained.
[0043] The electronic device 10 includes a mobile phone, a tablet computer, a laptop computer, etc. Figure 1 and Figure 2 Schematic diagrams of two different charging scenarios of electronic devices 10. Figure 1 The electronic device 10 shown in the figure is a mobile phone. Figure 2 The electronic device 10 shown in the figure is a tablet computer. Figure 1 and Figure 2 As shown, the charger 20 includes a power adapter 22 and a charging cable 24 connected to the power adapter 22 .
[0044] Take the electronic device 10 as an example, which is a mobile phone. Figure 3 1 is a schematic diagram of the structure of an electronic device 10 provided in an embodiment of the present application. Figure 3As shown, the electronic device 10 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging chip 140, a power management module 141, a battery 142, a fuel gauge 143, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
[0045] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. In some embodiments, the processor 110 may be a system on chip (SOC) in the electronic device 10. In other embodiments, the processor 110 may also be other devices with processing functions in the electronic device 10 that are independent of the SOC.
[0046] The controller may be the nerve center and command center of the electronic device 10. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0047] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0048] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0049] The wireless communication function of the electronic device 10 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
[0050] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Figure 3 The structures of antenna 1 and antenna 2 in the electronic device 10 are only examples. Each antenna in the electronic device 10 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0051] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 10. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0052] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 10. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0053] In some embodiments, the antenna 1 of the electronic device 10 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 10 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM and / or IR technology, etc. GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0054] The electronic device 10 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0055] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 10 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 10 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0056] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 10 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 10 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 10 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 10 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 10 and cannot be separated from the electronic device 10.
[0057] The charging chip 140 is connected to the battery 142. When the electronic device 10 is connected to the charger 20, the electric energy output by the charger 20 needs to be input to the battery 142 through the charging chip 140. The charging chip 140 is used to adjust the charging voltage and charging current input to the battery 142.
[0058] The fuel gauge 143 is connected to the battery 142 and the processor 110. When the fuel gauge 143 is working, it can detect the voltage and current of the battery 142, and can obtain the power of the battery 142 according to the current of the battery 142, and output the voltage and power of the battery 142 to the processor 110.
[0059] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0060] It is understandable that the above Figure 3 The figure is only an exemplary description when the electronic device 10 is a mobile phone. If the electronic device 10 is a tablet computer or other type of device, the structure of the electronic device 10 may include Figure 3 The structure shown in the figure is less than Figure 3 More structures are shown in the figure, which are not limited here. For example, compared to Figure 3 The mobile phone shown does not include a mobile communication module on the tablet computer that does not have mobile communication capabilities.
[0061] Figure 4 1 is a charging curve diagram of an electronic device 10 in the related art, wherein curve ① is a charging current curve, and curve ② is a voltage curve of the battery 142. Figure 4 As shown, in the related art, the charging process of the charging chip 140 charging the battery 142 is: from the time when the electronic device 10 is connected to the charger 20 to the moment T01, the charging chip 140 controls the charging current input to the battery 142 to rise rapidly from 0 to I1, and the voltage of the battery 142 increases. From the moment T01 to the moment T02, the charging chip 140 performs constant current charging on the battery 142, the battery 142 enters the constant current charging stage, and the voltage of the battery 142 gradually increases. From the moment T02 to the moment T03, the charging chip 140 performs constant voltage charging on the battery 142, the battery 142 enters the constant voltage charging stage, and the charging current gradually decreases. At the moment T03, the battery 142 is fully charged, at which time the charging chip 140 stops charging the battery 142, and the current input to the battery 142 drops rapidly and drops to 0 at the moment T04. Among them, the constant current charging stage can include multiple constant current charging sub-stages, and the charging current input to the battery 142 in each constant current charging sub-stage is different. For example, in Figure 4 In the embodiment shown, the constant current charging stage includes three constant current charging sub-stages. In the first constant current charging sub-stage, the charging current input to the battery 142 is constant at I1; in the second constant current charging sub-stage, the charging current input to the battery 142 is constant at I2; in the third constant current charging sub-stage, the charging current input to the battery 142 is constant at I3. Figure 4In the embodiment shown, the actual capacity of the battery 142 when fully charged is equal to the area of the shaded portion, that is, the area of the figure enclosed by the current curve and the horizontal axis, and the unit is mAh (milliampere hour). It can be seen that when the charging chip 140 stops charging the battery 142, the charging current I0 input to the battery 142 will affect the actual capacity of the battery 142 when fully charged. At the same time, according to Joule's law, the actual capacity of the battery 142 when fully charged is:
[0062] W=UIt
[0063] Wherein, W is the actual capacity of the battery 142 when fully charged, U is the voltage input to the battery 142, I is the charging current input to the battery 142, and t is the charging time. It can be seen that the actual capacity of the battery 142 when fully charged is also related to the voltage of the battery 142 during the constant voltage charging stage.
[0064] In the related art, a cut-off voltage and a cut-off current are set in the charging chip 140. In the constant current charging stage, when the charging chip 140 detects that the battery voltage is equal to the cut-off voltage, it starts to charge the battery 142 at a constant voltage with the cut-off voltage. At this time, the charging current output by the charging chip 140 to the battery 142 gradually decreases. In the constant voltage charging stage, when the charging chip 140 detects that the charging current is equal to the cut-off current, it is judged that the battery 142 has reached the full charge condition. At this time, the charging chip 140 stops charging the battery 142.
[0065] Since the charging chip 140 has a voltage sampling error when detecting the voltage of the battery 142 and a current sampling error when detecting the current of the battery 142, in order to prevent the battery 142 from being overcharged, the cut-off voltage is generally less than the rated voltage of the battery 142, and the cut-off current is generally greater than the rated current of the battery 142 when it is fully charged. Figure 4 As shown, during the charging process of the battery 142, the voltage of the battery 142 is constantly increasing. Therefore, if the cut-off voltage is equal to or greater than the rated voltage of the battery 142, the actual voltage of the battery 142 may be greater than the rated voltage, thereby overcharging the battery 142. Similarly, during the charging process of the battery 142, the charging current is constantly decreasing. Therefore, if the cut-off current is less than or equal to the rated current of the battery 142 when fully charged, the actual charging current may be less than the rated current of the battery 142 when fully charged. Figure 4 It can be seen that this will increase the actual capacity of the battery 142 when it is fully charged, and may cause the actual capacity of the battery 142 to be greater than the rated capacity.
[0066] However, when the cut-off voltage is less than the rated voltage of the battery 142 and the cut-off current is greater than the rated current of the battery 142 when it is fully charged, when the charging chip 140 detects that the battery voltage is equal to the cut-off voltage and the charging current is equal to the cut-off current, due to the influence of the voltage sampling error and the current sampling error of the charging chip 140, there may be:
[0067] V a <V e
[0068] V BATmin =V a -V d
[0069] I a >I e
[0070] I BATmax =I a +I d
[0071] Among them, V a is the cut-off voltage, V e is the rated voltage of the battery 142, V BATmin V is the minimum value of the actual battery voltage when the charging chip 140 detects that the battery voltage is equal to the cut-off voltage. d is the voltage sampling error of the charging chip 140. a is the cut-off current, I e is the rated current of the battery 142 when it is fully charged, I BATmax The maximum value of the actual charging current when the charging chip 140 detects that the charging current is equal to the cut-off current, I d is the current sampling error of the charging chip 140. That is, the actual battery voltage may be at least the difference between the cut-off voltage and the voltage sampling error of the charging chip 140, and the actual charging current may be at most the sum of the cut-off current and the current sampling error of the charging chip 140.
[0072] For example, the cut-off voltage can be set to the difference between the rated voltage of the battery 142 and the voltage sampling error of the charging chip 140. At this time, when the charging chip 140 detects that the battery voltage is equal to the cut-off voltage, that is, when the charging chip 140 performs constant voltage charging on the battery 142, the actual battery voltage may be the difference between the rated voltage of the battery 142 and twice the voltage sampling error of the charging chip 140, which will greatly affect the actual capacity of the battery 142 when it is fully charged. That is, there is:
[0073] V a =V e -V d
[0074] V BATmax =V a +V d =V e
[0075] V BATmin =V a -Vd =V e -2×V d
[0076] Among them, V BATmax The maximum value of the actual battery voltage when the charging chip 140 detects that the battery voltage is equal to the cut-off voltage. In other words, Figure 4 The voltage V2 in the embodiment shown is greater than or equal to V BATmin , and is less than or equal to V BATmax . It can be seen that, when the cut-off voltage is set to the difference between the rated voltage of the battery 142 and the voltage sampling error of the charging chip 140, when the voltage sampling error of the charging chip 140 shifts upward to the maximum value, the actual battery voltage reaches the maximum value, which is equal to the rated voltage of the battery 142. When the voltage sampling error of the charging chip 140 shifts downward to the minimum value, the actual battery voltage reaches the minimum value, which is equal to the difference between the rated voltage of the battery 142 and twice the voltage sampling error of the charging chip 140. Among them, when the actual battery voltage is the minimum value when fully charged, the actual capacity of the battery 142 when fully charged is the minimum.
[0077] Similarly, the cut-off current can be set to the sum of the rated current of the battery 142 when fully charged and the current sampling error of the charging chip 140. At this time, when the charging chip 140 detects that the charging current is equal to the cut-off current, the actual charging current may be the sum of the rated current of the battery 142 when fully charged and twice the current sampling error of the charging chip 140. That is, there is:
[0078] I a =I e +I d
[0079] I BATmax =I a +I d =I e +2×I d
[0080] I BATmin =I a -I d =I e
[0081] Among them, I BATmin The minimum value of the actual charging current when the charging chip 140 detects that the charging current is equal to the cut-off current. In other words, Figure 4 The current I0 in the embodiment shown is greater than or equal to I BATmin , and less than or equal to I BATmax. It can be seen that, when the cut-off current is set to the sum of the rated current of the battery 142 when fully charged and the current sampling error of the charging chip 140, when the current sampling error of the charging chip 140 shifts upward to the maximum value, the actual charging current reaches the maximum value, which is equal to the sum of the rated current of the battery 142 when fully charged and twice the current sampling error of the charging chip 140. When the current sampling error of the charging chip 140 shifts downward to the minimum value, the actual charging current reaches the minimum value, which is equal to the rated current of the battery 142 when fully charged. Among them, when the actual charging current is the maximum value when the battery 142 is fully charged, the actual capacity of the battery 142 when fully charged is the minimum.
[0082] The following is a detailed explanation of the relevant technology by taking examples.
[0083] For example, the rated voltage of battery 142 is 4450mV (millivolts), and the rated current of battery 142 when fully charged is 0.025C (coulomb); the voltage sampling error of charging chip 140 is 20mV, and the current sampling error of charging chip 140 is 0.0025C. In this case, in order to ensure the charging safety of battery 142, the actual battery voltage cannot be greater than 4450mV, and the actual charging current cannot be less than 0.025C. Based on the voltage sampling error of charging chip 140, the maximum cut-off voltage can only be set to 4430mV, and the minimum cut-off current can only be set to 0.0275C. When the cut-off voltage is set to 4430mV, since the charging chip 140 has a voltage sampling error, the actual battery voltage of battery 142 when fully charged may be 4450mV at most, and only 4410mV at least. When the cut-off current is set to 0.0275C, due to the current sampling error of the charging chip 140, the actual charging current when the battery 142 is fully charged may be 0.029C at most and 0.025C at least. Among them, the current unit C is the current rate when the battery 142 is charged, and 1C is equal to 1A multiplied by 1 second (S). That is to say, for a battery 142 with a rated capacity of 5000mAh, 1C is equal to 5A; for a battery 142 with a rated capacity of 10000mAh, 1C is equal to 10A.
[0084] According to experiments, when the cut-off current remains unchanged, for a battery 142 with a rated capacity of 5020 mAh (milliampere-hour), when the actual battery voltage of the battery 142 is fully charged, the actual capacity of the battery 142 when fully charged can increase by 0.7%, that is, 35.14 mAh, for every 8 mV increase in the actual battery voltage when the battery 142 is fully charged.
[0085] In some embodiments, for a battery 142 with a rated capacity of 5000 mAh, the percentage of the actual capacity to the rated capacity when fully charged under different cut-off conditions (including cut-off voltage and cut-off current) is shown in Table 1 below.
[0086] Table 1
[0087]
[0088] In the embodiment shown in Table 1, the cut-off voltages corresponding to Case 1A, Case 1B, and Case 1C are all 4424mV, and the cut-off currents are all 240mA. According to Case 1A, when the cut-off voltage is 4424mV and the cut-off current is 240mA, if the accuracy of the voltage detection by the charging chip 140 is shifted downward to the minimum value (at this time, the actual battery voltage reaches the minimum value when fully charged), and the accuracy of the current detection by the charging chip 140 is shifted upward to the maximum value (at this time, the actual charging current reaches the maximum value when fully charged), the actual capacity of the battery 142 when fully charged is the minimum, which is only 93.6% of the rated capacity. According to Case 1B, when the cut-off voltage is 4424mV and the cut-off current is 240mA, if the charging chip 140 detects the voltage and current without error, the actual capacity of the battery 142 when fully charged is 95.8% of the rated capacity. According to situation 1C, when the cut-off voltage is 4424mV and the cut-off current is 240mA, if the accuracy of the voltage detection of the charging chip 140 is shifted upward to the maximum value (the actual battery voltage reaches the maximum value when fully charged at this time), and the accuracy of the current detection of the charging chip 140 is shifted downward to the minimum value (the actual charging current reaches the minimum value when fully charged at this time), the actual capacity of the battery 142 when fully charged is the maximum, reaching 98.5% of the rated capacity.
[0089] In the embodiment shown in Table 1, the cut-off voltages corresponding to Case 2A, Case 2B, and Case 2C are all 4430mV and the cut-off currents are all 200mA. According to Case 2A, when the cut-off voltage is 4430mV and the cut-off current is 200mA, if the accuracy of the voltage detection by the charging chip 140 is shifted downward to the minimum value and the accuracy of the current detection by the charging chip 140 is shifted upward to the maximum value, the actual capacity of the battery 142 when fully charged is the minimum, which is only 94.7% of the rated capacity. According to Case 2B, when the cut-off voltage is 4430mV and the cut-off current is 200mA, if the voltage and current detection by the charging chip 140 are error-free, the actual capacity of the battery 142 when fully charged is 97.3% of the rated capacity. According to situation 2C, when the cut-off voltage is 4430mV and the cut-off current is 200mA, if the accuracy of the voltage detection of the charging chip 140 is shifted upward to the maximum value and the accuracy of the current detection of the charging chip 140 is shifted downward to the minimum value, the actual capacity of the battery 142 when fully charged is the largest, reaching 99.6% of the rated capacity.
[0090] At the same time, by comparing case 1A with case 2A, case 1B with case 2B, and case 1C with case 2C, it can be seen that for the same voltage sampling error and current sampling error, when the cut-off voltage of the charging chip 140 is higher and the cut-off current is smaller, the actual capacity of the battery 142 when fully charged will also be greater. It can be seen that increasing the actual battery voltage when the battery 142 is fully charged can increase the actual capacity of the battery 142 when fully charged.
[0091] To this end, an embodiment of the present application provides a charging method and an electronic device, which can increase the actual battery voltage when the battery is fully charged, thereby increasing the actual capacity of the battery when it is fully charged.
[0092] First, the electrical structure of the electronic device to which the charging method provided in the embodiment of the present application is applied is described.
[0093] Since the main idea of the present invention is to increase the actual battery voltage when the battery is fully charged, and does not involve reducing the actual charging current when the battery is fully charged, therefore, in the following description of the embodiments of the present application, the sampling error refers to the voltage sampling error, and does not include the current sampling error. That is to say, in the following description, the sampling error of the charging chip refers to the voltage sampling error of the charging chip, and the sampling error of the fuel meter refers to the voltage sampling error of the fuel meter.
[0094] Figure 5 1 is a schematic diagram of the structure of another electronic device 10 provided in an embodiment of the present application, in which only the structure related to the charging method provided in an embodiment of the present application is shown. Figure 5 As shown, the electronic device 10 includes a charging chip 140, a battery 142 and a fuel gauge 143. The charging chip 140 is connected to the battery 142. When the electronic device 10 is connected to the charger, the electric energy output by the charger needs to be input to the battery 142 through the charging chip 140. The charging chip 140 is used to adjust the charging voltage and charging current input to the battery 142. The charging chip 140 can also detect the battery voltage and charging current. The fuel gauge 143 is connected to the battery 142 for detecting the battery voltage. The fuel gauge 143 and the charging chip 140 can also communicate so that the battery voltage detected by the fuel gauge 143 can be output to the charging chip 140. The charging chip 140 is used to execute the charging method provided in the embodiment of the present application. In the embodiment of the present application, the sampling error of the fuel gauge 143 is less than the sampling error of the charging chip 140. For example, when the sampling error of the charging chip 140 is 20mV, a fuel gauge 143 with a sampling error of 7.5mV can be selected. In this case, if the actual battery voltage is 4400 mV, the battery voltage detected by the charging chip 140 is any value from 4380 mV to 4420 mV, and the battery voltage detected by the fuel gauge 143 is any value from 4392.5 mV to 4407.5 mV.
[0095] It should be noted that the charging chip 140 "starts constant voltage charging of the battery 142 with the cutoff voltage when detecting that the battery voltage is equal to the cutoff voltage" is realized by a comparator. The charging chip 140 includes a comparator. The non-inverting input terminal of the comparator is used to input the battery voltage, and the inverting input terminal of the comparator is used to input the reference voltage, that is, the cutoff voltage. When the battery voltage input to the non-inverting input terminal of the comparator is greater than or equal to the cutoff voltage input to the inverting input terminal, the comparator outputs a high-level signal, and the charging chip 140 now charges the battery 142 with the cutoff voltage at a constant voltage. In other words, whether the charging chip 140 performs constant voltage charging on the battery 142 is realized by its circuit structure. Based on this, the charging chip 140 cannot directly control whether to perform constant voltage charging on the battery 142 based on the battery voltage detected by the fuel gauge 143.
[0096] In some embodiments, when the fuel gauge 143 is working, the battery voltage is detected once every third preset time interval, and the detected battery voltage is output to the charging chip 140. The third preset time interval here is any time interval from 0.1S to 3S, for example, the third preset time interval can be 0.1S, 0.5S, 0.8S, 1S, 2S or 3S.
[0097] In some specific embodiments, the structure of the electronic device 10 can also be as follows: Figure 6 As shown. Figure 6 As shown, the electronic device 10 may further include a processor 110. The fuel gauge 143 and the charging chip 140 are both connected to the processor 110 for communication. In this way, the battery voltage detected by the fuel gauge 143 may be output to the processor 110 first, and then the processor 110 outputs the battery voltage detected by the fuel gauge 143 to the charging chip 140. The communication connection here may be connected through an I2C (Inter-Integrated Circuit) bus, or may be connected through a signal processing and multimedia image (SPMI) bus, which will not be described in detail.
[0098] The charging method provided in the embodiment of the present application is explained in detail below.
[0099] Figure 7 is a flow chart of a charging method provided in an embodiment of the present application. Figure 7 As shown, the charging method includes the following steps S110 to S120.
[0100] S110, during the constant voltage charging process of the battery 142, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is less than or equal to the first voltage threshold, the cut-off voltage is increased by a preset voltage.
[0101] As mentioned above, during the charging process, when the charging chip 140 detects that the battery voltage is equal to the cut-off voltage, the battery 142 starts to be charged at a constant voltage, that is, the battery 142 enters the constant voltage charging stage. The charging method provided in the embodiment of the present application is performed after the battery 142 enters the constant voltage charging stage, that is, during the constant voltage charging process of the battery 142. Similarly, the constant voltage charging stage of the battery 142 may also include multiple constant voltage charging sub-stages, and the actual battery voltages of different constant voltage charging sub-stages may be different.
[0102] The inventive idea of the embodiment of the present application is to increase the actual battery voltage when the battery 142 is fully charged by adjusting the cut-off voltage of the charging chip 140. In other words, the cut-off voltage has multiple different values. Among them, when the battery 142 enters the constant voltage charging stage, the cut-off voltage is the initial voltage. The value of the initial voltage here can be equal to the value of the cut-off voltage in the related art.
[0103] A first voltage threshold is also provided in the charging chip 140. When the fuel gauge 143 is working, the battery voltage is detected once every third preset time period, and the detected battery voltage is output to the charging chip 140. Here, after the charging chip 140 receives the battery voltage detected by the fuel gauge 143, if it is determined that the battery voltage detected by the fuel gauge 143 is less than or equal to the first voltage threshold, the cut-off voltage is increased by a preset voltage. Among them, the value range of the first voltage threshold is: the first voltage threshold is greater than or equal to the difference between the initial voltage and the sampling error of the charging chip 140, and the first voltage threshold is less than or equal to the sum of the initial voltage and the sampling error of the charging chip 140. The first voltage threshold is less than the second voltage threshold. In some specific embodiments, the first voltage threshold is equal to the initial voltage.
[0104] The preset voltage is a voltage value preset in the charging chip 140. For example, the preset voltage may be 5mV, 7.5mV, or 10mV. The magnitude of the preset voltage depends on the specification of the charging chip 140. Increasing the cut-off voltage by the preset voltage means: increasing the current cut-off voltage by the preset voltage to obtain a new cut-off voltage. For example, if the current cut-off voltage is the initial voltage, the sum of the initial voltage and the preset voltage is used as the new cut-off voltage.
[0105] S120, after the cut-off voltage is increased by a preset voltage for a first preset time period, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold, the cut-off voltage is kept unchanged during the constant voltage charging process of the battery 142.
[0106] The first preset duration may be any duration from 1S to 5S, for example, the first preset duration may be 1S, 2S, 3S, 4S or 5S. A second voltage threshold is also provided in the charging chip 140. The second voltage threshold is greater than the first voltage threshold, and the second voltage threshold is less than or equal to the difference between the rated voltage of the battery 142 and the sampling error of the fuel gauge 143. In some specific embodiments, the second voltage threshold is equal to the difference between the rated voltage of the battery 142 and the sampling error of the fuel gauge 143.
[0107] That is, after increasing the cut-off voltage by the preset voltage in step S110, the charging chip 140 needs to wait for the first preset time period, and then compare the battery voltage detected by the fuel gauge 143 with the first voltage threshold and the second voltage threshold. If the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold, the battery 142 is charged according to the adjusted cut-off voltage (i.e., the cut-off voltage after the preset voltage is increased in step S110).
[0108] It can be understood that before the cut-off voltage is increased by the preset voltage in step S110, the battery voltage detected by the charging chip 140 is equal to the cut-off voltage. After the cut-off voltage is increased by the preset voltage in step S110, the battery voltage detected by the charging chip 140 is less than the cut-off voltage. At this time, the charging chip 140 continues to charge the battery 142, and the actual battery voltage rises until the battery voltage detected by the charging chip 140 is equal to the cut-off voltage after the preset voltage is increased. After the battery voltage detected by the charging chip 140 is equal to the cut-off voltage after the preset voltage is increased, the actual battery voltage is stable again. Based on this, the first preset time length should meet the following conditions: if the time required from the cut-off voltage being increased by the preset voltage to the battery voltage detected by the charging chip 140 being equal to the cut-off voltage after the preset voltage is increased is the fourth preset time length, then the first preset time length should be greater than or equal to the fourth preset time length. For example, if the battery voltage detected by the charging chip 140 is equal to the cut-off voltage after the preset voltage is increased 1S after the cut-off voltage is increased by the preset voltage, then the first preset time length should be greater than or equal to 1S.
[0109] In an embodiment of the present application, during the constant voltage charging process of the battery 142, the charging chip 140 can adjust the cut-off voltage according to the battery voltage detected by the fuel gauge 143 with a small sampling error. When the battery 142 enters the constant voltage charging stage, the cut-off voltage is the initial voltage. In this case, if the battery voltage detected by the fuel gauge 143 is less than or equal to the first voltage threshold, it indicates that the actual battery voltage is small. At this time, the charging chip 140 increases the cut-off voltage by a preset voltage, that is, adjusts the cut-off voltage to a higher value. After the cut-off voltage is increased, the actual battery voltage will change. After the first preset time after the cut-off voltage increases by the preset voltage, the battery voltage detected by the charging chip 140 is equal to the cut-off voltage after the preset voltage is increased. At this time, if the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold, it indicates that the actual battery voltage is large, and the cut-off voltage is kept unchanged during the constant voltage charging process of the battery 142. That is, at this time, the battery 142 is charged at a constant voltage according to the increased cut-off voltage. During this process, since the cut-off voltage is increased and the battery voltage error detected by the fuel gauge 143 is small, the minimum and maximum values of the actual battery voltage when the battery 142 is fully charged will increase, which can increase the actual battery voltage when the battery 142 is fully charged, thereby increasing the actual capacity of the battery 142 when it is fully charged.
[0110] Steps S110 and S120 are described below by taking an example.
[0111] For example, the rated voltage of the battery 142 is 4450mV, the sampling error of the charging chip 140 is 20mV, the sampling error of the fuel gauge 143 is 7.5mV, the initial voltage is 4430mV, and the preset voltage is 10mV. Then, the value range of the first voltage threshold is [4410mV, 4450mV], the second voltage threshold is greater than the first voltage threshold, and the second voltage threshold is less than or equal to 4442.5mV. In this embodiment, the first voltage threshold is 4430mV and the second voltage threshold is 4442.5mV.
[0112] Step S110 is specifically as follows: after the battery 142 enters the constant voltage charging stage, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is less than or equal to 4430 mV, the cut-off voltage is increased by 10 mV.
[0113] Specifically, Figure 8 is a voltage curve diagram provided by an embodiment of the present application, wherein the ordinate is the battery voltage detected by the charging chip 140. Figure 8As shown, at time T1, the battery voltage detected by the charging chip 140 is equal to the cut-off voltage (the cut-off voltage at this time is the initial voltage, i.e., 4430mV), and the battery 142 enters the constant voltage charging stage. However, when the initial voltage is 4430mV, based on the sampling error of 20mV of the charging chip 140, when the battery 142 enters the constant voltage charging stage, the actual battery voltage is a minimum of 4410mV and a maximum of 4450mV. In this case, the charging chip 140 determines whether the battery voltage detected by the fuel gauge 143 is less than or equal to 4430mV. When the battery voltage detected by the fuel gauge 143 is equal to 4430mV, based on the sampling error of 7.5mV of the fuel gauge 143, the actual battery voltage is a minimum of 4422.5mV and a maximum of 4437.5mV. It can be seen that if the battery voltage detected by the fuel gauge 143 is less than or equal to 4430mV, it means that the actual battery voltage is 4437.5mV at most and 4410mV at least. In this case, it means that the actual battery voltage is small, so the cut-off voltage is increased by 10mV to increase the actual battery voltage. Figure 8 In the illustrated embodiment, the cut-off voltage is increased by 10 mV at time T2, and the increased cut-off voltage is 4440 mV.
[0114] Step S120 is specifically as follows: after the cut-off voltage is increased by 10 mV for a first preset time, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than 4430 mV and less than or equal to 4442.5 mV, the cut-off voltage is maintained at 4440 mV.
[0115] Specifically, in Figure 8 In the embodiment shown, at time T3, the battery voltage detected by the charging chip 140 is equal to 4440mV. Therefore, the first preset time should be greater than or equal to the time from time T2 to time T3. When the cut-off voltage is 4440mV, based on the sampling error of 20mV of the charging chip 140, the actual battery voltage is 4420mV at the minimum and 4460mV at the maximum.
[0116] In this step, if the battery voltage detected by the fuel gauge 143 is equal to 4430mV, it indicates that the actual battery voltage is at least 4422.5mV and at most 4437.5mV. Therefore, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than 4430mV, it indicates that the actual battery voltage is greater than 4422.5mV. Similarly, if the battery voltage detected by the fuel gauge 143 is equal to 4442.5mV, it indicates that the actual battery voltage is at least 4435mV and at most 4450mV. It can be seen that if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than 4430mV and less than or equal to 4442.5mV, the actual battery voltage is greater than 4422.5mV and at most 4450mV.
[0117] That is, in this embodiment, before the cut-off voltage is increased by 10mV, the actual battery voltage is 4437.5mV at the maximum and 4410mV at the minimum; after the cut-off voltage is increased by 10mV, the actual battery voltage is 4450mV at the maximum and is greater than 4422.5mV. Therefore, the charging method provided in the embodiment of the present application can increase the actual battery voltage when the battery 142 is fully charged, thereby increasing the actual capacity of the battery 142 when it is fully charged.
[0118] The charging method provided in the embodiment of the present application is further expanded from two different situations below.
[0119] 1. In the first case, the cut-off voltage can be increased by multiple preset voltages.
[0120] In some embodiments, the charging method may further include step S001, setting M equal to 0 when the battery 142 enters the constant voltage charging stage.
[0121] In this case, step S110 may specifically be: during the constant voltage charging process of the battery 142, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is less than or equal to the first voltage threshold, and M is equal to 0, then the cut-off voltage is increased by a preset voltage, and M=M+1.
[0122] In addition, the charging method may further include the following steps S130 and S140.
[0123] S130, after the cut-off voltage is increased by the preset voltage for the first preset time period, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is less than or equal to the first voltage threshold, and M is less than the first preset threshold, the cut-off voltage is increased by the preset voltage, and M=M+1.
[0124] S140, after the cut-off voltage is increased by a preset voltage for a first preset time period, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is less than or equal to the first voltage threshold, and M is greater than or equal to the first preset threshold, the cut-off voltage is set to the initial voltage.
[0125] Steps S130, S140 and S120 are three parallel situations, the difference is that: in step S120, after the cut-off voltage is increased by the preset voltage for the first preset time, the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold; while in steps S130 and S140, after the cut-off voltage is increased by the preset voltage for the first preset time, the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is still less than or equal to the first voltage threshold. In this case, it means that after the cut-off voltage is increased by the preset voltage for the first preset time, the actual battery voltage is still small. At this time, if it is determined that M is less than the first preset threshold (i.e., step S130) at the same time, the cut-off voltage is increased by the preset voltage, and M=M+1. If it is determined that M is greater than or equal to the first preset threshold (i.e., step S140), the cut-off voltage is set to the initial voltage.
[0126] It can be understood that, in this embodiment, step S130 can be executed repeatedly to increase the preset voltage multiple times. Wherein, M can be used to characterize the number of times the cut-off voltage increases the preset voltage. The first preset threshold is an integer greater than or equal to 2, for example, the first preset threshold is 2, 3 or 4. The first preset threshold is used to characterize the threshold number of times the cut-off voltage increases the preset voltage.
[0127] Specifically, taking the first preset threshold value of 3 as an example, in step S110, the cut-off voltage is increased by the preset voltage for the first time, and M=1. If the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is still less than or equal to the first voltage threshold after the cut-off voltage is increased by the preset voltage for the first preset time, and M=1<3 at this time, the cut-off voltage is increased by the preset voltage for the second time, and M=2 (i.e., step S130 is executed for the first time). If the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is still less than or equal to the first voltage threshold after the cut-off voltage is increased by the preset voltage for the first preset time, and M=2<3 at this time, the cut-off voltage is increased by the preset voltage for the third time, and M=3 (i.e., step S130 is executed for the second time). If the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is still less than or equal to the first voltage threshold after the cut-off voltage is increased by the preset voltage for the first preset time, and M=3 at this time, the cut-off voltage is set to the initial voltage (i.e., step S140 is executed).
[0128] In this embodiment, the cut-off voltage can be increased by a plurality of preset voltages, thereby increasing the actual battery voltage when the battery 142 is fully charged, and increasing the actual capacity of the battery 142 when it is fully charged. In addition, the first preset threshold value can be adjusted to prevent the cut-off voltage from increasing by too many times by the preset voltage, thereby preventing the battery 142 from being overcharged. At the same time, when the number of times the cut-off voltage increases by the preset voltage reaches the threshold number, if the battery voltage detected by the fuel gauge 143 is still less than or equal to the first voltage threshold, it indicates that an error may have occurred in the process, and at this time, the cut-off voltage is directly set to the initial voltage. In this way, the charging safety of the battery 142 can be improved.
[0129] Fig. 9 is a flowchart of another charging method provided in an embodiment of the present application, which includes all the contents of steps S110 to S140. Fig. 9 , the charging method provided in the embodiment of the present application is explained by giving an example.
[0130] Taking the rated voltage of the battery 142 as 4450mV, the sampling error of the charging chip 140 as 20mV, the sampling error of the fuel gauge 143 as 7.5mV, the initial voltage as 4430mV, the preset voltage as 10mV, the first voltage threshold as 4430mV, the second voltage threshold as 4442.5mV, and the first preset threshold as 3 as an example, the charging method may include steps S1 to S9.
[0131] S1, when the battery 142 enters the constant voltage charging stage, M=0.
[0132] Fig. 9 is another voltage curve diagram provided by the embodiment of the present application, wherein the ordinate is the battery voltage detected by the charging chip 140. Fig. 9 As shown, at time T1, the battery voltage detected by the charging chip 140 is equal to the cut-off voltage (the cut-off voltage at this time is the initial voltage, ie, 4430 mV), and the battery 142 enters the constant voltage charging stage. At this time, let M=0.
[0133] When the initial voltage is 4430 mV, based on the sampling error of 20 mV of the charging chip 140, when the battery 142 enters the constant voltage charging stage, the actual battery voltage is at least 4410 mV and at most 4450 mV.
[0134] S2, determining whether the battery voltage detected by the fuel gauge 143 is greater than a first voltage threshold.
[0135] It is determined whether the battery voltage detected by the fuel gauge 143 is greater than 4430 mV. If the determination result of step S2 is no, that is, the battery voltage detected by the fuel gauge 143 is less than or equal to 4430 mV, step S3 is executed.
[0136] When the battery voltage detected by the fuel gauge 143 is equal to 4430mV, based on the sampling error of 7.5mV of the fuel gauge 143, the actual battery voltage is at least 4422.5mV and at most 4437.5mV. Therefore, if the battery voltage detected by the fuel gauge 143 is less than or equal to 4430mV, it indicates that the actual battery voltage is at most 4437.5mV and at most 4410mV.
[0137] S3, the cut-off voltage is increased by a preset voltage, and M=M+1.
[0138] exist Fig.10 In the illustrated embodiment, the cut-off voltage is increased by a preset voltage (ie, 10 mV) at time T2, and the increased cut-off voltage is 4440 mV, and M=1 at this time.
[0139] S4, waiting for a first preset time period.
[0140] exist Fig.10 In the illustrated embodiment, at time T3, the battery voltage detected by the charging chip 140 is equal to 4440 mV. Therefore, the first preset time length should be greater than or equal to the time length from time T2 to time T3.
[0141] When the battery voltage detected by the charging chip 140 is equal to 4440 mV, based on the fact that the charging chip 140 has a sampling error of 20 mV, the actual battery voltage is at least 4420 mV and at most 4460 mV.
[0142] S5, determining whether the battery voltage detected by the fuel gauge 143 is greater than a first voltage threshold.
[0143] It is determined again whether the battery voltage detected by the fuel gauge 143 is greater than 4430 mV. If the determination result of step S5 is no, that is, the battery voltage detected by the fuel gauge 143 is less than or equal to 4430 mV, step S7 is executed.
[0144] When the battery voltage detected by the fuel gauge 143 is less than or equal to 4430 mV, it indicates that the actual battery voltage is 4437.5 mV at most and 4420 mV at least.
[0145] S7, determining whether M is less than a first preset threshold.
[0146] It is determined whether M is less than 3. As can be seen from step S2, at this time M=1, so the determination result of step S7 is yes. In this case, the process returns to step S3.
[0147] The first cycle of steps S3 to S5: Fig.10In the embodiment shown, step S3 is executed again at time T4, and the cut-off voltage is 4450mV, and M=2. According to steps S4 and S5, at time T5, the battery voltage detected by the charging chip 140 is equal to 4450mV. The actual battery voltage is 4430mV at the minimum and 4470mV at the maximum. At this time, it is determined again whether the battery voltage detected by the fuel gauge 143 is greater than 4430mV. In the case where the battery voltage detected by the fuel gauge 143 is less than or equal to 4430mV, it indicates that the actual battery voltage is 4437.5mV at the maximum and 4430mV at the minimum. At this time, according to step S7, it is determined again whether M is less than 3. Since M=2, the judgment result is yes. In this case, step S3 is returned again.
[0148] The second cycle of steps S3 to S5: execute step S3 again (not in Fig.10 ), the cut-off voltage is 4460mV, and M=3. Based on this, after waiting for the first preset time again, the actual battery voltage is at least 4440mV and at most 4480mV. At this time, it is determined again whether the battery voltage detected by the fuel gauge 143 is greater than 4430mV. When the battery voltage detected by the fuel gauge 143 is less than or equal to 4430mV, it indicates that the actual battery voltage is at most 4437.5mV and at most 4430mV. In this case, it indicates that at least one of the fuel gauge 143 and the charging chip 140 is faulty. At this time, according to step S7, it is determined again whether M is less than 3. Since M=3, the judgment result is no. In this case, step S9 is executed. In some other embodiments, when step S9 is executed after step S7, the charging chip 140 can also output a fault signal to the processor 110 of the electronic device 10. After receiving the fault signal, the processor 110 displays the fault information through the display screen of the electronic device 10. The fault information is used to prompt that an error has occurred in the charging process of the electronic device 10.
[0149] S9, setting the cut-off voltage to the initial voltage.
[0150] That is to say, when the cut-off voltage increases by the preset voltage a number of times to reach the threshold number, if the battery voltage detected by the fuel gauge 143 is still less than or equal to the first voltage threshold, it indicates that an error may have occurred in the process (failure of the fuel gauge 143 or the charging chip 140). At this time, for the sake of charging safety, the adjustment of the cut-off voltage is abandoned and the cut-off voltage is set to the initial voltage of 4430mV.
[0151] In step S5, if the judgment result of step S5 is yes, that is, the battery voltage detected by the fuel gauge 143 is greater than 4430mV, step S6 is executed. Among them, the battery voltage detected by the fuel gauge 143 is greater than 4430mV, which indicates that the actual battery voltage is greater than 4422.5mV.
[0152] S6, determining whether the battery voltage detected by the fuel gauge 143 is less than or equal to a second voltage threshold.
[0153] Determine whether the battery voltage detected by the fuel gauge 143 is less than or equal to 4442.5mV. If the battery voltage detected by the fuel gauge 143 is equal to 4442.5mV, it indicates that the actual battery voltage is at least 4435mV and at most 4450mV. It can be seen that if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than 4430mV and less than or equal to 4442.5mV, then the actual battery voltage is greater than 4422.5mV and at most 4450mV. In this case, the actual battery voltage when the battery 142 is fully charged is increased, and the battery 142 will not be overcharged, so step S8 can be executed.
[0154] S8, charging the battery 142 according to the adjusted cut-off voltage.
[0155] That is, when the cut-off voltage is increased by a preset voltage for a first preset time period, if the battery voltage detected by the fuel gauge 143 is greater than 4430 mV and less than or equal to 4442.5 mV, the battery 142 is charged according to the adjusted cut-off voltage.
[0156] Second, in the second case, the cut-off voltage can be reduced by a preset voltage.
[0157] In some embodiments, after step S110 , the charging method may further include the following steps S150 and S160 .
[0158] S150, after the cut-off voltage is increased by a preset voltage for a first preset time period, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and greater than the second voltage threshold, the cut-off voltage is reduced by a preset voltage.
[0159] Step S150 is a case parallel to step S120, the difference is that: in step S120, it is the case that the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold after the cut-off voltage is increased by the preset voltage for the first preset time; while in step S150, it is the case that the battery voltage detected by the fuel gauge 143 is greater than the second voltage threshold after the cut-off voltage is increased by the preset voltage for the first preset time. It can be understood that after the cut-off voltage is reduced, the current output from the charging chip 140 to the battery 142 is reduced, and the actual battery voltage will drop.
[0160] S160, after the cut-off voltage is reduced by a preset voltage for a first preset time period, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold, the cut-off voltage is kept unchanged during the constant voltage charging process of the battery 142.
[0161] In an embodiment of the present application, when the battery voltage detected by the fuel gauge 143 is greater than the second voltage threshold, it indicates that the actual battery voltage is too large. In this case, the cut-off voltage can be reduced by a preset voltage to reduce the actual battery voltage, so that the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold. That is to say, in the present application, only when the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold after the cut-off voltage is adjusted, the battery 142 will be charged according to the adjusted cut-off voltage. In this way, the actual battery voltage when the battery 142 is fully charged can be increased, the actual capacity of the battery 142 when fully charged can be increased, and the charging safety of the battery 142 can be improved.
[0162] Steps S150 and S160 are described below by taking an example.
[0163] Taking the rated voltage of the battery 142 as 4450mV, the sampling error of the charging chip 140 as 20mV, the sampling error of the fuel gauge 143 as 7.5mV, the initial voltage as 4430mV, the preset voltage as 10mV, the first voltage threshold as 4430mV, and the second voltage threshold as 4442.5mV as an example, then: after the cut-off voltage is increased by the preset voltage in step S110, the cut-off voltage is 4440mV.
[0164] Step S150 is specifically as follows: after the cut-off voltage is increased by 10 mV for a first preset time period, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than 4442.5 mV, the cut-off voltage is reduced by 10 mV.
[0165] Specifically, Fig.11 is another voltage curve diagram provided by the embodiment of the present application, wherein the ordinate is the battery voltage detected by the charging chip 140. Fig.11 As shown, in step S110, the cut-off voltage is increased by 10mV at time T2, and the increased cut-off voltage is 4440mV. At time T3, the battery voltage detected by the charging chip 140 is equal to 4440mV. In this case, after time T3, based on the sampling error of 20mV of the charging chip 140, the actual battery voltage is 4420mV at minimum and 4460mV at maximum.
[0166] In this step, if the battery voltage detected by the fuel gauge 143 is the second voltage threshold, i.e., 4442.5mV, it indicates that the actual battery voltage is at least 4435mV and at most 4450mV. Therefore, if the battery voltage detected by the fuel gauge 143 is greater than 4442.5mV, it indicates that the actual battery voltage may be greater than 4450mV. In this case, the battery 142 is overcharged, which poses a safety hazard. Therefore, the cut-off voltage needs to be reduced by 10mV. Figure 8 In the embodiment shown, at time T6, the cut-off voltage is reduced by 10 mV, and the reduced cut-off voltage is 4430 mV. At time T7, the battery voltage detected by the charging chip 140 is equal to 4430 mV. The first preset time length is greater than or equal to the time length from time T6 to time T7.
[0167] In this possible case, the cut-off voltage may also be reduced by a plurality of preset voltages, which will be described in detail below.
[0168] In some embodiments, the charging method may further include step S002 , setting N equal to 0 when the battery 142 enters the constant voltage charging stage.
[0169] In this case, step S150 may specifically be: after the cut-off voltage is increased by a preset voltage for a first preset time period, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and greater than the second voltage threshold, and N is equal to 0, then the cut-off voltage is reduced by the preset voltage, and N=N+1.
[0170] In addition, the charging method may further include the following steps S170 and S180.
[0171] S170, after the cut-off voltage is reduced by the preset voltage for the first preset time period, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and greater than the second voltage threshold, and N is less than the second preset threshold, the cut-off voltage is reduced by the preset voltage, and N=N+1.
[0172] S180, after the cut-off voltage is reduced by a preset voltage for a first preset time period, if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and greater than the second voltage threshold, and N is greater than or equal to the second preset threshold, the cut-off voltage is set to the initial voltage.
[0173] Step S170 and step S180 are two parallel cases. It can be understood that in this embodiment, step S170 can be executed repeatedly to reduce the preset voltage multiple times. Among them, N can be used to characterize the number of times the cut-off voltage is reduced by the preset voltage. The second preset threshold is an integer greater than or equal to 2, for example, the second preset threshold is 2, 3 or 4. The second preset value is used to characterize the threshold number of times the cut-off voltage is reduced by the preset voltage.
[0174] Specifically, taking the second preset threshold value as 3 as an example, in step S150, the cut-off voltage is reduced by the preset voltage for the first time, and N=1. If the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is still greater than the second voltage threshold after the cut-off voltage is reduced by the preset voltage for the first time, and N=1<3 at this time, the cut-off voltage is reduced by the preset voltage for the second time, and N=2 (i.e., step S170 is executed for the first time). If the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is still greater than the second voltage threshold after the cut-off voltage is reduced by the preset voltage for the first preset time, and N=2<3 at this time, the cut-off voltage is reduced by the preset voltage for the third time, and N=3 (i.e., step S170 is executed for the second time). If the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is still greater than the second voltage threshold after the cut-off voltage is reduced by the preset voltage for the first preset time, and M=3 at this time, the cut-off voltage is set to the initial voltage (i.e., step S180 is executed).
[0175] In this embodiment, the cut-off voltage can be reduced by a plurality of preset voltages, thereby preventing the battery 142 from being overcharged. In addition, the first preset threshold can be adjusted to prevent the cut-off voltage from being reduced by too many times to cause the actual battery voltage to be too low. At the same time, when the number of times the cut-off voltage is reduced by the preset voltage reaches the threshold number, the battery voltage detected by the fuel gauge 143 is still greater than the second voltage threshold, indicating that an error may have occurred in the process. At this time, the cut-off voltage is directly set to the initial voltage. In this way, the charging safety of the battery 142 can be improved.
[0176] Fig.12 is a flowchart of another charging method provided in an embodiment of the present application, which includes all the contents of steps S110 to S180. Fig.12 In the embodiment shown, steps S2 to S9 are Fig. 9 The difference is that Fig. 9 The embodiment shown is: Fig.12 In the illustrated embodiment, step S1 is replaced by step S1A, and steps S10 and S11 are added.
[0177] S1A, when the battery 142 enters the constant voltage charging stage, M=0 and N=0.
[0178] That is, when the battery 142 enters the constant voltage charging stage, M and N are both set to 0. In this embodiment, steps S3 to S5 can also be cycled several times until the judgment result of step S5 is yes. Afterwards, if the judgment result of step S6 is no, (still taking the values in steps S1 to S9 as an example), the actual battery voltage may be greater than 4450mV. In this case, the battery 142 is overcharged. At this time, step S10 is executed.
[0179] S10, the cut-off voltage is reduced by a preset voltage, and N=N+1.
[0180] Assume that when executing step S6, M=2, that is, the cut-off voltage increases by the preset voltage twice, the cut-off voltage is 4450mV, and the judgment result of step S6 is No. Then: after executing step S10, the cut-off voltage is 4440mV, and N=1.
[0181] S11, determining whether N is less than a second preset threshold.
[0182] It is determined whether N is less than 3. As can be seen from step S10, at this time N=1, so the determination result of step S11 is yes. In this case, the execution returns to steps S4 to S6.
[0183] The first cycle of steps S4 to S6: the cut-off voltage of the charging chip 140 is 4440mV, and the actual battery voltage is 4420mV at the minimum and 4460mV at the maximum. At this time, steps S5 and S6 are performed again. If the judgment result of step S6 is no, step S10 is performed again, and the cut-off voltage is 4430mV, N=2. Step S11 is performed again, and since N=2, the judgment result is yes. In this case, steps S4 to S6 are returned again.
[0184] The second cycle of steps S4 to S6: The cut-off voltage of the charging chip 140 is 4430mV, then the actual battery voltage is at least 4410mV and at most 4450mV. At this time, execute steps S5 and S6 again. If the judgment result of step S6 is no, execute step S10 again, and there is: the cut-off voltage is 4420mV, N=3. Execute step S11 again, because N=3, the judgment result is no, in this case, execute step S9. In some other embodiments, when step S9 is executed after step S11, the charging chip 140 may also output a fault signal to the processor 110 of the electronic device 10.
[0185] It can be understood that in the embodiment of the present application, the first preset threshold and the second preset threshold can be adjusted according to the initial voltage, the preset voltage, the first voltage threshold and the second voltage threshold.
[0186] In some embodiments, the charging method may further include step S190 , during the constant voltage charging process of the battery 142 , if the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold, the cut-off voltage is set to the initial voltage.
[0187] Step S190 and step S110 are two parallel situations. That is, when the battery 142 enters the constant voltage charging stage, if the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold, it indicates that the actual battery voltage is larger. At this time, the cut-off voltage is not adjusted to ensure the charging safety of the battery 142.
[0188] Still taking the rated voltage of the battery 142 as 4450mV, the sampling error of the charging chip 140 as 20mV, the sampling error of the fuel gauge 143 as 7.5mV, the initial voltage as 4430mV, the preset voltage as 10mV, the first voltage threshold as 4430mV, and the second voltage threshold as 4442.5mV as an example, then: when the battery 142 enters the constant voltage charging stage, if the battery voltage detected by the fuel gauge 143 is greater than 4430mV, it indicates that the actual battery voltage is greater than 4422.5mV. In this case, it means that the actual battery voltage is large, and for safety reasons, the cut-off voltage is not increased.
[0189] In some embodiments, the charging method of the present application may further include step S210 before step S110, wherein the charging chip 140 periodically detects whether the battery 142 enters a constant voltage charging stage.
[0190] Specifically, as mentioned above, step S110 and subsequent steps are performed after the battery 142 enters the constant voltage charging stage. Therefore, before executing step S110, the charging chip 140 can periodically detect whether the battery 142 enters the constant voltage charging stage. For example, the charging chip 140 can determine whether it enters the constant voltage charging stage by detecting whether the battery voltage is equal to the cut-off voltage. Alternatively, the charging chip 140 can also determine whether it enters the constant voltage charging stage by reading the information stored in its register. If the battery 142 enters the constant voltage charging stage, steps S110 to S190 are executed. Here, the periodic detection of whether the battery 142 enters the constant voltage charging stage can be to detect whether the battery 142 enters the constant voltage charging stage once every second preset time interval. The second preset time can be any time from 5S to 30S. For example, the second preset time can be 5S, 10S, 15S, 20S, 25S or 30S.
[0191] In some embodiments, the charging method of the present application may further include step S240, where after charging is completed, the cut-off voltage is set to the initial voltage.
[0192] Specifically, as mentioned above, the inventive idea of the embodiment of the present application is to increase the actual battery voltage when the battery 142 is fully charged by adjusting the cut-off voltage of the charging chip 140. In addition, when the battery 142 enters the constant voltage charging stage, the cut-off voltage is the initial voltage. Therefore, in order to smoothly implement the charging method of the present application, the charging chip can set the cut-off voltage to the initial voltage after the charging is completed. The end of charging here means that the electronic device 10 is disconnected from the charger 20, that is, the charging chip 140 no longer inputs electrical energy. In some other embodiments, step S240 can also be executed when the electronic device 10 starts charging. That is, when the electronic device 10 is connected to the charger 20 and the charging chip 140 starts to input electrical energy, the cut-off voltage is set to the initial voltage.
[0193] In some embodiments, the charging method of the present application may further include step S220 before step S110 , where the charging chip 140 periodically detects the charging current of the battery 142 .
[0194] Specifically, before executing step S110, the charging chip 140 may periodically detect the charging current output by the charging chip 140 to the battery 142. If the charging current is within the preset current range, steps S110 to S190 are executed. The periodic detection of the charging current of the battery 142 here may be detecting the charging current of the battery 142 once every second preset time interval, or may be detecting the charging current of the battery 142 once every other preset time interval.
[0195] Depend on Figure 3 It can be seen that in the constant voltage charging stage, the charging current output by the charging chip 140 to the battery 142 is constantly decreasing. Since the larger the charging current, the larger the battery voltage fluctuation caused by the characteristics of the battery 142, and the less accurate the sampling, in the embodiment of the present application, step S110 can be performed when the charging current is less than a certain current threshold. The minimum value of the preset current range should be greater than the cut-off current.
[0196] In some embodiments, the charging method of the present application may further include the following steps S232 , S234 and S236 before step S110 .
[0197] S232 , the charging chip 140 detects the temperature of the battery 142 after the battery 142 enters the constant voltage charging stage.
[0198] S234, if the temperature of the battery 142 is within the preset temperature range, the charging chip 140 executes the step of increasing the cut-off voltage by the preset voltage and subsequent steps during the constant voltage charging process of the battery 142. If the charging chip 140 determines that the battery voltage detected by the fuel gauge 143 is less than or equal to the first voltage threshold,
[0199] S236, if the temperature of the battery 142 is not within the preset temperature range, the charging chip 140 sets the cut-off voltage to the initial voltage.
[0200] Step S232 is performed before step S110. That is to say, in the constant voltage charging stage, the charging chip 140 needs to detect the temperature of the battery 142 first. If the temperature of the battery 142 is within the preset temperature range, the charging chip 140 executes step S110 and subsequent steps. If the temperature of the battery 142 is not within the preset temperature range, the charging chip 140 sets the cut-off voltage to the initial voltage to ensure the charging safety of the battery 142. In some embodiments, the minimum value of the preset temperature range can be any value from 0°C (Celsius) to 20°C, and the maximum value of the preset temperature range can be any value from 40°C to 60°C. In some specific embodiments, the preset temperature range is 10°C to 45°C.
[0201] The following, in conjunction with the accompanying drawings, describes in detail the charging method provided in the embodiment of the present application from five different situations of a specific implementation method.
[0202] Fig.13 This is a flow chart of another charging method provided in an embodiment of the present application. Fig.13 As shown, the charging method may include the following steps S12 to S15, S1A to S11, and S16.
[0203] S12, whether to enter the constant voltage charging stage.
[0204] The charging chip 140 detects whether the battery 142 enters the constant voltage charging stage. If the determination result of step S12 is no, step S13 is executed. If the determination result of step S12 is yes, step S14 is executed.
[0205] S13, waiting for a second preset time period.
[0206] After step S13 is completed, the process returns to step S12. That is, if the constant voltage charging stage has not been entered, the charging chip 140 periodically (each second preset time interval is one period) detects whether the battery 142 has entered the constant voltage charging stage.
[0207] S14, whether the charging current is within a preset range.
[0208] The charging chip 140 detects whether the charging current output to the battery 142 is within a preset range. If the judgment result of step S14 is no, step S13 is executed. That is, the charging chip 140 periodically (each second preset time interval is a cycle) detects the charging current of the battery 142 until the charging current is within the preset current range.
[0209] If the determination result of step S14 is yes, step S15 is executed.
[0210] S15, whether the temperature of the battery 142 is within a preset temperature range.
[0211] The charging chip 140 detects the temperature of the battery 142. If the temperature of the battery 142 is within the preset temperature range, step S1A is executed. If the temperature of the battery 142 is not within the preset temperature range, the charging method is exited and step S9 is executed.
[0212] S1A, when the battery 142 enters the constant voltage charging stage, M=0 and N=0.
[0213] It is understandable that the "when the battery 142 enters the constant voltage charging stage" in step S1A is used to define that step S1A is before step S2. In some embodiments, the step of setting M=0 and setting N=0 can be performed simultaneously with step S14. In other embodiments, the step of setting M=0 and setting N=0 can also be performed after step S15 and before step S2.
[0214] S2, determining whether the battery voltage detected by the fuel gauge 143 is greater than a first voltage threshold.
[0215] The charging chip 140 determines whether the battery voltage detected by the fuel gauge 143 is greater than a preset first voltage threshold. If the determination result of step S2 is yes, step S9 is executed. If the determination result of step S2 is no, step S3 is executed.
[0216] S3, the cut-off voltage is increased by a preset voltage, and M=M+1.
[0217] S4, waiting for a first preset time period.
[0218] S5, determining whether the battery voltage detected by the fuel gauge 143 is greater than a first voltage threshold.
[0219] After the cut-off voltage increases by the preset voltage for the first preset time, it is determined again whether the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold. If the determination result of step S5 is yes, step S6 is executed. If the determination result of step S5 is no, step S7 is executed.
[0220] S6, determining whether the battery voltage detected by the fuel gauge 143 is less than or equal to a second voltage threshold.
[0221] After the cut-off voltage increases by a preset voltage for a first preset time, when the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold, it is also necessary to determine whether the battery voltage detected by the fuel gauge 143 is less than or equal to the second voltage threshold. If the determination result of step S6 is yes, step S8 is executed. If the determination result of step S6 is no, step S10 is executed.
[0222] S8, charging the battery 142 according to the adjusted cut-off voltage.
[0223] That is, after a first preset time after the cut-off voltage is adjusted, if the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold, the battery 142 is charged according to the adjusted cut-off voltage.
[0224] S7, determining whether M is less than a first preset threshold.
[0225] If the judgment result of step S7 is yes, then the process returns to step S3. If the judgment result of step S7 is no, then the process proceeds to step S9.
[0226] S10, the cut-off voltage is reduced by a preset voltage, and N=N+1.
[0227] S11, determining whether N is less than a second preset threshold.
[0228] If the judgment result of step S11 is yes, then the process returns to step S4. If the judgment result of step S11 is no, then the process goes to step S9.
[0229] S9, setting the cut-off voltage to the initial voltage.
[0230] S16, after charging is completed, the cut-off voltage is set to the initial voltage.
[0231] The following five possible situations in this specific implementation are described by way of examples. In the following five possible situations, the rated voltage of the battery 142 is 4450mV, the sampling error of the charging chip 140 is 20mV, the sampling error of the fuel gauge 143 is 7.5mV, the initial voltage is 4430mV, the preset voltage is 10mV, the first voltage threshold is 4430mV, the second voltage threshold is 4442.5mV, and the first preset threshold and the second preset threshold are both 3. In the following five possible situations, the judgment results of step S12, step S14 and step S15 are all yes, so the description of the following five possible situations starts from step S1A.
[0232] (1) The first possible scenario
[0233] When the battery enters the constant voltage charging stage, the charging chip 140 sets M and N to 0. At this time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4435mV, which is greater than 4430mV, so the judgment result of step S2 is yes. In this case, the battery 142 is directly charged at a constant voltage according to the initial voltage. That is, the cut-off voltage is 4430mV.
[0234] In this possible case, based on the fact that the fuel gauge 143 has a sampling error of 7.5 mV, the actual battery voltage is a minimum of 4427.5 mV and a maximum of 4442.5 mV.
[0235] (2) The second possible scenario
[0236] When the battery enters the constant voltage charging stage, the charging chip 140 sets M and N to 0. At this time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4415mV, which is less than 4430mV, so the judgment result of step S2 is no. In this case, the cut-off voltage increases by 10mV, and M=M+1. At this time, the cut-off voltage is adjusted to 4440mV, and M=1.
[0237] After waiting for the first preset time, the battery voltage detected by the power meter 143 received by the charging chip 140 is 4440mV, which is greater than 4430mV and less than 4442.5mV, so the judgment results of step S5 and step S6 are both yes. In this case, the battery 142 is charged at a constant voltage according to the adjusted cut-off voltage. That is, the cut-off voltage is 4440mV.
[0238] In this possible situation, before the cut-off voltage is adjusted, based on the 7.5mV sampling error of the fuel gauge 143, the actual battery voltage is 4410mV at the minimum and 4422.5mV at the maximum. After the cut-off voltage is adjusted, the actual battery voltage is 4432.5mV at the minimum and 4447.5mV at the maximum. It can be seen that the actual battery voltage when the battery 142 is fully charged is increased, thereby increasing the actual capacity of the battery 142 when it is fully charged.
[0239] (3) The third possible scenario
[0240] When the battery enters the constant voltage charging stage, the charging chip 140 sets M and N to 0. At this time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4415mV, which is less than 4430mV, so the judgment result of step S2 is no. In this case, the cut-off voltage increases by 10mV, and M=M+1. At this time, the cut-off voltage is adjusted to 4440mV, and M=1.
[0241] After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4445mV, which is greater than 4430mV and greater than 4442.5mV, so the judgment result of step S5 is yes, and the judgment result of step S6 is no. In this case, the cut-off voltage is reduced by 10mV, and N=N+1. At this time, the cut-off voltage is adjusted to 4430mV, and N=1.
[0242] Since N=1, the judgment result of step S11 is yes, and the process returns to step S4. After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4435mV, which is greater than 4430mV and less than 4442.5mV, so the judgment results of steps S5 and S6 are both yes. In this case, the battery 142 is charged at a constant voltage according to the cut-off voltage obtained by the last adjustment. In other words, the cut-off voltage is 4430mV.
[0243] In this possible situation, before the cut-off voltage is adjusted, based on the 7.5mV sampling error of the fuel gauge 143, the actual battery voltage is 4410mV at the minimum and 4422.5mV at the maximum. After the cut-off voltage is adjusted, the actual battery voltage is 4427.5mV at the minimum and 4442.5mV at the maximum. It can be seen that the actual battery voltage when the battery 142 is fully charged is increased, thereby increasing the actual capacity of the battery 142 when it is fully charged.
[0244] (4) The fourth possible situation
[0245] When the battery enters the constant voltage charging stage, the charging chip 140 sets M and N to 0. At this time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4415mV, which is less than 4430mV, so the judgment result of step S2 is no. In this case, the cut-off voltage increases by 10mV, and M=M+1. At this time, the cut-off voltage is adjusted to 4440mV, and M=1.
[0246] After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4445mV, which is greater than 4430mV and greater than 4442.5mV, so the judgment result of step S5 is yes, and the judgment result of step S6 is no. In this case, the cut-off voltage is reduced by 10mV, and N=N+1. At this time, the cut-off voltage is adjusted to 4430mV, and N=1.
[0247] Since N=1, the judgment result of step S11 is yes, and the process returns to step S4. After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4420mV, which is less than 4430mV, so the judgment result of step S5 is no, and step S7 is executed. Since M=1, the judgment result of step S7 is yes, and the process returns to step S3. In this case, the cut-off voltage increases by 10mV, and M=M+1. At this time, the cut-off voltage is adjusted to 4440mV, and M=2.
[0248] After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4448mV, which is greater than 4430mV and greater than 4442.5mV, so the judgment result of step S5 is yes, and the judgment result of step S6 is no. In this case, the cut-off voltage is reduced by 10mV, and N=N+1. At this time, the cut-off voltage is adjusted to 4430mV, and N=2.
[0249] Since N=2, the judgment result of step S11 is yes, and the process returns to step S4. After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4418mV, which is less than 4430mV, so the judgment result of step S5 is no, and step S7 is executed. Since M=2, the judgment result of step S7 is yes, and the process returns to step S3. In this case, the cut-off voltage increases by 10mV, and M=M+1. At this time, the cut-off voltage is adjusted to 4440mV, and M=3.
[0250] After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4445mV, which is greater than 4430mV and greater than 4442.5mV, so the judgment result of step S5 is yes, and the judgment result of step S6 is no. In this case, the cut-off voltage is reduced by 10mV, and N=N+1. At this time, the cut-off voltage is adjusted to 4430mV, and N=3.
[0251] Since N=3, the judgment result of step S11 is no, and step S9 is executed at this time to set the cut-off voltage to the initial voltage, that is, 4430 mV, and charge the battery 142 accordingly.
[0252] (5) The fifth possible scenario
[0253] When the battery enters the constant voltage charging stage, the charging chip 140 sets M and N to 0. At this time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4415mV, which is less than 4430mV, so the judgment result of step S2 is no. In this case, the cut-off voltage increases by 10mV, and M=M+1. At this time, the cut-off voltage is adjusted to 4440mV, and M=1.
[0254] After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4445mV, which is greater than 4430mV and greater than 4442.5mV, so the judgment result of step S5 is yes, and the judgment result of step S6 is no. In this case, the cut-off voltage is reduced by 10mV, and N=N+1. At this time, the cut-off voltage is adjusted to 4430mV, and N=1.
[0255] Since N=1, the judgment result of step S11 is yes, and the process returns to step S4. After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4420mV, which is less than 4430mV, so the judgment result of step S5 is no, and step S7 is executed. Since M=1, the judgment result of step S7 is yes, and the process returns to step S3. In this case, the cut-off voltage increases by 10mV, and M=M+1. At this time, the cut-off voltage is adjusted to 4440mV, and M=2.
[0256] After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4422mV, which is less than 4430mV. Therefore, the judgment result of step S5 is no, and step S7 is executed. Since M=2, the judgment result of step S7 is yes, and step S3 is returned to be executed. In this case, the cut-off voltage increases by 10mV, and M=M+1. At this time, the cut-off voltage is adjusted to 4450mV, and M=3.
[0257] After waiting for the first preset time, the battery voltage detected by the fuel gauge 143 received by the charging chip 140 is 4430mV, so the judgment result of step S5 is no, and step S7 is executed. Since M=3, the judgment result of step S7 is no, and step S9 is executed at this time, the cut-off voltage is set to the initial voltage, that is, 4430mV, and the battery 142 is charged accordingly.
[0258] In the embodiment of the present application, the term "battery voltage detected by the fuel gauge 143" is only used to limit the battery voltage to be detected by the fuel gauge 143 and transmitted to the charging chip 140. It is understandable that the battery voltage detected by the fuel gauge 143 can be a voltage value or an average of multiple voltage values.
[0259] The charging method provided in the embodiment of the present application has at least the following beneficial effects: (1) During the constant voltage charging process of the battery 142, the charging chip 140 can adjust the cut-off voltage according to the battery voltage detected by the fuel gauge 143 with a small sampling error. When the battery 142 enters the constant voltage charging stage, the cut-off voltage is the initial voltage. In this case, if the battery voltage detected by the fuel gauge 143 is less than or equal to the first voltage threshold, it indicates that the actual battery voltage is small. At this time, the charging chip 140 increases the cut-off voltage by a preset voltage, that is, adjusts the cut-off voltage to a higher value. After the cut-off voltage is increased, the actual battery voltage will change. After the cut-off voltage is increased by a preset voltage for a first preset time, the battery voltage detected by the charging chip 140 is equal to the cut-off voltage after the preset voltage is increased. At this time, if the battery voltage detected by the fuel gauge 143 is greater than the first voltage threshold and less than or equal to the second voltage threshold, it indicates that the actual battery voltage is large, and the cut-off voltage is kept unchanged during the constant voltage charging process of the battery 142. That is, at this time, the battery 142 is charged at a constant voltage according to the increased cut-off voltage. In this process, since the cut-off voltage is increased and the battery voltage error detected by the fuel gauge 143 is small, the minimum and maximum values of the actual battery voltage when the battery 142 is fully charged will increase, which can increase the actual battery voltage when the battery 142 is fully charged, thereby increasing the actual capacity of the battery 142 when it is fully charged. (2) The cut-off voltage can be increased by multiple preset voltages, thereby increasing the actual battery voltage when the battery 142 is fully charged, and increasing the actual capacity of the battery 142 when it is fully charged. In addition, the first preset threshold can be adjusted to prevent the cut-off voltage from increasing by too many times to cause overcharging of the battery 142. At the same time, when the number of times the cut-off voltage increases by the preset voltage reaches the threshold number, if the battery voltage detected by the fuel gauge 143 is still less than or equal to the first voltage threshold, it indicates that an error may occur in the process. At this time, the cut-off voltage is directly set to the initial voltage. In this way, the charging safety of the battery 142 can be improved. (3) The cut-off voltage can be reduced by multiple preset voltages, thereby preventing the battery 142 from being overcharged. In addition, the first preset threshold can be adjusted to prevent the cut-off voltage from decreasing by too many times to cause the actual battery voltage to be too low. Meanwhile, when the number of times the cut-off voltage decreases by the preset voltage reaches the threshold number, the battery voltage detected by the fuel gauge 143 is still greater than the second voltage threshold, indicating that an error may have occurred in the process, and at this time, the cut-off voltage is directly set to the initial voltage. In this way, the charging safety of the battery 142 can be improved.
[0260] The embodiment of the present application also provides an electronic device, including a battery 142, a charging chip 140, and a fuel gauge 143. The charging chip 140 includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, a charging method as in any of the above embodiments is implemented.
[0261] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (such as: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (such as: infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital versatile disc (DVD)), or a semiconductor medium (such as a solid state disk (SSD)).
[0262] The above are optional embodiments provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the technical scope disclosed in the present application shall be included in the protection scope of the present application.
Claims
1. A charging method, characterized in that: A charging chip applied to an electronic device, wherein the charging chip performs constant voltage charging on the battery when the battery voltage detected by the charging chip is equal to the cut-off voltage, the electronic device further comprises a fuel gauge, a sampling error of the fuel gauge detecting the battery voltage is smaller than a sampling error of the charging chip detecting the battery voltage, and the method comprises: During the constant voltage charging process of the battery, if it is determined that the battery voltage detected by the fuel gauge is less than or equal to a first voltage threshold, increasing the cut-off voltage by a preset voltage; After the cut-off voltage is increased by a first preset time after the preset voltage, if it is determined that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and less than or equal to the second voltage threshold, the cut-off voltage is kept unchanged during the constant voltage charging process of the battery.
2. The charging method according to claim 1, characterized in that: The method further comprises: When the battery enters the constant voltage charging stage, M is set to be equal to 0; The method of increasing the cut-off voltage by a preset voltage if it is determined that the battery voltage detected by the fuel gauge is less than or equal to a first voltage threshold during the constant voltage charging process of the battery comprises: During the constant voltage charging process of the battery, if it is determined that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, and M is equal to 0, the cut-off voltage is increased by the preset voltage, and M=M+1.
3. The charging method according to claim 2, characterized in that: The method further comprises: After the cut-off voltage is increased by the preset voltage for the first preset time period, if it is determined that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, and M is less than the first preset threshold, the cut-off voltage is increased by the preset voltage, and M=M+1, where the first preset threshold is an integer greater than or equal to 2.
4. The charging method according to claim 2, characterized in that: The cut-off voltage is an initial voltage when the battery enters the constant voltage charging stage, and the method further includes: After the cut-off voltage is increased by the first preset time after the preset voltage, if it is determined that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, and M is greater than or equal to the first preset threshold, the cut-off voltage is set to the initial voltage, and the first preset threshold is an integer greater than or equal to 2.
5. The charging method according to any one of claims 1 to 4, characterized in that: The method further comprises: After the cut-off voltage is increased by a first preset time period after the preset voltage, if it is determined that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, the cut-off voltage is reduced by the preset voltage; After the cut-off voltage is reduced by a first preset time after the preset voltage, if it is determined that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and less than or equal to the second voltage threshold, the cut-off voltage is maintained unchanged during the constant voltage charging process of the battery.
6. The charging method according to claim 5, characterized in that: The method further comprises: When the battery enters the constant voltage charging stage, N is set to be equal to 0; After the cut-off voltage is increased by the preset voltage for a first preset time period, if it is determined that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, then the cut-off voltage is reduced by the preset voltage, comprising: After the cutoff voltage is increased by the preset voltage for a first preset time period, if it is determined that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, and N is equal to 0, the cutoff voltage is reduced by the preset voltage, and N=N+1.
7. The charging method according to claim 6, characterized in that: The method further comprises: After the cut-off voltage is reduced by the preset voltage for the first preset time period, if it is determined that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, and N is less than the second preset threshold, the cut-off voltage is reduced by the preset voltage, and N=N+1, and the second preset threshold is an integer greater than or equal to 2.
8. The charging method according to claim 6, characterized in that: The cut-off voltage is an initial voltage when the battery enters the constant voltage charging stage, and the method further includes: After the cut-off voltage is reduced by the preset voltage for a first preset time period, if it is determined that the battery voltage detected by the fuel gauge is greater than the first voltage threshold and greater than the second voltage threshold, and N is greater than or equal to the second preset threshold, the cut-off voltage is set to the initial voltage, and the second preset threshold is an integer greater than or equal to 2.
9. The charging method according to claim 1, characterized in that: The cut-off voltage is an initial voltage when the battery enters a constant voltage charging stage, and the method further includes: During the constant voltage charging process of the battery, if it is determined that the battery voltage detected by the fuel gauge is greater than the first voltage threshold, the cut-off voltage is set to the initial voltage.
10. The charging method according to any one of claims 1 to 9, characterized in that: The cut-off voltage is an initial voltage when the battery enters a constant voltage charging stage, the first voltage threshold is greater than or equal to a difference between the initial voltage and a sampling error of the charging chip, and the first voltage threshold is less than or equal to a sum of the initial voltage and a sampling error of the charging chip; The second voltage threshold is less than or equal to a difference between a rated voltage of the battery and a sampling error of the fuel gauge.
11. The charging method according to any one of claims 1 to 10, characterized in that: In the constant voltage charging process of the battery, if it is determined that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, before the cut-off voltage is increased by a preset voltage, the method further includes: Periodically detecting whether the battery enters a constant voltage charging stage; If the battery enters the constant voltage charging stage, the step of increasing the cut-off voltage by a preset voltage and subsequent steps are performed during the constant voltage charging process of the battery if it is determined that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold.
12. The charging method according to any one of claims 1 to 11, characterized in that: In the constant voltage charging process of the battery, if it is determined that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, before the cut-off voltage is increased by a preset voltage, the method further includes: Periodically detecting the charging current of the battery; If the charging current is within the preset current range, the step of increasing the cut-off voltage by a preset voltage and subsequent steps are performed during the constant voltage charging process of the battery if it is determined that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold.
13. The charging method according to any one of claims 1 to 12, characterized in that: In the constant voltage charging process of the battery, if it is determined that the battery voltage detected by the fuel gauge is less than or equal to the first voltage threshold, before the cut-off voltage is increased by a preset voltage, the method further includes: detecting the temperature of the battery after the battery enters a constant voltage charging stage; If the temperature of the battery is within a preset temperature range, the step of increasing the cutoff voltage by a preset voltage and subsequent steps are performed during the constant voltage charging process of the battery if it is determined that the battery voltage detected by the fuel gauge is less than or equal to a first voltage threshold.
14. The charging method according to any one of claims 1 to 13, characterized in that: The cut-off voltage is an initial voltage when the battery enters a constant voltage charging stage, and the charging method further includes: If charging of the battery is stopped, the cut-off voltage is set to the initial voltage.
15. The charging method according to any one of claims 1 to 14, characterized in that: The charging chip is connected to the fuel meter to receive the battery voltage detected by the fuel meter and sent by the fuel meter.
16. An electronic device, characterized in that: The electronic device includes a battery, a charging chip and a fuel meter. The charging chip includes a memory, a processor and a computer program stored in the memory and executable on the processor. When the computer program is executed by the electronic device, the charging method according to any one of claims 1 to 15 is implemented.
