Charging control method, device, electronic device and storage medium

By acquiring the charging current in the terminal device and determining the current threshold based on the battery status information, the problem of difficulty in dynamically configuring the charging cutoff function in the prior art is solved, and flexible charging control and battery safety protection are realized.

CN113872303BActive Publication Date: 2025-03-18BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111236069.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2025-03-18
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

The prior art is difficult to dynamically configure the charging cutoff function, and cannot flexibly implement charging control, resulting in the risk of overcharging the battery.

Method used

By obtaining the current charging current when the terminal device is in the charged state, and determining the first current threshold based on the battery status information (such as temperature and supplier identification), if the charging current is less than this threshold, the terminal device is controlled to switch from the charging state to the uncharged state.

Benefits of technology

It realizes dynamic adjustment of the charging cutoff current according to the temperature and characteristic parameters of the battery, and flexibly configures the charging cutoff function, avoiding the life loss and explosion risks caused by battery overcharging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113872303B_ABST
    Figure CN113872303B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a charging control method and device, and belongs to the field of charging technology. The method includes: when the terminal device is in a charging state, obtaining the current charging current of the terminal device, and if the charging current is less than a first current threshold, controlling the terminal device to switch from a charging state to an uncharging state, wherein the first current threshold is determined according to the status information of the battery of the terminal device. Thus, the present disclosure can provide the high cut-off current required for high-power charging, dynamically adjust the first current threshold, i.e., the cut-off current, according to the temperature difference of the battery at different time points and the difference in status information such as different battery suppliers, and terminate the charging in time when the charging is completed, thereby flexibly realizing charging control and dynamically configuring the charging cut-off function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of charging technology, and in particular to a charging control method, device, electronic device and storage medium. Background Art

[0002] In simple terms, charging cutoff means that the phone starts charging from a low battery level and stops charging when it is fully charged. This judgment mechanism is called charging cutoff. Charging control based on the charging cutoff mechanism can prevent battery overcharging. However, as the charging power required by terminal devices increases and the types of batteries used become more and more extensive, how to configure the charging cutoff function has become an urgent problem to be solved in the industry. Summary of the invention

[0003] The present disclosure provides a charging control method, device, terminal device, electronic device, and computer-readable storage medium to at least solve the problem in the related art that it is difficult to dynamically configure the charging cutoff function and cannot flexibly implement charging control. The technical solution of the present disclosure is as follows:

[0004] According to a first aspect of an embodiment of the present disclosure, a charging control method is provided, comprising: when a terminal device is in a charging state, obtaining a current charging current of the terminal device; if the charging current is less than a first current threshold, controlling the terminal device to switch from a charging state to an uncharging state, wherein the first current threshold is determined based on status information of a battery of the terminal device.

[0005] In one embodiment of the present disclosure, the method further includes: determining the first current threshold based on the status information through a correspondence between the pre-set status information and the first current threshold, wherein the status information includes at least one of the following: the temperature of the battery and the battery supplier identifier.

[0006] In one embodiment of the present disclosure, if the charging current is less than a first current threshold, the terminal device is controlled to switch from a charging state to a non-charging state, including: if the charging current is less than the first current threshold, the power management integrated circuit chip of the terminal device is controlled to stop outputting the charging current, so as to control the terminal device to switch from a charging state to a non-charging state.

[0007] In one embodiment of the present disclosure, if the charging current is less than the first current threshold, the power management integrated circuit chip of the terminal device is controlled to stop outputting the charging current, including: if the charging current is less than the first current threshold and the cutoff flag of the terminal device's fuel meter is obtained, the power management integrated circuit chip is controlled to stop outputting the charging current.

[0008] In one embodiment of the present disclosure, if the charging current is less than a first current threshold, then controlling the terminal device to switch from a charging state to an uncharging state includes: if the charging current is less than the first current threshold, and the power management integrated circuit chip of the terminal device has not stopped outputting the charging current, then controlling the power management integrated circuit chip to disconnect the charging circuit of the battery when the charging current is lower than a second current threshold, so as to control the terminal device to switch from a charging state to an uncharging state.

[0009] In one embodiment of the present disclosure, the second current threshold is a maximum current threshold set by the power management integrated circuit chip.

