Charging circuit, charging control method and device, storage medium and electronic equipment

By introducing boost and buck functions into the charging circuit, the problem of the need for special chargers for various electronic devices in the prior art is solved, and the compatibility of multiple charging levels and diversification of charging experience is achieved.

CN120150274APending Publication Date: 2025-06-13BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311705473.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-12
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

In the prior art, the voltage required for charging each electronic device is different, and a matching charger needs to provide the corresponding charging voltage before charging can be charged, resulting in the need of each electronic device to prepare a dedicated charger.

Method used

A charging circuit is provided, including a first charging circuit and a second charging circuit, through which the input voltage of the charging interface is less than or greater than the target voltage, ensuring that the system power supply terminal obtains the required voltage and power.

Benefits of technology

It realizes that electronic devices are compatible with multiple charging levels and are adapted to multiple chargers, extending the use time of the device, making it easier for users to handle important matters, improving user experience, and reducing the number of chargers to be carried.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120150274A_ABST
    Figure CN120150274A_ABST
Patent Text Reader

Abstract

The invention relates to a charging circuit, a charging control method and device, a storage medium and electronic equipment. The circuit comprises a charging interface; a first charging circuit; a second charging circuit; when the input voltage of the charging interface is smaller than the target voltage, boosting the input voltage through the second charging circuit and then supplying power to the system power supply end; and when the input voltage is greater than or equal to the target voltage, supplying power to the system power supply end through the first charging circuit. Thus, the corresponding charging circuit can be adopted from the first charging circuit and the second charging circuit to adjust the charging level based on the magnitude relationship between the input voltage of the charging interface and the target voltage, so that the electronic equipment is compatible with various charging levels so as to adapt to various chargers, and charging and charging experience diversification are realized. The electronic equipment can be adapted to various chargers, so that a user can carry fewer chargers when going out, and the going-out convenience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Electronic devices such as mobile phones, laptops, and tablets all require chargers for charging. However, in the prior art, the voltages required for charging each electronic device are different, and a corresponding charging voltage needs to be provided by a matching charger for charging, resulting in the need to prepare dedicated chargers for each electronic device. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present disclosure provides a charging circuit, a charging control method, a device, a storage medium, and an electronic device.

[0004] According to a first aspect of an embodiment of the present disclosure, a charging circuit is provided, including: a charging interface; a first charging circuit, a first end of the first charging circuit is connected to the charging interface, a second end of the first charging circuit is used to be connected to a battery, and a third end of the first charging circuit is used to be connected to a system power supply end; a second charging circuit, a first end of the second charging circuit is connected to the charging interface, and a second end of the second charging circuit is respectively connected to the second end of the first charging circuit and the battery; wherein, when the input voltage of the charging interface is less than a target voltage, the input voltage is boosted by the second charging circuit and then supplied to the system power supply end, and the target voltage is the voltage required for the system power supply end to operate; when the input voltage is greater than or equal to the target voltage, the system power supply end is supplied with power through the first charging circuit.

[0005] Optionally, when the charging power of the charging interface is greater than a target power and the input voltage is less than the target voltage, the input voltage is boosted by the second charging circuit and then used to charge the battery, and the target power is the power required for the system power supply end to operate; when the charging power is greater than the target power and the input voltage is greater than or equal to the target voltage, the input voltage is stepped down by the first charging circuit and / or the second charging circuit and then used to charge the battery.

[0006] Optionally, when the charging power of the charging interface is less than the target power, the battery supplies power to the system power supply end through the first charging circuit or the second charging circuit, and the target power is the power required for the system power supply end to operate.

[0007] Optionally, the first charging circuit includes a switching circuit and a first buck-boost circuit. Among them, the first end of the switching circuit is connected to the charging interface, the second end of the switching circuit is used to be connected to the system power supply terminal, the first end of the first buck-boost circuit is connected to the charging interface, the second end of the first buck-boost circuit is used to be connected to the battery, and the third end of the first buck-boost circuit is used to be connected to the system power supply terminal; the second charging circuit includes a second buck-boost circuit. Among them, the first end of the second buck-boost circuit is connected to the charging interface, and the second end of the second buck-boost circuit is respectively connected to the second end of the first buck-boost circuit and the battery.

[0008] Optionally, when the input voltage is less than the target voltage, control the switching circuit to turn off and control the second buck-boost circuit to be in the boost mode to boost the input voltage and supply power to the system power supply terminal; when the input voltage is equal to the target voltage, control the switching circuit to turn on to directly supply power to the system power supply terminal through the switching circuit; when the input voltage is greater than the target voltage, control the switching circuit to turn off and control the first buck-boost circuit to be in the buck mode to step down the input voltage and supply power to the system power supply terminal.

[0009] Optionally, when the charging power of the charging interface is greater than the target power and the input voltage is less than the target voltage, control the switching circuit to turn off and control the second buck-boost circuit to be in the boost mode to boost the input voltage and charge the battery. The target power is the power required for the system power supply terminal to operate; when the charging power is greater than the target power and the input voltage is greater than or equal to the target voltage, control the switching circuit to turn off and control the first buck-boost circuit and / or the second buck-boost circuit to be in the buck mode to step down the input voltage and charge the battery.

[0010] Optionally, when the charging power of the charging interface is less than the target power, control the switching circuit to turn on, and the battery supplies power to the system power supply terminal through the first buck-boost circuit or the second buck-boost circuit. The target power is the power required for the system power supply terminal to operate.

[0011] Optionally, the switching circuit includes a first switching transistor and a second switching transistor, and the first buck-boost circuit includes a first buck module, a first boost module, and a first inductor. Among them, the first end of the first switching transistor is connected to the charging interface, and the second end of the first switching transistor is connected to the first end of the second switching transistor; the second end of the second switching transistor is used to be connected to the system power supply terminal; the first end of the first buck module is respectively connected to the first end of the first switching transistor and the charging interface, the second end of the first buck module is connected to the first end of the first inductor, and the third end of the first buck module is grounded; the first end of the first boost module is respectively connected to the second end of the second switching transistor and the system power supply terminal, the second end of the first boost module is connected to the second end of the first inductor, and the third end of the first boost module is connected to the second end of the second charging circuit and the battery respectively.

[0012] Optionally, the first buck module includes a third switching transistor and a fourth switching transistor. Among them, the first end of the third switching transistor is respectively connected to the charging interface and the first end of the first switching transistor, the second end of the third switching transistor is respectively connected to the first end of the fourth switching transistor and the first end of the first inductor, and the second end of the fourth switching transistor is grounded; the first boost module includes a fifth switching transistor and a sixth switching transistor. Among them, the first end of the fifth switching transistor is respectively connected to the second end of the second switching transistor and the system power supply terminal, the second end of the fifth switching transistor is respectively connected to the second end of the first inductor and the first end of the sixth switching transistor, and the second end of the sixth switching transistor is respectively connected to the second end of the second charging circuit and the battery.

