Charging control method, controller, SOC charging chip and charger

Through the SOC charging chip, the chamber voltage and battery voltage are detected and the appropriate charging mode is selected, which solves the problem of low charging convenience for lithium batteries in outdoors, and achieves flexible charging and extended battery life under no mains conditions.

CN120342013APending Publication Date: 2025-07-18ZHUHAI YINGJIXIN SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510381830.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, lithium battery charging requires 220V mains power, resulting in low charging convenience outdoors and unable to meet the needs of fast charging.

Method used

The SOC charging chip is used to detect the bin voltage of the charging bin battery and the voltage of the external battery, determine the bin status, and select trickle, constant current or constant voltage charging mode based on the target battery voltage to independently manage the external battery power.

Benefits of technology

It realizes flexible charging of external batteries without mains, improves charging convenience and independent power management capabilities, and extends the battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120342013A_ABST
    Figure CN120342013A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of charging, in particular to a charging control method, a controller, an SOC charging chip and a charger. The method comprises the following steps: in response to the fact that a charging interface does not detect input of an external power supply, obtaining bin battery voltage of a charging bin battery, in response to the fact that the bin battery voltage is greater than or equal to a preset low-voltage threshold value, determining a bin position state of a battery bin, in response to the bin position state as an in-bin state, obtaining target battery voltage of the external battery, and selecting a target charging mode to charge the external battery based on the target battery voltage. According to the charging control method provided by the embodiment of the invention, the limitation that a user needs a 220V commercial power supply outdoors can be eliminated, so that the charging convenience and flexibility are improved, independent power management of a charging bin battery and an external battery can be realized through a single chip (SOC charging chip), and the charging efficiency is improved. The device has the advantages of being high in portability, low in cost and capable of prolonging the service life of an external battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of charging, and in particular, to a charging control method, a controller, an SOC charging chip, and a charger. Background Art

[0002] With the widespread use of electronic devices, as a key component for providing energy, the usage of lithium batteries is increasing day by day. At present, many lithium batteries are embedded inside electronic devices for an integrated design. When the lithium battery needs to be replenished with power, the user needs to connect a charging cable to the electronic device to charge the lithium battery of the electronic device. However, many electronic devices need to stop the operation of other functions during the charging process. Therefore, this method is not easy to meet the requirement of quickly connecting to work.

[0003] More and more electronic devices provide interfaces that can replace lithium batteries. When charging is needed, the user removes the lithium battery from the electronic device and places the lithium battery in the battery compartment of the charger. The charger is provided with a rectifier chip and a power management chip. The rectifier chip can convert the 220V mains power supply into a DC power supply, and the DC power supply is then stepped down through the power management chip to provide a suitable voltage for charging the lithium battery. This method requires the input of a 220V mains power supply. When the user needs to charge the lithium battery outdoors, this method cannot meet the requirements of this scenario and has many limitations. Summary of the Invention

[0004] An object of the embodiments of the present application is to provide a charging control method, a controller, an SOC charging chip, and a charger to solve the technical problem of relatively low charging convenience in the related art.

[0005] In a first aspect, an embodiment of the present application provides a charging control method, which is applied to a charger. The charger includes an SOC charging chip, a charging interface, a charging bin battery, and a voltage detection circuit. The SOC charging chip is electrically connected to the charging interface, the charging bin battery, and the voltage detection circuit respectively. The SOC charging chip is provided with at least one power output interface, and the voltage detection circuit is electrically connected to the power output interface. The power output interface is configured to transmit power to an external battery placed in the battery bin of the charger. The charging control method includes: in response to the charging interface not detecting an input of an external power supply, obtaining the bin battery voltage of the charging bin battery; in response to the bin battery voltage being greater than or equal to a preset low voltage threshold, determining the bin state of the battery bin, where the bin state includes an in-bin state or an empty-bin state. The in-bin state is used to indicate that the power output interface is electrically connected to an external battery, and the empty-bin state is used to indicate that the power output interface is not electrically connected to an external battery; in response to the bin state being the in-bin state, obtaining the target battery voltage of the external battery; and charging the external battery based on the target battery voltage by selecting a target charging mode.

[0006] Optionally, the determining the bin state of the battery bin includes: obtaining the first battery voltage of the external battery; generating bin state information based on the first battery voltage and a preset in-bin voltage threshold; and determining the bin state of the battery bin based on the bin state information.

[0007] Optionally, the bin state information includes in-bin state information and in-bin pending confirmation information. The generating bin state information based on the first battery voltage and a preset in-bin voltage threshold includes: in response to the first battery voltage being less than or equal to the preset in-bin voltage threshold, generating in-bin pending confirmation information; and in response to the first battery voltage being greater than the preset in-bin voltage threshold, generating in-bin state information.

[0008] Optionally, the bin state information includes in-bin pending confirmation information. The determining the bin state of the battery bin based on the bin state information includes: in response to the bin state information being in-bin pending confirmation information, configuring the SOC charging chip to transmit a first current to the external battery through the power output interface according to a preset reference current limit value; in response to the first current being greater than a preset in-bin current threshold, determining the bin state of the battery bin to be the in-bin state; in response to the first current being less than or equal to the preset in-bin current threshold, obtaining the second battery voltage of the external battery again. If the second battery voltage is greater than a preset full charge voltage threshold, determining the bin state of the battery bin to be the in-bin state. If the second battery voltage is less than or equal to the preset full charge voltage threshold, determining the bin state of the battery bin to be the empty-bin state.

[0009] Optionally, the SOC charging chip is configured with multiple current limiting levels, and each current limiting level corresponds to an automatic current limiting value. The reference current limiting value is the automatic current limiting value of the minimum current limiting level. The charging control method further includes: performing current sampling processing on the first current transmitted by the SOC charging chip to the power output interface according to the reference current limiting value to obtain a first sampling value; determining a gear calibration coefficient based on the first sampling value and a preset current reference value, where the gear calibration coefficient is used to compensate for the inherent current deviation of the SOC charging chip so that the current output by the SOC charging chip can match the target current.

[0010] Optionally, the determining the gear calibration coefficient based on the first sampling value and the preset current reference value includes: in response to the first sampling value being less than or equal to the preset current reference value, determining the natural number 0 as the gear calibration coefficient; in response to the first sampling value being greater than the preset current reference value, determining the natural number 1 as the gear calibration coefficient.

[0011] Optionally, the charging the external battery in the target charging mode based on the target battery voltage includes: selecting a target charging mode based on the target battery voltage; obtaining a target current, a gear calibration coefficient, and a current step value that match the target charging mode; determining a target current limiting level based on the target current, the gear calibration coefficient, and the current step value; controlling the SOC charging chip to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the target current limiting level in the target charging mode.

[0012] Optionally, the target charging mode includes a trickle charging mode, a constant current charging mode, or a constant voltage charging mode. The selecting the target charging mode based on the target battery voltage includes: in response to the target battery voltage being less than a first preset voltage threshold, determining the target charging mode as the trickle charging mode; in response to the target battery voltage being greater than or equal to the first preset voltage threshold but less than a second preset voltage threshold, determining the target charging mode as the constant current charging mode; in response to the target battery voltage being greater than or equal to the second preset voltage threshold, determining the target charging mode as the constant voltage charging mode.

[0013] Optionally, the SOC charging chip includes a boost - buck processing circuit and a low - dropout linear voltage - regulation circuit. Controlling the SOC charging chip to transfer current to the external battery through the power output interface according to the automatic current - limiting value corresponding to the target current - limiting gear in the target charging mode includes: determining the loss voltage corresponding to the target current; determining the boost value based on the loss voltage, the preset full - charge voltage of the battery, and the preset voltage margin; controlling the boost - buck processing circuit to perform a boost operation based on the boost value to output an input voltage corresponding to the boost value to the low - dropout linear voltage - regulation circuit; and controlling the low - dropout linear voltage - regulation circuit to transfer current to the external battery through the power output interface according to the automatic current - limiting value corresponding to the target current - limiting gear in the target charging mode based on the input voltage.

[0014] Optionally, the charging control method further includes: in response to the target charging mode being the trickle - charging mode, monitoring the battery voltage of the external battery in the trickle - charging mode; and in response to the battery voltage of the external battery in the trickle - charging mode being greater than a first preset voltage threshold, controlling the SOC charging chip to switch from the trickle - charging mode to the constant - current charging mode.

[0015] Optionally, the charging control method further includes: in response to the target charging mode being the trickle - charging mode, monitoring the battery voltage of the external battery within a first real - time duration, where the first real - time duration is the difference between the time point when the external battery enters the trickle - charging mode and the current time point; in response to the first real - time duration being greater than or equal to a first preset duration and the battery voltage of the external battery within the first real - time duration being less than or equal to a first preset value, generating battery - bad information and controlling the SOC charging chip to stop charging the external battery.

[0016] Optionally, the charging control method further includes: in response to the target charging mode being the constant - current charging mode, performing current sampling processing on the current flowing through the external battery to obtain a second sampling value; in response to the second sampling value continuously being less than a second preset value within a second preset duration, increasing the target current - limiting gear based on a preset current step value to obtain an increased target current - limiting gear; and controlling the SOC charging chip to transfer current to the external battery through the power output interface according to the automatic current - limiting value corresponding to the increased target current - limiting gear in the target charging mode.

[0017] Optionally, the charging control method further includes: in response to the target charging mode being the constant current charging mode, performing current sampling processing on the current flowing through the external battery to obtain a third sampling value; in response to the third sampling value within a third preset duration continuously being greater than a third preset value and less than a fourth preset value, reducing the target current limiting gear based on a preset current step value to obtain a reduced target current limiting gear; controlling the SOC charging chip to transmit current to the external battery through the power output interface according to an automatic current limiting value corresponding to the reduced target current limiting gear in the target charging mode.

[0018] Optionally, the charging control method further includes: in response to the target charging mode being the constant current charging mode, monitoring the battery voltage of the external battery in the constant current charging mode; in response to the battery voltage of the external battery in the constant current charging mode being greater than a second preset voltage threshold, controlling the SOC charging chip to switch from the constant current charging mode to the constant voltage charging mode.

[0019] Optionally, the charging control method further includes: in response to the target charging mode being the constant voltage charging mode, determining an optimal current value for increasing the rate at which the external battery enters the full charge state; controlling the SOC charging chip to transmit current consistent with the optimal current value to the external battery through the power output interface in the target charging mode.

[0020] Optionally, determining the optimal current value based on the battery voltage of the external battery in the constant voltage charging mode includes: determining the battery voltage of the external battery in the constant voltage charging mode; in response to the battery voltage of the external battery in the constant voltage charging mode being less than the second preset voltage threshold, determining the target current corresponding to the constant current charging mode as the optimal current; in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the second preset voltage threshold but less than the third preset voltage threshold, determining a first current value as the optimal current value, where the first current value is less than the target current corresponding to the constant current charging mode; in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the third preset voltage threshold but less than the fourth preset voltage threshold, determining a second current value as the optimal current value, where the second current value is less than the first current value; in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the fourth preset voltage threshold but less than the fifth preset voltage threshold, determining a third current value as the optimal current value, where the third current value is less than the second current value; in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the fifth preset voltage threshold, determining a fourth current value as the optimal current value, where the fourth current value is less than the third current value.

[0021] Optionally, the charging control method further includes: performing a current sampling operation on the current flowing through the external battery to obtain a fourth sampling value; and determining that the external battery enters a full charge state in response to the fourth sampling value continuously being less than the fourth current value within a preset saturation duration.

[0022] Optionally, the charging control method further includes: detecting the charging current flowing through the external battery in the target charging mode; obtaining the third battery voltage of the external battery in response to the change state of the charging current matching a preset change state, where the preset change state is that the charging current suddenly changes from being greater than a preset in - bin current threshold to being less than the preset in - bin current threshold; determining that the bin state of the battery bin is an empty bin state in response to the third battery voltage being less than a preset in - bin voltage threshold; and determining that the bin state of the battery bin is an in - bin state in response to the third battery voltage being greater than or equal to the preset in - bin voltage threshold.

[0023] Optionally, the charging control method further includes: detecting the charging current flowing through the external battery and the fourth battery voltage of the external battery in the target charging mode; and determining that the bin state of the battery bin is an empty bin state in response to the charging current being less than a preset in - bin current threshold and the fourth battery voltage of the external battery being less than a preset in - bin voltage threshold.

[0024] Optionally, the charging control method further includes: detecting the charging current flowing through the external battery in the target charging mode; and controlling the SOC charging chip to stop providing charging current to the external battery in response to the charging current being greater than or equal to a preset over - current threshold.

[0025] Optionally, the charging control method further includes: obtaining a battery sampling set, where the battery sampling set includes a plurality of fifth battery voltages of the external battery detected sequentially at a preset frequency in the target charging mode; calculating the absolute value of the difference between the current fifth battery voltage and the previous fifth battery voltage; continuing to detect a plurality of fifth battery voltages of the external battery at a specified duration sequentially at the preset frequency in response to the absolute value of the difference being greater than or equal to a preset replacement threshold; charging the external battery based on the target charging mode in response to the plurality of fifth battery voltages within the specified duration indicating that the battery voltage of the external battery has recovered to a voltage range matching entry into the target charging mode; and controlling the SOC charging chip to perform an initialization operation in response to the plurality of fifth battery voltages within the specified duration indicating that the battery voltage of the external battery has not recovered to a voltage range matching entry into the target charging mode.

[0026] Optionally, the charging control method further includes: in response to the charging interface detecting the input of an external power source, obtaining the battery voltage of the charging bin battery; controlling the SOC charging chip to charge the charging bin battery; determining the bin state of the battery bin; in response to the bin state being the in-bin state, obtaining the target battery voltage of the external battery; and charging the external battery in a target charging mode based on the target battery voltage of the external battery.

[0027] In a second aspect, an embodiment of the present application provides a controller, including a memory and a processor, the memory being connected to the processor, the processor being configured to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the controller implements the above charging control method.

[0028] In a third aspect, an embodiment of the present application provides an SOC charging chip, including: a step-up / step-down processing circuit; a low-dropout linear voltage regulator circuit electrically connected to the step-up / step-down processing circuit; the above controller, respectively electrically connected to the step-up / step-down processing circuit and the low-dropout linear voltage regulator circuit, the controller being provided with a power output interface configured to transmit power.

[0029] Optionally, the power output interface includes a first output interface and a second output interface; the low-dropout linear voltage regulator circuit includes a first low-dropout linear voltage regulator unit and a second low-dropout linear voltage regulator unit, the step-up / step-down processing circuit being electrically connected to the first low-dropout linear voltage regulator unit and the second low-dropout linear voltage regulator unit respectively, the first low-dropout linear voltage regulator unit being electrically connected to the first output interface, and the second low-dropout linear voltage regulator unit being electrically connected to the second output interface.

[0030] Optionally, the SOC charging chip further includes a one-way conduction circuit electrically connected to the power output interface, the one-way conduction circuit being configured to transmit the charging current provided by the low-dropout linear voltage regulator circuit through the power output interface to the external battery, but blocking the reverse current from the external battery to the SOC charging chip.

[0031] In a fourth aspect, an embodiment of the present application provides a charger, including a charging interface, a charging bin battery, a voltage detection circuit, and the above SOC charging chip, the SOC charging chip being electrically connected to the charging interface, the charging bin battery, and the voltage detection circuit respectively, the SOC charging chip being provided with at least one power output interface, and the voltage detection circuit being further electrically connected to the power output interface.

[0032] Optionally, the charger further includes: a display component electrically connected to the SOC charging chip; and / or, an interaction component electrically connected to the SOC charging chip.

[0033] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, the computer program including program instructions, and the program instructions, when executed by a processor, cause the processor to execute the above-mentioned charging control method.

[0034] The embodiments of the present application can achieve the following technical effects: The charging control method provided by the embodiments of the present application can relieve the limitation that users need a 220V mains power supply outdoors, thereby improving charging convenience and flexibility. Moreover, it can independently manage the power supply of the charging bin battery and the external battery through a single chip (SOC charging chip), having the advantages of high portability, low cost, and extending the service life of the external battery. Description of the Drawings

[0035] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments of the present application. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained according to these drawings.

[0036] Figure 1 It is a schematic circuit structure diagram of a charger provided by an embodiment of the present application;

[0037] Figure 2 It is a schematic circuit structure diagram of a voltage detection circuit provided by an embodiment of the present application;

[0038] Figure 3 It is a schematic circuit structure diagram of a lighting component provided by an embodiment of the present application;

[0039] Figure 4 It is a schematic circuit structure diagram of a charger provided by another embodiment of the present application;

[0040] Figure 5 It is a schematic circuit structure diagram of an SOC charging chip provided by an embodiment of the present application;

[0041] Figure 6 It is a schematic circuit structure diagram of a charger provided by another embodiment of the present application;

[0042] Figure 7 It is a schematic circuit structure diagram of a charger provided by yet another embodiment of the present application;

[0043] Figure 8Schematic diagram of the circuit structure of a charger provided in another embodiment of the present application;

[0044] Figure 9 Schematic flowchart of a charging control method provided in an embodiment of the present application;

[0045] Figure 10 Charging curve diagrams of the first external battery and the second external battery provided in an embodiment of the present application;

[0046] Figure 11 Schematic diagram of the structure of a charging control device provided in an embodiment of the present application;

[0047] Figure 12 Schematic diagram of the structure of a controller provided in an embodiment of the present application. Detailed implementation manners

[0048] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without making creative efforts fall within the protection scope of the present application.

[0049] It should be noted that if there is no conflict, the various features in the embodiments of the present application can be combined with each other, and all are within the protection scope of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the flowchart. Furthermore, the terms "first", "second", "third", etc. used in the present application do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0050] An embodiment of the present application provides a charger. Please refer to Figure 1 , the charger 100 includes a charging interface 200, a charging bin battery 300, a voltage detection circuit 400, a display component 500, an interaction component 600, and an SOC charging chip 700. The SOC charging chip 700 is electrically connected to the charging interface 200, the charging bin battery 300, the voltage detection circuit 400, the display component 500, and the interaction component 600 respectively.

[0051] The charging interface 200 is used to receive an external power supply. For example, the external power supply is a 5V power supply. The charging interface 200 can be any type of interface. Exemplarily, the charging interface 200 is a USB interface.

[0052] The charging bin battery 300 is a battery built into the charger 100 and is used to supply power to an external battery placed in the battery bin of the charger 100 in the absence of an external power input. Exemplarily, the external battery is a lithium battery.

[0053] The voltage detection circuit 400 is used to detect the battery voltage of the external battery. There are a variety of circuit topologies for the voltage detection circuit 400. In some embodiments, the voltage detection circuit 400 is a single resistor or a resistor network. In other embodiments, please refer to Figure 2 and the voltage detection circuit 400 is a circuit with voltage detection function composed of multiple resistors and capacitors.

[0054] The display component 500 is used to display the working state of the charger 100. In some embodiments, please refer to Figure 3 and the display component 500 is a lighting component. The lighting component includes a first LED D1, a second LED D2, and a third LED D3. The first LED D1 is used to indicate whether there is an external power input currently, whether the charging bin battery 300 is in the low voltage range, or the charging bin battery 300 enters the full charge state, and is distinguished by the constant on state and different flashing frequencies of the first LED D1. If the charger 100 supports the function of simultaneously charging two external batteries, the second LED D2 serves as the status indicator for the first external battery. When the first external battery is not placed in the battery bin, the second LED D2 is turned off. When the first external battery is in the battery bin and has not entered the full charge state, the second LED D2 flashes. When the first external battery is in the battery bin and enters the full charge state, the second LED D2 is constantly on. The third LED D3 serves as the status indicator for the second external battery, and its display rule is the same as that of the second LED D2, which will not be elaborated here.

[0055] In other embodiments, the display component 500 is a display screen.

[0056] The interaction component 600 is used to respond to the user's input operation and trigger the SOC charging chip 700 to perform related operations. In some embodiments, the interaction component 600 is a button component. The user operates the button component to trigger the SOC charging chip 700 to start charging the external battery. In other embodiments, the interaction component 600 is a display screen. The user operates the display screen to trigger the SOC charging chip 700 to start charging the external battery.

[0057] The SOC charging chip 700 is the core of the charging management of the charger 100 and is used to process and analyze various charging management transactions. The SOC charging chip 700 is provided with at least one power output interface 800, and the voltage detection circuit 400 is also electrically connected to the power output interface 800. The power output interface 800 is used to electrically connect to an external battery. When the external battery is placed in the battery compartment of the charger 100, the external battery can be electrically connected to the power output interface 800, and the voltage detection circuit 400 can thus detect the battery voltage of the external battery.

[0058] Please refer to Figure 4 , the SOC charging chip 700 includes a boost-buck processing circuit 71, a low dropout linear regulator circuit 72, and a controller 73. The low dropout linear regulator circuit 72 is electrically connected to the boost-buck processing circuit 71, and the controller 73 is electrically connected to the boost-buck processing circuit 71 and the low dropout linear regulator circuit 72 respectively.

[0059] The boost-buck processing circuit 71 is controlled by the controller 73 and can perform a boost operation on the battery voltage of the charging bin battery 300 to obtain an input voltage. The boost-buck processing circuit 71, as a boost-buck hybrid circuit, has a boost function and a buck function.

[0060] The low dropout linear regulator circuit 72 (Low Dropout Linear Regulator Circuit, LDO) responds to the input of the input voltage and transmits a current that meets the requirements to the external battery through the power output interface.

[0061] The controller 73 is used to control the boost-buck processing circuit 71 and the low dropout linear regulator circuit 72, and also processes and analyzes various charging management transactions. The controller 73 integrates functions such as ADC detection.

[0062] It can be understood that, please refer to Figure 5 , the boost-buck processing circuit 71, the low dropout linear regulator circuit 72, and the controller 73 are integrated on the SOC charging chip 700, that is: the SOC charging chip 700 supports boost function, buck function, voltage regulation function, current limiting function, and various transaction processing functions.

[0063] In some embodiments, the SOC charging chip 700 has the function of providing power to one external battery. In other embodiments, the SOC charging chip 700 has the function of providing power to two or more external batteries.

[0064] Please combine with Figure 5 , the power output interface 800 includes a first output interface VPHL and a second output interface VPHR.

[0065] Please refer to Figure 6, the low dropout linear voltage regulator circuit 72 includes a first low dropout linear voltage regulator unit 721 (i.e., LD01 circuit) and a second low dropout linear voltage regulator unit 722 (i.e., LD02 circuit). The boost-buck processing circuit 71 is electrically connected to the first low dropout linear voltage regulator unit 721 and the second low dropout linear voltage regulator unit 722 respectively. The first low dropout linear voltage regulator unit 721 is electrically connected to the first output interface VPHL, and the second low dropout linear voltage regulator unit 722 is electrically connected to the second output interface VPHR. The first low dropout linear voltage regulator unit 721 and the second low dropout linear voltage regulator unit 722 work independently of each other. The controller 73 can sample the current output by the first low dropout linear voltage regulator unit 721 and the current output by the second low dropout linear voltage regulator unit 722 based on the ADC pin.

[0066] When the first output interface VPHL is electrically connected to the first external battery 11, the first low dropout linear voltage regulator unit 721 receives the input voltage provided by the boost-buck processing circuit 71 and outputs a corresponding current. This current is transmitted to the first external battery 11 through the first output interface VPHL, thereby charging the first external battery 11.

[0067] When the second output interface VPHR is electrically connected to the second external battery 12, the second low dropout linear voltage regulator unit 722 receives the input voltage provided by the boost-buck processing circuit 71 and outputs a corresponding current. This current is transmitted to the second external battery 12 through the second output interface VPHR, thereby charging the second external battery 12.

[0068] Please refer to Figure 7 , the SOC charging chip 700 further includes a one-way conduction circuit 74. The one-way conduction circuit 74 is electrically connected to the power output interface 800. The one-way conduction circuit 74 is used to transmit the charging current provided by the low dropout linear voltage regulator circuit 72 through the power output interface 800 to the external battery, but blocks the reverse current from the external battery to the SOC charging chip 700.

[0069] Please refer to Figure 8 , the one-way conduction circuit 74 includes a first one-way conduction unit 741 and a second one-way conduction unit 742. The first one-way conduction unit 741 is electrically connected to the first output interface VPHL, and the second one-way conduction unit 742 is electrically connected to the second output interface VPHR.

[0070] The first one-way conduction unit 741 is used to transmit the charging current provided by the first low dropout linear voltage regulator unit 721 through the first output interface VPHL to the first external battery, but blocks the reverse current from the first external battery to the SOC charging chip 700. The second one-way conduction unit 742 is used to transmit the charging current provided by the second low dropout linear voltage regulator unit 722 through the second output interface VPHR to the second external battery, but blocks the reverse current from the second external battery to the SOC charging chip 700.

[0071] Please combine with Figure 5 The first unidirectional conduction unit 741 is the first diode D4. The positive electrode of the first diode D4 is electrically connected to the first output interface VPHL, and the negative electrode is electrically connected to the first battery inlet. The second unidirectional conduction unit 742 is the second diode D5. The positive electrode of the second diode D5 is electrically connected to the second output interface VPHR, and the negative electrode is electrically connected to the second battery inlet.

[0072] The charger provided by the embodiment of the present application can relieve the limitation that users need a 220V mains power supply outdoors, thereby improving charging convenience and flexibility. It can also achieve independent power management of the charging bin battery and the dual-channel external battery through a single chip (SOC charging chip). Moreover, it can directly charge the dual-channel external battery, and can use the trickle charging mode, constant current charging mode, and constant voltage charging mode to directly charge each external battery, with the advantages of high portability, low cost, and extending the service life of the external battery.

[0073] Next, the embodiment of the present application provides a charging control method. Please refer to Figure 9 The charging control method includes steps S91 to S94.

[0074] The embodiment of the present application executes step S91. In response to the fact that no external power supply is detected at the charging interface, the bin battery voltage of the charging bin battery is obtained.

[0075] The bin battery voltage is the voltage across the charging bin battery. The SOC charging chip can detect the bin battery voltage of the charging bin battery based on the ADC pin. When the SOC charging chip detects that there is no external power supply at the charging interface and the SOC charging chip receives a charging start signal, the SOC charging chip enters the working state. For example, the external power supply is a 5V voltage.

[0076] After the SOC charging chip enters the working state, the SOC charging chip configures the outputs of the internal LDO1 circuit and LDO2 circuit to the off state, sets the initial automatic current limiting value of the LDO1 circuit and LDO2 circuit to Iinit, and sets the preset overcurrent threshold of LDO1 and LDO0 to Ioc. For example, the initial automatic current limiting threshold is 5mA, and the preset overcurrent threshold Ioc is 70mA.

[0077] The automatic current limiting values of the LDO1 circuit and the LDO2 circuit are continuously adjustable within a certain current range Imax according to a preset current step value Istep. For example, Imax is 0.4 A and the current step value Istep is 5 mA or 10 mA. The LDO1 circuit and the LDO2 circuit can be configured in a constant current source mode to adjust their own output current capabilities. When the output voltage of the LDO1 circuit and the LDO2 circuit is too high during the constant current control process, resulting in the output current exceeding the automatic current limiting value, the output current can be controlled within the set range instead of being directly turned off.

[0078] In some embodiments, the charging start signal is generated by a user operating a key component. In some embodiments, the charger is provided with a Hall sensor, and the charging start signal is generated by the Hall sensor. In some embodiments, the charger is provided with a wireless communication module, and a mobile phone or an external device sends a charging start signal to the wireless communication module.

[0079] The embodiment of the present application executes step S92, and when the battery voltage of the response bin is greater than or equal to a preset low voltage threshold, the bin state of the battery bin is determined.

[0080] The preset low voltage threshold is customized by the designer according to engineering experience. Exemplarily, the preset low voltage threshold is 3.0 V. When the battery voltage of the bin is greater than or equal to the preset low voltage threshold, it means that the charging bin battery has enough power to supply the external battery. When the battery voltage of the bin is less than the preset low voltage threshold, it means that the charging bin battery lacks enough power to supply the external battery. The embodiment of the present application controls the SOC charging chip to stop the charging operation to avoid forcibly using the charging bin battery to supply power to the external battery and reducing the service life of the charging bin battery.

[0081] The bin state includes the in-bin state or the empty-bin state. The in-bin state is used to indicate that the power output interface is electrically connected to an external battery, and the empty-bin state is used to indicate that the power output interface is not electrically connected to an external battery.

[0082] Determining the bin state of the battery bin includes the following steps: obtaining the first battery voltage of the external battery, generating bin state information based on the first battery voltage and a preset in-bin voltage threshold, and determining the bin state of the battery bin based on the bin state information.

[0083] The voltage detection circuit can sample the voltage of the external battery to obtain the first battery voltage and transmit the first battery voltage to the SOC charging chip. Taking the first external battery as an example, the voltage detection circuit detects the voltage across the first external battery through the first output interface to obtain the first battery voltage and transmits the first battery voltage to the SOC charging chip. The SOC charging chip determines whether the first external battery is placed in the battery bin based on the first battery voltage, that is, determines the bin state of the battery bin.

[0084] The bin status information includes the in-bin status information and the in-bin pending confirmation information. The in-bin status information is used to indicate that the power output interface is electrically connected to an external battery, and the in-bin pending confirmation information is used to indicate that it is necessary to further confirm whether the power output interface is electrically connected to an external battery.

[0085] Generating the bin status information based on the first battery voltage and the preset in-bin voltage threshold includes the following steps: in response to the first battery voltage being less than or equal to the preset in-bin voltage threshold, generating the in-bin pending confirmation information, and in response to the first battery voltage being greater than the preset in-bin voltage threshold, generating the in-bin status information.

[0086] The preset in-bin voltage threshold is customized by the designer according to engineering experience. Exemplarily, the preset in-bin voltage threshold is 0.4V. When the first battery voltage is less than or equal to the preset in-bin voltage threshold, it indicates that there may or may not be an external battery placed in the battery bin. Therefore, in the embodiment of the present application, the in-bin pending confirmation information is generated, and it is necessary to further determine whether there is actually an external battery placed in the battery bin. When the first battery voltage is greater than the preset in-bin voltage threshold, it indicates that an external battery has been placed in the battery bin.

[0087] Exemplarily, please combine Figure 2 with Figure 5 , taking the first external battery as an example. The first battery voltage V LBAT After being divided by resistors R3 and R4, the amplitude can be limited within the range of the ADC, and then it is input to the SOC charging chip through the RC filter circuit composed of resistor R18 and capacitor C4. The battery voltage V IO0 analyzed by the SOC charging chip and the first battery voltage V LBAT The relationship is When V IO0 the measured voltage is greater than 0.2V, that is, V LBAT is greater than 0.4V. At this time, the first external battery is marked as being in the battery bin, otherwise it is marked as requiring further confirmation. The confirmation process of the initial in-bin status of the second external battery is the same.

[0088] The voltage input sources of the LDO1 circuit and the LDO2 circuit are the input voltage of the VOUT pin. When an external power supply of 5V is connected to the VIN pin, the path tube from the internal VIN pin to the VOUT pin of the SOC charging chip can be opened, allowing 5V to flow into the VOUT pin and then serving as the input source of the LDO1 circuit and the LDO2 circuit. When there is no external power supply of 5V connected, the path tube from the VIN pin to the VOUT pin is closed. If the battery in the charging bin is not in a low-power state, for example, the battery voltage in the charging bin is greater than 3V, then the battery voltage provided by the charging bin battery flows through the inductor L1 into the LX pin for boosting processing, and the boosted voltage is output to the VOUT pin as the input source of the LDO1 circuit and the LDO2 circuit.

[0089] Determining the bin status of the battery bin based on the bin status information includes the following steps: In response to the bin status information being the in-bin waiting-for-confirmation information, configure the SOC charging chip to transmit a first current to an external battery through a power output interface according to a preset reference current limit value. In response to the first current being greater than a preset in-bin current threshold, determine that the bin status of the battery bin is the in-bin status. In response to the first current being less than or equal to the preset in-bin current threshold, obtain the second battery voltage of the external battery again. If the second battery voltage is greater than a preset full-charge voltage threshold, determine that the bin status of the battery bin is the in-bin status. If the second battery voltage is less than or equal to the preset full-charge voltage threshold, determine that the bin status of the battery bin is the empty-bin status.

[0090] The preset in-bin current threshold is customized by the designer according to engineering experience. Exemplarily, the preset in-bin current threshold is 4 mA. Taking the first external battery as an example, if the bin status of the first external battery is marked as needing further confirmation, more steps are required to confirm the bin status of the first external battery. At this time, first, according to whether there is an external power supply of 5V connected to the VIN pin of the SOC charging chip, provide a suitable input voltage for the LDO1 circuit through the VOUT pin, and then configure the LDO1 circuit to be in a constant current source mode with a reference current limit value of 5 mA.

[0091] The power output interface (i.e., the VPHL pin) is provided with a current comparator, and the current comparator is configured with a current comparison threshold. For example, the current comparison threshold is 4 mA. The SOC charging chip configures the VPHL pin to be in a connected state with the internal LDO1 circuit of the chip and enables the output of the LDO1 circuit. The LDO1 circuit transmits a first current to the first external battery.

[0092] The SOC charging chip obtains the results output by the current comparator within a continuous time. If the results output by the current comparator within the continuous time are all high level, it indicates that the first current flowing through the current VPHL pin exceeds 4 mA, and it is determined that the first external battery is in the bin. At this time, mark the bin status of the first external battery as the in-bin status. If the results output by the current comparator within the continuous time are all low level, it indicates that the first current flowing through the current VPHL pin is lower than 4 mA, and it is necessary to judge the battery voltage of the first external battery again to confirm whether the first external battery has reached the full-charge voltage state. The continuous time is customized by the designer according to engineering experience. Exemplarily, the continuous time is 2 s. By providing a small current charging method for the external battery in the embodiments of the present application, the battery protection state of the battery that has triggered the short-circuit protection can be released, so that the voltage detection circuit can detect the true battery voltage of the external battery.

[0093] The preset full charge voltage threshold is customized by the designer according to engineering experience. For example, the preset full charge voltage threshold is 3.8V. During the process of confirming whether the first external battery has reached the full charge voltage state, in the embodiment of the present application, the VPHL pin is disconnected from the LDO1 circuit, the output of the LDO1 circuit is turned off, and after delaying for the first voltage duration, the second battery voltage of the external battery is obtained again. If the second battery voltage is greater than the preset full charge voltage threshold, it is determined that the position state of the battery compartment is the in-compartment state; if the second battery voltage is less than or equal to the preset full charge voltage threshold, it is determined that the position state of the battery compartment is the empty-compartment state. The first voltage duration is customized by the designer according to engineering experience. For example, the first voltage duration is 500ms.

[0094] The embodiment of the present application executes step S93. In response to the position state being the in-compartment state, the target battery voltage of the external battery is obtained. When the position state is the empty-compartment state, since there is no external battery placed in the battery compartment, in order to avoid wasting power, the embodiment of the present application controls the SOC charging chip to stop the charging operation.

[0095] The embodiment of the present application executes step S94, and selects a target charging mode to charge the external battery based on the target battery voltage. The charging control method provided by the embodiment of the present application can eliminate the limitation that the user needs 220V mains power outdoors, thereby improving the charging convenience and flexibility, and can also realize independent power management of the charging compartment battery and the dual-channel external battery through a single chip (SOC charging chip), having the advantages of high portability, low cost, and extending the service life of the external battery.

[0096] Generally, the SOC charging chip has a current deviation. The current output by the LDO1 circuit or the LDO2 circuit of the SOC charging chip is likely to have a deviation current from the current that the user configures the SOC charging chip to output. This deviation current can be a positive deviation current or a negative deviation current. The positive deviation current means that the current output is increased on the expected target current. For example, when the target current is 40mA, after the target current is superimposed with a positive deviation current of 4mA, the LDO1 circuit actually outputs 44mA. Generally, the value range of the positive deviation current is 1mA < positive deviation current < 8mA. The negative deviation current means that the current output is reduced on the expected target current. For example, when the target current is 40mA, after the target current is superimposed with a negative deviation current of 4mA, the LDO1 circuit actually outputs 36mA.

[0097] Embodiments of the present application need to calibrate the current output by the SOC charging chip. The SOC charging chip is configured with multiple current limiting gears, and one current limiting gear corresponds to an automatic current limiting value. For example, 5 mA corresponds to the first current limiting gear, 10 mA corresponds to the second current limiting gear, 15 mA corresponds to the third current limiting gear, and so on. The reference current limiting value is the automatic current limiting value of the minimum current limiting gear. The charging control method further includes the following steps: performing current sampling processing on the first current transmitted by the SOC charging chip to the power output interface according to the reference current limiting value to obtain a first sampling value, and determining a gear calibration coefficient based on the first sampling value and a preset current reference value. The gear calibration coefficient is used to compensate for the inherent current deviation of the SOC charging chip so that the current output by the SOC charging chip can match the target current.

[0098] After the determination of the position state of the external battery is completed, embodiments of the present application still keep the SOC charging chip transmitting the first current to the power output interface according to the reference current limiting value. If the reference current limiting value is 5 mA and the current deviation is a positive deviation current, then: the first sampling value of the first current actually output by the SOC charging chip is a value between 6 mA (5 + 1) and 13 mA (5 + 8).

[0099] Determining the gear calibration coefficient based on the first sampling value and the preset current reference value includes the following steps: in response to the first sampling value being less than or equal to the preset current reference value, determining the natural number 0 as the gear calibration coefficient; in response to the first sampling value being greater than the preset current reference value, determining the natural number 1 as the gear calibration coefficient.

[0100] Embodiments of the present application configure the current comparison threshold of the current comparator to be 9 mA, that is, the preset current reference value is 6 mA. Continuously monitor the current comparison result of the current comparator for 2 s. If the current comparison result indicates that the first sampling value is greater than the preset current reference value, it means that the positive deviation current is greater than 5 mA. It can be understood that when the positive deviation current is greater than 5 mA, due to the existence of the positive deviation current, the current output by the SOC charging chip has deviated excessively from the target current. In this case, adjustment is required. For example, if the target current is 20 mA, due to the existence of the positive deviation current, the current output by the SOC charging chip is greater than 25 mA, which has deviated excessively from the target current of 20 mA. Such a situation is not allowed in engineering. Embodiments of the present application need to set the gear calibration coefficient to the natural number 1. In this case, the target current of 20 mA corresponds to the fourth current limiting gear. After the correction process, the SOC charging chip only needs to be set to the third current limiting gear to meet the requirements. For example, if the positive deviation current is 6 mA and the third current limiting gear is 15 mA, the actual current output by the SOC charging chip is 21 mA, and the difference between the actual output current of 21 mA and the target current of 20 mA is within 5 mA. Such a situation is allowed in engineering.

[0101] If the current comparison result is used to indicate that the first sampled value is less than or equal to a preset current reference value, it means that the positive deviation current is less than 5 mA. It can be understood that when the positive deviation current is less than 5 mA, the current output by the SOC charging chip will not deviate excessively from the target current, and such a situation is allowed. For example, when the target current is 20 mA, due to the existence of the positive deviation current, the current output by the SOC charging chip is less than or equal to 25 mA and does not deviate too much from the target current of 20 mA, and such a situation is allowed in engineering. In the embodiment of the present application, the gear calibration coefficient needs to be set to the natural number 0. In such a situation, the target current of 20 mA corresponds to the fourth current limiting gear, and the SOC charging chip needs to be set to the fourth current limiting gear to meet the requirements. For example, if the positive deviation current is 4 mA and the fourth current limiting gear is 20 mA, the actual current output by the SOC charging chip is 24 mA, and the difference between the actual output current of 24 mA and the target current of 20 mA is within 5 mA, and such a situation is allowed in engineering.

[0102] After the above current correction process, the embodiment of the present application reconfigures the current comparison threshold of the current comparator to 4 mA. It can be understood that for the current comparison thresholds of the current comparators of the VPHL and VPHR pins inside the SOC charging chip (such as 4 mA, 9 mA, etc.), the SOC charging chip has completed calibration in the package test link before leaving the factory, and the consistency can be guaranteed during mass production.

[0103] Charging the external battery based on the target battery voltage by selecting a target charging mode includes the following steps: selecting a target charging mode based on the target battery voltage, obtaining a target current, a gear calibration coefficient, and a current step value that match the target charging mode, determining a target current limiting gear based on the target current, the gear calibration coefficient, and the current step value, and controlling the SOC charging chip to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the target current limiting gear in the target charging mode.

[0104] The target charging mode includes a trickle charging mode, a constant current charging mode, or a constant voltage charging mode. Selecting a target charging mode based on the target battery voltage includes the following steps: in response to the target battery voltage being less than the first preset voltage threshold, determining that the target charging mode is the trickle charging mode; in response to the target battery voltage being greater than or equal to the first preset voltage threshold but less than the second preset voltage threshold, determining that the target charging mode is the constant current charging mode; in response to the target battery voltage being greater than or equal to the second preset voltage threshold, determining that the target charging mode is the constant voltage charging mode.

[0105] Exemplarily, the first preset voltage threshold is 3V, and the second preset voltage threshold is 4.05V. When the target battery voltage < 3V, the target charging mode is determined to be the trickle charging mode. When the target battery voltage ≥ 3V and < 4.05V, the target charging mode is determined to be the constant current charging mode. When the target battery voltage ≥ 4.05V, the target charging mode is determined to be the constant voltage charging mode.

[0106] The embodiment of the present application determines the target current limiting gear according to the following formula. For example, Istep is the current step value. In the case where the current step value is 5mA and the target current is 20mA, if the gear calibration coefficient is 1, the target current limiting gear is the third current limiting gear. If the gear calibration coefficient is 0, the target current limiting gear is the fourth current limiting gear.

[0107] Controlling the SOC charging chip to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the target current limiting gear in the target charging mode includes the following steps: determining the loss voltage corresponding to the target current, determining the boost value based on the loss voltage, the preset full charge voltage of the battery, and the preset voltage margin, controlling the boost - buck processing circuit to perform a boost operation based on the boost value to output an input voltage corresponding to the boost value to the low - dropout linear voltage regulator circuit, and controlling the low - dropout linear voltage regulator circuit to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the target current limiting gear in the target charging mode.

[0108] The loss voltage is the voltage required for loss during the process of the SOC charging chip providing current to the external battery. Please combine Figure 5 , considering the diode voltage drop of the power output interface, this diode voltage drop can be used as the loss voltage. For example, when the target current is 50mA, the diode voltage drop is 0.3V. It can be understood that according to the diode manual and the measured results, the embodiment of the present application has stored the diode voltage drop at each target current in the preset storage area of the SOC charging chip in advance. The SOC charging chip traverses out the 0.3V diode voltage drop corresponding to the target current of 50mA from the preset storage area based on the target current of 50mA.

[0109] The full charge voltage of the battery is the voltage across both ends of the external battery in the full charge state. Exemplarily, the full charge voltage of the external battery is 4.2V.

[0110] The voltage margin is customized by the designer according to engineering experience. Exemplarily, the voltage margin is 0.1V.