[0010] In one embodiment of the present disclosure, if the charging current is less than a first current threshold, then before controlling the terminal device to switch from a charging state to an uncharging state, it also includes: judging whether the terminal device is in a constant current charging mode according to the charging current; if the terminal device is in a constant current charging mode, judging whether the charging current is less than the first current threshold.

[0011] According to the second aspect of an embodiment of the present disclosure, a charging control device is provided, including: an acquisition module, configured to acquire a current charging current of the terminal device when the terminal device is in a charging state; a charging control module, configured to control the terminal device to switch from a charging state to an uncharging state if the charging current is less than a first current threshold, wherein the first current threshold is determined based on status information of a battery of the terminal device.

[0012] In one embodiment of the present disclosure, the device also includes: a determination module, configured to determine the first current threshold based on the status information through a correspondence between the preset status information and the first current threshold, wherein the status information includes at least one of the following: the temperature of the battery and the battery supplier identifier.

[0013] In one embodiment of the present disclosure, the charging control module is configured to execute: if the charging current is less than the first current threshold, control the power management integrated circuit chip of the terminal device to stop outputting the charging current, so as to control the terminal device to switch from a charging state to a non-charging state.

[0014] In one embodiment of the present disclosure, the charging control module is further configured to execute: if the charging current is less than the first current threshold and the cutoff flag of the terminal device power meter is obtained, then control the power management integrated circuit chip to stop outputting the charging current.

[0015] In one embodiment of the present disclosure, the charging control module is further configured to execute: if the charging current is less than the first current threshold and the power management integrated circuit chip of the terminal device has not stopped outputting the charging current, then control the power management integrated circuit chip to disconnect the charging circuit of the battery when the charging current is lower than the second current threshold, so as to control the terminal device to switch from a charging state to a non-charging state.

[0016] In one embodiment of the present disclosure, the second current threshold is a maximum current threshold set by the power management integrated circuit chip.

[0017] In one embodiment of the present disclosure, the charging control module is further configured to execute: judging whether the terminal device is in a constant current charging mode according to the charging current; if the terminal device is in a constant current charging mode, judging whether the charging current is less than the first current threshold.

[0018] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement the charging control method as described in the first aspect of the embodiment of the present disclosure.

[0019] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the charging control method as described in the first aspect of the embodiment of the present disclosure.

[0020] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: the second current threshold can be determined according to the acquired battery temperature and the characteristic parameters of the battery, and when it is detected that the charging current of the battery is lower than the second current threshold, the power management integrated circuit chip is controlled to stop outputting the charging current. Thus, the second current threshold can be dynamically adjusted according to the battery temperature and the characteristic parameters of the battery, thereby flexibly realizing charging control and dynamically configuring the charging cut-off function.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0023] Figure 1 The figure is a flow chart of a charging control method according to an exemplary embodiment.

[0024] Figure 2 The figure is a flow chart showing periodically acquiring temperature in a charging control method according to an exemplary embodiment.

[0025] Figure 3 is a block diagram of a charging control device according to an exemplary embodiment.

[0026] Figure 4 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0027] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0029] Figure 1 is a flow chart of a charging control method according to an exemplary embodiment. Figure 1 As shown, the charging control method of the embodiment of the present disclosure may include the following steps.

[0030] S101, when the terminal device is in a charging state, obtaining a current charging current of the terminal device.

[0031] It should be noted that the executor of the charging control method of the embodiment of the present disclosure is the charging control device provided by the embodiment of the present disclosure, and the device can be set in an electronic device, such as a terminal device, to execute the charging control method of the embodiment of the present disclosure.

[0032] The disclosed embodiments can be applied to scenarios of high-power charging or charging batteries from multiple suppliers to flexibly implement charging control and dynamically configure the charging cutoff function to avoid the risk of battery overcharging, as well as safety issues such as battery life being affected by overcharging or even battery explosion.

[0033] In the embodiment of the present disclosure, when the terminal device is in a charging state, the charging current of the terminal device is acquired so as to perform charging control according to the charging current.

[0034] In some implementations, when the terminal device is in a charging state, a charging current may be output by a power management integrated circuit (PMIC) chip to charge the battery of the terminal device.

[0035] In some implementations, the charging current may be obtained via a fuel gauge in the battery pack.