[0013] Optionally, the second buck-boost circuit includes a second buck module, a second boost module, a second inductor, and a seventh switching transistor. Among them, the first end of the second buck module is connected to the charging interface, the second end of the second buck module is connected to the first end of the second inductor, and the third end of the second buck module is grounded; the first end of the second boost module is connected to the first end of the seventh switching transistor, the second end of the second boost module is connected to the second end of the second inductor, and the third end of the second boost module is grounded; the second end of the seventh switching transistor is respectively connected to the second end of the first buck-boost circuit and the battery.

[0014] Optionally, the second buck module includes an eighth switching transistor and a ninth switching transistor. Among them, the first end of the eighth switching transistor is connected to the charging interface, the second end of the eighth switching transistor is respectively connected to the first end of the ninth switching transistor and the first end of the second inductor, and the second end of the ninth switching transistor is grounded; the second boost module includes a tenth switching transistor and an eleventh switching transistor. Among them, the first end of the tenth switching transistor is connected to the first end of the seventh switching transistor, the second end of the tenth switching transistor is respectively connected to the second end of the second inductor and the first end of the eleventh switching transistor, and the second end of the eleventh switching transistor is grounded.

[0015] According to a second aspect of the embodiments of the present disclosure, there is provided a charging control method, which is applied to the charging circuit provided in the first aspect of the present disclosure. The method includes: obtaining the input voltage and charging power of the charging interface of the charging circuit; when the input voltage is less than the target voltage, controlling the second charging circuit of the charging circuit to boost the input voltage and supply power to the system power supply end, where the target voltage is the voltage required for the system power supply end to operate; when the input voltage is greater than or equal to the target voltage, controlling the first charging circuit of the charging circuit to supply power to the system power supply end.

[0016] Optionally, the method further includes: when the charging power of the charging interface is greater than the target power and the input voltage is less than the target voltage, controlling the second charging circuit to boost the input voltage and charge the battery, where the target power is the power required for the system power supply end to operate; when the charging power is greater than the target power and the input voltage is greater than or equal to the target voltage, controlling the first charging circuit and / or the second charging circuit to step down the input voltage and charge the battery.

[0017] Optionally, the method further includes: when the charging power of the charging interface is less than the target power, controlling the battery and controlling the first charging circuit or the second charging circuit to enable the battery to supply power to the system power supply end, where the target power is the power required for the system power supply end to operate.

[0018] According to a third aspect of the embodiments of the present disclosure, a charging control device is provided, which is applied to the charging circuit provided in the first aspect of the present disclosure. The device includes: an acquisition module configured to acquire the input voltage and charging power of the charging interface of the charging circuit; a control module configured to: when the input voltage is less than a target voltage, control the second charging circuit of the charging circuit to boost the input voltage and supply power to the system power supply terminal, where the target voltage is the voltage required for the system power supply terminal to operate; when the input voltage is greater than or equal to the target voltage, control the first charging circuit of the charging circuit to supply power to the system power supply terminal.

[0019] According to a fourth aspect of the embodiments of the present disclosure, a charging control device is provided, which is applied to the charging circuit provided in the first aspect of the present disclosure. The device includes: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to: acquire the input voltage and charging power of the charging interface of the charging circuit; when the input voltage is less than a target voltage, control the second charging circuit of the charging circuit to boost the input voltage and supply power to the system power supply terminal, where the target voltage is the voltage required for the system power supply terminal to operate; when the input voltage is greater than or equal to the target voltage, control the first charging circuit of the charging circuit to supply power to the system power supply terminal.

[0020] According to a fifth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the charging control method provided in the second aspect of the present disclosure are implemented.

[0021] According to a sixth aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a charging interface, a battery, and a charging circuit, and the charging circuit is the charging circuit provided in the first aspect of the present disclosure.

[0022] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: The charging circuit of the electronic device includes a first charging circuit and a second charging circuit. Among them, when the input voltage of the charging interface is less than the voltage required for the system power supply terminal to operate, the second charging circuit boosts the input voltage of the charging interface and supplies power to the system power supply terminal; when the input voltage of the charging interface is greater than or equal to the voltage required for the system power supply terminal to operate, the first charging circuit supplies power to the system power supply terminal. In this way, the electronic device can adjust the charging level by using the corresponding charging circuit from the first charging circuit and the second charging circuit based on the magnitude relationship between the input voltage of the charging interface and the voltage required for the system power supply terminal to operate, so that the electronic device can be compatible with multiple charging levels to adapt to multiple chargers and realize the diversification of charging and charging experience.

[0023] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0025] Figure 1 is a block diagram of a charging circuit shown according to an exemplary embodiment.

[0026] Figure 2 is a block diagram of a charging circuit shown according to another exemplary embodiment.

[0027] Figure 3 is a block diagram of a charging circuit shown according to yet another exemplary embodiment.

[0028] Figure 4 is a block diagram of a charging circuit shown according to yet another exemplary embodiment.

[0029] Figure 5 is a topology diagram of a charging circuit shown according to an exemplary embodiment.

[0030] Figure 6 is a flowchart of a charging control method shown according to an exemplary embodiment.

[0031] Figure 7 is a schematic diagram of a power supply path of a system power supply end shown according to an exemplary embodiment.

[0032] Figure 8 is a schematic diagram of a power supply path of a system power supply end shown according to another exemplary embodiment.

[0033] Figure 9 is a schematic diagram of a charging path of a battery shown according to an exemplary embodiment.

[0034] Figure 10 is a schematic diagram of a charging path of a battery shown according to another exemplary embodiment.

[0035] Figure 11 is a schematic diagram of a charging path of a battery shown according to yet another exemplary embodiment.

[0036] Figure 12 is a schematic diagram of a path for a battery to supply power to the system power supply end shown according to an exemplary embodiment.

[0037] Figure 13 is a schematic diagram of a path for a battery to supply power to the system power supply end shown according to another exemplary embodiment.

[0038] Figure 14 It is a block diagram of a charging control device shown according to an exemplary embodiment.

[0039] Figure 15 It is a block diagram of a device for charging control shown according to an exemplary embodiment. Detailed implementation manners

[0040] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0041] It should be noted that all actions of obtaining signals, information, or data in the present disclosure are carried out on the premise of complying with the corresponding data protection regulations and policies of the country where the location is located and obtaining the authorization given by the owner of the corresponding device.

[0042] The present disclosure provides an electronic device, which includes a charging interface, a battery, and a charging circuit. Among them, the electronic device can be, for example, a smart phone, a laptop computer, a tablet computer, a smart wearable device (such as headphones, watches, bracelets), an electric vehicle, a household appliance, a medical device, a fitness device, a personal digital assistant, and other electronic devices.

