Charging circuits and equipment

By designing charging circuits in electronic devices and using power supply, charging management and controllers to charge external devices, the problem of external devices being unusable due to reduced battery power is solved and the user experience is improved.

CN116707049BActive Publication Date: 2024-09-20HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211139549.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-19
Publication Date
2024-09-20
Estimated Expiration
2042-09-19

AI Technical Summary

Technical Problem

When using external devices, the battery power of the external device is reduced, causing the problem of being unusable, especially if you forget to bring the charger.

Method used

Design a charging circuit that provides charging functions for external devices through electronic devices. It uses power supply circuits, charging management circuits, controllers and interfaces to generate and output DC signals to directly charge external devices, reducing the risk of damage due to reduced battery power. Unavailability.

Benefits of technology

It is realized that when using electronic devices, external devices can be charged without the need for an external device charger, which improves the user experience and reduces the problem of device unavailability caused by reduced battery power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116707049B
    Figure CN116707049B
Patent Text Reader

Abstract

The present application provides a charging circuit and device, the charging circuit comprising: an electric energy supply circuit connected to a first charging management circuit; the first charging management circuit connected to a control circuit; the control circuit connected to a first controller and a first interface respectively; the electric energy supply circuit is used to provide a first DC signal; the first charging management circuit is used to generate a second DC signal according to the first DC signal; the first controller is used to control the first circuit to output a third DC signal when charging an external device connected to the first interface. The first circuit is used to output a third DC signal to the first interface according to the second DC signal under the control of the first controller; the first interface is used to output the third DC signal to the external device for charging the external device. The present application can reduce the problem of an external device being unusable due to a reduction in the battery power of the external device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of charging technology, and in particular to charging circuits and devices. Background Art

[0002] When using electronic devices such as tablet computers (PADs), users may use external devices such as keyboards. Many external devices are equipped with batteries to power the external devices. However, the battery capacity of external devices is limited. When the external devices work with electronic devices, the battery power of the external devices will continue to decrease. When it decreases to a certain level, the user needs to use the charger of the external device to charge the external device before continuing to use it. Summary of the invention

[0003] The present application provides a charging circuit and device to reduce the problem of an external device being unusable due to a low battery level in the external device.

[0004] In a first aspect, an embodiment of the present application provides a charging circuit, which is applied to an electronic device, and the charging circuit includes: an electric energy supply circuit, a first charging management circuit, a first controller, a first circuit and a first interface; wherein the electric energy supply circuit is connected to the first charging management circuit; the first charging management circuit is connected to the first circuit; the first circuit is respectively connected to the first controller and the first interface; the electric energy supply circuit is used to output a first DC signal; the first charging management circuit is used to: generate a second DC signal according to the first DC signal; the first controller is used to: when charging an external device connected to the first interface, control the first circuit to output a third DC signal; the first circuit is used to: under the control of the first controller, output a third DC signal to the first interface according to the second DC signal; the first interface is used to: output the third DC signal to the external device for charging the external device. In this embodiment, a first circuit is arranged between the first charging management circuit and the first interface. When charging the external device, the first controller can control the first circuit to output a third DC signal, and the first interface outputs the third DC signal to charge the external device. Therefore, when the electronic device uses the external device, the external device is charged directly by the electronic device, and the user does not need to use the charger of the external device to charge the external device, thereby reducing the problem of the external device being unusable due to the reduced battery power of the external device, thereby improving the user's usage experience.

[0005] In one possible implementation, the voltage value of the second DC signal is the same as that of the third DC signal; the first circuit includes: a switching circuit; the switching circuit is respectively connected to the first charging management circuit, the first interface and the first controller; the first controller is specifically used to: when charging an external device connected to the first interface, control the switching circuit to turn on the circuit between the first charging management circuit and the first interface; the switching circuit is used to: under the control of the first controller, turn on the circuit between the first charging management circuit and the first interface, and output the second DC signal to the first interface.

[0006] In one possible implementation, the voltage values ​​of the second DC signal and the third DC signal are different, and the first circuit includes: a voltage conversion circuit and a switching circuit; the voltage conversion circuit is respectively connected to the first charging management circuit and the switching circuit, and the switching circuit is respectively connected to the first interface and the first controller; the first controller is specifically used to: when charging an external device connected to the first interface, control the switching circuit to turn on the circuit between the voltage conversion circuit and the first interface; the voltage conversion circuit is used to: convert the second DC signal into a third DC signal, and output the third DC signal to the switching circuit; the switching circuit is used to: under the control of the first controller, turn on the circuit between the voltage conversion circuit and the first interface, and output the third DC signal to the first interface.

[0007] In a possible implementation, the first controller is further used to: when it is determined to stop charging the external device connected to the first interface, control the first circuit to stop outputting the third DC signal; the first circuit is further used to: under the control of the first controller, stop outputting the third DC signal.

[0008] In a possible implementation, the power supply circuit includes: a second interface, the second interface is connected to the first charging management circuit; the second interface is used to connect to the charging device of the electronic device, receive the first DC signal provided by the charging device, and output the first DC signal to the first charging management circuit; the first controller is also used to: when the second interface is connected to the charging device and the external device meets the charging condition, determine to charge the external device. The external device does not have a fourth interface, or the fourth interface is set and the priority of the third interface is higher than the fourth interface, and the external device meets the charging condition may include: the power of the second battery is less than the preset second power value. Alternatively, the external device is set with a fourth interface, and the priority of the fourth interface is higher than the priority of the second interface, and the external device meets the charging condition may include: the power of the second battery is less than the preset second power value, and the fourth interface is not connected to the charging device of the external device.