[0036] S102: If the charging current is less than a first current threshold, the terminal device is controlled to switch from a charging state to an uncharging state, wherein the first current threshold is determined based on the status information of the battery of the terminal device.

[0037] It can be understood by those skilled in the art that when charging a battery, a constant current charging mode is first turned on. As the voltage continues to rise, when the battery cut-off voltage is reached, it is necessary to switch to a constant voltage charging mode. At this time, the current continues to decrease until charging is completed. To avoid overcharging the battery, a current threshold needs to be set as the cut-off current to stop charging in time when charging is completed.

[0038] In the disclosed embodiment, during the battery charging process, the acquired charging current is judged, so that when the charging current is less than a first current threshold, the terminal device is controlled to switch from a charging state to an uncharging state.

[0039] The first current threshold is determined based on the status information of the battery of the terminal device, and the status information may include but is not limited to the temperature of the battery, the supplier identification of the battery, the charging cut-off voltage of the battery, and the type of battery cell, etc., which are not limited in this disclosure. Each battery supplier has a corresponding supplier identification, and the supplier identification can be used to distinguish the supplier of the battery. The embodiment of this disclosure does not specifically limit the form of expression of the battery supplier identification.

[0040] It is not difficult to understand that during the battery charging process, information such as battery temperature, battery supplier identification and battery cell type can be used as important parameters for charging control, which facilitates charging control within the normal working state of the battery and avoids continuous charging of the battery when the temperature is too high, which may affect the battery life and even cause safety hazards.

[0041] In one embodiment, when the terminal device detects that a charger is inserted, the battery vendor identifier can be obtained by identifying the battery identifier, and a request can be sent to a fuel gauge in the battery pack to obtain battery status information such as the battery temperature. It should be noted that in the embodiment of the present application, the status information may include but is not limited to at least one of the following: the battery temperature and the battery vendor identifier.

[0042] In some embodiments, the first current threshold may be determined based on the state information through a preset correspondence between the state information and the first current threshold.

[0043] For example, the first current threshold configuration table can be searched according to the temperature and the supplier identification, and a suitable first current threshold can be selected as the charging cut-off current. As shown in Table 1, the first current threshold configuration table may include the correspondence between temperature-supplier identification-first current threshold. The first current threshold table can be obtained through historical accumulation or data sharing and pre-stored in the database.

[0044] Table 1 First current threshold configuration table

[0045]

[0046] For example, if the current temperature of the battery is 20 degrees and the battery supplier is identified as A, 850 mA may be selected as the first current threshold.

[0047] The charging control method provided by the embodiment of the present disclosure obtains the current charging current of the terminal device when the terminal device is in the charging state, and controls the terminal device to switch from the charging state to the uncharging state if the charging current is less than the first current threshold, wherein the first current threshold is determined according to the state information of the battery of the terminal device. Thus, the present disclosure can provide the high cut-off current required for high-power charging, dynamically adjust the first current threshold, i.e., the cut-off current, according to the state information such as the temperature difference of the battery at different time points and the difference between different battery suppliers, and terminate the charging in time when the charging is completed, thereby flexibly realizing the charging control, dynamically configuring the charging cut-off function, and effectively avoiding the loss of battery life and the risk of battery explosion caused by overcharging.

[0048] In one implementation, the first current threshold can be dynamically adjusted by periodically acquiring the temperature, that is, during the charging process, the temperature of the battery is cyclically acquired based on a preset time interval, and the first current threshold is dynamically adjusted according to the current temperature, such as Figure 2 As shown, the charging control method may include the following steps:

[0049] S201, obtaining the temperature of the battery.

[0050] S202: Adjust a first current threshold according to the temperature of the battery.

[0051] S203, determining whether the charging current of the battery is less than a first current threshold.

[0052] If yes, execute step S204; if no, execute step S205;

[0053] S204, controlling the power management integrated circuit chip to stop outputting the charging current.

[0054] S205, determining whether a preset time interval has been reached.

[0055] If yes, return to step S201; if no, return to step S203.

[0056] It should be noted that the implementation method of the embodiments of the present disclosure can refer to the explanation of the above embodiments, which will not be repeated here.