[0043] As Figures 1-5 shown, the above-mentioned charging circuit 1 may include a charging interface 2, a first charging circuit 10, and a second charging circuit 20. Among them, the first end of the first charging circuit 10 is connected to the charging interface 2, the second end of the first charging circuit 10 is used to be connected to the battery 4, and the third end of the first charging circuit 10 is used to be connected to the system power supply terminal 3; the first end of the second charging circuit 20 is connected to the charging interface 2, and the second end of the second charging circuit 20 is respectively connected to the second end of the first charging circuit 10 and the battery 4. Among them, when the input voltage of the charging interface 2 is less than the target voltage, the input voltage of the charging interface 2 is boosted by the second charging circuit 20 and then supplies power to the system power supply terminal 3, and the target voltage is the voltage required for the system power supply terminal 3 to operate; when the input voltage is greater than or equal to the target voltage, the first charging circuit 10 supplies power to the system power supply terminal 3.

[0044] In the present disclosure, the input voltage of the charging interface may be less than the target voltage or may be equal to the target voltage.

[0045] Exemplarily, the above-mentioned electronic device is a laptop computer, and the input voltage of its charging interface is 5V, while the target voltage is 20V.

[0046] Exemplarily again, the above-mentioned electronic device is a laptop computer, and the input voltage of its charging interface is 9V, while the target voltage is 20V.

[0047] Exemplarily again, the above-mentioned electronic device is a laptop computer, and the input voltage of its charging interface is 20V, while the target voltage is 20V.

[0048] The first charging circuit 10 can be in different working modes based on different charging requirements. Similarly, the second charging circuit 20 can be in different working modes based on different charging requirements. Among them, the above-mentioned working modes can include a boost mode, a buck mode, and a direct charging mode. Specifically, when the input voltage of the charging interface 2 is less than the target voltage, the second charging circuit 20 is controlled to be in the boost mode to boost and supply power to the system power supply end 3; when the input voltage of the charging interface 2 is equal to the target voltage, the first charging circuit 10 is controlled to be in the direct charging mode to directly supply power to the system power supply end 3; when the input voltage of the charging interface 2 is greater than the target voltage, the first charging circuit 10 is controlled to be in the buck mode to step down and supply power to the system power supply end 3.

[0049] The charging interface 2 is used to connect to a power adapter (i.e., a charger). Among them, the charging interface 2 can be, for example, a TypeC port.

[0050] The charging architecture adopted by the above-mentioned charging circuit can support charging protocols such as Battery Charging v1.2 (BC1.2), Quick Charge (QC), and Power Delivery (PD) protocols for charging.

[0051] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: The charging circuit of the electronic device includes a first charging circuit and a second charging circuit. Among them, when the input voltage of the charging interface is less than the voltage required for the system power supply terminal to operate, the input voltage of the charging interface is boosted by the second charging circuit and then supplied to the system power supply terminal; when the input voltage of the charging interface is greater than or equal to the voltage required for the system power supply terminal to operate, the system power supply terminal is supplied with power through the first charging circuit. In this way, the electronic device can adjust the charging level by using the corresponding charging circuit from the first charging circuit and the second charging circuit based on the magnitude relationship between the input voltage of the charging interface and the voltage required for the system power supply terminal to operate, so that the electronic device can be compatible with multiple charging levels to adapt to multiple chargers, realizing the diversification of charging and charging experience. Since the electronic device can adapt to multiple chargers, the user can carry fewer chargers when traveling, improving the convenience of travel. In addition, when the electronic device is running out of power and the user does not carry the standard charger, the user can use the existing non-standard charger, charging port, etc. to supply power to the system power supply terminal to extend the usage time of the electronic device, facilitating the user to handle important matters, such as saving important files, handling urgent matters, etc., improving the user experience.

[0052] The charging power of the charging circuit 1 (specifically the charging power of the power adapter) preferentially meets the power consumption requirements of the system power supply terminal 3. When there is surplus charging power, the power adapter can charge the battery 4 while supplying power to the system power supply terminal 3, improving the battery's endurance. Specifically, when the charging power of the charging interface 2 is greater than the target power and the input voltage is less than the target voltage, the input voltage is boosted by the second charging circuit 20 and then used to charge the battery 4, where the target power is the power required for the system power supply terminal 3 to operate; when the charging power of the charging interface 2 is greater than the target power and the input voltage is greater than or equal to the target voltage, the input voltage can be stepped down by the first charging circuit 10 and / or the second charging circuit 20 to charge the battery 4, that is, either the first charging circuit 10 or the second charging circuit 20 can be used to step down and charge the battery 4. To improve the battery charging efficiency, the battery 4 can also be charged by stepping down simultaneously through the first charging circuit 10 and the second charging circuit 20.

[0053] Since the charging voltage of the battery 4 is basically the same as the target voltage, when the input voltage of the charging interface 2 is less than the target voltage, the battery is charged by boosting; since the charging voltage of the battery is less than the target voltage when it is not fully charged, when the input voltage of the charging interface 2 is greater than or equal to the target voltage, the battery 4 is charged by stepping down.

[0054] When the charging power is insufficient (i.e., the charging power of the charging circuit cannot meet the power consumption requirements of the system power supply terminal 3), while powering the system power supply terminal 3 through the power adapter, the battery 4 can also be used to supplement the power of the system power supply terminal. Specifically, when the charging power of the charging interface 2 is less than the target power, the battery supplies power to the system power supply terminal 3 through the first charging circuit 10 or the second charging circuit 20.

[0055] Of course, when the charging power just meets the power consumption requirements of the system power supply terminal, the power adapter only powers the system power supply terminal, the battery neither supplements the power of the system power supply terminal, nor does the power adapter charge the battery.

[0056] The specific structure of the above charging circuit 1 will be described in detail below. Specifically, as Figure 2 shown, the first charging circuit 10 may include a switching circuit 300 and a first buck-boost circuit 100. Among them, the first end of the switching circuit 300 is connected to the charging interface 2, the second end of the switching circuit 300 is used to connect to the system power supply terminal 3, the first end of the first buck-boost circuit 100 is connected to the charging interface 2, the second end of the first buck-boost circuit 100 is used to connect to the battery 4, and the third end of the first buck-boost circuit 100 is used to connect to the system power supply terminal 3.

[0057] As Figure 2 shown, the second charging circuit 20 may include a second buck-boost circuit 200. Among them, the first end of the second buck-boost circuit 200 is connected to the charging interface 2, and the second end of the second buck-boost circuit 200 is respectively connected to the second end of the first buck-boost circuit 100 and the battery 4.

[0058] At this time, when the input voltage of the charging interface 2 is less than the target voltage, the switching circuit 300 is controlled to turn off, and the second buck-boost circuit 200 is controlled to be in the boost mode to boost the input voltage and supply power to the system power supply terminal 3; when the input voltage of the charging interface 2 is equal to the target voltage, the switching circuit 300 is controlled to turn on to directly supply power to the system power supply terminal 3 through the switching circuit 300; when the input voltage of the charging interface 2 is greater than the target voltage, the switching circuit 300 is controlled to turn off, and the first buck-boost circuit 100 is controlled to be in the buck mode to step down the input voltage and supply power to the system power supply terminal 3.