[0009] In a possible implementation, the first controller is further used to: when the external device meets the charging stop condition, or when the second interface is disconnected from the charging device, determine to stop charging the external device. If the external device does not have a fourth interface, or the fourth interface is set and the third interface has a higher priority than the fourth interface, the external device meeting the charging stop condition may include: the second battery is fully charged. Alternatively, the external device is set with a fourth interface, and the priority of the fourth interface is higher than the priority of the second interface, and the external device meeting the charging condition may include: the power of the second battery is not less than a preset second power value, or the fourth interface is connected to the charging device of the external device.

[0010] In one possible implementation, the power supply circuit also includes: a first battery, the first battery is connected to a first charging management circuit; the first battery is used to output a first DC signal to the first charging management circuit when the second interface is not connected to a charging device of the electronic device; the first controller is also used to: determine to charge the external device when the second interface is not connected to a charging device, the power of the first battery is not less than a first power value, and the external device meets the charging conditions.

[0011] In a possible implementation, the first controller is further used to determine to stop charging the external device when the external device meets a charging stop condition, or when the second interface is not connected to a charging device and the power level of the first battery is less than a first power value.

[0012] In a possible implementation, the electronic device is a tablet computer, and / or the external device is a keyboard, and / or the first interface is a POGO PIN.

[0013] In the second aspect, the embodiment of the present application provides a charging circuit, which is applied to an external device connected to a first interface of an electronic device; the charging circuit includes: a third interface, a second charging management circuit, a second controller, and a second battery; wherein the second charging management circuit is respectively connected to the third interface, the second controller, and the second battery; the third interface is used to connect to the electronic device and receive a third DC signal output by the electronic device; the second controller is used to: when the electronic device charges the external device, control the second charging management circuit to charge the second battery according to the third DC signal; the second charging management circuit is used to: under the control of the second controller, charge the second battery according to the third DC signal. In this embodiment, the second charging management circuit can charge the second battery using the electric energy received by the third interface under the control of the second controller, so that when the electronic device uses the external device, the external device is directly charged by the electronic device, and the user does not need to use the charger of the external device to charge the external device, thereby reducing the problem of the external device being unusable due to the reduced battery power of the external device, and improving the user's experience.

[0014] In a possible implementation, the second controller is further configured to: when the third interface is connected to the first interface of the electronic device and the external device meets a charging condition, request the electronic device to charge the external device.

[0015] In a possible implementation, the second controller is further configured to: when the third interface is connected to the first interface of the electronic device and the external device meets a charging stop condition, request the electronic device to stop charging the external device.

[0016] In a possible implementation, the external device meets a charging condition, including: the power of the second battery is less than a preset second power value;

[0017] The external device meets the charging stop condition, including: the second battery is fully charged.

[0018] In a possible implementation, the external device further includes a fourth interface, and the fourth interface is used to connect to a charging device of the external device; the priority of the fourth interface is higher than the priority of the second interface;

[0019] The external device meets the charging condition, including: the power of the second battery is less than the preset second power value, and the fourth interface is not connected to the charging device of the external device;

[0020] The external device meets the charging stop condition, including: the second battery is fully charged, or the fourth interface is connected to a charging device of the external device.

[0021] In a third aspect, an embodiment of the present application provides an electronic device, comprising the charging circuit of any one of the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides an external device, comprising the charging circuit of any one of the second aspect.

[0023] In a fifth aspect, an embodiment of the present application provides a charging system, comprising the electronic device of any one of the third aspect and the external device of any one of the fourth aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0026] Figure 2A Another structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0027] Figure 2B A structural diagram of a Type-C interface provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the structure of an external device provided in an embodiment of the present application;

[0029] Figure 4 A flow chart of the working principle of an electronic device charging an external device provided in an embodiment of the present application;

[0030] Figure 5 Another flow chart of the working principle of the electronic device charging an external device provided in the embodiment of the present application;

[0031] Figure 6 A flow chart of the working principle of an electronic device charging a first battery provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0033] When using electronic devices such as tablet computers (PADs), users may use external devices such as keyboards. Many external devices are equipped with batteries to power the external devices. However, the battery capacity of external devices is limited. When the external devices work with electronic devices, the battery power of the external devices will continue to decrease. When it decreases to a certain level, the user needs to use the charger of the external device to charge the external device before continuing to use it. If the user forgets to bring the charger, it will also cause the problem that the external device cannot be used.

[0034] The present application provides a charging circuit and device, which can use an electronic device to charge a cooperating external device, thereby reducing the problem of the external device being unable to be used due to low battery power during use.

[0035] The electronic device referred to in the embodiment of the present application may be a device such as a PAD, a PC, etc. that can be connected to an external device such as a keyboard through a preset interface. The external device referred to in the embodiment of the present application may be a device such as a keyboard that can be connected to the electronic device through a preset interface. The above preset interface may be a POGO PIN.

[0036] like Figure 1As shown, it is a structural schematic diagram of an electronic device provided in an embodiment of the present application, including: a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 150, a battery 160, a preset interface 170, etc.

[0037] Optionally, in order to improve the functions of the electronic device, the electronic device may further include: an antenna, a mobile communication module, a wireless communication module, an audio module, a speaker, a receiver, a microphone, etc., which is not limited in the embodiments of the present application.

[0038] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0039] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0040] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0041] The memory 120 can be used to store computer executable program codes, which include instructions. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120, and / or instructions stored in a memory provided in the processor.

[0042] The number of batteries 160 may be multiple, that is, the electronic device may include multiple batteries 160. The multiple batteries 160 may be connected in parallel.

[0043] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 160, it may also power the electronic device through the power management module 150.

[0044] The power management module 150 is used to connect the battery 160, the charging management module 140 and the processor 110. The power management module 150 receives input from the battery 160 and / or the charging management module 140 to power the processor 110, the memory 120, etc. The power management module 150 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 150 can also be set in the processor 110. In other embodiments, the power management module 150 and the charging management module 140 can also be set in the same device.