[0057] Further, based on any of the above embodiments, in step S102, "if the charging current is less than the first current threshold, then controlling the terminal device to switch from the charging state to the uncharging state" may specifically include: if the charging current is less than the first current threshold, then controlling the power management integrated circuit (Rower Management IC, PMIC for short) chip of the terminal device to stop outputting the charging current, thereby controlling the terminal device to switch from the charging state to the uncharging state.

[0058] As a feasible implementation, before obtaining the charging current, a current threshold of the fuel meter can be set on the fuel meter of the terminal device. When the fuel meter detects that the charging current is less than the current threshold of the fuel meter, the ammeter updates the cutoff flag, so that the present invention can obtain the cutoff flag of the ammeter by reading when the charging current is less than the first current threshold, and verify whether the charging current is less than the current threshold of the fuel meter according to the cutoff flag. If it is determined through the cutoff flag that the charging current is less than the current threshold of the fuel meter, the power management integrated circuit chip is controlled to stop outputting the charging current.

[0059] In some embodiments, as shown in Table 1, assuming that the temperature of the battery is 30 degrees at a certain moment, and the supplier is supplier A, 850mA can be selected as the first current threshold, and the maximum value of 1000mA among multiple first current thresholds of different suppliers and at different temperatures is selected as the current threshold of the ammeter. When charging enters the constant voltage mode, the charging current gradually decreases. When the charging current is lower than the current threshold of 1000mA of the ammeter, the cutoff flag of the ammeter is set to 1. When the charging current continues to decrease to the first current threshold of 850mA, the cutoff flag is obtained. If the cutoff flag is 1, the power management integrated circuit chip is controlled to stop outputting the charging current.

[0060] Further, based on any of the above embodiments, in step S102, "if the charging current is less than the first current threshold, then controlling the terminal device to switch from the charging state to the uncharging state" may also include: if the charging current is less than the first current threshold, and the power management integrated circuit chip does not stop outputting the charging current, then controlling the power management integrated circuit chip of the terminal device to disconnect the charging circuit of the battery when the charging current is lower than the second current threshold, so as to control the terminal device to switch from the charging state to the uncharging state.

[0061] Optionally, a second current threshold of the power management integrated circuit chip can be set before obtaining the charging current, so that when the charging current is less than the first current threshold but the control of the power management integrated circuit chip to stop outputting the charging current fails, the power management integrated circuit chip is controlled to disconnect the charging circuit of the battery when the charging current is lower than the second current threshold, thereby achieving hardware power-off through the second current threshold of the power management integrated circuit chip to prevent the battery from overcharging.

[0062] In one implementation, the second current threshold may be a maximum current threshold set by the power management integrated circuit chip.

[0063] Therefore, the embodiment of the present disclosure utilizes the first current threshold in combination with the current threshold of the ammeter and the second current threshold of the power management integrated circuit chip to achieve three-aspect charging cutoff, ensuring that the cutoff current can be dynamically selected according to the status information of the terminal device battery while utilizing the fuel meter and the power management integrated circuit chip as a guarantee for charging control, thereby enhancing the effect and reliability of charging control.

[0064] Further, based on the above embodiment, the embodiment of the present disclosure may further include a judgment process of the charging current before "if the charging current is less than the first current threshold, then controlling the terminal device to switch from the charging state to the uncharging state" in step S102, which may specifically include the following steps:

[0065] Step a: judging whether the terminal device is in a constant current charging mode according to the charging current.

[0066] In some embodiments, it is determined whether the terminal device is in a constant current charging mode based on the acquired charging current, that is, whether the charging current changes.

[0067] Step b: if the terminal device is in a constant current charging mode, determine whether the charging current is less than a first current threshold.

[0068] In some embodiments, if the terminal device is in a constant current charging mode, it is determined whether the charging current is less than a preset current threshold, so that when the charging current is less than the preset current threshold, the terminal device is controlled to switch from a charging state to an uncharging state to avoid overcharging of the battery. If the terminal device is not in a constant current charging mode, the charging current of the terminal device is continuously detected to determine whether the charging current of the terminal device is in a constant current charging mode.

[0069] As a feasible implementation method, the charging current of the battery of the terminal device in the charging state can be cyclically detected and judged by setting a time interval. For example, the charging current can be judged in a constant current charging mode and a constant voltage charging mode.

[0070] Figure 3FIG. 1 is a block diagram of a charging control device according to an exemplary embodiment. Figure 3 As shown, the charging control device 400 of the embodiment of the present disclosure includes: an acquisition module 401 and a charging control module 402 .

[0071] The acquisition module 401 is configured to acquire the current charging current of the terminal device when the terminal device is in a charging state.

[0072] The charging control module 402 is configured to control the terminal device to switch from a charging state to an uncharging state if the charging current is less than a first current threshold, wherein the first current threshold is determined according to the state information of the battery of the terminal device.

[0073] In one embodiment of the present disclosure, the charging control device also includes: a determination module, configured to determine the first current threshold based on status information through a correspondence between pre-set status information and the first current threshold, wherein the status information includes at least one of the following: battery temperature and battery supplier identification.

[0074] In one embodiment of the present disclosure, the charging control module 402 is configured to execute: if the charging current is less than the first current threshold, the power management integrated circuit chip of the terminal device is controlled to stop outputting the charging current, so as to control the terminal device to switch from a charging state to a non-charging state.

[0075] In one embodiment of the present disclosure, the charging control module 402 is further configured to execute: if the charging current is less than the first current threshold and the cutoff flag of the terminal device power meter is obtained, then control the power management integrated circuit chip to stop outputting the charging current.

[0076] In one embodiment of the present disclosure, the charging control module 402 is further configured to execute: if the charging current is less than a first current threshold and the power management integrated circuit chip of the terminal device has not stopped outputting the charging current, then the power management integrated circuit chip is controlled to disconnect the charging circuit of the battery when the charging current is lower than a second current threshold, so as to control the terminal device to switch from a charging state to a non-charging state.

[0077] In one embodiment of the present disclosure, the second current threshold is a maximum current threshold set by the power management integrated circuit chip.

[0078] In one embodiment of the present disclosure, the charging control module 402 is further configured to execute: determining whether the terminal device is in a constant current charging mode according to the charging current; if the terminal device is in the constant current charging mode, determining whether the charging current is less than a first current threshold.

[0079] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0080] The charging control device provided by the embodiment of the present disclosure obtains the current charging current of the terminal device when the terminal device is in the charging state, and controls the terminal device to switch from the charging state to the uncharging state if the charging current is less than the first current threshold, wherein the first current threshold is determined according to the state information of the battery of the terminal device. Thus, the present disclosure can provide the high cut-off current required for high-power charging, dynamically adjust the first current threshold, i.e., the cut-off current, according to the state information such as the temperature difference of the battery at different time points and the difference between different battery suppliers, and terminate the charging in time when the charging is completed, thereby flexibly realizing the charging control, dynamically configuring the charging cut-off function, and effectively avoiding the loss of battery life and the risk of battery explosion caused by overcharging.

[0081] Figure 4 is a block diagram of an electronic device 500 according to an exemplary embodiment.

[0082] like Figure 4 As shown, the electronic device 500 includes:

[0083] The memory 501 and the processor 502 , a bus 503 connecting different components (including the memory 501 and the processor 502 ), the memory 501 stores a computer program, and when the processor 502 executes the program, the charging control method described above in the embodiment of the present disclosure is implemented.

[0084] Bus 503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0085] The electronic device 500 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 500, including volatile and non-volatile media, removable and non-removable media.

[0086] The memory 501 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. The electronic device 500 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 506 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to bus 503 via one or more data medium interfaces. Memory 501 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.

[0087] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in the memory 501. Such program modules 507 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 507 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0088] The electronic device 500 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), one or more devices that enable a user to interact with the electronic device 500, and / or any device that enables the electronic device 500 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 512. Furthermore, the electronic device 500 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 513. Figure 4 As shown, the network adapter 513 communicates with other modules of the electronic device 500 via the bus 503. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0089] The processor 502 executes various functional applications and data processing by running the programs stored in the memory 501 .

[0090] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the aforementioned explanation of the charging control method of the embodiment of the present disclosure, and will not be repeated here.