[0059] When there is surplus charging power in the charging circuit 1, the power adapter can supply power to the system power supply terminal 3 while charging the battery 4 in the following ways: when the charging power at the charging interface 2 is greater than the target power and the input voltage is less than the target voltage, the control switch circuit 300 is turned off, and the second buck-boost circuit 200 is controlled to be in the boost mode to boost the input voltage and then charge the battery 4; when the charging power is greater than the target power and the input voltage is greater than or equal to the target voltage, the control switch circuit 300 is turned off, and the first buck-boost circuit 100 and / or the second buck-boost circuit 200 is controlled to be in the buck mode to step down the input voltage and then charge the battery 4, that is, any one of the first buck-boost circuit 100 and the second buck-boost circuit 200 can be controlled to be in the buck mode to step down and charge the battery 4. In order to improve the battery charging efficiency, the first buck-boost circuit 100 and the second buck-boost circuit 200 can also be controlled to be in the buck mode at the same time to charge the battery 4 in parallel.

[0060] When there is a shortage of charging power, while supplying power to the system power supply terminal 3 through the power adapter, the battery 4 can also supply power to the system power supply terminal for replenishment through the following circuit control method: when the charging power at the charging interface 2 is less than the target power, the control switch circuit 300 is turned on, and the battery 4 supplies power to the system power supply terminal 3 through the first buck-boost circuit 100 or the second buck-boost circuit 200.

[0061] The specific structure of the above-mentioned first charging circuit 10 will be described in detail below. Specifically, as Figure 3 shown, the switch circuit 300 includes a first switch tube Q1 and a second switch tube Q2, and the first buck-boost circuit 100 includes a first buck module 101, a first boost module 102, and a first inductor L1.

[0062] As Figure 3 shown, the first end of the first switch tube Q1 is connected to the charging interface 2, and the second end of the first switch tube Q1 is connected to the first end of the second switch tube Q2; the second end of the second switch tube Q2 is used to be connected to the system power supply terminal 3. The first end of the first buck module 101 is respectively connected to the first end of the first switch tube Q1 and the charging interface 2, the second end of the first buck module 101 is connected to the first end of the first inductor L1, and the third end of the first buck module 101 is grounded ( Figure 3 not shown in the figure). The first end of the first boost module 102 is respectively connected to the second end of the second switch tube Q2 and the system power supply terminal 3, the second end of the first boost module 102 is connected to the second end of the first inductor L1, and the third end of the first boost module 102 is connected to the second end of the second charging circuit 20 and the battery 4 respectively.

[0063] In one embodiment, the first charging circuit 10 may adopt a Hybrid Power Boost (HPB) architecture. Specifically, as Figure 5 shown, the first buck module 101 includes a third switching transistor Q3 and a fourth switching transistor Q5. Among them, the first end of the third switching transistor Q3 is respectively connected to the charging interface 2 and the first end of the first switching transistor Q1. The second end of the third switching transistor Q3 is respectively connected to the first end of the fourth switching transistor Q5 and the first end of the first inductor L1. The second end of the fourth switching transistor Q5 is grounded. The first boost module 102 includes a fifth switching transistor Q4 and a sixth switching transistor Q6. Among them, the first end of the fifth switching transistor Q4 is respectively connected to the second end of the second switching transistor Q2 and the system power supply terminal 3. The second end of the fifth switching transistor Q4 is respectively connected to the second end of the first inductor L1 and the first end of the sixth switching transistor Q6. The second end of the sixth switching transistor Q6 is respectively connected to the second end of the second charging circuit 20 and the battery 4.

[0064] Next, the specific structure of the second charging circuit 20 will be described in detail. Specifically, as Figure 4 shown, the second buck-boost circuit 200 includes a second buck module 201, a second boost module 202, a second inductor L2, and a seventh switching transistor Q12.

[0065] As Figure 4 shown, the first end of the second buck module 201 is connected to the charging interface 2. The second end of the second buck module 201 is connected to the first end of the second inductor L2. The third end of the second buck module 201 is grounded (not shown in Figure 4 ); the first end of the second boost module 202 is connected to the first end of the seventh switching transistor Q12. The second end of the second boost module 202 is connected to the second end of the second inductor L2. The third end of the second boost module 202 is grounded (not shown in Figure 4 ); the second end of the seventh switching transistor Q12 is respectively connected to the second end of the first buck-boost circuit 100 and the battery 4.

[0066] In one embodiment, the second charging circuit 20 may adopt a Narrow Voltage Direct Current (NVDC) architecture. Specifically, as Figure 5As shown, the second step-down module 201 includes an eighth switching transistor Q7 and a ninth switching transistor Q9. Among them, the first end of the eighth switching transistor Q7 is connected to the charging interface 2, and the second end of the eighth switching transistor Q7 is respectively connected to the first end of the ninth switching transistor Q9 and the first end of the second inductor L2. The second end of the ninth switching transistor Q9 is grounded; the second boost module 202 includes a tenth switching transistor Q8 and an eleventh switching transistor Q10. Among them, the first end of the tenth switching transistor Q8 is connected to the first end of the seventh switching transistor Q12, and the second end of the tenth switching transistor Q8 is respectively connected to the second end of the second inductor L2 and the first end of the eleventh switching transistor Q10. The second end of the eleventh switching transistor Q10 is grounded.

[0067] Specifically, the types of the first switching transistor Q1, the second switching transistor Q2, the third switching transistor Q3, the fourth switching transistor Q5, the fifth switching transistor Q4, the sixth switching transistor Q6, the seventh switching transistor Q12, the eighth switching transistor Q7, the ninth switching transistor Q9, the tenth switching transistor Q8, and the eleventh switching transistor Q10 in the embodiments of the present disclosure can be various. For example, they can be metal-oxide-semiconductor (MOS) transistors, insulated gate bipolar transistors, triodes, etc. The present disclosure does not make any limitations here.

[0068] Figure 6 is a flowchart of a charging control method shown according to an exemplary embodiment. Among them, this method can be applied to the above charging circuit. As Figure 6 shown, this charging control method can include the following S301 to S303.

[0069] In S301, the input voltage and charging power of the charging interface of the charging circuit are obtained.

[0070] In S302, when the input voltage is less than the target voltage, control the second charging circuit of the charging circuit to boost the input voltage and then supply power to the system power supply terminal.

[0071] Among them, the target voltage is the voltage required for the system power supply terminal to operate.

[0072] In S303, when the input voltage is greater than or equal to the target voltage, control the first charging circuit of the charging circuit to supply power to the system power supply terminal.

[0073] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: The charging circuit of the electronic device includes a first charging circuit and a second charging circuit. Among them, when the input voltage of the charging interface is less than the voltage required for the system power supply terminal to operate, the input voltage of the charging interface is boosted by the second charging circuit and then supplied to the system power supply terminal; when the input voltage of the charging interface is greater than or equal to the voltage required for the system power supply terminal to operate, the first charging circuit is used to supply power to the system power supply terminal. In this way, the electronic device can adjust the charging level by using the corresponding charging circuit from the first charging circuit and the second charging circuit based on the magnitude relationship between the input voltage of the charging interface and the voltage required for the system power supply terminal to operate, so that the electronic device can be compatible with multiple charging levels to adapt to multiple chargers and realize the diversification of charging and charging experience. Since the electronic device can adapt to multiple chargers, the user can carry fewer chargers when traveling, improving the convenience of travel. In addition, when the electronic device is running out of power and the user does not carry the standard charger, the user can use the existing non-standard charger, charging port, etc. to supply power to the system power supply terminal to extend the usage time of the electronic device, which is convenient for the user to handle important matters, such as saving important files and handling urgent matters, improving the user experience.

[0074] The following will detail the specific implementation manner of obtaining the input voltage and charging power of the charging interface of the charging circuit in S301 above.

[0075] When the electronic device is connected to the power adapter, it is first necessary to identify the charging protocol to determine the input voltage and charging power of the charging interface of the charging circuit according to the identified charging protocol type. Among them, the charging protocol type can be BC1.2 charging protocol, QC charging protocol, and PD charging protocol.

[0076] In the present disclosure, the input voltage and charging power corresponding to the currently identified charging protocol type can be determined according to the pre-established correspondence between the charging protocol, input voltage, and charging power.

[0077] In addition, the charging protocol identification can be jointly completed by the charging interface (for example, Type C port), protocol core, and system-on-chip (SoC) of the electronic device. Specifically, the currently adopted charging protocol type can be determined according to the actions of the CC pin, DP pin, and DM pin of the charging interface of the electronic device.

[0078] When the electronic device is connected to the power adapter, the voltage of the CC pin of the charging interface of the electronic device can be obtained, and combined with the BMC coding rule and 4B5B coding rule of the PD charging protocol to determine whether there is a data packet on the CC pin. The BMC coding rule and 4B5B coding rule can refer to the content of the PD charging protocol and will not be elaborated here.

[0079] If it is detected that there is a data packet on the CC pin, it can be determined that the current charging protocol is the PD charging protocol; otherwise, it is determined that the current charging protocol is not the PD charging protocol.

[0080] When the current charging protocol is not the PD charging protocol, the BC1.2 charging protocol detection can be performed first. The BC1.2 charging protocol stipulates three different types of USB ports, including: Standard Downstream Port (SDP), Dedicated Charging Port (DCP), and Charging Downstream Port (CDP).

[0081] In one example, the SoC can perform Primary Detection with the power adapter to detect whether the port type of the power adapter is of the SDP type:

[0082] When the power adapter is not connected, the SoC can enable the DP pin of the charging interface of the electronic device, and the DP pin remains at the high level VLGC_HI (Logic High 2.0~3.6V).

[0083] When the power adapter is connected and the port type is SDP, the voltage on the DP pin is pulled down by the pull-down resistor RDP_DWN of the SDP, and the voltage on the DP pin remains at the low level VLGC_LOW (Logic Low 0~0.8V).

[0084] That is, the SoC can communicate with the power adapter. The power adapter enables the DP pin, and then the SoC can detect the voltage on the DP pin. According to the logic level corresponding to the voltage on the DP pin, if it is a low level, the SoC can determine that the port type of the power adapter is SDP.

[0085] It should be noted that when the port type of the power adapter is of other types, the detection method for SDP may change. Those skilled in the art can adjust the detection method for SDP in combination with the BC1.2 charging protocol and specific scenarios, and the corresponding solutions fall within the protection scope of the present disclosure.

[0086] In another example, the SoC can identify the port types of the power adapter through Secondary Detection: DCP and CDP.

[0087] The SoC can set the DM pin of the charging interface of the electronic device to a high level. Since the port type of the power adapter is DCP, that is, DP and DM are shorted through a resistor, the voltage on DP will be less than the voltage on DM and greater than the set reference voltage. That is, when the reference voltage is less than the voltage on DP, it is determined that it is connected to DCP.

[0088] When the SoC sets the DM pin of the charging interface of the electronic device to a high level, since the port type of the power adapter is CDP, that is, DP and DM are not shorted, so DP is grounded and less than the reference voltage. That is, when the SoC detects that the voltage on DP is less than the reference voltage, it is determined that it is connected to CDP.

[0089] In this way, through primary detection and secondary detection, the SoC can obtain the port type of the power adapter.

[0090] If the current charging protocol type is neither the BC1.2 charging protocol nor the PD protocol, it can be detected whether it is the QC protocol type. Specifically, the SoC will first output a pulse signal on DP of the charging interface of the electronic device, and at the same time detect the voltage on VBUS of the charging interface of the electronic device. If the power adapter supports the QC3.0 charging protocol, each pulse signal can theoretically increase the voltage on VBUS by 200 mV (adjustable) until the set voltage (such as 8V) is reached. Then, the SoC will output a pulse signal on DM of the charging interface of the electronic device, and at the same time detect the voltage on VBUS. If the number of pulse signals output on DP and DM is equal, the voltage on VBUS will drop to the initial voltage. That is to say, when the SoC outputs a pulse signal on DP / DM, there will be a process of voltage boost and voltage drop on VBUS. At this time, the SoC can determine that the power adapter supports the QC3.0 charging protocol, that is, identify the QC3.0 charging protocol. If the voltage on VBUS remains unchanged, the SoC can determine that the power adapter supports the QC2.0 charging protocol, that is, identify the QC2.0 charging protocol.

[0091] In addition, after the power adapter is inserted into the charging interface of the electronic device, the electronic device can detect whether the power adapter has been inserted, that is, whether the electronic device is connected to the power adapter. For example, the CC pin of the connector (i.e., the port) in the power adapter has a pull-up resistor Rp, and the CC pin of the charging interface of the electronic device has a pull-down resistor Rd. When the power adapter is not inserted into the charging interface of the electronic device, there is no voltage output on the VBUS pin of the connector in the power adapter, that is, there is also no voltage on the VBUS pin of the charging interface in the electronic device; when the power adapter is inserted into the charging interface of the electronic device, the power adapter will detect the pull-down resistor Rd of the electronic device, that is, the power adapter and the electronic device are already connected, then the power adapter can turn on VBUS to supply power to the electronic device, that is, there is voltage on the VBUS pin of the charging interface in the electronic device. In other words, the electronic device can detect that the power adapter has been inserted.

[0092] It should be noted that when the current charging protocol is the PD protocol, in the initial stage of charging, the input voltage of the charging interface is stepped up in stages until the input voltage rises to be the same as the target voltage, and then the input voltage is stabilized at the above target voltage. For example, the target voltage is 20V, the input voltage is 5V in the initial stage, and then the input voltage can first rise to 9V and finally rise to 20V. In the subsequent charging stage, the input voltage is stabilized at 20V. When the current charging protocol is BC1.2 or QC, the input voltage remains unchanged throughout the charging process.

[0093] The following combines Figure 5 the shown charging circuit to detail the working principle of using the charging circuit to supply power to the system power supply terminal.

[0094] Specifically, when the input voltage of the charging interface is less than the target voltage, it is necessary to step up the voltage for the system power supply terminal, that is, control the second charging circuit 20 to be in the boost mode. As Figure 7 shown, the fifth switch tube Q4, the sixth switch tube Q6, the eighth switch tube Q7, and the seventh switch tube Q12 can be controlled to conduct, and the first switch tube Q1, the second switch tube Q2, and the ninth switch tube Q9 can be controlled to turn off. The tenth switch tube Q8 and the eleventh switch tube Q10 are used as a boosting device to supply power to the system power supply terminal. That is, the power supply path of the system power supply terminal is: charging interface 2 -> Q7 -> L2 -> Q8 -> Q12 -> Q6 -> Q4 -> system power supply terminal 3.

[0095] When the input voltage of the charging interface is equal to the target voltage, the power adapter can directly supply power to the system power supply terminal, that is, control the first charging circuit to be in the direct charging mode. As Figure 8As shown, the first switching transistor Q1 and the second switching transistor Q2 can be controlled to conduct, directly powering the system power supply terminal. That is, the power supply path for the system power supply terminal is: charging interface 2 -> Q1 -> Q2 -> system power supply terminal 3.

[0096] When the input voltage of the charging interface is greater than the target voltage, step-down charging needs to be performed for the system power supply terminal, that is, controlling the first charging circuit 10 to be in the step-down mode. At this time, the third switching transistor Q3 and the fifth switching transistor Q4 can be controlled to conduct, and the first switching transistor Q1, the second switching transistor Q2, and the sixth switching transistor Q6 can be controlled to turn off. The third switching transistor Q3 and the fourth switching transistor Q5 act as step-down devices to supply power to the system power supply terminal in a step-down manner. That is, the power supply path for the system power supply terminal is: charging interface 2 -> Q3 -> L1 -> Q4 -> system power supply terminal 3.

[0097] When the charging power of the charging interface 2 is greater than the target power and the input voltage is less than the target voltage, the input voltage is boosted by the second charging circuit 20 and then used to charge the battery 4. As Figure 9 shown, the eighth switching transistor Q7 and the seventh switching transistor Q12 can be controlled to conduct, and the first switching transistor Q1, the second switching transistor Q2, and the ninth switching transistor Q9 can be controlled to turn off. The tenth switching transistor Q8 and the eleventh switching transistor Q10 act as boosting devices to charge the battery in a boosted manner. That is, the charging path for the battery 4 is: charging interface 2 -> Q7 -> L2 -> Q8 -> Q12 -> battery 4.

[0098] When the charging power of the charging interface 2 is greater than the target power and the input voltage of the charging interface 2 is greater than or equal to the target voltage, the input voltage can be stepped down by the first charging circuit 10 and then used to charge the battery 4. As Figure 10 shown, the third switching transistor Q3 and the sixth switching transistor Q6 can be controlled to conduct, and the first switching transistor Q1, the second switching transistor Q2, and the fifth switching transistor Q4 can be controlled to turn off. The third switching transistor Q3 and the fourth switching transistor Q5 act as step-down devices to charge the battery in a step-down manner. That is, the charging path for the battery 4 is: charging interface 2 -> Q3 -> L1 -> Q6 -> battery 4.

[0099] When the charging power of the charging interface 2 is greater than the target power and the input voltage of the charging interface 2 is greater than or equal to the target voltage, the input voltage can also be stepped down by the second charging circuit 20 and then used to charge the battery 4. As Figure 9 shown, the tenth switching transistor Q8 and the seventh switching transistor Q12 can be controlled to conduct, and the first switching transistor Q1, the second switching transistor Q2, and the eleventh switching transistor Q10 can be controlled to turn off. The eighth switching transistor Q7 and the ninth switching transistor Q9 act as step-down devices to charge the battery in a step-down manner. That is, the charging path for the battery 4 is: charging interface 2 -> Q7 -> L2 -> Q8 -> Q12 -> battery 4.

[0100] When the charging power is greater than the target power and the input voltage of the charging interface is equal to the target voltage, while the power adapter supplies power to the system power supply terminal, it can step down and charge the battery. At this time, the first charging circuit can be controlled to be in the step-down mode, and the second charging circuit can be controlled to be in the step-down mode to step down and charge the battery. As Figure 11 shown, the third switch tube Q3 and the sixth switch tube Q6 can be controlled to conduct, and the first switch tube Q1, the second switch tube Q2, and the fifth switch tube Q4 can be controlled to turn off. The third switch tube Q3 and the fourth switch tube Q5 serve as step-down devices to step down and charge the battery; at the same time, the tenth switch tube Q8 and the seventh switch tube Q12 can be controlled to conduct, and the first switch tube Q1, the second switch tube Q2, and the eleventh switch tube Q10 can be controlled to turn off. The eighth switch tube Q7 and the ninth switch tube Q9 serve as step-down devices to step down and charge the battery. At this time, the charging path of the battery 4 includes: charging interface 2 -> Q3 -> L1 -> Q6 -> battery 4, charging interface 2 -> Q7 -> L2 -> Q8 -> Q12 -> battery 4.

[0101] In the above embodiment, by simultaneously step-down charging the battery through the first charging circuit and the second charging circuit, the charging efficiency of the battery can be improved.

[0102] In the case where the charging power of the charging interface 2 is less than the target power, the battery 4 supplies power to the system power supply terminal 3 through the first charging circuit 10. Specifically, as Figure 12 shown, the first switch tube Q1, the second switch tube Q2, the third switch tube Q3, and the sixth switch tube Q6 can be controlled to conduct, and the fifth switch tube Q4 can be controlled to turn off to realize the battery 4 supplying power to the system power supply terminal 3. At this time, the path for the battery 4 to supplement power to the system power supply terminal 3 is: battery 4 -> Q6 -> L1 -> Q3 -> Q1 -> Q2 -> system power supply terminal 3.

[0103] In the case where the charging power of the charging interface 2 is less than the target power, the battery 4 can also supply power to the system power supply terminal 3 through the second charging circuit 20. Specifically, as Figure 13 shown, the first switch tube Q1, the second switch tube Q2, the seventh switch tube Q12, the eighth switch tube Q7, and the tenth switch tube Q8 can be controlled to conduct to realize the battery 4 supplying power to the system power supply terminal 3. At this time, the path for the battery 4 to supplement power to the system power supply terminal 3 is: battery 4 -> Q12 -> Q8 -> L2 -> Q7 -> Q1 -> Q2 -> system power supply terminal 3.

[0104] It should be noted that the target power is related to the currently running processes and the number of processes of the electronic device. Therefore, that is, the target power may change dynamically. Therefore, during the charging process of the electronic device using the charging circuit, the electronic device can execute the above S301 to S303 in real time or at fixed time intervals.

[0105] Regarding the method in the above embodiments, the specific manner in which each step performs operations has been described in detail in the embodiments related to the charging circuit, and will not be elaborated here.

[0106] Figure 14 is a block diagram of a charging control device shown according to an exemplary embodiment. Among them, the charging control device can be applied to the above charging circuit. As Figure 14 shown, the charging control device 400 includes:

[0107] An acquisition module 401, configured to acquire the input voltage and charging power of the charging interface of the charging circuit;

[0108] A control module 402, configured to: when the input voltage is less than the target voltage, control the second charging circuit of the charging circuit to boost the input voltage and supply power to the system power supply terminal, where the target voltage is the voltage required for the system power supply terminal to operate; when the input voltage is greater than or equal to the target voltage, control the first charging circuit of the charging circuit to supply power to the system power supply terminal.

[0109] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: The charging circuit of the electronic device includes a first charging circuit and a second charging circuit. Among them, when the input voltage of the charging interface is less than the voltage required for the system power supply terminal to operate, the second charging circuit boosts the input voltage of the charging interface and supplies power to the system power supply terminal; when the input voltage of the charging interface is greater than or equal to the voltage required for the system power supply terminal to operate, the first charging circuit supplies power to the system power supply terminal. In this way, the electronic device can adjust the charging level by using the corresponding charging circuit from the first charging circuit and the second charging circuit based on the magnitude relationship between the input voltage of the charging interface and the voltage required for the system power supply terminal to operate, so that the electronic device can be compatible with multiple charging levels to adapt to multiple chargers and achieve diversification of charging and charging experience. Since the electronic device can adapt to multiple chargers, users can carry fewer chargers when traveling, improving the convenience of traveling. In addition, when the electronic device is almost out of power and the user does not carry the standard charger, the user can use the existing non-standard charger, charging port, etc. to supply power to the system power supply terminal to extend the usage time of the electronic device, which is convenient for the user to handle important matters, such as saving important files and handling urgent matters, improving the user experience.

[0110] Optionally, the control module 402 is further configured to: when the charging power of the charging interface is greater than the target power and the input voltage is less than the target voltage, control the second charging circuit to boost the input voltage and then charge the battery, where the target power is the power required for the system power supply end to operate; when the charging power is greater than the target power and the input voltage is greater than or equal to the target voltage, control the first charging circuit and / or the second charging circuit to step down the input voltage and then charge the battery.

[0111] Optionally, the control module 402 is further configured to, when the charging power of the charging interface is less than the target power, control the battery and control the first charging circuit or the second charging circuit to enable the battery to supply power to the system power supply end, where the target power is the power required for the system power supply end to operate.

[0112] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the charging circuit, and will not be elaborated herein.

[0113] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the above charging control method provided by the present disclosure are implemented.

[0114] Figure 15 FIG. 800 is a block diagram of a device 800 for charging control according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0115] Referring to Figure 15 , the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output interface 812, a sensor component 814, and a communication component 816.

[0116] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above charging control method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0117] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0118] The power supply component 806 provides power to various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0119] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0120] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0121] The input / output interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.

[0122] The sensor assembly 814 includes one or more sensors for providing a status assessment of various aspects of the device 800. For example, the sensor assembly 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor assembly 814 can also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and a change in the temperature of the device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0123] The communication component 816 is configured to facilitate communication between the device 800 and other devices in a wired or wireless manner. The device 800 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0124] In an exemplary embodiment, the device 800 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described charging control method.

[0125] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided. The above instructions can be executed by the processor 820 of the device 800 to complete the above-described charging control method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0126] In another exemplary embodiment, there is also provided a computer program product, which includes a computer program executable by a programmable device. The computer program has a code portion for performing the above-described charging control method when executed by the programmable device.

[0127] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include well-known common general knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

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

Claims

1. A charging circuit, characterized in that, it includes: a charging interface (2); a first charging circuit (10), a first end of the first charging circuit (10) is connected to the charging interface (2), a second end of the first charging circuit (10) is used for connecting to a battery (4), and a third end of the first charging circuit (10) is used for connecting to a system power supply terminal (3); a second charging circuit (20), a first end of the second charging circuit (20) is connected to the charging interface (2), and a second end of the second charging circuit (20) is respectively connected to the second end of the first charging circuit (10) and the battery (4); wherein, when an input voltage of the charging interface (2) is less than a target voltage, the input voltage is boosted by the second charging circuit (20) and then supplies power to the system power supply terminal (3), and the target voltage is a voltage required for the system power supply terminal (3) to operate; when the input voltage is greater than or equal to the target voltage, the system power supply terminal (3) is powered by the first charging circuit (10).

2. The charging circuit according to claim 1, characterized in that, when a charging power of the charging interface (2) is greater than a target power and the input voltage is less than the target voltage, the input voltage is boosted by the second charging circuit (20) and then charges the battery (4), and the target power is a power required for the system power supply terminal (3) to operate; when the charging power is greater than the target power and the input voltage is greater than or equal to the target voltage, the input voltage is stepped down by the first charging circuit (10) and / or the second charging circuit (20) and then charges the battery (4).

3. The charging circuit according to claim 1 or 2, characterized in that, when a charging power of the charging interface (2) is less than a target power, the battery supplies power to the system power supply terminal (3) through the first charging circuit (10) or the second charging circuit (20), and the target power is a power required for the system power supply terminal (3) to operate.

4. The charging circuit according to claim 1, characterized in that, the first charging circuit (10) includes a switching circuit (300) and a first buck-boost circuit (100), wherein a first end of the switching circuit (300) is connected to the charging interface (2), a second end of the switching circuit (300) is used for connecting to the system power supply terminal (3), a first end of the first buck-boost circuit (100) is connected to the charging interface (2), a second end of the first buck-boost circuit (100) is used for connecting to the battery (4), and a third end of the first buck-boost circuit (100) is used for connecting to the system power supply terminal (3); The second charging circuit (20) includes a second buck-boost circuit (200). Among them, a first end of the second buck-boost circuit (200) is connected to the charging interface (2), and a second end of the second buck-boost circuit (200) is respectively connected to a second end of the first buck-boost circuit (100) and the battery (4).

5. The charging circuit according to claim 4, wherein, when the input voltage is less than the target voltage, the switch circuit (300) is controlled to turn off, and the second buck-boost circuit (200) is controlled to be in a boost mode to boost the input voltage and supply power to the system power supply terminal (3); when the input voltage is equal to the target voltage, the switch circuit (300) is controlled to turn on to directly supply power to the system power supply terminal (3) through the switch circuit (300); when the input voltage is greater than the target voltage, the switch circuit (300) is controlled to turn off, and the first buck-boost circuit (100) is controlled to be in a buck mode to buck the input voltage and supply power to the system power supply terminal (3).

