CN117955186A - Charging control method, device, electronic equipment and readable storage medium - Google Patents

Charging control method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117955186A
CN117955186A CN202211275527.6A CN202211275527A CN117955186A CN 117955186 A CN117955186 A CN 117955186A CN 202211275527 A CN202211275527 A CN 202211275527A CN 117955186 A CN117955186 A CN 117955186A
Authority
CN
China
Prior art keywords
connector
charge pump
charging
charger
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211275527.6A
Other languages
Chinese (zh)
Inventor
李璐廷
白光磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211275527.6A priority Critical patent/CN117955186A/en
Publication of CN117955186A publication Critical patent/CN117955186A/en
Pending legal-status Critical Current

Links

Abstract

The present disclosure relates to a charge control method, apparatus, electronic device, and readable storage medium, the method including: the method comprises the steps that a battery of a terminal is connected with a charge pump on a terminal main board through three connectors, the charge pump is connected with a charger, states of the three connectors are detected at the moment that the charger is inserted into the terminal or in the charging process of the charger, and when the fact that the connectors are in an off state is detected, a fast charging protocol state machine is controlled to exit a fast charging mode or charging current or charging power of the charger is limited; the method has the advantages that when the situation that the connectors are in the disconnection state is detected, the quick charging mode is exited, or the charging current or the charging power of the charger is limited, the charging power is improved, meanwhile, the potential safety hazard during charging is avoided, and the charging safety of the battery with the three connectors is ensured.

Description