[0111] In the embodiment of the present application, the loss voltage, the preset full charge voltage of the battery, and the voltage margin are added together to obtain a boost value. For example, when it is required that the SOC charging chip outputs a target current of 50 mA, the boost value is 0.3 + 4.2 + 0.1 = 4.6 V. It can be understood that this boost value is the maximum voltage applied to the LDO1 circuit or the LDO2 circuit. The LDO1 circuit or the LDO2 circuit receives the boost value and configures the output of the corresponding target current according to the requirements.

[0112] In some embodiments, the charging control method further includes the following steps: in response to the target charging mode being the trickle charging mode, monitoring the battery voltage of the external battery in the trickle charging mode; in response to the battery voltage of the external battery in the trickle charging mode being greater than the first preset voltage threshold, controlling the SOC charging chip to switch from the trickle charging mode to the constant current charging mode.

[0113] In some embodiments, the charging control method further includes the following steps: in response to the target charging mode being the trickle charging mode, monitoring the battery voltage of the external battery within the first real-time duration, where the first real-time duration is the difference between the time point when the external battery enters the trickle charging mode and the current time point; in response to the first real-time duration being greater than or equal to the first preset duration and the battery voltage of the external battery within the first real-time duration being less than or equal to the first preset value, generating battery bad information and controlling the SOC charging chip to stop charging the external battery.

[0114] If the external battery is in the trickle charging mode, the current value of the trickle charging mode is configured according to the gear calibration coefficient determined in the above embodiments. For example, if the target current is 20 mA, the configured current limiting gear is (20 mA / 5 mA) - the gear calibration coefficient, and the target current limiting gear is 3 - 4, specifically depending on whether the gear calibration coefficient is 0 or 1.

[0115] During the trickle charging process, in the embodiment of the present application, the LDO1 circuit or the LDO2 circuit is periodically disconnected at preset intervals. For example, charging for 15 s, then disconnecting for 2 s, then measuring the relaxation voltage of the external battery. After the measurement is completed, continue charging for 15 s, then disconnect for 2 s, and so on. If the battery voltage of the external battery is greater than 3 V, control the SOC charging chip to switch from the trickle charging mode to the constant current charging mode.

[0116] During the trickle charging process, in the embodiment of the present application, a timer is simultaneously started to calculate the charging duration. Within the first real-time duration, if the relaxation voltage of the external battery cannot rise to the first preset value, for example, the first preset value is 2 V and the first real-time duration is 30 minutes, or the first preset value is 3 V and the first real-time duration is 60 minutes, it is determined that the charge acceptance ability of the external battery is abnormal and the external battery is a defective battery. Subsequently, the output of the corresponding LDO circuit is turned off and the charging of the external battery is stopped.

[0117] In some embodiments, the charging control method further includes the following steps: in response to the target charging mode being the constant current charging mode, performing current sampling processing on the current flowing through the external battery to obtain a second sampling value; in response to the second sampling value continuously being less than a second preset value within a second preset time period, increasing the target current limiting gear based on a preset current step value to obtain an increased target current limiting gear; and controlling the SOC charging chip to transmit current to the external battery through the power output interface according to an automatic current limiting value corresponding to the increased target current limiting gear in the target charging mode.

[0118] In some embodiments, the charging control method further includes the following steps: in response to the target charging mode being the constant current charging mode, performing current sampling processing on the current flowing through the external battery to obtain a third sampling value; in response to the third sampling value continuously being greater than a third preset value and less than a fourth preset value within a third preset time period, decreasing the target current limiting gear based on a preset current step value to obtain a decreased target current limiting gear; and controlling the SOC charging chip to transmit current to the external battery through the power output interface according to an automatic current limiting value corresponding to the decreased target current limiting gear in the target charging mode.

[0119] In some embodiments, the charging control method further includes the following steps: in response to the target charging mode being the constant current charging mode, monitoring the battery voltage of the external battery in the constant current charging mode; and in response to the battery voltage of the external battery in the constant current charging mode being greater than a second preset voltage threshold, controlling the SOC charging chip to switch from the constant current charging mode to the constant voltage charging mode.

[0120] If the initial voltage of the external battery matches the constant current charging mode, or it has just switched from the trickle charging mode to the constant current charging mode, then configure the current value of the constant current charging mode according to the gear calibration coefficient determined in the above embodiments. By way of example, taking the first external battery as an example, if the target current is configured to be 50 mA, then the configured current limiting gear is (50 mA / 5 mA) - the gear calibration coefficient, and the target current limiting gear is 9 - 10, specifically depending on whether the gear calibration coefficient is 0 or 1.

[0121] When the external battery is in the constant current charging mode, the current sampling function of the output pin of the corresponding LDO circuit is enabled, and the current output by the LDO circuit is monitored in real time to obtain a second sampling value, which is used as the basis for linearly correcting the automatic current limiting value of the LDO circuit. If the second sampling value is less than the second preset value, then within a certain current range, increase the target current limiting gear by 1 current step value.

[0122] For example, when the target charging current is 50 mA and before the external battery enters the constant voltage charging mode, if the second sampled value < the second preset value of 40 mA and this state persists for the second preset duration, such as the second preset duration being 8 s, then the target current limiting gear is increased based on the current step value to obtain the increased target current limiting gear. After the current limiting value is adjusted, the current state is continuously monitored. If the current output by the SOC charging chip is continuously less than the second preset value within the first current limiting time period for the first current limiting duration, then the target current limiting gear is increased again based on the current step value. For example, if within 8 consecutive seconds, there are 5 seconds when the current is still < 40 mA, then it is increased by 5 mA. In this way, it can be ensured that the current output by the SOC charging chip can quickly reach the target current in the constant current charging mode, improving the charging efficiency.

[0123] For another example, when the target charging current is 50 mA and before the external battery enters the constant voltage charging mode, if the third sampled value > the third preset value of 60 mA and < the fourth preset value of 70 mA, and this situation persists for the third preset duration of 5 s, then the target current limiting gear is decreased based on the current step value to obtain the decreased target current limiting gear. After the current limiting value is adjusted, the current state is continuously monitored. If the current output by the SOC charging chip is continuously less than the third preset value within the second current limiting time period for the second current limiting duration, then the target current limiting gear is decreased again based on the current step value. For example, if within 6 consecutive seconds, there are 4 seconds when the current is still > 60 mA, then it is decreased by 5 mA. In this way, overcurrent can be avoided.

[0124] It can be understood that regarding the adjustment of the automatic current limiting value in the constant current charging mode, in the case of increase, the current adjustment range in the constant current charging mode does not exceed the current value of 2 current limiting gears, for example, does not exceed 10 mA. In the case of decrease, the current adjustment range in the constant current charging mode does not exceed the current value of 3 current limiting gears, for example, does not exceed 15 mA.

[0125] It can be understood that different automatic current limiting value settings in the constant current charging mode, such as 50 mA, 100 mA, 200 mA, etc., correspond to different correction range intervals, and the correction ranges for different values can be stored in advance in the storage unit inside the SOC charging chip.

[0126] During the constant current charging process, when it is recognized that the battery voltage of the external battery is greater than the second preset voltage threshold, for example, the battery voltage of the external battery > 4.05 V, then the output of the LDO circuit is turned off once every certain period of time, and then the relaxation voltage of the external battery is detected. When the relaxation voltage of the external battery > 4.05 V, then the SOC charging chip is controlled to switch from the constant current charging mode to the constant voltage charging mode; otherwise, the output of the LDO circuit is turned on again, waiting for the next measurement of the battery voltage.

[0127] In some embodiments, the charging control method further includes the following steps: in response to the target charging mode being the constant voltage charging mode, determining an optimal current value, where the optimal current value is used to increase the rate at which the external battery enters the full charge state, and controlling the SOC charging chip to transmit a current consistent with the optimal current value to the external battery through the power output interface in the target charging mode.

[0128] In some embodiments, determining the optimal current value based on the battery voltage of the external battery in the constant voltage charging mode includes the following steps: determining the battery voltage of the external battery in the constant voltage charging mode, in response to the battery voltage of the external battery in the constant voltage charging mode being less than a second preset voltage threshold, determining the target current corresponding to the constant current charging mode as the optimal current, in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the second preset voltage threshold but less than a third preset voltage threshold, determining a first current value as the optimal current value, where the first current value is less than the target current corresponding to the constant current charging mode, in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the third preset voltage threshold but less than a fourth preset voltage threshold, determining a second current value as the optimal current value, where the second current value is less than the first current value, in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the fourth preset voltage threshold but less than a fifth preset voltage threshold, determining a third current value as the optimal current value, where the third current value is less than the second current value, in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the fifth preset voltage threshold, determining a fourth current value as the optimal current value, where the fourth current value is less than the third current value.

[0129] In some embodiments, the charging control method further includes the following steps: performing a current sampling operation on the current flowing through the external battery to obtain a fourth sampling value, and in response to the fourth sampling value continuously being less than the fourth current value within a preset saturation duration, determining that the external battery has entered the full charge state.

[0130] During the charging process in the constant voltage charging mode, the operation of simulating the constant voltage process through the automatic current limiting function is as follows: measure the relaxation voltage every first time interval, such as 15 s. If the relaxation voltage of the external battery is less than the second preset voltage threshold, such as less than 4.05 V, then the target current is configured to be 50 mA.

[0131] If the relaxation voltage of the external battery is greater than 4.05 V but less than the third preset voltage threshold, such as less than 4.1 V, then the target current is configured to be 40 mA.

[0132] If the relaxation voltage of the external battery is greater than 4.1 V but less than the fourth preset voltage threshold, such as less than 4.15 V, then the target current is configured to be 25 mA.

[0133] When the relaxation voltage ≥ the fourth preset voltage threshold of 4.15V, in order to improve the full charge efficiency, the embodiment of the present application sets the time interval to the second time interval, and the second time interval is less than the first time interval. For example, the second time interval is 10s, and the target current is configured to be 10mA.

[0134] During the charging process with a target current of 10mA, if the relaxation voltage ≥ the fifth preset voltage threshold of 4.17V or the current output by the LDO circuit is less than the saturation determination current, such as <4mA, it enters the saturation determination interval. If the relaxation voltage is greater than the fifth preset voltage threshold of 4.17V for 5 consecutive seconds, or the current output by the LDO circuit is less than the saturation determination current for 5 consecutive seconds, it is determined that the external battery is fully charged.

[0135] Please refer to Figure 10 , the first external battery and the second external battery start charging simultaneously. Among them, the initial voltage of the first external battery is 2.761V, the battery voltage during the charging process is LBAT_V, and the charging current is LBAT_I. The initial voltage of the second external battery is 3.568V, the battery voltage during the charging process is RBAT_V, and the charging current is RBAT_I.

[0136] In some embodiments, the charging control method further includes the following steps: detecting the charging current flowing through the external battery in the target charging mode, responding to the change state of the charging current matching the preset change state, obtaining the third battery voltage of the external battery. The preset change state is that the charging current suddenly changes from being greater than the preset in - bin current threshold to being less than the preset in - bin current threshold. Responding to the third battery voltage being less than the preset in - bin voltage threshold, determining that the bin state of the battery bin is an empty - bin state. Responding to the third battery voltage being greater than or equal to the preset in - bin voltage threshold, determining that the bin state of the battery bin is an in - bin state.

[0137] In the charging process of the trickle - charging mode, constant - current charging mode, and constant - voltage charging mode in the embodiment of the present application, it will be determined in real - time whether the external battery is in the in - bin state. During the charging process of the external battery, the current comparators of the VPHL and VPHR pins monitor the current charging current in real - time. When the charging current changes from being greater than the preset in - bin current threshold of 4mA to being less than 4mA, the output of the corresponding LDO circuit is turned off and the third battery voltage of the external battery is detected. If the third battery voltage is less than the preset in - bin voltage threshold of 0.4V, it is determined that the bin state of the battery bin is an empty - bin state, the output of the LDO circuit is turned off, and waiting for the next placement of the external battery and the input of the key signal. If the third battery voltage is greater than or equal to the preset in - bin voltage threshold of 0.4V, it is determined that the bin state of the battery bin is an in - bin state, and the LDO circuit is continued to be turned on.

[0138] In some embodiments, the charging control method also includes the following steps: detecting the charging current flowing through the external battery and the fourth battery voltage of the external battery in the target charging mode, and in response to the charging current being less than a preset in-compartment current threshold and the fourth battery voltage of the external battery being less than a preset in-compartment voltage threshold, determining that the position status of the battery compartment is an empty position status.

[0139] When the external battery is about to enter the full charge state, if the charging current is less than 4mA, and the LDO circuit is still in the open state, the above embodiment is used every 10s to determine whether the external battery is in the in-compartment state. If the external battery has entered the full charge state, the LDO circuit is configured to enter the closed state, and the fourth battery voltage of the external battery is continuously monitored. If the fourth battery voltage is less than 0.4V, it is determined that the position state of the battery compartment is the empty position state. If the external battery is out of the compartment, the LDO circuit output is turned off, and the next external battery is placed in and the key signal is input.

[0140] In some embodiments, the charging control method further includes the following steps: detecting a charging current flowing through an external battery in a target charging mode, and in response to the charging current being greater than or equal to a preset overcurrent threshold, controlling the SOC charging chip to stop providing charging current to the external battery.

[0141] When the LDO circuit is in the open state, the current ADC sampling function of the corresponding power interface pin is enabled, and the current charging current is monitored in real time to see if it exceeds the preset overcurrent threshold. For example, the preset overcurrent threshold is 70mA. If it exceeds, the current channel corresponding to the LDO circuit is judged to be in an overcurrent state, and the automatic current limiting function is abnormal. It is necessary to disconnect the corresponding LDO from the power pin and turn off the output. This protection measure is only executed for the corresponding channel and does not affect the normal operation of other channels. When the external battery has an overcurrent problem, the user needs to press the button again, and the SOC charging chip can charge the external battery as a newly inserted battery, and then the overcurrent protection can be released and it can be executed again from the initial state.

[0142] In some embodiments, the charging control method further includes the following steps: obtaining a battery sampling set, where the battery sampling set includes a plurality of fifth battery voltages for sequentially detecting an external battery in a target charging mode based on a preset frequency, calculating the absolute value of the difference between the current fifth battery voltage and the previous fifth battery voltage, in response to the absolute value of the difference being greater than or equal to a preset replacement threshold, continuing to sequentially detect a plurality of fifth battery voltages of the external battery within a specified duration based on the preset frequency, in response to the plurality of fifth battery voltages within the specified duration indicating that the battery voltage of the external battery has returned to the voltage range matching the entry into the target charging mode, charging the external battery based on the target charging mode, and in response to the plurality of fifth battery voltages within the specified duration indicating that the battery voltage of the external battery has not returned to the voltage range matching the entry into the target charging mode, controlling the SOC charging chip to perform an initialization operation.

[0143] Since it takes a certain amount of time to detect the removal of the external battery from the charging compartment, there is a possibility that the external battery is quickly taken out of the compartment and another external battery is put in, and the charging compartment fails to recognize this scenario. Therefore, the fifth battery voltage of the external battery is recorded every 1 s during charging. When the absolute value of the difference between the current fifth battery voltage and the previous fifth battery voltage is greater than or equal to the preset replacement threshold of 0.5 V, it indicates that there has been a significant increase or decrease in the current fifth battery voltage compared to the previous one. Then, a certain duration, such as 2 s continuously, is collected. If the plurality of fifth battery voltages within the specified duration indicate that the battery voltage of the external battery has not returned to the voltage range matching the entry into the target charging mode, it is determined that the current external battery is a newly inserted battery, and the SOC charging chip needs to be controlled to perform an initialization operation.

[0144] When there is no input of the external power supply of 5 V and both the first external battery and the second external battery are in a fully charged state or an abnormal state or an out-of-compartment state, after counting a specified associated duration, such as 6 s, the SOC charging chip is controlled to enter the sleep mode to reduce the system power consumption.

[0145] In some embodiments, the charging control method further includes the following steps: in response to the charging interface detecting the input of the external power supply, obtaining the battery voltage of the charging compartment battery, controlling the SOC charging chip to charge the charging compartment battery, determining the compartment state of the battery compartment, in response to the compartment state being an in-compartment state, obtaining the target battery voltage of the external battery, and selecting a target charging mode to charge the external battery based on the target battery voltage of the external battery.

[0146] If the input source of the LDO circuit is the external power supply of 5V, when the power supply of the external power supply of 5V is disconnected, the diodes D4 and D5 will prevent the voltages of the first external battery and the second external battery from flowing back to the VOUT pin, enabling the SOC charging chip to successfully recognize the disconnection of the external power supply of 5V, and further switching to the power supply provided by the charging bin battery.

[0147] If the input source of the LDO circuit is the external power supply of 5V and the SOC charging chip simultaneously turns on the automatic charging function of the charging bin battery, the switching charging module in the SOC charging chip automatically distributes the charging current according to the battery voltage of the charging bin battery. The SOC charging chip only needs to determine whether the charging bin battery is fully charged at the end stage of charging. The charging process of the charging bin battery is independent of the charging management processes of the first external battery and the second external battery.

[0148] If the input source of the LDO circuit is the external power supply of 5V, the voltages of the VIN pin and the VOUT pin can be judged through the voltage sampling function of the SOC charging chip. If the voltage of the external power supply is insufficient, the input voltage undervoltage is indicated through the lamp display. At this time, the diodes D1, D2, and D3 flash simultaneously to notify the user to check the wire or replace the adapter.

[0149] It should be noted that in the above various embodiments, there is not necessarily a certain order among the above steps. Those of ordinary skill in the art can understand from the description of the embodiments of the present application that in different embodiments, the above steps can have different execution orders, that is, they can be executed in parallel, or they can be exchanged and executed, etc.

[0150] As another aspect of the embodiments of the present application, the embodiments of the present application provide a charging control device. Among them, the charging control device can be a software module. The software module includes several instructions, which are stored in the memory. The processor can access this memory and call the instructions for execution to complete the charging control method described in the above various embodiments.

[0151] In some embodiments, the charging control device can also be built by hardware devices. For example, the charging control device can be built by one or more than two chips. Each chip can work in coordination with each other to complete the charging control method described in the above various embodiments. For another example, the charging control device can also be built by various logic devices, such as being built by a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine), or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0152] Please refer toFigure 11 The charging control device 110 includes a bin voltage detection module 111, a bin state determination module 112, a battery voltage detection module 113, and a charging control module 114.

[0153] The bin voltage detection module 111 is configured to obtain the bin battery voltage of the charging bin battery in response to no external power input being detected at the charging interface. The bin state determination module 112 is configured to determine the bin state of the battery bin in response to the bin battery voltage being greater than or equal to a preset low-voltage threshold. The bin state includes an in-bin state or an empty-bin state. The in-bin state is used to indicate that the power output interface is electrically connected to an external battery, and the empty-bin state is used to indicate that the power output interface is not electrically connected to an external battery. The battery voltage detection module 113 is configured to obtain the target battery voltage of the external battery in response to the bin state being the in-bin state. The charging control module 114 is configured to charge the external battery in a target charging mode based on the target battery voltage.

[0154] In some embodiments, the bin state determination module 112 is specifically configured to: obtain the first battery voltage of the external battery, generate bin state information based on the first battery voltage and a preset in-bin voltage threshold, and determine the bin state of the battery bin based on the bin state information.

[0155] In some embodiments, the bin state information includes in-bin state information and in-bin pending confirmation information. The bin state determination module 112 is specifically configured to: generate in-bin pending confirmation information in response to the first battery voltage being less than or equal to the preset in-bin voltage threshold; generate in-bin state information in response to the first battery voltage being greater than the preset in-bin voltage threshold.

[0156] In some embodiments, the bin state information includes in-bin pending confirmation information. The bin state determination module 112 is specifically configured to: configure the SOC charging chip to transmit a first current to the external battery through the power output interface according to a preset reference current limit value in response to the bin state information being in-bin pending confirmation information; determine that the bin state of the battery bin is the in-bin state in response to the first current being greater than the preset in-bin current threshold; obtain the second battery voltage of the external battery again in response to the first current being less than or equal to the preset in-bin current threshold. If the second battery voltage is greater than the preset full charge voltage threshold, determine that the bin state of the battery bin is the in-bin state. If the second battery voltage is less than or equal to the preset full charge voltage threshold, determine that the bin state of the battery bin is the empty-bin state.

[0157] In some embodiments, the SOC charging chip is configured with multiple current limiting levels, and one current limiting level corresponds to an automatic current limiting value. The reference current limiting value is the automatic current limiting value of the minimum current limiting level. The charging control module 114 is specifically configured to: perform current sampling processing on the first current transmitted by the SOC charging chip to the power output interface according to the reference current limiting value, and obtain a first sampling value; determine a gear calibration coefficient based on the first sampling value and a preset current reference value, where the gear calibration coefficient is used to compensate for the inherent current deviation of the SOC charging chip so that the current output by the SOC charging chip can match the target current.

[0158] In some embodiments, the charging control module 114 is specifically configured to: in response to the first sampling value being less than or equal to the preset current reference value, determine the natural number 0 as the gear calibration coefficient; in response to the first sampling value being greater than the preset current reference value, determine the natural number 1 as the gear calibration coefficient.

[0159] In some embodiments, the charging control module 114 is specifically configured to: select a target charging mode based on the target battery voltage; obtain a target current, a gear calibration coefficient, and a current step value that match the target charging mode; determine a target current limiting level based on the target current, the gear calibration coefficient, and the current step value; control the SOC charging chip to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the target current limiting level in the target charging mode.

[0160] In some embodiments, the target charging mode includes a trickle charging mode, a constant current charging mode, or a constant voltage charging mode. The charging control module 114 is specifically configured to: in response to the target battery voltage being less than a first preset voltage threshold, determine the target charging mode as the trickle charging mode; in response to the target battery voltage being greater than or equal to the first preset voltage threshold but less than a second preset voltage threshold, determine the target charging mode as the constant current charging mode; in response to the target battery voltage being greater than or equal to the second preset voltage threshold, determine the target charging mode as the constant voltage charging mode.

[0161] In some embodiments, the SOC charging chip includes a boost - buck processing circuit and a low - dropout linear voltage regulator circuit. The charging control module 114 is specifically configured to: determine a loss voltage corresponding to the target current; determine a boost value based on the loss voltage, a preset full - charge voltage of the battery, and a preset voltage margin; control the boost - buck processing circuit to perform a boost operation based on the boost value to output an input voltage corresponding to the boost value to the low - dropout linear voltage regulator circuit; control the low - dropout linear voltage regulator circuit to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the target current limiting level in the target charging mode based on the input voltage.

[0162] In some embodiments, the charging control module 114 is specifically configured to: in response to the target charging mode being the trickle charging mode, monitor the battery voltage of the external battery in the trickle charging mode; in response to the battery voltage of the external battery in the trickle charging mode being greater than a first preset voltage threshold, control the SOC charging chip to switch from the trickle charging mode to the constant current charging mode.

[0163] In some embodiments, the charging control module 114 is specifically configured to: in response to the target charging mode being the trickle charging mode, monitor the battery voltage of the external battery within a first real-time duration, where the first real-time duration is the difference between the time point when the external battery enters the trickle charging mode and the current time point; in response to the first real-time duration being greater than or equal to a first preset duration and the battery voltage of the external battery within the first real-time duration being less than or equal to a first preset value, generate battery bad information and control the SOC charging chip to stop charging the external battery.

[0164] In some embodiments, the charging control module 114 is specifically configured to: in response to the target charging mode being the constant current charging mode, perform current sampling processing on the current flowing through the external battery to obtain a second sampling value; in response to the second sampling value within a second preset duration continuously being less than a second preset value, increase the target current limiting gear based on a preset current step value to obtain an increased target current limiting gear; control the SOC charging chip to transmit current to the external battery through the power output interface according to an automatic current limiting value corresponding to the increased target current limiting gear in the target charging mode.

[0165] In some embodiments, the charging control module 114 is specifically configured to: in response to the target charging mode being the constant current charging mode, perform current sampling processing on the current flowing through the external battery to obtain a third sampling value; in response to the third sampling value within a third preset duration continuously being greater than a third preset value and less than a fourth preset value, decrease the target current limiting gear based on a preset current step value to obtain a decreased target current limiting gear; control the SOC charging chip to transmit current to the external battery through the power output interface according to an automatic current limiting value corresponding to the decreased target current limiting gear in the target charging mode.

[0166] In some embodiments, the charging control module 114 is specifically configured to: in response to the target charging mode being the constant current charging mode, monitor the battery voltage of the external battery in the constant current charging mode; in response to the battery voltage of the external battery in the constant current charging mode being greater than a second preset voltage threshold, control the SOC charging chip to switch from the constant current charging mode to the constant voltage charging mode.

[0167] In some embodiments, the charging control module 114 is specifically configured to: in response to the target charging mode being the constant voltage charging mode, determine an optimal current value, where the optimal current value is used to increase the rate at which the external battery enters the full charge state; control the SOC charging chip to transmit a current consistent with the optimal current value to the external battery through the power output interface in the target charging mode.

[0168] In some embodiments, the charging control module 114 is specifically configured to: determine the battery voltage of the external battery in the constant voltage charging mode; in response to the battery voltage of the external battery in the constant voltage charging mode being less than a second preset voltage threshold, determine the target current corresponding to the constant current charging mode as the optimal current; in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the second preset voltage threshold but less than a third preset voltage threshold, determine a first current value as the optimal current value, where the first current value is less than the target current corresponding to the constant current charging mode; in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the third preset voltage threshold but less than a fourth preset voltage threshold, determine a second current value as the optimal current value, where the second current value is less than the first current value; in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the fourth preset voltage threshold but less than a fifth preset voltage threshold, determine a third current value as the optimal current value, where the third current value is less than the second current value; in response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to the fifth preset voltage threshold, determine a fourth current value as the optimal current value, where the fourth current value is less than the third current value.

[0169] In some embodiments, the charging control module 114 is specifically configured to: perform a current sampling operation on the current flowing through the external battery to obtain a fourth sampling value; in response to the fourth sampling value continuously being less than the fourth current value within a preset saturation duration, determine that the external battery enters the full charge state.

[0170] In some embodiments, the charging control module 114 is specifically configured to: detect the charging current flowing through the external battery in the target charging mode; in response to the change state of the charging current matching a preset change state, obtain the third battery voltage of the external battery, where the preset change state is that the charging current suddenly changes from being greater than a preset in - bin current threshold to being less than the preset in - bin current threshold; in response to the third battery voltage being less than a preset in - bin voltage threshold, determine that the bin state of the battery bin is the empty - bin state; in response to the third battery voltage being greater than or equal to the preset in - bin voltage threshold, determine that the bin state of the battery bin is the in - bin state.

[0171] In some embodiments, the charging control module 114 is specifically configured to: detect the charging current flowing through the external battery and the fourth battery voltage of the external battery in the target charging mode; in response to the charging current being less than the preset in-bin current threshold and the fourth battery voltage of the external battery being less than the preset in-bin voltage threshold, determine that the bin status of the battery bin is an empty bin status.

[0172] In some embodiments, the charging control module 114 is specifically configured to: detect the charging current flowing through the external battery in the target charging mode; in response to the charging current being greater than or equal to the preset overcurrent threshold, control the SOC charging chip to stop providing the charging current to the external battery.

[0173] In some embodiments, the charging control module 114 is specifically configured to: obtain a battery sampling set, where the battery sampling set includes a plurality of fifth battery voltages that are sequentially detected for the external battery in the target charging mode based on a preset frequency; calculate the absolute value of the difference between the current fifth battery voltage and the previous fifth battery voltage; in response to the absolute value of the difference being greater than or equal to the preset replacement threshold, continue to sequentially detect a plurality of fifth battery voltages of the external battery for a specified duration; in response to the plurality of fifth battery voltages within the specified duration indicating that the battery voltage of the external battery has recovered to a voltage range that matches the entry into the target charging mode, charge the external battery based on the target charging mode; in response to the plurality of fifth battery voltages within the specified duration indicating that the battery voltage of the external battery has not recovered to a voltage range that matches the entry into the target charging mode, control the SOC charging chip to perform an initialization operation.

[0174] In some embodiments, the charging control module 114 is specifically configured to: in response to the charging interface detecting the input of an external power supply, obtain the bin battery voltage of the charging bin battery; control the SOC charging chip to charge the charging bin battery; determine the bin status of the battery bin; in response to the bin status being an in-bin status, obtain the target battery voltage of the external battery; and charge the external battery based on the target battery voltage of the external battery by selecting a target charging mode.

[0175] It should be noted that the above charging control device can execute the charging control method provided in the embodiments of the present application, and has the corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the embodiments of the charging control device, reference can be made to the charging control method provided in the embodiments of the present application.

[0176] See Figure 12 , Figure 12A schematic structural diagram of a controller provided by an embodiment of the present application. The controller 120 includes one or more processors 121 and a memory 122. The memory 122 is connected to one or more processors 121, for example, connected to the processor 121 through a bus.

[0177] The processor 121 is configured to support the controller to execute the corresponding functions in the method in the above method embodiment. The processor may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The above hardware chip may be an application specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The above PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0178] The memory 122 is used to store program codes and the like. The memory may include volatile memory (VM), such as random access memory (RAM); the memory may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); the memory may further include a combination of the above types of memories.

[0179] The memory 122 can be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions / modules corresponding to the charging control method in the embodiment of the present application. The processor executes various functional applications and data processing of the charging control method and the charging control device by running the non-volatile software programs, instructions, and modules stored in the memory, that is, realizes the functions of each module or unit of the charging control method and the charging control device provided in the above method embodiment.

[0180] The memory 122 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function. The data storage area may store data created according to the use of the charging control device and the like. In some embodiments, the memory may optionally include a memory remotely provided with respect to the processor, and these remote memories may be connected to the charging control device through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0181] The one or more modules are stored in the memory and, when executed by the one or more processors, execute the charging control method in any of the above method embodiments. For example, the method steps described in the above method embodiments are executed to implement the functions of the modules described in the above device embodiments.

[0182] An embodiment of the present application also provides a computer-readable storage medium storing a computer program including program instructions that, when executed by a controller, cause the controller to execute the method as described in the foregoing embodiments.

[0183] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it may include the processes of the above method embodiments. Among them, the storage medium may be a magnetic disk, an optical disc, a read-only memory (ROM), a random access memory (RAM), or the like.

[0184] The foregoing disclosure is only for the preferred embodiments of the present application. Of course, the scope of rights of the present application cannot be limited thereby. Therefore, equivalent changes made according to the claims of the present application still fall within the scope covered by the present application.

Claims

1. A charging control method, applied to a charger, characterized in that The charger includes an SOC charging chip, a charging interface, a charging bin battery, and a voltage detection circuit. The SOC charging chip is electrically connected to the charging interface, the charging bin battery, and the voltage detection circuit respectively. The SOC charging chip is provided with at least one power output interface. The voltage detection circuit is electrically connected to the power output interface. The power output interface is configured to transmit power to an external battery placed in the battery bin of the charger. The charging control method includes: In response to the charging interface not detecting the input of an external power source, obtain the bin battery voltage of the charging bin battery; In response to the bin battery voltage being greater than or equal to a preset low voltage threshold, determine the bin state of the battery bin. The bin state includes the in-bin state or the empty-bin state. The in-bin state is used to indicate that the power output interface is electrically connected to an external battery, and the empty-bin state is used to indicate that the power output interface is not electrically connected to an external battery; In response to the bin state being the in-bin state, obtain the target battery voltage of the external battery; Charge the external battery based on the target battery voltage by selecting a target charging mode.

2. The charging control method according to claim 1, wherein The determining the bin state of the battery bin includes: Obtain the first battery voltage of the external battery; Generate bin state information based on the first battery voltage and a preset in-bin voltage threshold; Determine the bin state of the battery bin based on the bin state information.

3. The charging control method according to claim 2, wherein The bin state information includes in-bin state information and in-bin pending confirmation information. The generating the bin state information based on the first battery voltage and a preset in-bin voltage threshold includes: In response to the first battery voltage being less than or equal to the preset in-bin voltage threshold, generate in-bin pending confirmation information; In response to the first battery voltage being greater than the preset in-bin voltage threshold, generate in-bin state information.

4. The charging control method according to claim 2, wherein The bin state information includes in-bin pending confirmation information. The determining the bin state of the battery bin based on the bin state information includes: In response to the bin state information being in-bin pending confirmation information, configure the SOC charging chip to transmit a first current to the external battery through the power output interface according to a preset reference current limiting value; In response to the first current being greater than a preset in-bin current threshold, determine that the bin state of the battery bin is the in-bin state; In response to the first current being less than or equal to the preset in-bin current threshold, obtain the second battery voltage of the external battery again. If the second battery voltage is greater than a preset full charge voltage threshold, determine that the bin state of the battery bin is the in-bin state. If the second battery voltage is less than or equal to the preset full charge voltage threshold, determine that the bin state of the battery bin is the empty-bin state.

5. The charging control method according to claim 4, wherein The SOC charging chip is configured with multiple current limiting gears. One current limiting gear corresponds to an automatic current limiting value. The reference current limiting value is the automatic current limiting value of the minimum current limiting gear. The charging control method further includes: Perform current sampling processing on the first current transmitted by the SOC charging chip to the power output interface according to the reference current limiting value to obtain a first sampling value; Determine a gear calibration coefficient based on the first sampled value and a preset current reference value, where the gear calibration coefficient is used to compensate for the inherent current deviation of the SOC charging chip so that the current output by the SOC charging chip can match the target current.

6. The charging control method according to claim 5, wherein The determining the gear calibration coefficient based on the first sampled value and the preset current reference value includes: In response to the first sampled value being less than or equal to the preset current reference value, determine the natural number 0 as the gear calibration coefficient; In response to the first sampled value being greater than the preset current reference value, determine the natural number 1 as the gear calibration coefficient.

7. The charging control method according to any one of claims 1 to 6, characterized in that, The charging the external battery by selecting a target charging mode based on the target battery voltage includes: Select a target charging mode based on the target battery voltage; Obtain a target current, a gear calibration coefficient, and a current step value that match the target charging mode; Determine a target current limiting gear based on the target current, the gear calibration coefficient, and the current step value; Control the SOC charging chip to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the target current limiting gear in the target charging mode.

8. The charging control method according to claim 7, wherein The target charging mode includes a trickle charging mode, a constant current charging mode, or a constant voltage charging mode. The selecting the target charging mode based on the target battery voltage includes: In response to the target battery voltage being less than a first preset voltage threshold, determine the target charging mode as the trickle charging mode; In response to the target battery voltage being greater than or equal to the first preset voltage threshold but less than a second preset voltage threshold, determine the target charging mode as the constant current charging mode; In response to the target battery voltage being greater than or equal to the second preset voltage threshold, determine the target charging mode as the constant voltage charging mode.

9. The charging control method according to claim 7, wherein The SOC charging chip includes a boost - buck processing circuit and a low - dropout linear voltage regulator circuit. The controlling the SOC charging chip to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the target current limiting gear in the target charging mode includes: Determine a loss voltage corresponding to the target current; Determine a boost value based on the loss voltage, a preset full - charge voltage of the battery, and a preset voltage margin; Control the boost - buck processing circuit to perform a boost operation based on the boost value to output an input voltage corresponding to the boost value to the low - dropout linear voltage regulator circuit; Control the low - dropout linear voltage regulator circuit to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the target current limiting gear in the target charging mode based on the input voltage.

10. The charging control method according to claim 7, wherein, It further includes: In response to the target charging mode being the trickle charging mode, monitor the battery voltage of the external battery in the trickle charging mode; In response to the battery voltage of the external battery in the trickle charging mode being greater than the first preset voltage threshold, control the SOC charging chip to switch from the trickle charging mode to the constant current charging mode.

11. The charging control method according to claim 10, wherein It further includes: In response to the target charging mode being the trickle charging mode, monitor the battery voltage of the external battery within a first real-time duration, where the first real-time duration is the difference between the time point when the external battery enters the trickle charging mode and the current time point; In response to the first real-time duration being greater than or equal to a first preset duration and the battery voltage of the external battery within the first real-time duration being less than or equal to a first preset value, generate battery bad information and control the SOC charging chip to stop charging the external battery.

12. The charging control method according to claim 7, wherein Further included are: In response to the target charging mode being the constant current charging mode, perform current sampling processing on the current flowing through the external battery to obtain a second sampling value; In response to the second sampling value within a second preset duration continuously being less than a second preset value, increase the target current limiting gear based on a preset current step value to obtain an increased target current limiting gear; Control the SOC charging chip to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the increased target current limiting gear in the target charging mode.

13. The charging control method according to claim 7, wherein Further included are: In response to the target charging mode being the constant current charging mode, perform current sampling processing on the current flowing through the external battery to obtain a third sampling value; In response to the third sampling value within a third preset duration continuously being greater than a third preset value and less than a fourth preset value, decrease the target current limiting gear based on a preset current step value to obtain a decreased target current limiting gear; Control the SOC charging chip to transmit current to the external battery through the power output interface according to the automatic current limiting value corresponding to the decreased target current limiting gear in the target charging mode.

14. The charging control method according to claim 7, characterized in that, Further included are: In response to the target charging mode being the constant current charging mode, monitor the battery voltage of the external battery in the constant current charging mode; In response to the battery voltage of the external battery in the constant current charging mode being greater than a second preset voltage threshold, control the SOC charging chip to switch from the constant current charging mode to the constant voltage charging mode.

15. The charging control method according to claim 14, wherein Further included are: In response to the target charging mode being the constant voltage charging mode, determine an optimal current value, where the optimal current value is used to increase the rate at which the external battery enters the full charge state; Control the SOC charging chip to transmit current consistent with the optimal current value to the external battery through the power output interface in the target charging mode.

16. The charging control method according to claim 15, wherein, The determining the optimal current value based on the battery voltage of the external battery in the constant voltage charging mode includes: Determine the battery voltage of the external battery in the constant voltage charging mode; In response to the battery voltage of the external battery in the constant voltage charging mode being less than a second preset voltage threshold, determine the target current corresponding to the constant current charging mode as the optimal current; In response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to a second preset voltage threshold but less than a third preset voltage threshold, determine a first current value as the optimal current value, where the first current value is less than the target current corresponding to the constant current charging mode; In response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to a third preset voltage threshold but less than a fourth preset voltage threshold, determining a second current value to be an optimal current value, the second current value being less than the first current value; In response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to a fourth preset voltage threshold but less than a fifth preset voltage threshold, determining a third current value to be an optimal current value, the third current value being less than the second current value; In response to the battery voltage of the external battery in the constant voltage charging mode being greater than or equal to a fifth preset voltage threshold, a fourth current value is determined to be an optimal current value, and the fourth current value is less than the third current value.

17. The charging control method according to claim 16, wherein Also includes: Performing a current sampling operation on the current flowing through the external battery to obtain a fourth sampling value; In response to the fourth sampling value being continuously smaller than the fourth current value within the preset saturation time period, it is determined that the external battery enters a full charge state.

18. The charging control method according to any one of claims 1 to 6, characterized in that Also includes: detecting a charging current flowing through the external battery in the target charging mode; In response to the change state of the charging current matching a preset change state, acquiring a third battery voltage of the external battery, wherein the preset change state is that the charging current suddenly changes from being greater than a preset in-bin current threshold to being less than a preset in-bin current threshold; In response to the third battery voltage being less than a preset in-compartment voltage threshold, determining that the battery compartment state is an empty compartment state; In response to the third battery voltage being greater than or equal to a preset in-compartment voltage threshold, it is determined that the compartment state of the battery compartment is an in-compartment state.

19. The charging control method according to any one of claims 1 to 6, characterized in that, Also includes: detecting a charging current flowing through the external battery and a fourth battery voltage of the external battery in the target charging mode; In response to the charging current being less than a preset in-compartment current threshold and the fourth battery voltage of the external battery being less than a preset in-compartment voltage threshold, it is determined that the compartment state of the battery compartment is an empty compartment state.

20. The charging control method according to any one of claims 1 to 6, characterized in that, Also includes: detecting a charging current flowing through the external battery in the target charging mode; In response to the charging current being greater than or equal to a preset overcurrent threshold, the SOC charging chip is controlled to stop providing the charging current to the external battery.

21. The charging control method according to any one of claims 1 to 6, characterized in that Also includes: Acquire a battery sampling set, the battery sampling set comprising a plurality of fifth battery voltages of the external battery in the target charging mode detected in sequence based on a preset frequency; Calculating the absolute value of the difference between the fifth battery voltage this time and the fifth battery voltage last time; In response to the absolute value of the difference being greater than or equal to a preset replacement threshold, continuing to sequentially detect a plurality of fifth battery voltages of the external battery at a specified time length based on a preset frequency; In response to a plurality of fifth battery voltages within the specified time period indicating that the battery voltage of the external battery has recovered to a voltage interval matching the target charging mode, charging the external battery based on the target charging mode; In response to a plurality of fifth battery voltages within the specified time period indicating that the battery voltage of the external battery has not recovered to a voltage interval matching the target charging mode, the SOC charging chip is controlled to perform an initialization operation.

22. The charging control method according to any one of claims 1 to 6, characterized in that, Also includes: In response to detecting the input of an external power source at the charging interface, obtain the battery voltage of the charging bin battery; Control the SOC charging chip to charge the charging bin battery; Determine the occupancy status of the battery bin; In response to the occupancy status being the in-bin status, obtain the target battery voltage of the external battery; Based on the target battery voltage of the external battery, select a target charging mode to charge the external battery.

23. A controller, characterized in that, It includes a memory and a processor. The memory is connected to the processor. The processor is used to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the controller implements the charging control method according to any one of claims 1-22.

24. A SOC charging chip, characterized in that, It includes: A boost-buck processing circuit; A low-dropout linear voltage regulator circuit, electrically connected to the boost-buck processing circuit; The controller according to claim 23, electrically connected to the boost-buck processing circuit and the low-dropout linear voltage regulator circuit respectively. The controller is provided with a power output interface, and the power output interface is configured to transmit power.

25. According to the SOC charging chip of claim 24, characterized in that The power output interface includes a first output interface and a second output interface; The low-dropout linear voltage regulator circuit includes a first low-dropout linear voltage regulator unit and a second low-dropout linear voltage regulator unit. The boost-buck processing circuit is electrically connected to the first low-dropout linear voltage regulator unit and the second low-dropout linear voltage regulator unit respectively. The first low-dropout linear voltage regulator unit is electrically connected to the first output interface, and the second low-dropout linear voltage regulator unit is electrically connected to the second output interface.

26. The SOC charging chip according to claim 24, wherein It further includes a one-way conduction circuit, which is electrically connected to the power output interface. The one-way conduction circuit is configured to transmit the charging current provided by the low-dropout linear voltage regulator circuit through the power output interface to the external battery, but block the reverse current from the external battery to the SOC charging chip.

27. A charger, characterized in that, It includes a charging interface, a charging bin battery, a voltage detection circuit, and the SOC charging chip according to any one of claims 24 to 26. The SOC charging chip is electrically connected to the charging interface, the charging bin battery, and the voltage detection circuit respectively. The SOC charging chip is provided with at least one power output interface, and the voltage detection circuit is also electrically connected to the power output interface.

28. The charger according to claim 27, wherein The charger further includes: A display component, electrically connected to the SOC charging chip; and / or, An interaction component, electrically connected to the SOC charging chip.