[0045] The preset interface 170 can be implemented by a POGO PIN. The preset interface 170 is used to connect with an external device of the electronic device such as a keyboard, and to perform data transmission and power transmission with the external device.

[0046] The structure of the external device can also refer to the structure of the above-mentioned electronic device, which will not be repeated here.

[0047] Hereinafter, the implementation of the charging circuit of the present application will be described in detail in combination with the structures of the above-mentioned electronic device and the external device.

[0048] Figure 2A Schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 2A As shown, the electronic device may include: a second interface 210, a second connection detection circuit 211, a fast charge control circuit 220, a first battery 230, a first charging management circuit 240, a first controller 250, a voltage conversion circuit 260, a switch circuit 270, a first interface 280, and a first connection detection circuit 281. Among them,

[0049] The second interface 210 is used to connect a charging device of the electronic device, such as a charger, to receive power transmitted by the charging device, and to support communication between the electronic device and the charging device. In the following embodiments of the present application, the second interface 210 is an example of a Type-C interface. The structure of the Type-C interface is as follows: Figure 2B As shown, the VBUS pin is used as a charging pin to transmit a DC charging signal. The CC pin, D+ pin, D- pin, SBU pin, RX pin, etc. can be used as communication pins to transmit communication signals.

[0050] The first interface 280 is used to connect an external device. The first interface 280 may include a communication pin, a power supply pin, and a charging pin. The communication pin may be used to connect to the communication pin of the first controller 250 to support the first controller 250 to communicate with the external device; the power supply pin may be used to connect to the first charging management circuit 240 to support the first charging management circuit 240 to power the external device; the charging pin may be used to connect to the first charging management circuit 240 to support the first charging management circuit 240 to charge the external device.

[0051] In some embodiments, the power supply pin and the charging pin can be reused, that is, the same pin can be used as both the power supply pin and the charging pin.

[0052] like Figure 2A As shown, the second interface 210 is respectively connected to the second connection detection circuit 211, the fast charging control circuit 220 and the first charging management circuit 240; the fast charging control circuit 220 is connected to the first battery 230; the first charging management circuit 240 is respectively connected to the second interface 210, the first battery 230, the first controller 250, the voltage conversion circuit 260, and the first interface 280; the first controller 250 is respectively connected to the second connection detection circuit 211, the first charging management circuit 240, the first connection detection circuit 281 and the first interface 280; the voltage conversion circuit 260 is connected to the switch circuit 270, and the switch circuit 270 is connected to the first interface 280.

[0053] In some embodiments, the second interface 210 may correspond to Figure 1 The first interface 280 may correspond to a USB interface such as a Type-C interface. Figure 1 The preset interface in the embodiment can be realized by POGOpin, for example; the first charging management circuit 240 can correspond to Figure 1 The charging management module in.

[0054] The second connection detection circuit 211 is used to detect whether there is a charging device connected to the second interface 210. Taking the second interface 210 as a Type-C interface as an example, in some embodiments, the second connection detection circuit 211 can be connected to the CC pin of the Type-C interface and the first controller 250 respectively, and the second connection detection circuit 211 can detect whether there is a charging device connected to the second interface 210 by detecting the voltage of the CC pin, etc. When a charging device is detected to be connected to the second interface 210, a VBUS interrupt signal is sent to the first controller 250 to notify the first controller 250 that a charging device is connected to the second interface 210. The connection detection circuit can be implemented by related hot plug detection technology, and the specific circuit implementation structure is not repeated here.

[0055] The fast charge control circuit 220 can be used to charge the first battery 230 using the electric energy received by the second interface 210 when the charging device supports the fast charge protocol. It is understandable that the fast charge control circuit 220 is an optional circuit. If the electronic device does not support fast charge, the fast charge control circuit 220 may not be provided in the electronic device. It is understandable that the function of the fast charge control circuit 220 can be integrated into the first charging management circuit 240, which is not limited in the embodiment of the present application. The above-mentioned fast charge protocol may be, for example, a super charge protocol (SCP) protocol, etc.

[0056] The first battery 230 may be a single battery, or may be a battery pack composed of a plurality of batteries connected in parallel, which is not limited in the embodiment of the present application.

[0057] The first charging management circuit 240 can be used for: when the second interface 210 is connected to a charging device, if the charging device does not support the fast charging protocol, the electric energy received by the second interface 210 is used to charge the first battery 230, and the electric energy received by the second interface can be a DC voltage signal. The first charging management circuit 240 can also be used for: when the second interface 210 is connected to a charging device, the electric energy received by the second interface 210 is used to provide a DC power supply signal for the power circuit of the electronic device (including the first controller 250, etc.), and when the second interface 210 is not connected to a charging device, the electric energy provided by the first battery 230 is used to provide a DC power supply signal for the power circuit of the electronic device. In the embodiment of the present application, the first charging management circuit 240 can also be used to: power and / or charge an external device connected to the first interface 280.

[0058] Among them, the pin of the first charging management circuit 240 providing a DC power supply signal for the power circuit of the electronic device, the pin providing a DC charging signal for the external device, and the pin providing a DC power supply signal for the external device can be the same or different.

[0059] It should be noted that the above-mentioned DC charging signal and DC power supply signal are both DC signals, and the use of charging, power supply, etc. is limited only to distinguish the use purpose of the signal as charging or power supply.

[0060] It should be noted that the voltage values ​​of the DC power supply signal provided by the first charging management circuit 240 to the power circuit of the electronic device and the DC power supply signal provided to the external device may be the same or different.

[0061] In some embodiments, the first charging management circuit 240 can charge the external device while supplying power to the external device, that is, supplying power to the external device and charging the external device can be completed at the same time.

[0062] Optionally, when a charging device is connected to the second interface 210 , the first charging management circuit 240 may use the power received by the second interface 210 to charge an external device connected to the first interface 280 .