Charging control method, device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of battery charging, and in particular, to a charging control method, a device, an electronic apparatus, and a readable storage medium.
Background
In recent years, domestic mobile phones rapidly develop, and the high-medium-low-end mobile phones have very high market acceptance and become the first choice for many consumers to purchase. However, the performance of the mobile phone is good, the mobile phone is not charged quickly, along with the upgrade of the quick charging technology, the charging power is larger and larger, the number of the battery connectors is necessarily larger and larger, for example, under the condition of using three connectors, the connectors are easy to loose, break, tear and the like, and great potential safety hazards are caused to charging.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a charge control method, apparatus, electronic device, and readable storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a charge control method applied to a terminal, where a battery of the terminal is connected to a charge pump on a motherboard of the terminal through three connectors, and the charge pump is connected to a charger; the method comprises the following steps: detecting states of the three connectors at the moment when the charger is inserted into the terminal or in the process of charging through the charger; and when the connector is detected to be in the disconnection state, controlling the fast charging protocol state machine to exit the fast charging mode, or limiting the charging current and the charging power of the charger.
Optionally, the three connectors include a first connector, a second connector, and a third connector; the charge pump comprises a first charge pump, a second charge pump and a third charge pump; one end of the first connector is connected with the first charge pump, and the other end of the first connector is connected with the battery packaging end and the integrated power management circuit; one end of the second connector is connected with a second charge pump, and the other end of the second connector is connected with an electricity meter of the battery; one end of the third connector is connected with the third charge pump, and the other end of the third connector is connected with the battery packaging end.
Optionally, the detecting the states of the three connectors includes: determining that the first connector is in the disconnected state if a difference between a first current and a second current, or a difference between the first current and a third current, is greater than a first threshold; the first current is the current of the first charge pump, the second current is the current of the second charge pump, and the third current is the current of the third charge pump.
Optionally, the detecting the states of the three connectors further includes: starting a detection thread to detect the states of the three connectors in the process that the terminal is charged by the charger; determining that the first connector is in the disconnected state if the first charge pump is detected to be in a disabled state and the second charge pump is detected to be in an enabled state.
Optionally, the detecting the states of the three connectors further includes: determining that the second connector is in the disconnected state if the number of failures of the fuel gauge to continuously read and write the register is greater than a specified number, or if the first voltage is greater than a threshold voltage; the first voltage is a battery voltage read from the second charge pump, and the threshold voltage is a start-up voltage of the terminal system.
Optionally, the detecting the states of the three connectors further includes: determining that the third connector is in the disconnected state if the second voltage is greater than a threshold voltage; the second voltage is the battery voltage read from the third charge pump, and the threshold voltage is the start-up voltage of the terminal system.
Optionally, the controlling the fast charge protocol state machine to exit the fast charge mode or limit the charging current and the charging power of the charger includes: when the first connector or the second connector is detected to be in a disconnection state, controlling a quick charge protocol state machine to exit a quick charge mode; and limiting the charging current and the charging power of the charger when the third connector is detected to be in the disconnected state.
According to a second aspect of embodiments of the present disclosure, there is provided a charge control device applied to a terminal, a battery of the terminal is connected to a charge pump on a motherboard of the terminal through three connectors, and the charge pump is connected to a charger; the device comprises: a detection module configured to detect states of the three connectors at an instant when the charger is inserted into the terminal or during charging by the charger; and the processing module is configured to control the fast charge protocol state machine to exit the fast charge mode or limit the charging current or the charging power of the charger when the connector is detected to be in the disconnected state.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the steps of the charge control method described previously.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the charge control method provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the method comprises the steps that a battery of a terminal is connected with a charge pump on a terminal main board through three connectors, the charge pump is connected with a charger, states of the three connectors are detected at the moment that the charger is inserted into the terminal or in the charging process of the charger, and when the fact that the connectors are in an off state is detected, a fast charging protocol state machine is controlled to exit a fast charging mode or charging current or charging power of the charger is limited; the method has the advantages that when the situation that the connectors are in the disconnection state is detected, the quick charging mode is exited, or the charging current or the charging power of the charger is limited, the charging power is improved, meanwhile, the potential safety hazard during charging is avoided, and the charging safety of the battery with the three connectors is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a block diagram of a charge control circuit shown in an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart of a charge control method shown in an exemplary embodiment of the present disclosure.
Fig. 3 is a block diagram of a charge control circuit with a main connector disconnected, as shown in an exemplary embodiment of the present disclosure.
Fig. 4 is a block diagram of a charge control circuit in a case of disconnection from the connector 1, which is shown in an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram of a charge control circuit in a state of being disconnected from the connector 2, which is shown in an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram of a charge control device shown in an exemplary embodiment of the present disclosure.
Fig. 7 is a block diagram of an apparatus for charge control shown in an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be noted that, all actions for acquiring signals, information or data in the present disclosure are performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
The charging control method provided by the disclosure is applied to a terminal, and a battery of the terminal adopts three connectors, as shown in fig. 1, and fig. 1 is a block diagram of a charging control circuit shown in an exemplary embodiment of the disclosure. The battery of the terminal comprises a battery cell and a fuel gauge, wherein the battery cell and the fuel gauge are connected through a circuit and are packaged in the battery to form a battery package (pack) end.
The battery pack end is connected with a charge pump on a mainboard of the terminal through three connectors, the charge pump is connected with a charger, the charge pump is used for rapidly charging the terminal, the three connectors are a first connector, a second connector and a third connector respectively, and the charge pump comprises a first charge pump, a second charge pump and a third charge pump.
One end of the first connector is connected with the first charge pump, the other end of the first connector is connected with a battery pack end and an integrated Power management circuit (Power MANAGEMENT IC, PMIC) end, the other end of the PMIC is connected with a main board of the terminal, and the main board comprises a terminal CPU and various modules of the terminal, such as a camera module, a WIFI module, a Bluetooth module, a display module, a control module, a touch screen module, a key module, a storage module and the like; one end of the second connector is connected with the second charge pump, and the other end of the second connector is connected with an electricity meter of the battery; one end of the third connector is connected with the third charge pump, and the other end of the third connector is connected with the pack end of the battery.
The first connector, the second connector and the third connector respectively read the voltage or the current of the pack end of the battery through an analog-digital converter (Analog to Digital Converter, ADC), and the fuel gauge reads the voltage of the battery cell through an I2C (Inter-INTEGRATED CIRCUIT) bus; the second connector is connected with the electricity meter, and the second connector can read the voltage of the battery cell through the I2C bus.
The terminal battery is designed into three connectors, so that the battery can support larger charging power, but under the scene of charging the terminal through a charger, the three connectors are easy to loose, break, tear and the like, and in order to avoid the charging risk caused by the break of one or more connectors, the states of the three connectors are detected at the moment of inserting the charger into the terminal or in the charging process through the charger.
Based on this, the present disclosure proposes a charge control method including the steps of: the states of the three connectors are detected at the moment the charger is inserted into the terminal or during charging by the charger. The states of the three connectors can be determined by the voltage of the pack end of the battery read by the ADC, the voltage of the battery cell read by the I2C bus, the starting voltage of the terminal system and the state of the charge pump.
And when the connector is detected to be in the disconnection state, controlling the fast charging protocol state machine to exit the fast charging mode, or limiting the charging current or the charging power of the charger. And under the condition that the connector is in the disconnection state, the quick charging mode is exited, or the charging current or the charging power of the charger is limited, so that the potential safety hazard during charging is avoided, and the charging safety of the battery with three connectors is ensured.
Referring to fig. 2, fig. 2 is a flowchart illustrating a charge control method according to an exemplary embodiment of the present disclosure. The method is performed by a terminal device, which may be, but is not limited to, a smart phone, a notebook computer, a desktop computer, a tablet computer, a smart speaker, a smart robot. The charge control method shown in fig. 2 includes the steps of:
In step S21, the states of the three connectors are detected at the moment the charger is inserted into the terminal or during charging by the charger.
In one embodiment, the first connector is a master connector, the second connector and the third connector are a slave connector 1 and a slave connector 2, respectively, the first charge pump is a master charge pump, and the second charge pump and the third charge pump are a slave charge pump 1 and a slave charge pump 2, respectively. How to detect the states of the master connector, the slave connector 1, and the slave connector 2, respectively, will be described later by taking this embodiment as an example.
For the main connector, in the case of the main connector being disconnected, the battery is disconnected from the main charge pump, and the battery is disconnected from the PMIC, at this time, the charger directly supplies power to the terminal motherboard through the PMIC, as shown in fig. 3, fig. 3 is a block diagram of a charge control circuit in the case of the main connector being disconnected, which is shown in an exemplary embodiment of the present disclosure. In order to ensure the charging safety, a quick charging protocol state machine needs to be controlled at the moment to enable the terminal to exit from a quick charging mode so as to avoid potential safety hazards during charging.
The detection mode of the main connector comprises the following steps: determining that the first connector is in a disconnected state when the difference between the first current and the second current, or the difference between the first current and the third current, is greater than a first threshold; the first current is the current of the first charge pump, the second current is the current of the second charge pump, and the third current is the current of the third charge pump. That is, when the current value of the slave charge pump 1 or the current value of the slave charge pump 2 is subtracted from the current value of the master charge pump, and the result is greater than the first threshold value, it is determined that the master connector is in the disconnected state. The current value of the charge pump is obtained by the ADC. The first threshold may be, but is not limited to, 1A.
The detection mode of the main connector further comprises the following steps: and in the charging process of the terminal through the charger, starting a detection thread to detect the states of the three connectors, and determining that the first connector is in a disconnection state under the condition that the first charge pump is in a disabled state and the second charge pump is in an enabled state. Because the terminal charges through the charger in-process, is firstly through main connector connection main charge pump charge, and then charges through from connector 1 connection slave charge pump 1, finally charges through from connector 2 connection slave charge pump 2, and under the normal charge condition, main charge pump is in enable state, and slave charge pump 1 is in enable state or disable state. That is, in the case where it is detected that the master charge pump is in the disabled state and the slave charge pump 1 is in the enabled state, it may be determined that the master connector is in the disconnected state.
With respect to the slave connector 1, in the case of disconnection from the connector 1, the battery is disconnected from the path of the slave connector 1, and the main board is disconnected from the path of the fuel gauge, as shown in fig. 4, fig. 4 is a block diagram of a charge control circuit in the case of disconnection from the connector 1, which is shown in an exemplary embodiment of the present disclosure. This may cause that the terminal system cannot correctly identify the current battery parameters, such as current, voltage, temperature, electric quantity, etc., so that the charging process may have dangerous hidden danger of overcharging, and at this time, the fast charging protocol state machine needs to be controlled to make the terminal exit the fast charging mode, so as to avoid the potential safety hazard during charging.
The detection method of the slave connector 1 includes: determining that the second connector is in a disconnected state when the number of failures of the fuel gauge to continuously read and write the register is greater than a specified number, or when the first voltage is greater than a threshold voltage; the first voltage is the battery voltage read from the second charge pump, and the threshold voltage is the starting voltage of the terminal system. That is, in the case where the number of failures of the continuous reading and writing register of the fuel gauge is greater than the specified number, that is, it is determined that the I2C bus of the fuel gauge is not in communication, it is further determined that the slave connector 1 is in the disconnected state, the specified number may be, but is not limited to, 10 times, which may be obtained based on human experience, or may be obtained in other possible manners, which the present disclosure is not limited to. Or the battery voltage read out from the ADC of the charge pump 1 can be compared with the starting voltage of the terminal system; assuming that the battery in the present disclosure is designed as a dual battery cell for achieving the preset charging power, the starting voltage of the terminal system is 3V, the threshold voltage is 3v×2=6v, and if the battery voltage read from the ADC of the charge pump 1 is less than 6V, it is determined that the slave connector 1 is in the disconnected state.
With respect to the slave connector 2, in the case of disconnection from the connector 2, the battery is disconnected from the path of the slave connector 2 as shown in fig. 5, and fig. 5 is a block diagram of a charge control circuit in the case of disconnection from the connector 2 as shown in an exemplary embodiment of the present disclosure. This may cause that the fast charging protocol policy of the terminal system is inconsistent with the hardware capability of the charging circuit, and in order to charge safely, the charging current and the charging power of the charger need to be limited at this time, so as to avoid potential safety hazards during charging.
The detection method of the slave connector 2 includes: determining that the third connector is in a disconnected state if the second voltage is greater than the threshold voltage; the second voltage is the battery voltage read from the third charge pump, and the threshold voltage is the start-up voltage of the terminal system. Comparing the battery voltage read from the ADC of the charge pump 2 with the start-up voltage of the terminal system; assuming that the battery in the present disclosure is designed as a dual battery cell for achieving the preset charging power, the starting voltage of the terminal system is 3V, the threshold voltage is 3v×2=6v, and if the battery voltage read from the ADC of the charge pump 2 is less than 6V, it is determined that the slave connector 2 is in the disconnected state.
In step S22, when it is detected that the connector is in the disconnected state, the fast charging protocol state machine is controlled to exit the fast charging mode, or the charging current or the charging power of the charger is limited.
And when the first connector or the second connector is detected to be in a disconnection state, controlling the fast charging protocol state machine to exit the fast charging mode, and when the third connector is detected to be in a disconnection state, limiting the charging current and the charging power of the charger. That is, the fast charge protocol state machine is controlled to exit the fast charge mode when the master connector or the slave connector 1 is detected in the disconnected state, and the charging current and the charging power of the charger are limited when the slave connector 2 is detected in the disconnected state.
In summary, the charging control method provided by the present disclosure includes: the method comprises the steps that a battery of a terminal is connected with a charge pump on a terminal main board through three connectors, the charge pump is connected with a charger, states of the three connectors are detected at the moment that the charger is inserted into the terminal or in the charging process of the charger, and when the fact that the connectors are in an off state is detected, a fast charging protocol state machine is controlled to exit a fast charging mode or charging current or charging power of the charger is limited; the method has the advantages that when the situation that the connectors are in the disconnection state is detected, the quick charging mode is exited, or the charging current or the charging power of the charger is limited, the charging power is improved, meanwhile, the potential safety hazard during charging is avoided, and the charging safety of the battery with the three connectors is ensured.
Fig. 6 is a block diagram illustrating a charge control device according to an exemplary embodiment. Referring to fig. 6, the charge control device 20 includes a detection module 201 and a processing module 203.
The detection module 201 is configured to detect states of the three connectors at the moment when the charger is inserted into the terminal or during charging by the charger;
the processing module 203 is configured to control the fast charge protocol state machine to exit the fast charge mode or limit the charging current or the charging power of the charger when it is detected that the connector is in the disconnected state.
Optionally, the three connectors include a first connector, a second connector, and a third connector; the charge pump comprises a first charge pump, a second charge pump and a third charge pump;
one end of the first connector is connected with the first charge pump, and the other end of the first connector is connected with the battery packaging end and the integrated power management circuit;
one end of the second connector is connected with a second charge pump, and the other end of the second connector is connected with an electricity meter of the battery;
One end of the third connector is connected with the third charge pump, and the other end of the third connector is connected with the battery packaging end.
Optionally, the processing module 203 is further configured to determine that the first connector is in the disconnected state if a difference between a first current and a second current, or a difference between the first current and a third current is greater than a first threshold;
The first current is the current of the first charge pump, the second current is the current of the second charge pump, and the third current is the current of the third charge pump.
Optionally, the processing module 203 is further configured to start a detection thread to detect the states of the three connectors during the charging process of the terminal through the charger;
determining that the first connector is in the disconnected state if the first charge pump is detected to be in a disabled state and the second charge pump is detected to be in an enabled state.
Optionally, the processing module 203 is further configured to determine that the second connector is in the disconnected state if the number of failures of the fuel gauge to continuously read and write the register is greater than a specified number, or if the first voltage is greater than a threshold voltage;
the first voltage is a battery voltage read from the second charge pump, and the threshold voltage is a start-up voltage of the terminal system.
Optionally, the processing module 203 is further configured to determine that the third connector is in the disconnected state if the second voltage is greater than a threshold voltage;
the second voltage is the battery voltage read from the third charge pump, and the threshold voltage is the start-up voltage of the terminal system.
Optionally, the detection module 201 is further configured to, in case it is detected that the first connector or the second connector is in a disconnected state, control the fast charge protocol state machine to exit the fast charge mode,
And limiting the charging current and the charging power of the charger when the third connector is detected to be in the disconnected state.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The present disclosure also provides a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the charge control method provided by the present disclosure.
Fig. 7 is a block diagram illustrating an apparatus for charge control according to an exemplary embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 7, apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the charge control method described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
Input/output interface 812 provides an interface between processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the charge control methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the charge control method described above. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In another exemplary embodiment, a computer program product is also provided, comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described charge control method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. The charging control method is characterized by being applied to a terminal, wherein a battery of the terminal is connected with a charge pump on a main board of the terminal through three connectors, and the charge pump is connected with a charger; the method comprises the following steps:
Detecting states of the three connectors at the moment when the charger is inserted into the terminal or in the process of charging through the charger;
and when the connector is detected to be in the disconnection state, controlling the fast charging protocol state machine to exit the fast charging mode, or limiting the charging current and the charging power of the charger.
2. The method of claim 1, wherein the three connectors comprise a first connector, a second connector, and a third connector; the charge pump comprises a first charge pump, a second charge pump and a third charge pump;
one end of the first connector is connected with the first charge pump, and the other end of the first connector is connected with the battery packaging end and the integrated power management circuit;
one end of the second connector is connected with a second charge pump, and the other end of the second connector is connected with an electricity meter of the battery;
One end of the third connector is connected with the third charge pump, and the other end of the third connector is connected with the battery packaging end.
3. The method of claim 2, wherein the detecting the status of the three connectors comprises:
Determining that the first connector is in the disconnected state if a difference between a first current and a second current, or a difference between the first current and a third current, is greater than a first threshold;
The first current is the current of the first charge pump, the second current is the current of the second charge pump, and the third current is the current of the third charge pump.
4. The method of claim 2, wherein the detecting the status of the three connectors further comprises:
Starting a detection thread to detect the states of the three connectors in the process that the terminal is charged by the charger;
determining that the first connector is in the disconnected state if the first charge pump is detected to be in a disabled state and the second charge pump is detected to be in an enabled state.
5. The method of claim 2, wherein the detecting the status of the three connectors further comprises:
Determining that the second connector is in the disconnected state if the number of failures of the fuel gauge to continuously read and write the register is greater than a specified number, or if the first voltage is greater than a threshold voltage;
the first voltage is a battery voltage read from the second charge pump, and the threshold voltage is a start-up voltage of the terminal system.
6. The method of claim 2, wherein the detecting the status of the three connectors further comprises:
determining that the third connector is in the disconnected state if the second voltage is greater than a threshold voltage;
the second voltage is the battery voltage read from the third charge pump, and the threshold voltage is the start-up voltage of the terminal system.
7. The method of claim 2, wherein controlling the fast charge protocol state machine to exit fast charge mode or limit the charging current and charging power of the charger comprises:
When the first connector or the second connector is detected to be in a disconnection state, controlling a quick charge protocol state machine to exit a quick charge mode;
And limiting the charging current and the charging power of the charger when the third connector is detected to be in the disconnected state.
8. The charging control device is characterized by being applied to a terminal, wherein a battery of the terminal is connected with a charge pump on a main board of the terminal through three connectors, and the charge pump is connected with a charger; the device comprises:
A detection module configured to detect states of the three connectors at an instant when the charger is inserted into the terminal or during charging by the charger;
and the processing module is configured to control the fast charge protocol state machine to exit the fast charge mode or limit the charging current or the charging power of the charger when the connector is detected to be in the disconnected state.
9. An electronic device, comprising:
A processor; a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the steps of the method of any one of claims 1-7.
10. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1-7.
CN202211275527.6A 2022-10-18 2022-10-18 Charging control method, device, electronic equipment and readable storage medium Pending CN117955186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211275527.6A CN117955186A (en) 2022-10-18 2022-10-18 Charging control method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211275527.6A CN117955186A (en) 2022-10-18 2022-10-18 Charging control method, device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117955186A true CN117955186A (en) 2024-04-30