6. The charging circuit according to claim 4, wherein, when the charging power of the charging interface (2) is greater than the target power and the input voltage is less than the target voltage, the switch circuit (300) is controlled to turn off, and the second buck-boost circuit (200) is controlled to be in a boost mode to boost the input voltage and charge the battery (4), and the target power is the power required for the system power supply terminal (3) to operate; when the charging power is greater than the target power and the input voltage is greater than or equal to the target voltage, the switch circuit (300) is controlled to turn off, and the first buck-boost circuit (100) and / or the second buck-boost circuit (200) is controlled to be in a buck mode to buck the input voltage and charge the battery (4).

7. The charging circuit according to claim 4, wherein, when the charging power of the charging interface (2) is less than the target power, the switch circuit (300) is controlled to turn on, and the battery (4) supplies power to the system power supply terminal (3) through the first buck-boost circuit (100) or the second buck-boost circuit (200), and the target power is the power required for the system power supply terminal (3) to operate.

8. The charging circuit according to claim 4, wherein, the switch circuit (300) includes a first switch tube (Q1) and a second switch tube (Q2), and the first buck-boost circuit (100) includes a first buck module (101), a first boost module (102) and a first inductor (L1); wherein, a first end of the first switch tube (Q1) is connected to the charging interface (2), and a second end of the first switch tube (Q1) is connected to a first end of the second switch tube (Q2); a second end of the second switch tube (Q2) is used to be connected to the system power supply terminal (3); The first end of the first buck module (101) is respectively connected to the first end of the first switching transistor (Q1) and the charging interface (2). The second end of the first buck module (101) is connected to the first end of the first inductor (L1). The third end of the first buck module (101) is grounded; The first end of the first boost module (102) is respectively connected to the second end of the second switching transistor (Q2) and the system power supply terminal (3). The second end of the first boost module (102) is connected to the second end of the first inductor (L1). The third end of the first boost module (102) is respectively connected to the second end of the second charging circuit (20) and the battery (4).

9. The charging circuit according to claim 8, characterized in that, the first buck module (101) includes a third switching transistor (Q3) and a fourth switching transistor (Q5). Among them, the first end of the third switching transistor (Q3) is respectively connected to the charging interface (2) and the first end of the first switching transistor (Q1). The second end of the third switching transistor (Q3) is respectively connected to the first end of the fourth switching transistor (Q5) and the first end of the first inductor (L1). The second end of the fourth switching transistor (Q5) is grounded; the first boost module (102) includes a fifth switching transistor (Q4) and a sixth switching transistor (Q6). Among them, the first end of the fifth switching transistor (Q4) is respectively connected to the second end of the second switching transistor (Q2) and the system power supply terminal (3). The second end of the fifth switching transistor (Q4) is respectively connected to the second end of the first inductor (L1) and the first end of the sixth switching transistor (Q6). The second end of the sixth switching transistor (Q6) is respectively connected to the second end of the second charging circuit (20) and the battery (4).

10. The charging circuit according to claim 4, characterized in that, the second buck-boost circuit (200) includes a second buck module (201), a second boost module (202), a second inductor (L2), and a seventh switching transistor (Q12); wherein, the first end of the second buck module (201) is connected to the charging interface (2). The second end of the second buck module (201) is connected to the first end of the second inductor (L2). The third end of the second buck module (201) is grounded; the first end of the second boost module (202) is connected to the first end of the seventh switching transistor (Q12). The second end of the second boost module (202) is connected to the second end of the second inductor (L2). The third end of the second boost module (202) is grounded; the second end of the seventh switching transistor (Q12) is respectively connected to the second end of the first buck-boost circuit (100) and the battery (4).

11. The charging circuit according to claim 10, characterized in that, The second step-down module (201) includes an eighth switching transistor (Q7) and a ninth switching transistor (Q9). Among them, the first end of the eighth switching transistor (Q7) is connected to the charging interface (2), the second end of the eighth switching transistor (Q7) is respectively connected to the first end of the ninth switching transistor (Q9) and the first end of the second inductor (L2), and the second end of the ninth switching transistor (Q9) is grounded; The second boost module (202) includes a tenth switching transistor (Q8) and an eleventh switching transistor (Q10). Among them, the first end of the tenth switching transistor (Q8) is connected to the first end of the seventh switching transistor (Q12), the second end of the tenth switching transistor (Q8) is respectively connected to the second end of the second inductor (L2) and the first end of the eleventh switching transistor (Q10), and the second end of the eleventh switching transistor (Q10) is grounded.

12. A charging control method characterized in that applied to the charging circuit according to any one of claims 1-11, the method includes: acquiring the input voltage and charging power of the charging interface of the charging circuit; when the input voltage is less than the target voltage, controlling the second charging circuit of the charging circuit to boost the input voltage and supply power to the system power supply terminal, where the target voltage is the voltage required for the system power supply terminal to operate; when the input voltage is greater than or equal to the target voltage, controlling the first charging circuit of the charging circuit to supply power to the system power supply terminal.

13. The method according to claim 12 characterized in that the method further includes: when the charging power of the charging interface is greater than the target power and the input voltage is less than the target voltage, controlling the second charging circuit to boost the input voltage and charge the battery, where the target power is the power required for the system power supply terminal to operate; when the charging power is greater than the target power and the input voltage is greater than or equal to the target voltage, controlling the first charging circuit and / or the second charging circuit to step down the input voltage and charge the battery.

14. The method according to claim 12 or 13 characterized in that the method further includes: when the charging power of the charging interface is less than the target power, controlling the battery and controlling the first charging circuit or the second charging circuit to enable the battery to supply power to the system power supply terminal, where the target power is the power required for the system power supply terminal to operate.

15. A charging control device characterized in that applied to the charging circuit according to any one of claims 1-11, the device includes: an acquisition module configured to acquire the input voltage and charging power of the charging interface of the charging circuit; A control module, configured to: when the input voltage is less than the target voltage, control the second charging circuit of the charging circuit to boost the input voltage and supply power to the system power supply terminal, where the target voltage is the voltage required for the system power supply terminal to operate; when the input voltage is greater than or equal to the target voltage, control the first charging circuit of the charging circuit to supply power to the system power supply terminal.

16. A charging control device, characterized in that it is applied to the charging circuit according to any one of claims 1-11, and includes: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to: obtain the input voltage and charging power of the charging interface of the charging circuit; when the input voltage is less than the target voltage, control the second charging circuit of the charging circuit to boost the input voltage and supply power to the system power supply terminal, where the target voltage is the voltage required for the system power supply terminal to operate; when the input voltage is greater than or equal to the target voltage, control the first charging circuit of the charging circuit to supply power to the system power supply terminal.

17. A computer-readable storage medium, on which computer program instructions are stored, characterized in that when the program instructions are executed by a processor, the steps of the method according to any one of claims 12-14 are implemented.

18. An electronic device, including a charging interface, a battery, and a charging circuit, characterized in that the charging circuit is the charging circuit according to any one of claims 1-11.