[0063] Optionally, when no charging device is connected to the second interface 210 , the first charging management circuit 240 may use the power of the first battery to charge the external device connected to the first interface 280 , or may not charge the external device connected to the first interface 280 .

[0064] The first controller 250 can be used to: perform related control of charging the electronic device, and perform related control of charging the external device. The specific implementation of the above control can refer to the subsequent Figure 2A The working principle of the electronic device shown in FIG. 1 is not described in detail here. In some embodiments, the first controller 250 may correspond to Figure 1In some embodiments, the first controller 250 may be implemented by a system on chip (SoC).

[0065] The voltage conversion circuit 260 can be used to convert the DC charging signal output by the first charging management circuit 240 into a DC charging signal of a first voltage value. The first voltage value is the voltage value required for charging the external device, and the specific value is not limited in the embodiment of the present application. It can be understood that if the voltage value of the DC charging signal output by the first charging management circuit is equal to the first voltage value, the voltage conversion circuit 260 can be omitted.

[0066] The charging voltage signal output by the first charging management circuit 240 is generally direct current, and the voltage signal required by the first interface to charge the external device is also direct current, so the voltage conversion circuit 260 can be implemented by a direct current (DC)-DC conversion circuit. The specific circuit structure is not limited in the embodiments of the present application. The voltage conversion circuit 260 can be implemented by a Boost circuit, for example.

[0067] The switch circuit 270 is used to control the conduction and disconnection of the circuit between the voltage conversion circuit 260 and the first interface 280. The switch circuit 270 can be specifically controlled by the first controller 250. The switch circuit 270 can be implemented, for example, by a switch tube, a switch chip, or a related switch circuit, which is not limited in the embodiment of the present application. It can be understood that if the charging pin of the first interface always outputs a DC charging signal, the switch circuit 270 can be omitted.

[0068] The first connection detection circuit 281 is used to detect whether an external device is connected to the first interface 280. The first connection detection circuit 281 can specifically detect whether an external device is connected to the first interface 280 by detecting the voltage of the communication pin of the first interface 280. The specific implementation circuit can refer to the relevant hot plug detection technology, which is not repeated here.

[0069] Figure 2A In the structure of the electronic device shown, a voltage conversion circuit and a switching circuit are arranged between the first charging management circuit and the first interface. The voltage conversion circuit converts the DC charging signal output by the first charging management circuit into a DC charging signal of a first voltage value. When it is necessary to charge the external device, the first controller can control the switching circuit to turn on the circuit between the first charging management circuit and the first interface, and the first interface outputs a DC charging signal to charge the external device. Therefore, when the electronic device uses the external device, the external device is charged directly by the electronic device, and the user does not need to use the charger of the external device to charge the external device, thereby reducing the problem of the external device being unusable due to the low battery power of the external device, thereby improving the user's usage experience.

[0070] Figure 3is a schematic diagram of the structure of the external device in the embodiment of the present application, such as Figure 3 As shown, the external device may include: a second controller 310, a second battery 320, a second charging management circuit 330, a third interface 340 and a fourth interface 350.

[0071] The second charging management circuit 330 is connected to the second controller 310 , the second battery 320 , the third interface 340 , and the fourth interface 350 , respectively. The third interface 340 and the fourth interface 350 are connected to the second controller 310 , respectively.

[0072] The second controller 310 can be used to perform related control of charging of an external device. In some embodiments, the second controller 310 can be implemented by a microcontroller unit (MCU).

[0073] The second controller 310 can be specifically used for: when the third interface 340 is connected to the first interface 280 of the electronic device and the external device meets the charging condition, requesting the electronic device to charge the external device; when the third interface 340 is connected to the first interface 280 of the electronic device and the external device meets the charging stop condition, requesting the electronic device to stop charging the external device.

[0074] The external device meeting the charging condition may include: the power of the second battery is less than a preset first threshold; the external device meeting the charging stop condition may include: the second battery is fully charged.

[0075] The second battery 320 may be a single battery, or may be a battery pack composed of a plurality of batteries connected in parallel, which is not limited in the embodiment of the present application.

[0076] The third interface 340 can be used to pair with the first interface of the electronic device to support communication between the external device and the electronic device, and support the electronic device to power the external device and / or charge the second battery 320. If the first interface is implemented through a POGO PIN, the third interface 340 can be implemented through a corresponding POGO PIN.

[0077] The third interface 340 may also include a communication pin, a power supply pin, and a charging pin. Optionally, the power supply pin and the charging pin may be reused. The communication pin may be connected to the communication pin of the second controller 310 to support the second controller 310 to communicate with the electronic device; the power supply pin may be used to connect to the second charging management circuit 330 to support the second charging management circuit 330 to use the DC power supply signal received by the power supply pin of the third interface 340 to power the power circuit (such as the second controller 310, etc.) in the external device; the charging pin may be used to connect to the second charging management circuit 330 to support the second charging management circuit 330 to use the DC charging signal received by the charging pin of the third interface 340 to charge the second battery 320.

[0078] The fourth interface 350 can be used to connect a charging device of an external device, such as a charger, to receive power transmitted by the charging device, and can also be used to support communication between the external device and the charging device. The fourth interface can be a USB interface, such as a Type-C interface. It is understandable that the fourth interface 350 can be omitted, in which case the external device can be charged only through the third interface.

[0079] It should be noted that the external device may also be provided with a connection detection circuit for the third interface 340 and / or the fourth interface 350 to detect whether a device is connected to the third interface 340 and / or the fourth interface 350, and send the detection result to the second controller 310, so that the second controller 310 can know in time whether the third interface 340 and / or the fourth interface 350 is connected to other devices. Figure 3 As shown in the figure, its specific implementation can refer to the aforementioned related descriptions about the second connection detection circuit 211 and the first connection detection circuit 281, which will not be repeated here.

[0080] The second charging management circuit 330 can be used to: when a charging device such as a charger is connected to the fourth interface 350, enable the circuit between the second battery 320 and the charging pin of the fourth interface 350, and use the power received by the charging pin of the fourth interface 350 to charge the second battery 320; when an electronic device is connected to the third interface 340, enable the circuit between the second battery and the charging pin of the third interface, and use the power received by the charging pin of the third interface 340 to charge the second battery 320. The second charging management circuit 330 can specifically enable the corresponding circuit based on the control of the second controller 310.

[0081] The second charging management circuit 330 can also be used for: when a charging device such as a charger is connected to the fourth interface 350, the electric energy received by the power supply pin of the fourth interface 350 is used to power the power circuit of the external device; when an electronic device is connected to the third interface 340, the electric energy received by the power supply pin of the third interface 340 is used to power the power circuit of the external device.

[0082] The second charging management circuit 330 can be implemented by a Buck circuit, for example, and the specific circuit structure is not limited in the embodiment of the present application.

[0083] Optionally, the second controller 310 may preset the charging priorities of the two interfaces. If it is determined that a charging device is connected to the fourth interface 350 and an electronic device is connected to the third interface 340, the second charging management circuit 330 may be controlled to select the circuit corresponding to the interface with a higher charging priority based on the charging priority of the interface. For example, assuming that the charging priority of the fourth interface 350 is higher than the charging priority of the third interface 340, the second controller 310 may control the second charging management circuit to select the circuit between the fourth interface 350 and the second battery 320, and use the electric energy received by the fourth interface 350 to charge the second battery 320.

[0084] When assuming that the charging priority of the fourth interface 350 is higher than the charging priority of the third interface 340, the external device meets the charging condition, which may include: the power of the second battery is less than the preset first threshold, and the fourth interface 350 is not connected to the charging device of the external device;

[0085] The external device meets the charging stop condition, including: the second battery is fully charged, or the fourth interface 350 is connected to the charging device of the external device.

[0086] Figure 3 In the external device shown, the second charging management circuit 330 can use the electric energy received by the charging pin of the third interface to charge the second battery under the control of the second controller 310, so that when the electronic device uses the external device, the external device is charged directly by the electronic device, and the user does not need to use the charger of the external device to charge the external device, thereby reducing the problem of the external device being unusable due to the low battery power of the external device and improving the user experience.

[0087] The following is an exemplary description of the structure and function of the charging circuit in the electronic device and the external device in combination with the working principle of the electronic device charging the external device in different scenarios.

[0088] In one embodiment provided in the present application, the electronic device can use the power of the first battery to charge the second battery of the external device without being connected to a charging device.

[0089] In the embodiment of the present application, the second controller of the external device can be used to: when the third interface of the external device is connected to the first interface of the electronic device, if it is determined that the charging condition is met, send a charging request message to the electronic device, and the charging request message is used to request the electronic device to charge the external device. The second controller can also be used to: when it is determined that the charging stop condition is met, send a charging stop message to the electronic device, and the charging stop message is used to notify the electronic device to stop charging the external device.

[0090] If the external device is not provided with a fourth interface, or the external device is provided with a fourth interface and the charging priority of the third interface is higher than the charging priority of the fourth interface, the second controller may judge that the charging condition is met, including: the power of the second battery is less than a preset first threshold, and judge that the charging stop condition is met, including: the second battery is fully charged.

[0091] If the external device is provided with a fourth interface and the charging priority of the fourth interface is higher than the charging priority of the third interface, the second controller may judge that the charging conditions are met, which may include: the power of the second battery is less than the preset first threshold and the fourth interface is not connected to the charging device; and judge that the charging stop conditions are met, which may include: the second battery is fully charged, or the fourth interface is connected to the charging device.

[0092] The second controller of the external device may also be used to: upon receiving a charging permission message fed back by the electronic device, control the second charging management circuit to charge the second battery using the electric energy received by the third interface;

[0093] The second charging management circuit of the external device can be used to charge the second battery using the electric energy received by the charging pin of the third interface under the control of the second controller.

[0094] The first controller of the electronic device can be used to: receive a charging request message from an external device, and when the second interface is not connected to the charging device and the voltage of the first battery is greater than a preset second threshold, control the switch circuit to turn on the circuit between the voltage conversion circuit and the charging pin of the first interface, and feedback a charging permission message to the external device, the charging permission message is used to indicate that the external device can be charged; when the second interface is not connected to the charging device and the voltage of the first battery is not greater than the preset second threshold, feedback a charging rejection message to the external device, the charging rejection message is used to indicate that the external device cannot be charged; when a charging stop message from the external device is received, control the switch circuit to disconnect the circuit between the voltage conversion circuit and the charging pin of the first interface.

[0095] The first controller of the electronic device may also be used to control the switch circuit to disconnect the circuit between the voltage conversion circuit and the charging pin of the first interface when the voltage of the first battery is less than a preset third threshold.

[0096] Below, based on the above Figure 2A The electronic device shown and Figure 3 The external device shown is used to exemplify the working principle of an electronic device charging an external device.

[0097] Figure 4 It is a flow chart of a charging working principle provided in an embodiment of the present application.

[0098] In this embodiment, it is assumed that the first interface and the third interface are physically connected.

[0099] like Figure 4 As shown, it may include:

[0100] Step 401: A first connection detection circuit of an electronic device detects that an external device is connected to a first interface and generates a first interrupt signal.

[0101] Step 402: The first connection detection circuit sends a first interrupt signal to a first controller of the electronic device.

[0102] Step 403: The first controller of the electronic device establishes communication with the second controller of the external device via the first interface and the third interface connected as above.

[0103] The method for establishing communication between two interfaces is not limited in this embodiment of the application.

[0104] In the following steps, the communication between the first controller and the second controller can be supported by the first interface and the third interface mentioned above, which will not be described in detail later.

[0105] Step 404: The second controller performs charging negotiation with the first controller.

[0106] If the external device is not provided with the fourth interface, or the external device is provided with the fourth interface and the charging priority of the third interface is higher than the charging priority of the fourth interface, the charging negotiation between the second controller and the first controller may include, for example:

[0107] The second controller of the external device determines that the power of the second battery is less than a preset first threshold, and sends a charging request message to the first controller;

[0108] The first controller determines that the second interface is not connected to a charging device and the power of the first battery is greater than a preset second threshold, and feeds back a charging permission message to the second controller; or, determines that the second interface is not connected to a charging device and the power of the first battery is not greater than the preset second threshold, and feeds back a charging rejection message to the second controller.

[0109] If the charging priority of the fourth interface is higher than the charging priority of the third interface, the charging negotiation between the second controller and the first controller may include, for example:

[0110] The second controller determines that the power level of the second battery is less than a preset first threshold and the fourth interface is not connected to a charging device, and sends a charging request message to the first controller;

[0111] The first controller determines that the second interface is not connected to a charging device and the power of the first battery is greater than a preset second threshold, and feeds back a charging permission message to the second controller; or, determines that the second interface is not connected to a charging device and the power of the first battery is not greater than the preset second threshold, and feeds back a charging rejection message to the second controller.

[0112] Figure 4 In the example, the first controller feeds back a charging permission message to the second controller during charging negotiation.

[0113] Step 405: The first controller controls the first charging management circuit to turn on the circuit between the voltage conversion circuit and the charging pin of the first interface.

[0114] Optionally, the first controller may send a first control signal to the switch circuit, and the first control signal may enable the switch circuit to conduct the circuit between the voltage conversion circuit and the charging pin of the first interface.

[0115] Step 406: The first controller notifies the second controller to start charging.

[0116] The execution order between step 405 and step 406 is not limited.

[0117] Step 406 is an optional step.

[0118] Step 407: The second controller controls the second charging management circuit to conduct the circuit between the second battery and the charging pin of the third interface.

[0119] Afterwards, the electric energy of the first battery is transmitted to the second battery through the first charging management circuit, the voltage conversion circuit, the switch circuit, the first interface, the third interface, and the second charging management circuit in sequence to charge the second battery.

[0120] Steps 408 to 410 show the process of the external device triggering the stop of charging.

[0121] Step 408: The second controller determines whether the charging stop condition is met.

[0122] For example, if the second controller determines that the second battery is fully charged or a charging device is connected to the fourth interface, the second controller may determine that the charging stop condition is met.

[0123] Step 409: The second controller notifies the first controller to stop charging, and controls the second charging management circuit to disconnect the path between the second battery and the charging pin of the third interface.

[0124] Step 410: The first controller controls the switch circuit to disconnect the path between the voltage conversion circuit and the charging pin of the first interface.

[0125] The first controller may send a second control signal to the switch circuit, and the second control signal may cause the switch circuit to disconnect the path between the voltage conversion circuit and the charging pin of the first interface.

[0126] Steps 411 to 413 show the process of the electronic device triggering to stop charging.

[0127] Step 411: The first controller determines whether a charging stop condition is satisfied.

[0128] For example, if the first controller determines that the power level of the first battery is lower than a preset third threshold, it can be determined that the charging stop condition is met.

[0129] Step 412: The first controller notifies the second controller to stop charging.

[0130] Step 413: The first controller controls the switch circuit to disconnect the path between the voltage conversion circuit and the charging pin of the first interface.

[0131] The execution order between step 412 and step 413 is not limited.

[0132] Step 414: The second controller controls the second charging management circuit to disconnect the path between the second battery and the charging pin of the third interface.

[0133] It should be noted that if the second connection detection circuit 211 detects that the physical connection between the first interface and the third interface is disconnected, the first controller can also determine that the charging stop condition is met. At this time, the first controller controls the switching circuit to disconnect the path between the voltage conversion circuit and the charging pin of the first interface.

[0134] In another embodiment provided in the present application, when an electronic device uses the power of a first battery to charge an external device, if the second interface of the electronic device is connected to a charging device, at this time, the first controller of the electronic device can control the first charging management circuit to switch from using the power of the first battery as input to using the power received by the second interface, that is, the power provided by the charging device as input, that is, the first charging management circuit can switch to using the power received by the second interface to power the power circuit of the electronic device, power the power supply pin of the first interface, and power the charging pin of the first interface.

[0135] In another embodiment provided in the present application, the electronic device can use the power received by the second interface to charge the external device when connected to the charging device, and does not charge the external device when not connected to the charging device.

[0136] Specifically, take the example that after the first interface of the electronic device is connected to the external device, the second interface of the electronic device is connected to the charging device.

[0137] In an embodiment of the present application, the first controller of the electronic device can be used to: when the second interface is connected to a charging device, if the first interface is connected to an external device, and after charging negotiation it is determined that the external device meets the charging conditions, control the switch circuit to turn on the circuit between the voltage conversion circuit and the charging pin of the first interface.

[0138] The first controller of the electronic device can also be used to: when the external device is not fully charged, if the connection between the charging device and the second interface is disconnected, control the switch circuit to disconnect the circuit between the voltage conversion circuit and the charging pin of the first interface.

[0139] The second controller of the external device can be used to: when the first controller triggers charging negotiation, determine whether the charging condition is met and feedback the determination result to the first controller. The second controller can also be used to: when it is determined that the charging stop condition is met, send a charging stop message to the electronic device.

[0140] Figure 5 It is a flow chart of another charging working principle provided in an embodiment of the present application.

[0141] In this embodiment, it is assumed that the first interface and the third interface are physically connected, and the first controller and the second controller have established communication. The process of establishing communication is shown in steps 401 to 403 above, which will not be described in detail here.

[0142] like Figure 5 As shown, it may include:

[0143] Step 501: The first connection detection circuit detects that the charging device is connected to the second interface, generates a second interrupt signal, and sends the second interrupt signal to the first controller.

[0144] Taking the second interface being a Type-C interface as an example, the second interrupt signal may be a VBUS interrupt signal.

[0145] Step 502: The first controller controls the first charging management circuit to use the power of the charging device to power the power circuit of the electronic device and the voltage conversion circuit.

[0146] The first charging management circuit uses the electric energy of the charging device, that is, the electric energy received by the first interface.

[0147] The implementation of steps 503 to 509 may refer to steps 404 to 410 and will not be described in detail here.

[0148] Steps 510 to 514 show the process of the electronic device triggering to stop charging.

[0149] Step 510: The first connection detection circuit detects that the connection between the charging device and the second interface is disconnected, generates a third interrupt signal, and sends the third interrupt signal to the first controller.

[0150] Taking the second interface being a Type-C interface as an example, the third interrupt signal may be a VBUS power-off interrupt signal.

[0151] The implementation of steps 511 to 514 may refer to steps 411 to 414 and will not be described in detail here.

[0152] It should be noted that Figure 5 In the charging working principle shown, if the electronic device does not support fast charging, that is, does not include a fast charging control circuit, then in step 502, the first controller controls the first charging management circuit to use the power of the charging device to power the power circuit of the electronic device, and the first controller can also control the first charging management circuit to use the power of the charging device to charge the first battery. If the electronic device supports fast charging, that is, includes a fast charging control circuit, then the flowchart of the working principle of the electronic device charging the first battery is as follows. Figure 6 As shown, including:

[0153] Step 601: The first controller triggers the fast charge control circuit to perform fast charge protocol detection.

[0154] Step 602: The fast charging control circuit negotiates a fast charging protocol with the charging device to obtain a fast charging protocol detection result.

[0155] Optionally, the fast charging control circuit can communicate with the charging device through a fast charging protocol such as the SCP protocol, the USB power delivery (USB Power Delivery, USB-PD) protocol, etc., to complete the communication negotiation process based on the fast charging protocol with the charging device.

[0156] Step 603: The fast charge control circuit sends the fast charge protocol detection result to the first controller.

[0157] The fast charging protocol detection results may include two possibilities: not supporting the fast charging protocol or supporting the fast charging protocol.

[0158] Step 604: The first controller determines whether the fast charging protocol is supported. If yes, execute step 605; if not, execute step 607.

[0159] Step 605: The first controller instructs the fast charge control circuit to use the power of the charging device to charge the first battery, and executes step 606.

[0160] Step 606: After the fast charge control circuit starts charging the first battery, it feeds back a notification message of starting fast charge to the first controller.

[0161] Afterwards, the fast charging control circuit charges the first battery until the connection between the charging device and the second interface is disconnected, or the first battery is fully charged, and this branch process ends.

[0162] Step 607 : The first controller instructs the first charging management circuit to use the power of the charging device to charge the first battery, and then executes step 608 .

[0163] Step 608: After the first charging management circuit starts charging the first battery, it feeds back a charging start notification message to the first controller.

[0164] Afterwards, the first charging management circuit charges the first battery until the connection between the charging device and the second interface is disconnected, or the first battery is fully charged, and this branch process ends.

[0165] like Figure 6 As shown, the above steps 601 to 608 can be triggered and executed after the first controller receives the second interrupt signal.

[0166] In the above embodiment, when the first interface is charging an external device, the connection between the second interface and the charging device is disconnected, and the electronic device stops charging the external device. In another embodiment provided in the present application, when the first interface is charging an external device, if the connection between the second interface and the charging device is disconnected, the first charging management circuit may not stop charging the external device, that is, continue to charge the external device. At this time, the first controller can control the first charging management circuit to switch from using the electric energy received by the second interface as input to using the electric energy of the first battery as input when it detects that the connection between the second interface and the charging device is disconnected. That is, the first charging management circuit can switch to using the electric energy of the first battery to power the power circuit of the electronic device, power the power supply pin of the first interface, and power the charging pin of the first interface.

[0167] In this scenario, the implementation of the working principle of the electronic device charging the external device can refer to Figure 5 and Figure 6 The embodiment shown is different mainly in that: in step 511, when the first controller determines that the second charging stop condition is met, the charging stop condition may include but is not limited to: the second interface receives a third interrupt signal and the power of the first battery is less than a preset third threshold. That is, in this scenario, the second charging stop condition for the first controller to trigger the stop of charging the external device is: the charging device is not connected to the second interface and the first battery does not have the ability to charge the second battery.

[0168] If the first controller receives a third interrupt signal, that is, the connection between the charging device and the second interface is disconnected, but the first controller determines that the power of the first battery is greater than the preset second threshold, then the first controller determines in step 511 that the second charging stop condition is not met. Then, the first controller can control the first charging management circuit to use the power of the first battery as input to power the power circuit of the electronic device, and to power and charge the external device.

[0169] An embodiment of the present application provides a charging system, comprising the electronic device described in any of the above embodiments and the external device described in any of the above embodiments.

[0170] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

[0171] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0172] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0173] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.

[0174] The above is only a specific implementation of the present application. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A charging circuit, characterized in that: Applied to electronic equipment, the charging circuit comprises: a power supply circuit, a first charging management circuit, a first controller, a first circuit, a first connection detection circuit and a first interface; wherein, The first interface includes a communication pin and a charging pin; The power supply circuit is connected to the first charging management circuit; the first charging management circuit is connected to the first circuit; the first circuit is respectively connected to the charging pins of the first controller and the first interface; the communication pin of the first interface is connected to the communication pin of the first controller; The power supply circuit is used to output a first DC signal; the power supply circuit includes: a second interface and a first battery, the second interface and the first battery are respectively connected to the first charging management circuit; the second interface is used to connect to the charging device of the electronic device, when connected to the charging device of the electronic device, receive the first DC signal provided by the charging device, and output the first DC signal to the first charging management circuit; the first battery is used to output the first DC signal to the first charging management circuit when the second interface is not connected to the charging device of the electronic device; The first connection detection circuit is used to: detect that an external device is connected to the first interface by detecting the voltage of the communication pin of the first interface, generate a first interrupt signal, and send the first interrupt signal to the first controller; The first controller is used to: establish communication with the external device through the communication pin of the first interface when receiving the first interrupt signal; and perform charging negotiation with the external device based on the communication; The charging negotiation includes: receiving a charging request message sent by the external device, wherein the charging request message is sent when the external device determines that the power level of the second battery in the external device is less than a preset first threshold value and the external device is not connected to the charging device of the external device; when the second interface is not connected to the charging device of the electronic device and the power level of the first battery is greater than a preset second threshold value, feeding back a charging permission message to the external device; or, when the second interface is not connected to the charging device of the electronic device and the power level of the first battery is not greater than the preset second threshold value, feeding back a charging rejection message to the external device; The first charging management circuit is used to: generate a second DC signal according to the first DC signal; The first charging management circuit is further used to: when the second interface is connected to the charging device, use the first DC signal to provide a DC power supply signal for the power circuit of the electronic device; The first controller is used to: determine to charge the external device when the second interface is connected to the charging device and the external device meets the charging condition; when charging the external device connected to the first interface, control the first circuit to output a third DC signal; The first circuit is used to: under the control of the first controller, output a third DC signal to the first interface according to the second DC signal; The charging pin of the first interface is used to output the third DC signal to the external device for charging the external device.

2. The charging circuit according to claim 1, characterized in that: The voltage value of the second DC signal is the same as that of the third DC signal; the first circuit comprises: a switch circuit; the switch circuit is respectively connected to the first charging management circuit, the first interface and the first controller; The first controller is specifically used to: when charging an external device connected to the first interface, control the switch circuit to conduct the circuit between the first charging management circuit and the first interface; The switch circuit is used to: under the control of the first controller, switch on the circuit between the first charging management circuit and the first interface, and output the second DC signal to the first interface.

3. The charging circuit according to claim 2, characterized in that: The voltage values ​​of the second DC signal and the third DC signal are different, and the first circuit includes: a voltage conversion circuit and a switch circuit; the voltage conversion circuit is respectively connected to the first charging management circuit and the switch circuit, and the switch circuit is respectively connected to the first interface and the first controller; The first controller is specifically used to: when charging an external device connected to the first interface, control the switch circuit to conduct the circuit between the voltage conversion circuit and the first interface; The voltage conversion circuit is used to: convert the second DC signal into a third DC signal, and output the third DC signal to the switch circuit; The switch circuit is used to: under the control of the first controller, switch on the circuit between the voltage conversion circuit and the first interface, and output the third DC signal to the first interface.

4. The charging circuit according to any one of claims 1 to 3, characterized in that: The first controller is further configured to: when it is determined to stop charging the external device connected to the first interface, control the first circuit to stop outputting the third DC signal; The first circuit is further configured to: under the control of the first controller, stop outputting the third DC signal.

5. The charging circuit according to any one of claims 1 to 3, characterized in that: The first controller is further configured to: when the external device meets a charging stop condition, or when the second interface is disconnected from the charging device, determine to stop charging the external device.

6. The charging circuit according to any one of claims 1 to 3, characterized in that: The first controller is further used for: determining to charge the external device when the second interface is not connected to the charging device, the power of the first battery is not less than a first power value, and the external device meets a charging condition.

7. The charging circuit according to claim 6, characterized in that: The first controller is further used to determine to stop charging the external device when the external device meets a charging stop condition, or when the second interface is not connected to the charging device and the power level of the first battery is less than a first power value.

8. The charging circuit according to any one of claims 1 to 3, characterized in that: The electronic device is a tablet computer, and / or the external device is a keyboard, and / or the first interface is a POGO PIN.

9. A charging circuit, characterized in that: An external device connected to a first interface of an electronic device, the electronic device comprising a charging circuit according to any one of claims 1 to 8; the charging circuit comprising: a third interface, a second charging management circuit, a second controller and a second battery; wherein, The second charging management circuit is respectively connected to the third interface, the second controller and the second battery; The third interface is used to connect to the first interface of the electronic device and receive a third DC signal output by the first interface; The second controller is used to: when the electronic device charges the external device, control the second charging management circuit to charge the second battery according to the third DC signal; The second charging management circuit is used to charge the second battery according to the third DC signal under the control of the second controller.

10. The charging circuit according to claim 9, characterized in that: The second controller is further used for: requesting the electronic device to charge the external device when the third interface is connected to the first interface of the electronic device and the external device meets a charging condition.

11. The charging circuit according to claim 10, characterized in that: The second controller is further used for requesting the electronic device to stop charging the external device when the third interface is connected to the first interface of the electronic device and the external device meets a charging stop condition.

12. The charging circuit according to claim 11, characterized in that: The external device meets the charging condition, including: the power of the second battery is less than a preset second power value; The external device meets the charging stop condition, including: the second battery is fully charged.

13. The charging circuit according to claim 11, characterized in that: The external device further includes a fourth interface, and the fourth interface is used to connect a charging device of the external device; the priority of the fourth interface is higher than the priority of the third interface; The external device meets the charging condition, including: the power of the second battery is less than a preset second power value, and the fourth interface is not connected to the charging device of the external device; The external device meets the charging stop condition, including: the second battery is fully charged, or the fourth interface is connected to the charging device of the external device.

14. An electronic device, characterized in that: The charging circuit comprises the charging circuit according to any one of claims 1 to 8.

15. An external device, characterized in that: The charging circuit comprises the charging circuit according to any one of claims 9 to 13.