Family

ID=90801912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211275527.6A Pending CN117955186A (en) 2022-10-18 2022-10-18 Charging control method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117955186A (en)

Similar Documents

Publication Publication Date Title
US20170025874A1 (en) Charging method
EP3780328B1 (en) Reverse charging device
KR102471940B1 (en) Battery charging method, battery charging device and storage medium
CN108091808B (en) Battery, equipment, charging control method and device
CN108121631B (en) Screen abnormal state reminding method and device
CN108110854B (en) Charging method, charging device and computer-readable storage medium
EP3139305A1 (en) Method and apparatus for fingerprint recognition and mobile terminal
US11205906B2 (en) Charging processing method, terminal device and storage medium
CN107329520B (en) USB interface connection method, device and system of mobile terminal
CN110941321A (en) Power supply method and device for electronic equipment and intelligent equipment
CN105630655A (en) Charging connection prompting method and apparatus
CN113725954B (en) Charging method, device, equipment and storage medium
CN107681727B (en) Control method and device of electronic equipment
CN107733021B (en) Control method and device of electronic equipment
CN117955186A (en) Charging control method, device, electronic equipment and readable storage medium
CN112421702B (en) Lithium battery charging method and device
CN115940310A (en) Charging method, charging device, and storage medium
CN108539823B (en) Charging method and device
CN112929485B (en) Electronic device, interface module protection method, protection device and storage medium
CN220527717U (en) Charging circuit and terminal equipment
CN116207805A (en) Charging method, device, equipment and storage medium
CN112448054B (en) Charging method and device of mobile terminal, terminal and storage medium
CN116930826A (en) Method and device for detecting buckling of battery connector
CN117375121A (en) Battery circuit, control method and device thereof, and storage medium
CN116799887A (en) Charging method, device, equipment and storage medium of electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination