Battery charging optimization methods, charging circuits, mobile terminals and storage media
By detecting the charging current and temperature, and adjusting the voltage drop of the switching element in the charging circuit, the problem of abnormal operation of the switching element at high temperatures was solved, ensuring that the charging circuit works normally during the constant current charging stage.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHONGQING TRANSSION COMM TECH LTD
- Filing Date
- 2020-10-27
- Publication Date
- 2026-05-26
AI Technical Summary
Switching elements in the charging circuit may malfunction when the ambient temperature rises, leading to abnormal charging.
By detecting the charging current and the temperature of the switching element, the voltage drop of the first switching element is adjusted to ensure that the switching element maintains normal operation during the constant current charging stage.
When the temperature of the switching element rises, adjust the voltage drop across the tube to ensure that the charging circuit operates normally during the constant current charging phase and avoid abnormalities.
Smart Images

Figure CN112349984B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic technology, and specifically relates to a battery charging optimization method, a charging circuit, a mobile terminal, and a storage medium. Background Technology
[0002] Currently, electronic devices such as mobile phones can operate using batteries powered by electricity, and batteries can be charged through charging circuits. The battery charging process can generally be divided into four stages: trickle charging (low-voltage pre-charge), constant current charging, constant voltage charging, and charging termination. Linear charging circuits can ensure that the battery maintains a constant current output during the constant current charging stage.
[0003] However, the switching elements in the charging circuit may malfunction when the ambient temperature rises, leading to abnormal charging.
[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the Invention
[0005] The purpose of this application is to provide a battery charging optimization method, charging circuit, mobile terminal and storage medium to ensure that the charging circuit can maintain normal operation during the constant current charging stage when the ambient temperature rises.
[0006] This application provides a battery charging optimization method for a charging circuit to charge a battery. The charging circuit includes a first switching element and a second switching element. The first switching element includes a first control terminal, a first input terminal, and a first output terminal. The first control terminal of the first switching element receives a first control terminal voltage, and the first input terminal of the first switching element receives an external charging voltage. The second switching element includes a second control terminal, a second input terminal, and a second output terminal. The second input terminal of the second switching element is connected to the first output terminal of the first switching element, and the second output terminal of the second switching element is connected to the battery. The optimization method includes:
[0007] Step S11: Determine if the charging current has changed. If it has not changed, proceed to step S111.
[0008] Step S111: Detect the first temperature when the first switching element is working and the second temperature when the second switching element is working;
[0009] Step S12: Determine whether the first temperature and the second temperature do not exceed the corresponding set temperature value. If not, proceed to step S13, and / or, if yes, proceed to step S14.
[0010] Step S13: Adjust the voltage drop across the first switching element and return to step S11;
[0011] Step S14: Determine whether constant current charging is complete. If not, return to step S111.
[0012] Optionally, before step S11, the method further includes: step S01: detecting the external charging voltage and the battery voltage; step S02: determining the first control terminal voltage based on the external charging voltage and the battery voltage.
[0013] Optionally, step S02 further includes: step S021: obtaining the preset voltage of the second input terminal of the second switching element based on the battery voltage; step S022: obtaining the voltage drop of the first switching element based on the external charging voltage and the preset voltage of the second input terminal; step S023: determining the voltage of the first control terminal of the first switching element based on the voltage drop of the first switching element.
[0014] Optionally, step S11 further includes: step S112: determining whether the charging current has changed; if it has changed, outputting a reset signal to reset the voltage of the first control terminal, and returning to step S01.
[0015] Optionally, the optimization method includes: step S15: determining whether constant current charging is completed; if completed, adjusting the voltage drop of the first switching element to be less than a preset value and / or ending the control.
[0016] This application also provides a charging circuit, which includes a first switching element, a second switching element, a first judgment module, a temperature detection module, a second judgment module, a second adjustment module, and a third judgment module. The first switching element includes a first control terminal, a first input terminal, and a first output terminal. The first control terminal of the first switching element receives a first control terminal voltage, and the first input terminal of the first switching element receives an external charging voltage. The second switching element includes a second control terminal, a second input terminal, and a second output terminal. The second input terminal of the second switching element is connected to the first output terminal of the first switching element, and the second output terminal of the second switching element is connected to the battery. The first judgment module is used to determine whether the charging current changes. The temperature detection module is connected to the first judgment module and is used to detect a first temperature when the first judgment module detects that the charging current has not changed, and a second temperature when the first switching element is operating, respectively. The second judgment module is connected to the temperature detection module and determines whether both the first temperature and the second temperature do not exceed a corresponding set temperature value. The second adjustment module is connected to both the second judgment module and the first judgment module. When the second judgment module determines that either the first temperature or the second temperature exceeds a corresponding set temperature value, it adjusts the voltage drop across the first switching element and causes the first judgment module to re-determine whether the charging current has changed. The third judgment module is connected to the second judgment module. When the second judgment module determines that neither the first temperature nor the second temperature exceeds a corresponding set temperature value, the third judgment module determines whether constant current charging has been completed. If not, it causes the temperature detection module to re-detect the first temperature and the second temperature.
[0017] Optionally, the charging circuit includes a voltage detection module and a first processing module. The voltage detection module detects the external charging voltage and the battery voltage, respectively. The first processing module determines the first control terminal voltage based on the magnitude of the external charging voltage and the magnitude of the battery voltage.
[0018] Optionally, the first processing module includes a first processing unit, a second processing unit, and a third processing unit. The first processing unit is used to determine the preset voltage of the second input terminal of the second switching element based on the battery voltage. The second processing unit is connected to the first processing unit and is used to obtain the voltage drop of the first switching element based on the external charging voltage and the preset voltage of the second input terminal. The third processing unit is connected to the second processing unit and is used to determine the voltage of the first control terminal of the first switching element based on the voltage drop of the first switching element.
[0019] Optionally, the charging circuit includes a first adjustment module, which is connected to the first judgment module and the voltage detection module respectively. If the charging current changes, the first adjustment module outputs a reset signal to reset the voltage of the first control terminal and causes the voltage detection module to re-detect the external charging voltage and the battery voltage.
[0020] Optionally, the charging circuit includes an end control module, which is connected to the third judgment module and is used to adjust the voltage drop of the first switching element to be less than a preset value and / or to end the charging process when the third judgment module determines that constant current charging has been completed.
[0021] Optionally, the first switching element is a PMOS transistor, and the second switching element is a BJT transistor.
[0022] Optionally, the charging circuit includes a third switching element, which includes a third control terminal, a third input terminal, and a third output terminal. The third control terminal of the third switching element receives a third control terminal voltage, the third input terminal of the third switching element receives a driving voltage, and the third output terminal of the third switching element is connected to the second control terminal of the second switching element.
[0023] This application provides a mobile terminal, which includes any of the charging circuits described above.
[0024] This application provides a mobile terminal, the mobile terminal including: a memory and a processor, wherein the memory stores a battery charging optimization program, and when the battery charging optimization program is executed by the processor, it implements the steps of any of the above-described battery charging optimization methods.
[0025] This application provides a readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the above-described battery charging optimization methods.
[0026] The battery charging optimization method, charging circuit, mobile terminal, and storage medium provided in this application can adjust the voltage drop of the first switching element when the temperature of the corresponding switching element rises abnormally, so that the charging circuit can maintain normal operation during the constant current charging stage.
[0027] To make the above and other objects, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0028] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0029] Figure 1 A schematic diagram of the hardware structure of a mobile terminal to implement the various embodiments of this application;
[0030] Figure 2 A communication network system architecture diagram provided for an embodiment of this application;
[0031] Figure 3 This is a schematic flowchart of a battery charging optimization method according to an embodiment of this application;
[0032] Figure 4 This is a structural diagram of a charging circuit according to an embodiment of this application;
[0033] Figure 5 This is a circuit diagram of a charging circuit according to an embodiment of this application.
[0034] The realization of the objectives, functional features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and textual descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation
[0035] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0036] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, components, features, and elements with the same names in different embodiments of this application may have the same meaning or different meanings, the specific meaning of which must be determined by its interpretation in that specific embodiment or further in conjunction with the context of that specific embodiment.
[0037] It should be understood that although the terms first, second, third, etc., may be used herein to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if," as used herein, can be interpreted as "when," "when," or "in response to determination." Furthermore, as used herein, the singular forms "a," "an," and "the" are intended to also include the plural forms unless the context indicates otherwise. It should be further understood that the terms "comprising," "including," indicate the presence of the stated feature, step, operation, element, component, item, kind, and / or group, but do not exclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" as used herein are to be interpreted as inclusive, or mean any one or any combination thereof. Therefore, "A, B, or C" or "A, B, and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A, B, and C". Exceptions to this definition will only occur if the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.
[0038] It should be understood that although the steps in the flowcharts of this application's embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.
[0039] It should be noted that step designations such as S01 and S02 are used in this document for the purpose of more clearly and concisely describing the corresponding content, and do not constitute a substantial limitation on the order. In specific implementation, those skilled in the art may execute S02 first and then S01, etc., but these should all be within the protection scope of this application.
[0040] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0041] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0042] Mobile terminals can be implemented in various forms. For example, the mobile terminals described in this application may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0043] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to the embodiments of this application can also be applied to fixed-type terminals.
[0044] Please see Figure 1This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of this application. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0045] The following is combined with Figure 1 A detailed introduction to each component of the mobile terminal:
[0046] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).
[0047] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0048] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0049] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0050] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0051] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0052] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: touch detection device and touch controller. Optionally, touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to touch controller; touch controller receives touch information from touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.
[0053] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0054] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0055] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. Optionally, the program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0056] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0057] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0058] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0059] To facilitate understanding of the embodiments of this application, the communication network system on which the mobile terminal of this application is based is described below.
[0060] Please see Figure 2 , Figure 2 This application provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP services 204, which are connected in sequence.
[0061] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.
[0062] E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. Optionally, eNodeB2021 can connect to other eNodeB2022 via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203, providing access from UE201 to EPC203.
[0063] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Optionally, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as the Home Location Register (not shown in the figure) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).
[0064] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.
[0065] Although the above description uses the LTE system as an example, those skilled in the art should understand that this application is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.
[0066] Based on the above-described mobile terminal hardware structure and communication network system, various embodiments of this application are proposed.
[0067] Figure 3 This is a schematic flowchart of a battery charging optimization method according to an embodiment of this application. Figure 4 This is a structural diagram of a charging circuit according to an embodiment of this application. (In conjunction with...) Figure 3 and Figure 4This application provides an embodiment of a battery charging optimization method for charging a battery 20 using a charging circuit. The charging circuit includes a first switching element 101 and a second switching element 102. The first switching element 101 includes a first control terminal, a first input terminal, and a first output terminal. The first control terminal of the first switching element 101 receives a first control terminal voltage VC1, and the first input terminal of the first switching element 101 receives an external charging voltage VBUS. The second switching element 102 includes a second control terminal, a second input terminal, and a second output terminal. The second input terminal of the second switching element 102 is connected to the first output terminal of the first switching element 101, and the second output terminal of the second switching element 102 is connected to the battery 20. Figure 3 As shown, the battery charging optimization method includes:
[0068] Step S11: Determine if the charging current has changed. If it has not changed, proceed to step S111.
[0069] Step S111: Detect the first temperature when the first switching element 101 is working and the second temperature when the second switching element 102 is working;
[0070] If the charging current does not change, it is necessary to detect the first temperature when the first switching element 101 is working and the second temperature when the second switching element 102 is working in real time, so that adjustments can be made when the first temperature and / or the second temperature rises to prevent abnormalities from occurring.
[0071] Step S12: Determine whether the first temperature and the second temperature have not exceeded the corresponding set temperature value. If not, proceed to step S13, and / or if yes, proceed to step S14.
[0072] During charging, the first switching element 101 and the second switching element 102 will generate power dissipation, and correspondingly generate a first temperature and a second temperature, respectively. If the first switching element 101 and / or the second switching element 102 malfunctions, the power dissipation generated by the first switching element 101 will not correspond to the first temperature and / or the power dissipation generated by the second switching element 102 will not correspond to the second temperature, thereby causing the first temperature or the second temperature to exceed the corresponding set temperature value, i.e., the first temperature exceeds the corresponding set temperature value (e.g., the first set temperature value) or the second temperature exceeds the corresponding set temperature value (e.g., the second set temperature value). Furthermore, the first temperature of the first switching element 101 at a corresponding power dissipation and the second temperature of the second switching element 102 at a corresponding power dissipation can be looked up in a power dissipation and temperature correspondence table of switching elements as corresponding set temperature values. These values are then compared with the first temperature of the first switching element 101 and the second temperature of the second switching element 102 detected by, for example, a thermistor to determine whether the corresponding set temperature value has been exceeded, thereby determining whether the first switching element 101 and / or the second switching element 102 malfunctions.
[0073] Step S13: Adjust the voltage drop across the first switching element 101 and return to step S11;
[0074] If it is determined that the first switching element 101 and / or the second switching element 102 is abnormal, it is necessary to adjust the voltage drop of the first switching element 101. For example, the voltage drop of the first switching element 101 can be adjusted by resetting the voltage VC1 of the first control terminal of the first switching element 101, and the voltage of the second input terminal of the second switching element 102 can be adjusted at the same time. This controls the current and temperature changes of the first switching element 101 and the second switching element 102, and controls the charging circuit to maintain normal operation during the constant current charging stage.
[0075] Step S14: Determine whether constant current charging is complete. If not, return to step S111.
[0076] By continuously performing temperature detection in step S111, the first switching element 101 and / or the second switching element 102 are ensured to be in normal working condition until the constant current charging ends.
[0077] In one embodiment, the method further includes the following steps before step S11:
[0078] Step S01: Detect the external charging voltage VBUS and the battery voltage VBAT;
[0079] When battery 20 begins charging, the charging circuit receives an external charging voltage VBUS, for example, by inserting a charger. The charging circuit can then provide a constant charging current to battery 20. In the charging circuit, the first input terminal of the first switching element 101 receives the external charging voltage VBUS, and the voltage at the first output terminal of the first switching element 101 is the external charging voltage VBUS minus the voltage drop across the transistor of the first switching element 101. The second input terminal of the second switching element 102 receives the voltage at the first output terminal of the connected first switching element 101, and the second output terminal of the second switching element 102 is connected to battery 20. Therefore, the second switching element 102 can provide a corresponding current to battery 20 based on the voltage at its second input terminal and the battery voltage VBAT at its second output terminal. Furthermore, by controlling the voltage VC1 at the first control terminal of the first switching element 101, the voltage drop across the transistor of the first switching element 101 can be controlled to adjust the voltage at the first output terminal of the first switching element 101, which in turn adjusts the voltage at the second input terminal of the second switching element 102, thereby adjusting the charging current at the second output terminal of the second switching element 102. Detecting the external charging voltage VBUS and the battery voltage VBAT can serve as the basis for subsequent adjustment of the first control terminal voltage VC1 and the tube voltage drop of the first switching element 101.
[0080] Step S02: Determine the first control terminal voltage VC1 based on the external charging voltage VBUS and the battery voltage VBAT.
[0081] The detected charging voltage VBUS and battery voltage VBAT can be used to determine the first control terminal voltage VC1. Furthermore, at the beginning of charging, the initial required first control terminal voltage VC1 of the first switching element 101 can be determined by consulting the voltage drop-first control terminal voltage correspondence table of the first switching element 101 and the voltage-current correspondence table of the second switching element 102 operating in the amplification region.
[0082] In one embodiment, step S02 includes:
[0083] Step S021: Based on the battery voltage VBAT, determine the preset voltage of the second input terminal of the second switching element 102;
[0084] For example, the preset voltage (e.g., minimum voltage of the second input terminal) of the second switching element 102 can be obtained based on the battery voltage VBAT and the operating parameters of the second switching element 102 (e.g., the voltage-current correspondence table in the amplification region).
[0085] Step S022: Obtain the tube voltage drop of the first switching element 101 based on the external charging voltage VBUS and the preset voltage of the second input terminal;
[0086] For example, the tube voltage drop of the first switching element 101 can be obtained by subtracting the preset voltage of the second input terminal from the external charging voltage VBUS;
[0087] Step S023: Determine the first control terminal voltage VC1 of the first switching element 101 based on the tube voltage drop of the first switching element 101.
[0088] For example, the first control terminal voltage VC1 of the first switching element 101 can be determined by consulting the operating reference of the first switching element 101 (e.g., a table showing the correspondence between tube voltage drop and first control terminal voltage).
[0089] In one embodiment, step S11 includes:
[0090] Step S112: Determine whether the charging current has changed. If it has changed, output a reset signal to reset the first control terminal voltage VC1, and return to step S01.
[0091] In one embodiment, the rechargeable battery optimization method includes:
[0092] Step S15: Determine whether constant current charging is complete. If complete, adjust the voltage drop of the first switching element 101 to be less than the preset value and / or end the control.
[0093] During the charging process, the end of the constant current charging phase can be determined by whether the constant voltage charging condition is met. For example, the constant voltage charging condition can be determined by the battery voltage VBAT reaching a threshold voltage, in which case the constant current charging phase ends and the constant voltage charging phase begins. If constant current charging is completed, the voltage drop of the first switching element 101 is adjusted to be less than a preset value (e.g., the voltage drop of the first switching element 101 is adjusted to the minimum) and / or the control is terminated.
[0094] In one embodiment, the first switching element 101 can be a PMOS transistor, and the second switching element 102 can be a BJT transistor. The first control terminal of the first switching element 101 is correspondingly the gate of the PMOS transistor, and the second control terminal of the second switching element 102 is correspondingly the base of the BJT transistor. In another embodiment, the voltage drop of the first switching element 101 versus the voltage at the first control terminal corresponds to a table showing the relationship between the voltage across the PMOS transistor and the gate voltage. Similarly, the voltage-current relationship of the second switching element 102 operating in the amplification region corresponds to a table showing the voltage-current relationship of the BJT operating in the amplification region. Furthermore, the power dissipation and temperature of the switching elements correspond to a table showing the power dissipation and temperature of both PMOS and BJT transistors. These correspondences allow for the determination of the voltage drop of the first switching element and the current of the second switching element. However, this application is not limited to these specific embodiments. For example, the first switching element 101 can also be an NMOS transistor, and the second switching element 102 can be a transistor other than a BJT, all of which fall within the scope of this application.
[0095] The battery charging optimization method provided in this application can adjust the voltage drop of the first switching element when the temperature of the corresponding switching element rises abnormally, so that the second switching element connected to the first switching element can output current normally, and the charging circuit can maintain normal operation during the constant current charging stage.
[0096] Based on the same inventive concept, this application also provides a charging circuit.
[0097] The charging circuit of this application embodiment includes a first switching element 101, a second switching element 102, a first judgment module 105, a temperature detection module 107, a second judgment module 108, a second adjustment module 109, and a third judgment module 1010.
[0098] The first switching element 101 includes a first control terminal, a first input terminal, and a first output terminal. The first control terminal of the first switching element 101 receives a first control terminal voltage VC1, and the first input terminal of the first switching element 101 receives an external charging voltage VBUS. The second switching element 102 includes a second control terminal, a second input terminal, and a second output terminal. The second input terminal of the second switching element 102 is connected to the first output terminal of the first switching element 101, and the second output terminal of the second switching element 102 is connected to the battery 20. The first judgment module 105 is used to determine whether the charging current changes. The temperature detection module 107 is connected to the first judgment module 105 and is used to detect the first temperature of the first switching element 101 and the second temperature of the second switching element 102 when the first judgment module 105 detects that the charging current has not changed. The second judgment module 108 is connected to the temperature detection module 107 and determines whether both the first temperature and the second temperature do not exceed the corresponding set temperature value. The second adjustment module 109 is connected to the second judgment module 108 and the first judgment module 105 respectively. When the second judgment module 108 determines that the first temperature or the second temperature exceeds the corresponding set temperature value, it adjusts the voltage drop of the first switching element 101 and causes the first judgment module 105 to re-determine whether the charging current has changed. The third judgment module 1010 is connected to the second judgment module 108. When the second judgment module 108 determines that neither the first temperature nor the second temperature exceeds the corresponding set temperature value, the third judgment module 1010 determines whether constant current charging has been completed. If not, it causes the temperature detection module 107 to re-detect the first temperature and the second temperature.
[0099] In one embodiment, the charging circuit includes a voltage detection module 103 and a first processing module 104. The voltage detection module 103 detects the external charging voltage VBUS and the battery voltage VBAT, respectively. The first processing module 104 determines the first control terminal voltage VC1 based on the magnitude of the external charging voltage VBUS and the magnitude of the battery voltage VBAT.
[0100] In one embodiment, the first processing module 104 includes a first processing unit, a second processing unit, and a third processing unit: the first processing unit is used to determine the preset voltage of the second input terminal of the second switching element 102 based on the battery voltage VBAT; the second processing unit is connected to the first processing unit and is used to obtain the voltage drop of the first switching element 101 based on the external charging voltage VBUS and the preset voltage of the second input terminal; the third processing unit is connected to the second processing unit and is used to determine the first control terminal voltage VC1 of the first switching element 101 based on the voltage drop of the first switching element 101.
[0101] In one embodiment, the charging circuit includes a first adjustment module 106, which is connected to a first judgment module 105 and a voltage detection module 103. If the charging current changes, the first adjustment module 106 outputs a reset signal to reset the first control terminal voltage VC1 and causes the voltage detection module 103 to re-detect the external charging voltage VBUS and the battery voltage VBAT.
[0102] In one embodiment, the charging circuit includes an end control module 1011, which is connected to a third judgment module 1010. The end control module 1011 is used to adjust the voltage drop of the first switching element 101 to be less than a preset value and / or to end the charging process when the third judgment module 1010 determines that constant current charging has been completed.
[0103] The operation of this charging circuit can be referred to the implementation method of the battery charging optimization method described above, and the repeated parts will not be described again.
[0104] In one embodiment, the first switching element 101 can be a PMOS transistor, and the second switching element 102 can be a BJT transistor. The first control terminal of the first switching element 101 is correspondingly the gate of the PMOS transistor, and the second control terminal of the second switching element 102 is correspondingly the base of the BJT transistor. However, this application is not limited to this. For example, the first switching element 101 can also be an NMOS transistor, and the second switching element 102 can also be a transistor other than a BJT, all of which fall within the scope of protection of this application.
[0105] Figure 5 This is a circuit diagram of a charging circuit according to an embodiment of this application. Figure 5As shown, in one embodiment, the charging circuit includes a third switching element, which includes a third control terminal, a third input terminal, and a third output terminal. The third control terminal of the third switching element receives a third control terminal voltage VC3, the third input terminal of the third switching element receives a drive voltage VDD, and the third output terminal of the third switching element is connected to the second control terminal of the second switching element 102. Specifically, the third switching element controls whether to conduct based on the third control terminal voltage VC3 received by its third control terminal. When the third switching element is on, the second control terminal of the second switching element 102 receives the drive voltage VDD on the third input terminal of the third switching element through the on-state third switching element. Therefore, the second control terminal voltage VC2 of the second switching element 102 is the drive voltage VDD, causing the second switching element 102 to conduct. The second switching element 102 outputs a corresponding charging current at its second output terminal based on the voltage at its second input terminal. The voltage at the second input terminal of the second switching element 102 is the external charging voltage VBUS minus the voltage drop across the first switching element 101. The first adjustment module 106 ( Figure 5 Not shown, please refer to Figure 4 The voltage VC1 at the first control terminal of the first switching element 101 can be reset to adjust the voltage drop across the first switching element 101. The first temperature of the first switching element 101 during operation and the second temperature of the second switching element 102 during operation can be detected by the temperature detection module 107.
[0106] In one embodiment, the second switching element 102 and the third switching element can be packaged in a single chip.
[0107] In one embodiment, the second output terminal of the second switching element 102 can be connected to a current detector ISENSE to detect the magnitude of the charging current.
[0108] The charging circuit provided in this application embodiment can adjust the voltage drop of the first switching element when the temperature of the corresponding switching element rises abnormally, so that the second switching element connected to the first switching element can output current normally, and the charging circuit can maintain normal operation during the constant current charging stage.
[0109] This application provides a mobile terminal, which includes the charging circuit in any of the above embodiments.
[0110] This application also provides a mobile terminal device, which includes a memory and a processor. The memory stores a battery charging optimization program, and when the battery charging optimization program is executed by the processor, it implements the steps of the battery charging optimization method in any of the above embodiments.
[0111] This application also provides a computer-readable storage medium storing a battery charging optimization program, which, when executed by a processor, implements the steps of the battery charging optimization method in any of the above embodiments.
[0112] The embodiments of the mobile terminal and computer-readable storage medium provided in this application include all the technical features of the above-described battery charging optimization method embodiments. The extended and explanatory content of the specification is basically the same as the above-described method embodiments, and will not be repeated here.
[0113] This application also provides a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to perform the methods described in the various possible implementations above.
[0114] This application also provides a chip, including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device with the chip installed performs the methods described in the various possible implementations above.
[0115] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of this application.
[0116] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A battery charging optimization method for charging a battery (20) by a charging circuit, characterized in that, The charging circuit includes a first switching element (101) and a second switching element (102). The first switching element (101) includes a first control terminal, a first input terminal, and a first output terminal. The first control terminal of the first switching element (101) receives a first control terminal voltage (VC1). The first input terminal of the first switching element (101) receives an external charging voltage (VBUS). The second switching element (102) includes a second control terminal, a second input terminal, and a second output terminal. The second input terminal of the second switching element (102) is connected to the first output terminal of the first switching element (101). The second output terminal of the second switching element (102) is connected to the battery (20). The optimization method includes: Step S11: Determine whether the charging current changes. If there is no change, execute step S111; Step S111: Detect a first temperature when the first switching element (101) is operating and a second temperature when the second switching element (102) is operating; Step S12: Determine whether both the first temperature and the second temperature do not exceed respective set temperature values. If not, execute step S13, and / or, if so, execute step S14; Step S13: Adjust the magnitude of the voltage drop across the first switching element (101), and return to step S11; Step S14: Determine whether constant current charging is completed. If not, return to step S111.
2. The method according to claim 1, wherein Before step S11, it further includes: Step S01: Detect the external charging voltage (VBUS) and the battery voltage (VBAT); Step S02: Determine the first control terminal voltage (VC1) based on the external charging voltage (VBUS) and the battery voltage (VBAT).
3. The method according to claim 2, wherein Step S02 further includes: Step S021: Obtain a preset voltage at the second input terminal of the second switching element (102) based on the battery voltage (VBAT); Step S022: Obtain the voltage drop across the first switching element (101) based on the external charging voltage (VBUS) and the preset voltage at the second input terminal; Step S023: Determine the first control terminal voltage (VC1) of the first switching element (101) based on the voltage drop across the first switching element (101).
4. The method according to claim 2, wherein Step S11 further includes: Step S112: Determine whether the charging current changes. If it changes, output a reset signal for resetting the first control terminal voltage (VC1), and return to step S01.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Step S15: Determine whether constant current charging is completed. If completed, adjust the voltage drop across the first switching element (101) to be less than a preset value and / or end the control.
6. A charging circuit for charging a battery (20), characterized in that, Includes: A first switching element (101), the first switching element (101) includes a first control terminal, a first input terminal, and a first output terminal. The first control terminal of the first switching element (101) receives a first control terminal voltage (VC1). The first input terminal of the first switching element (101) receives an external charging voltage (VBUS); A second switching element (102), the second switching element (102) includes a second control terminal, a second input terminal and a second output terminal, the second input terminal of the second switching element (102) is connected to the first output terminal of the first switching element (101), and the second output terminal of the second switching element (102) is connected to the battery (20); A first judging module (105), the first judging module (105) is used to judge whether the charging current changes; A temperature detection module (107), the temperature detection module (107) is connected to the first judging module (105), and is used to respectively detect a first temperature when the first switching element (101) works and a second temperature when the second switching element (102) works when the first judging module (105) detects that the charging current has not changed; A second judging module (108), the second judging module (108) is connected to the temperature detection module (107), and judges whether both the first temperature and the second temperature do not exceed corresponding set temperature values; A second adjustment module (109), the second adjustment module (109) is respectively connected to the second judging module (108) and the first judging module (105), when the second judging module (108) judges that the first temperature or the second temperature exceeds the corresponding set temperature value, adjust the magnitude of the voltage drop across the first switching element (101), and make the first judging module (105) re-judge whether the charging current changes; A third judging module (1010), the third judging module (1010) is connected to the second judging module (108), when the second judging module (108) judges that both the first temperature and the second temperature do not exceed the corresponding set temperature values, the third judging module (1010) judges whether constant current charging is completed, and if not, makes the temperature detection module (107) re-detect the first temperature and the second temperature.
7. The charging circuit according to claim 6, wherein The charging circuit includes: A voltage detection module (103), the voltage detection module (103) respectively detects the external charging voltage (VBUS) and the battery voltage (VBAT); A first processing module (104), the first processing module (104) determines the voltage (VC1) of the first control terminal according to the magnitudes of the external charging voltage (VBUS) and the battery voltage (VBAT).
8. The charging circuit according to claim 7, wherein The first processing module (104) includes: A first processing unit, the first processing unit is used to obtain a preset voltage of the second input terminal of the second switching element (102) according to the battery voltage (VBAT); A second processing unit, the second processing unit is connected to the first processing unit, and is used to obtain the voltage drop across the first switching element (101) according to the external charging voltage (VBUS) and the preset voltage of the second input terminal. A third processing unit, connected to the second processing unit, for determining a first control terminal voltage (VC1) of the first switching element (101) according to a voltage drop across the first switching element (101).
9. The charging circuit according to claim 7, wherein The charging circuit includes a first adjustment module (106), which is respectively connected to the first judgment module (105) and the voltage detection module (103). If the charging current changes, the first adjustment module (106) outputs a reset signal to reset the first control terminal voltage (VC1), and enables the voltage detection module (103) to re-detect the external charging voltage (VBUS) and the battery voltage (VBAT).
10. The charging circuit according to any one of claims 6 to 9, characterized in that, The charging circuit includes an end control module (1011), which is connected to the third judgment module (1010), for adjusting the voltage drop across the first switching element (101) to be less than a preset value and / or ending control when the third judgment module (1010) determines that constant current charging is completed.
11. The charging circuit according to claim 6, wherein The first switching element (101) is a PMOS transistor, or the second switching element (102) is a BJT transistor.
12. The charging circuit according to claim 6, wherein Comprising: A third switching element, which includes a third control terminal, a third input terminal and a third output terminal. The third control terminal of the third switching element receives a third control terminal voltage (VC3), the third input terminal of the third switching element receives a driving voltage (VDD), and the third output terminal of the third switching element is connected to the second control terminal of the second switching element (102).
13. A mobile terminal, characterized in that, The mobile terminal includes the charging circuit according to any one of claims 6 to 12.
14. A mobile terminal, characterized in that, The mobile terminal includes: a memory and a processor. Among them, a battery charging optimization program is stored on the memory, and when the battery charging optimization program is executed by the processor, the steps of the battery charging optimization method according to any one of claims 1 to 5 are implemented.
15. A readable storage medium, characterized in that, A computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of the battery charging optimization method according to any one of claims 1 to 5 are implemented.