[0091] The electronic device provided by the embodiment of the present disclosure can execute the charging control method as described above, and when the terminal device is in a charging state, obtain the current charging current of the terminal device, and if the charging current is less than the first current threshold, control the terminal device to switch from the charging state to the uncharging state, wherein the first current threshold is determined according to the state information of the battery of the terminal device. Thus, the present disclosure can provide the high cut-off current required for high-power charging, dynamically adjust the first current threshold, i.e., the cut-off current, according to the temperature difference of the battery at different time points and the difference in state information such as different battery suppliers, and terminate the charging in time when the charging is completed, thereby flexibly realizing charging control, dynamically configuring the charging cut-off function, and effectively avoiding the loss of battery life and the risk of battery explosion caused by overcharging.

[0092] In order to implement the above embodiments, the present disclosure also proposes a computer-readable storage medium.

[0093] When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device can perform the charging control method as described above. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0094] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0095] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A charging control method, characterized in that: include: When the terminal device is in a charging state, obtaining a current charging current of the terminal device; If the charging current is less than a first current threshold, controlling the terminal device to switch from a charging state to an uncharging state, wherein the first current threshold is determined according to the state information of the battery of the terminal device; If the charging current is less than the first current threshold, controlling the terminal device to switch from a charging state to a non-charging state includes: If the charging current is less than the first current threshold, controlling the power management integrated circuit chip of the terminal device to stop outputting the charging current, so as to control the terminal device to switch from a charging state to a non-charging state; If the charging current is less than the first current threshold and the power management integrated circuit chip of the terminal device has not stopped outputting the charging current, the power management integrated circuit chip is controlled to disconnect the charging circuit of the battery when the charging current is lower than the second current threshold, so as to control the terminal device to switch from a charging state to a non-charging state.

2. The charging control method according to claim 1, characterized in that: Also includes: Based on the state information, the first current threshold is determined through a preset correspondence between the state information and the first current threshold, wherein the state information includes at least one of the following: the temperature of the battery and the battery supplier identifier.

3. The charging control method according to claim 1, characterized in that: If the charging current is less than the first current threshold, controlling the power management integrated circuit chip of the terminal device to stop outputting the charging current includes: If the charging current is less than the first current threshold and the cut-off flag of the terminal device power meter is obtained, the power management integrated circuit chip is controlled to stop outputting the charging current.

4. The charging control method according to claim 1, characterized in that: The second current threshold is a maximum current threshold set by the power management integrated circuit chip.

5. The charging control method according to any one of claims 1 to 4, characterized in that: If the charging current is less than the first current threshold, before controlling the terminal device to switch from the charging state to the uncharging state, the method further includes: Determining whether the terminal device is in a constant current charging mode according to the charging current; If the terminal device is in a constant current charging mode, it is determined whether the charging current is less than the first current threshold.

6. A charging control device, characterized in that: include: An acquisition module is configured to acquire a current charging current of the terminal device when the terminal device is in a charging state; a charging control module, configured to control the terminal device to switch from a charging state to an uncharging state if the charging current is less than a first current threshold, wherein the first current threshold is determined according to the state information of the battery of the terminal device; The charging control module is configured to execute: If the charging current is less than the first current threshold, controlling the power management integrated circuit chip of the terminal device to stop outputting the charging current, so as to control the terminal device to switch from a charging state to a non-charging state; The charging control module is further configured to execute: If the charging current is less than the first current threshold and the power management integrated circuit chip of the terminal device has not stopped outputting the charging current, the power management integrated circuit chip is controlled to disconnect the charging circuit of the battery when the charging current is lower than the second current threshold, so as to control the terminal device to switch from a charging state to a non-charging state.

7. The charging control device according to claim 6, characterized in that: Also includes: The determination module is configured to determine the first current threshold based on the state information through a correspondence between the preset state information and the first current threshold, wherein the state information includes at least one of the following: the temperature of the battery and the battery supplier identification.

8. The charging control device according to claim 6, characterized in that: The charging control module is further configured to execute: If the charging current is less than the first current threshold and the cut-off flag of the terminal device power meter is obtained, the power management integrated circuit chip is controlled to stop outputting the charging current.

9. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the instructions to implement the charging control method according to any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the charging control method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Charging control method and apparatus, electronic device and computer-readable storage medium

    CN111183561A

  • Simulate non - balanced BMS protection shield with secondary protect function

    CN205070405U