A charging circuit, a charging method, and an electronic device
Patent Information
- Application Number
- CN202410986926.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2044-07-22
AI Technical Summary
部分电子设备可以包括两个或两个以上的Type-C接口,但是在一次充电过程中,电子设备中只有一个Type-C接口可以连接电源适配器向电子设备的电池充电,在每个Type-C接口分别连接一个电源适配器时,各个电源适配器无法同时向电子设备的电池充电
Smart Images

Figure CN120767958B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging circuit design, and more particularly to a charging circuit, charging method, and electronic device. Background Technology
[0002] Currently, USB interfaces have become widely used on electronic devices, especially USB Type-C interfaces (Type-C for short), which enable electronic devices to perform functions such as charging and data communication. Some electronic devices may include two or more Type-C interfaces, but during a single charging process, only one Type-C interface can be connected to a power adapter to charge the device's battery. When each Type-C interface is connected to a separate power adapter, the power adapters cannot charge the device's battery simultaneously. Summary of the Invention
[0003] This application provides a charging circuit, a charging method, and an electronic device, which enables multiple Type-C ports in an electronic device to be connected to a power adapter to charge the battery of the electronic device.
[0004] To achieve the above objectives, this application adopts the following technical solution:
[0005] In a first aspect, this application provides a charging circuit, which includes: a processor, a first protocol chip, a second protocol chip, a first charging chip, a second charging chip, and a first switch module. Wherein,
[0006] The first terminal of the first protocol chip is used to connect to the first terminal of the first Type-C interface, and the second terminal of the first protocol chip is connected to the processor. The first terminal of the second protocol chip is used to connect to the second Type-C interface, and the second terminal of the second protocol chip is connected to the processor. The first movable terminal of the first switch module is used to connect to the first Type-C interface, the first fixed terminal and the third fixed terminal of the first switch module are connected to the first terminal of the first charging chip, the second terminal of the first charging chip is used to connect to the battery, and the third terminal of the first charging chip is connected to the processor. The second movable terminal of the first switch module is used to connect to the second Type-C interface, the second fixed terminal and the fourth fixed terminal of the first switch module are connected to the first terminal of the second charging chip, the second terminal of the second charging chip is used to connect to the battery, and the third terminal of the second charging chip is connected to the processor. The control terminal of the first switch module is connected to the processor.
[0007] When the second end of the first Type-C interface is connected to the first power adapter, and the second end of the second Type-C interface is connected to the second power adapter: If the first power adapter matches the first charging chip, and the second power adapter matches the second charging chip, then the first switching module can select the first charging path from the first active end to the first fixed end, and the second charging path from the second active end to the fourth active end. The first and second charging paths do not interfere with each other. Thus, the first power adapter can charge the battery of the electronic device through the first charging path, and the second power adapter can charge the battery of the electronic device through the second charging path. If the first power adapter matches the second charging chip, and the second power adapter matches the first charging chip, then the first switching module can select the third charging path from the first active end to the second fixed end, and the fourth charging path from the second active end to the third fixed end. The third and fourth charging paths do not interfere with each other. Thus, the first power adapter can charge the battery of the electronic device through the third charging path, and the second power adapter can charge the battery of the electronic device through the fourth charging path.
[0008] In other words, when each Type-C port is connected to a power adapter, the state of the first switching module differs, allowing each Type-C port to be connected to its corresponding charging chip, thus creating multiple independent charging paths. This allows electronic devices to be charged simultaneously via multiple power adapters and their corresponding charging chips, thereby increasing charging speed and meeting the demand for fast charging.
[0009] In one possible implementation of the first aspect, the processor can be used to control the connection between the active terminal of the first switch module and the corresponding fixed terminal in the first switch module. That is, the processor can control the first switch module to be in different states, thereby activating different charging paths.
[0010] In another possible implementation of the first aspect, the processor can control the first active terminal of the first switch module to connect with the first fixed terminal of the first switch module, and control the second active terminal of the first switch module to connect with the fourth fixed terminal of the first switch module.
[0011] In another possible implementation of the first aspect, the processor can control the first active terminal of the first switch module to connect with the second fixed terminal of the first switch module, and control the second active terminal of the first switch module to connect with the third fixed terminal of the first switch module.
[0012] In another possible implementation of the first aspect, the processor can control the first active terminal of the first switch module to be connected to the first fixed terminal of the first switch module, and control the second active terminal of the first switch module not to be connected to either fixed terminal of the first switch module.
[0013] In another possible implementation of the first aspect, the processor can control the first active terminal of the first switch module to be connected to the second fixed terminal of the first switch module, and control the second active terminal of the first switch module not to be connected to either fixed terminal of the first switch module.
[0014] In another possible implementation of the first aspect, the processor can control the second active terminal of the first switch module to be connected to the third fixed terminal of the first switch module, and control the first active terminal of the first switch module not to be connected to either fixed terminal of the first switch module.
[0015] In another possible implementation of the first aspect, the processor can control the second active terminal of the first switch module to connect with the fourth fixed terminal of the first switch module, and control the first active terminal of the first switch module not to connect with any fixed terminal of the first switch module.
[0016] In another possible implementation of the first aspect, the aforementioned first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch.
[0017] The first terminal of the first sub-switch is connected to the first movable terminal of the first switch module, and the second terminal of the first sub-switch is connected to the first fixed terminal of the first switch module. The first terminal of the second sub-switch is connected to the first movable terminal of the first switch module, and the second terminal of the second sub-switch is connected to the second fixed terminal of the first switch module. The first terminal of the third sub-switch is connected to the second movable terminal of the first switch module, and the second terminal of the third sub-switch is connected to the third fixed terminal of the first switch module. The first terminal of the fourth sub-switch is connected to the second movable terminal of the first switch module, and the second terminal of the fourth sub-switch is connected to the fourth fixed terminal of the first switch module. The third terminal of each sub-switch is connected to the control terminal of the first switch module.
[0018] In another possible implementation of the first aspect, the processor can control the first sub-switch and the fourth sub-switch to be turned on, and control the second sub-switch and the third sub-switch to be turned off.
[0019] In another possible implementation of the first aspect, the processor can control the second and third sub-switches to be turned on, and control the first and fourth sub-switches to be turned on.
[0020] In another possible implementation of the first aspect, the processor can control the first sub-switch to be turned on, and control the second, third and fourth sub-switches to be turned off.
[0021] In another possible implementation of the first aspect, the processor can control the second sub-switch to be turned on, and control the first, third, and fourth sub-switches to be turned off.
[0022] In another possible implementation of the first aspect, the processor can control the third sub-switch to be turned on, and control the first sub-switch, the second sub-switch, and the fourth sub-switch to be turned off.
[0023] In another possible implementation of the first aspect, the processor can control the fourth sub-switch to be turned on, and control the first, second, and third sub-switches to be turned off.
[0024] In another possible implementation of the first aspect, each sub-switch includes a first transistor and a second transistor with different characteristics. If the first transistor is an N-type transistor, then the second transistor is a P-type transistor; or, if the second transistor is an N-type transistor, then the first transistor is a P-type transistor.
[0025] In this circuit, the first terminal of the first transistor is the first terminal of the sub-switch, the second terminal of the first transistor is the second terminal of the sub-switch, and the third terminal of the first transistor is connected to the first terminal of the second transistor and the power supply terminal of the electronic device. The second terminal of the second transistor is grounded, and the third terminal of the second transistor is connected to the processor.
[0026] Taking a sub-switch with a P-type transistor as the first transistor and an N-type transistor as the second as an example, the power supply of the electronic device can continuously provide a high level to the third terminal of the first transistor in the sub-switch, causing the first transistor to be in the off state. In this way, the first and second terminals of the sub-switch are not connected, meaning the sub-switch is in the off state, and the charging path between the Type-C interface and the charging chip is not connected. When it is necessary to control the sub-switch to be turned on, the processor can provide a high level to the third terminal of the second transistor in the sub-switch, causing the second transistor Q2 to conduct. At this time, since the second transistor is connected to the ground terminal, and the first terminal of the second transistor is connected to the third terminal of the first transistor, the third terminal of the first transistor is pulled low, causing the first transistor to be turned on. In this way, the first and second terminals of the sub-switch are connected, meaning the sub-switch is in the on state, and the charging path between the Type-C interface and the charging chip is established.
[0027] In another possible implementation of the first aspect, the charging circuit further includes: a power supply chip, a second switching module, and a third switching module.
[0028] The first terminal of the power supply chip is used to connect to the battery. The second terminal of the power supply chip is connected to the first terminals of the second and third switch modules. The third terminal of the power supply chip is connected to the processor. The second terminal of the second switch module is used to connect to the first Type-C interface. The third terminal of the second switch module is connected to the processor. The second terminal of the third switch module is used to connect to the second Type-C interface. The third terminal of the third switch module is connected to the processor.
[0029] When the first Type-C interface is connected to a device with data transmission capabilities, the processor can control the second switch module to conduct, thereby selecting a power supply path between the power supply chip and the first Type-C interface, allowing the battery to supply power to the device through this path. When the second Type-C interface is connected to a device with data transmission capabilities, the processor can control the third switch module to conduct, thereby selecting a power supply path between the power supply chip and the second Type-C interface, allowing the battery to supply power to the device through this path.
[0030] In another possible implementation of the first aspect, the charging circuit further includes a fourth switching module. A first terminal of the fourth switching module is connected to a first terminal of the first charging chip, a second terminal of the fourth switching module is connected to a first terminal of the second charging chip, and a third terminal of the fourth switching module is connected to the processor.
[0031] When any Type-C interface is connected to a power adapter, if the rated power of the power adapter is greater than the rated power of any charging chip, the processor can control the first switching module to select any charging path and control the first terminal of the fourth switching module to connect with the second terminal of the fourth switching module, so that the first charging chip and the second charging chip are connected in parallel. In this way, during the charging process, the power adapter can charge the electronic device at an output power closer to its rated power, achieving the purpose of fast charging.
[0032] In another possible implementation of the first aspect, the charging circuit further includes a third protocol chip, a third charging chip, and a fifth switch module. The first terminal of the third protocol chip is connected to the first terminal of the third Type-C interface, and the second terminal of the third protocol chip is connected to the processor. The first terminal of the fifth switch module is connected to the third Type-C interface, and the second terminal of the fifth switch module is connected to the first terminal of the third charging chip, which in turn is connected to the battery. The third terminals of both the fifth switch module and the third charging chip are connected to the processor.
[0033] The second end of the third Type-C interface can be connected to a power adapter or a device with data transmission capabilities. When the third Type-C interface is connected to the third power adapter, the processor can control the first end of the fifth switch module to connect to the second end of the fifth switch module, thus enabling the third Type-C interface to conduct with the third charging chip. In this way, the output current of the third power adapter can flow to the battery through the third Type-C interface, the fifth switch module, and the third charging chip, charging the electronic device.
[0034] In another possible implementation of the first aspect, the charging circuit further includes a power supply chip and a sixth switch module, with the first terminal of the power supply chip connected to the battery. The first terminal of the sixth switch module is connected to the second terminal of the power supply chip, the second terminal of the sixth switch module is used to connect to a third Type-C interface, and the third terminal of the sixth switch module is connected to the processor.
[0035] When the third Type-C interface is connected to a device with data transmission capabilities, the processor can control the connection between the first and second terminals of the sixth switch module, thus establishing a power supply path between the third Type-C interface and the power supply chip. In this way, the current output from the battery flows through the power supply chip to the third Type-C interface, supplying power to the data transmission-enabled device connected to the third Type-C interface, enabling data transmission between the electronic device and the data transmission-enabled device.
[0036] In another possible implementation of the first aspect, any one of the aforementioned second, third, fourth, fifth, and sixth switch modules may include a third transistor. The first terminal of the third transistor is the first terminal of the switch module, the second terminal of the third transistor is the second terminal of the switch module, and the third terminal of the third transistor is the third terminal of the switch module.
[0037] The processor can control any one of the second, third, fourth, fifth, and sixth switch modules to turn on, which can be achieved by the processor controlling the third transistor in the corresponding switch module to turn on.
[0038] Secondly, this application provides a charging method that can be applied to the charging circuit described in the first aspect and any possible implementation thereof. The charging method may include:
[0039] When the first Type-C interface is connected to the first power adapter, the second Type-C interface is connected to the second power adapter, and the first power adapter is matched with the first charging chip, and the second power adapter is matched with the second charging chip, the processor controls the first active terminal of the first switch module to connect to the first fixed terminal of the first switch module, and controls the second active terminal of the first switch module to connect to the fourth fixed terminal of the first switch module; or, when the first Type-C interface is connected to the first power adapter, the second Type-C interface is connected to the second power adapter, and the first power adapter is matched with the second charging chip, and the second power adapter is matched with the first charging chip, the processor controls the first active terminal to connect to the second fixed terminal of the first switch module, and controls the second active terminal to connect to the third fixed terminal of the first switch module;
[0040] The processor sends first charging information to a first power adapter and second charging information to a second power adapter; wherein the first charging information is used to instruct the first power adapter to charge the battery of the electronic device with a first target output voltage and a first target output current, and the second charging information is used to instruct the second power adapter to charge the battery of the electronic device with a second target output voltage and a second target output current.
[0041] In one possible implementation of the second aspect, the first switch module may include a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch.
[0042] The processor controls the connection between the first movable terminal of the first switch module and the first fixed terminal of the first switch module, which may include: the processor controlling the first sub-switch to turn on. The processor controls the connection between the second movable terminal of the first switch module and the fourth fixed terminal of the first switch module, which may include: the processor controlling the fourth sub-switch to turn on. The processor controls the connection between the first movable terminal of the first switch module and the second fixed terminal of the first switch module, which may include: the processor controlling the second sub-switch to turn on. The processor controls the connection between the second movable terminal of the first switch module and the third fixed terminal of the first switch module, which may include: the processor controlling the third sub-switch to turn on.
[0043] In another possible implementation of the second aspect, each of the aforementioned first, second, third, and fourth sub-switches includes a first transistor and a second transistor. The power supply terminal of the electronic device can continuously provide an operating level to the third terminal of the first transistor in each sub-switch. The operating level can be high or low, depending on the characteristics of the first and second transistors.
[0044] The processor controlling the target sub-switch in the first switching module to turn on may include: the processor providing an operating level to the third terminal of the second transistor of the target sub-switch. The target sub-switch is any one of the first, second, third, and fourth sub-switches mentioned above.
[0045] In another possible implementation of the second aspect, the charging method described above further includes:
[0046] The processor obtains the first charging parameters of the first power adapter and the second charging parameters of the second power adapter; wherein, the first charging parameters include the first rated power corresponding to the first target protocol successfully negotiated between the first power adapter and the first protocol chip, and the second charging parameters include the second rated power corresponding to the first target protocol successfully negotiated between the second power adapter and the second protocol chip.
[0047] If the rated power of the first charging chip is greater than the rated power of the second charging chip, and the first rated power is greater than the second rated power, the processor determines that the first charging chip is matched with the first power adapter, and the second charging chip is matched with the second power adapter; or, if the rated power of the first charging chip is greater than the rated power of the second charging chip, and the first rated power is less than the second rated power, the processor determines that the first charging chip is matched with the second power adapter, and the second charging chip is matched with the first power adapter.
[0048] To maximize charging power, when determining the matching relationship between the power adapter and the charging chip, the processor can match the power adapter with the highest rated power among the first power adapter and the second power adapter with the charging chip with the highest rated power among the first charging chip and the second charging chip.
[0049] In another possible implementation of the second aspect, the charging circuit may further include a fifth switch module. The charging method also includes: when the third Type-C interface is connected to the third power adapter, the processor can control the fifth switch module to turn on and send third charging information to the third power adapter. The third charging information instructs the third power adapter to charge the battery of the electronic device with a third target output voltage and a third target output current.
[0050] Thirdly, this application provides a charging method that can be applied to the charging circuit described in the first aspect and any possible implementation thereof. The charging method may include:
[0051] When the first target interface is connected to the power adapter, the second target interface is connected to a device with data transmission function, and the power adapter is matched with the first charging chip, the processor can control the first target active terminal of the first switch module to connect to the first target fixed terminal of the first switch module, and control the second target active terminal of the first switch module to connect to the second target fixed terminal of the first switch module; or, when the first target interface is connected to the power adapter, the second target interface is connected to a device with data transmission function, and the power adapter is matched with the second charging chip, the processor can control the first target active terminal to connect to the third target fixed terminal of the first switch module, and control the second target active terminal to connect to the fourth target fixed terminal of the first switch module.
[0052] Wherein, the first target interface is one of the first Type-C interface and the second Type-C interface, and the second target interface is the other of the first Type-C interface and the second Type-C interface; the first target active terminal is one of the two active terminals of the first switch module, and the first target active terminal is connected to the first target interface; the second target active terminal is the other of the two active terminals of the first switch module, and the second target active terminal is connected to the second target interface; the first target fixed terminal is one of the fixed terminals in the first switch module connected to the first charging chip, the second target fixed terminal is one of the fixed terminals in the first switch module connected to the second charging chip; the third target fixed terminal is the other terminal in the first switch module connected to the first charging chip, and the fourth target fixed terminal is the other terminal in the first switch module connected to the second charging chip;
[0053] The processor sends charging information to the power adapter; the charging information is used to instruct the power adapter to charge the battery of the electronic device at a target output voltage and a target output current.
[0054] In one possible implementation of the third aspect, the aforementioned first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch.
[0055] The processor controls the connection between the active terminal of the first target and the fixed terminal of the first target, which may include: the processor controlling one of the first sub-switch and the third sub-switch to be turned on. The processor controls the connection between the active terminal of the second target and the fixed terminal of the second target, which may include: the processor controlling one of the second sub-switch and the fourth sub-switch to be turned on. The processor controls the connection between the active terminal of the first target and the fixed terminal of the third target, which may include: the processor controlling the other of the first sub-switch and the third sub-switch to be turned on. The processor controls the connection between the active terminal of the second target and the fixed terminal of the fourth target, which may include: the processor controlling the other of the second sub-switch and the fourth sub-switch to be turned on.
[0056] In another possible implementation of the third aspect, each of the aforementioned first, second, third, and fourth sub-switches includes a first transistor and a second transistor. The power supply terminal of the electronic device continuously provides an operating level to the third terminal of the first transistor in each sub-switch. The processor controlling the conduction of the target sub-switch in the first switch module may include: the processor providing an operating level to the third terminal of the second transistor of the target sub-switch.
[0057] The target sub-switch is any one of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch.
[0058] In another possible implementation of the third aspect, the charging method further includes: when the rated power of the first charging chip is greater than the rated power of the second charging chip, the processor determines that the power adapter is matched with the first charging chip; when the rated power of the first charging chip is less than the rated power of the second charging chip, the processor determines that the power adapter is matched with the second charging chip.
[0059] In another possible implementation of the third aspect, the charging circuit may further include a fifth switch module. The charging method also includes: when the third Type-C interface is connected to the third power adapter, the processor can control the fifth switch module to turn on and send third charging information to the third power adapter. The third charging information instructs the third power adapter to charge the electronic device's battery with a third target output voltage and a third target output current.
[0060] Fourthly, this application provides a charging method that can be applied to the charging circuit described in the first aspect and any possible implementation thereof. The charging method may include:
[0061] When the first target interface is connected to the power adapter, the second target interface is connected to a device with data transmission function, and the power adapter is matched with the first charging chip, the processor controls the first target active terminal of the first switch module to connect to the first target fixed terminal of the first switch module, and controls the target switch module to conduct; or, when the first target interface is connected to the power adapter, the second target interface is connected to a device with data transmission function, and the power adapter is matched with the second charging chip, the processor controls the first target active terminal to connect to the second target fixed terminal of the first switch module, and controls the target switch module to conduct.
[0062] Wherein, the first target interface is one of the first Type-C interface and the second Type-C interface, and the second target interface is the other of the first Type-C interface and the second Type-C interface; the first target active terminal is one of the two active terminals of the first switch module, and the first target active terminal is connected to the first target interface; the first target fixed terminal is a fixed terminal in the first switch module that is connected to the first charging chip; the target switch module is connected to the second target interface; and the second target fixed terminal is a fixed terminal in the first switch module that is connected to the second charging chip.
[0063] The processor sends charging information to the power adapter; the charging information is used to instruct the power adapter to charge the battery of the electronic device at a target output voltage and a target output current.
[0064] In one possible implementation of the fourth aspect, the first switch module mentioned above includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch.
[0065] The processor controls the connection between the active end of the first target and the fixed end of the first target, which may include: the processor controlling one of the first sub-switch and the third sub-switch to be turned on. The processor controls the connection between the active end of the first target and the fixed end of the third target, which may include: the processor controlling one of the second sub-switch and the fourth sub-switch to be turned on.
[0066] In another possible implementation of the fourth aspect, each of the first and second sub-switches includes a first transistor and a second transistor. The power supply terminal of the electronic device continuously provides an operating level to the third terminal of the first transistor in each sub-switch. The processor controls the target sub-switch in the first switch module to turn on, including: the processor providing an operating level to the third terminal of the second transistor of the target sub-switch.
[0067] The target sub-switch is any one of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch.
[0068] In another possible implementation of the fourth aspect, the charging method further includes: if the rated power of the first charging chip is greater than the rated power of the second charging chip, the processor determines that the power adapter is matched with the first charging chip; if the rated power of the first charging chip is less than the rated power of the second charging chip, the processor determines that the power adapter is matched with the second charging chip.
[0069] In another possible implementation of the fourth aspect, the charging circuit may further include a fifth switching module. The charging method also includes: when the third Type-C interface is connected to the third power adapter, the processor can control the fifth switching module to turn on and send third charging information to the third power adapter. The third charging information instructs the third power adapter to charge the electronic device's battery with a third target output voltage and a third target output current.
[0070] Fifthly, this application provides a charging method that can be applied to the charging circuit described in the first aspect and any possible implementation thereof. The charging method may include:
[0071] When the first Type-C interface or the second Type-C interface is connected to the power adapter, and the rated power of the power adapter is greater than the rated power of the first charging chip and greater than the rated power of the second charging chip, the processor can control the first switch module to select any one of the following charging paths: from the first active terminal of the first switch module to the first fixed terminal of the first switch module, from the first active terminal of the first switch module to the second fixed terminal of the first switch module, from the second active terminal of the first switch module to the third fixed terminal of the first switch module, or from the second active terminal of the first switch module to the fourth fixed terminal of the first switch module, and control the fourth switch module to be turned on.
[0072] In one possible implementation of the fifth aspect, the first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch.
[0073] The processor controls the connection between the first movable terminal of the first switch module and the first fixed terminal of the first switch module, which may include: the processor controlling the first sub-switch to turn on. The processor controls the connection between the second movable terminal of the first switch module and the fourth fixed terminal of the first switch module, which may include: the processor controlling the fourth sub-switch to turn on. The processor controls the connection between the first movable terminal of the first switch module and the second fixed terminal of the first switch module, which may include: the processor controlling the second sub-switch to turn on. The processor controls the connection between the second movable terminal of the first switch module and the third fixed terminal of the first switch module, which may include: the processor controlling the third sub-switch to turn on.
[0074] In another possible implementation of the fifth aspect, each of the first, second, third, and fourth sub-switches includes a first transistor and a second transistor. The power supply terminal of the electronic device continuously provides an operating level to the third terminal of the first transistor in each sub-switch. The processor controls the target sub-switch in the first switch module to turn on, including: the processor providing an operating level to the third terminal of the second transistor of the target sub-switch.
[0075] The target sub-switch is any one of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch.
[0076] In another possible implementation of the fifth aspect, the charging circuit may further include a fifth switching module. The charging method also includes: when the third Type-C interface is connected to the third power adapter, the processor can control the fifth switching module to turn on and send third charging information to the third power adapter. The third charging information instructs the third power adapter to charge the battery of the electronic device with a third target output voltage and a third target output current.
[0077] Sixthly, this application provides an electronic device including a memory, a first Type-C interface, a second Type-C interface, a charging circuit as described in the first aspect and any possible implementation, a battery, and a load circuit. The memory, the first Type-C interface, the second Type-C interface, and the battery are respectively connected to the charging circuit, and the battery is also connected to the load circuit. Each Type-C interface can be used to connect a power adapter or a device with data transmission capabilities.
[0078] The technical effects of the second to sixth aspects are the same as those of the first aspect and any of its embodiments, and will not be repeated here. Attached Figure Description
[0079] Figure 1 A schematic diagram of a charging scenario for an electronic device, provided as one embodiment;
[0080] Figure 2 One of the hardware structure diagrams of an electronic device is provided as an embodiment;
[0081] Figure 3 A second schematic diagram of the hardware structure of an electronic device provided in one embodiment;
[0082] Figure 4 A third schematic diagram of the hardware structure of an electronic device provided as one embodiment;
[0083] Figure 5 A schematic diagram illustrating the signal flow of an electronic device during charging, as provided in one embodiment;
[0084] Figure 6 One of the hardware structure diagrams of an electronic device provided in this application embodiment;
[0085] Figure 7 This is one of the flowcharts illustrating a charging method provided in an embodiment of this application;
[0086] Figure 8This is a schematic diagram of the structure of a power adapter provided in an embodiment of this application;
[0087] Figure 9 This is a second schematic flowchart illustrating a charging method provided in an embodiment of this application.
[0088] Figure 10 This is a schematic diagram illustrating the changes in charging current and battery voltage over time during battery charging, as provided in an embodiment of this application.
[0089] Figure 11 This is one of the signal flow diagrams of an electronic device provided in the embodiments of this application;
[0090] Figure 12 This is one of the structural schematic diagrams of a first switch module provided in an embodiment of this application;
[0091] Figure 13 This is a schematic diagram of the structure of a sub-switch provided in an embodiment of this application;
[0092] Figure 14 This is a second schematic diagram of the structure of a first switch module provided in an embodiment of this application;
[0093] Figure 15 This is a second schematic diagram of the signal flow of an electronic device provided in an embodiment of this application;
[0094] Figure 16 The third schematic flowchart of a charging method provided in this application embodiment;
[0095] Figure 17 This is the third schematic diagram of the signal flow of an electronic device provided in the embodiments of this application;
[0096] Figure 18 This is the fourth schematic diagram of the signal flow of an electronic device provided in the embodiments of this application;
[0097] Figure 19 This is the fifth schematic diagram of the signal flow of an electronic device provided in the embodiments of this application;
[0098] Figure 20 This is the sixth schematic diagram of the signal flow of an electronic device provided in the embodiments of this application;
[0099] Figure 21 A second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0100] Figure 22 The fourth schematic flowchart of a charging method provided in this application embodiment;
[0101] Figure 23This is the seventh schematic diagram of the signal flow of an electronic device provided in the embodiments of this application;
[0102] Figure 24 This is the eighth schematic diagram of the signal flow of an electronic device provided in the embodiments of this application;
[0103] Figure 25 This is the ninth schematic diagram of the signal flow of an electronic device provided in the embodiments of this application;
[0104] Figure 26 This is the tenth schematic diagram of the signal flow of an electronic device provided in the embodiments of this application;
[0105] Figure 27 The third schematic diagram of the hardware structure of an electronic device provided in this application embodiment;
[0106] Figure 28 Fourth schematic diagram of the hardware structure of an electronic device provided in this application embodiment;
[0107] Figure 29 This is eleventh of a schematic diagram of the signal flow of an electronic device provided in an embodiment of this application;
[0108] Figure 30 This is the twelfth schematic diagram of the signal flow of an electronic device provided in the embodiments of this application;
[0109] Figure 31 Fifth of a hardware structure schematic diagram of an electronic device provided in an embodiment of this application;
[0110] Figure 32 This is the thirteenth schematic diagram of the signal flow of an electronic device provided in the embodiments of this application. Detailed Implementation
[0111] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0112] The terms "first" and "second" used in the embodiments of this application are only used to distinguish features of the same type and should not be construed as indicating relative importance, quantity, order, etc.
[0113] The terms "exemplary" or "for example" used in the embodiments of this application are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0114] The terms "coupling" and "connection" used in the embodiments of this application should be interpreted broadly. For example, they can refer to a physical direct connection or an indirect connection achieved through electronic devices, such as a connection achieved through resistors, inductors, capacitors or other electronic devices.
[0115] In the embodiments of this application, the control terminal of the transistor is the gate of the transistor, the first terminal is one of the source and drain of the transistor, and the second terminal is the other of the source and drain of the transistor. Since the source and drain of the transistor can be structurally symmetrical, they can be structurally indistinguishable. That is, the first and second terminals of the transistor in the embodiments of this application can be structurally indistinguishable. For example, in the case of a P-type transistor, the first terminal is the source and the second terminal is the drain. For example, in the case of an N-type transistor, the first terminal is the drain and the second terminal is the source.
[0116] With the development of electronic devices, the USB interface has become a widely used interface on electronic devices, especially the USB Type-C interface (Type-C for short), which enables electronic devices to perform functions such as charging and data communication. Figure 1 As shown, some electronic devices 100 may include two or more Type-C ports 110. However, during a single charging process, only one Type-C port 110 of the electronic device 100 can be connected to a power source 130 via a power adapter 120 to charge the battery of the electronic device. When two power adapters are each connected to a Type-C port, the two power adapters cannot charge the battery of the electronic device simultaneously. Thus, when the charging parameters of the power adapter and the charging parameters of the electronic device do not match (the power adapter and the electronic device are not a complete set of products), for example, when the output power of the power adapter is less than the charging power of the electronic device, the charging speed of the electronic device will be reduced, and the fast charging requirements of the electronic device cannot be met.
[0117] Figure 2 One of the hardware structure diagrams of an electronic device provided in one embodiment is shown.
[0118] In one embodiment, an electronic device includes two Type-C interfaces as an example. Figure 2As shown, the electronic device 100 may include a first Type-C interface 111, a second Type-C interface 112, a charging circuit 210, a load circuit 220, and a battery 230. The charging circuit 210 is connected to the first Type-C interface 111, the second Type-C interface 112, and the battery 230, and the battery 230 is also connected to the load circuit 220. During charging, the power adapter 120 is connected to either the first Type-C interface 111 or the second Type-C interface 112 to charge the battery 230 of the electronic device 100.
[0119] The load circuit 220 may include, but is not limited to, a communication module, a display module, a sensor module, an audio module, and buttons.
[0120] The structure of the charging circuit 210 varies depending on the type of electronic device, resulting in different reasons why an electronic device may only have one Type-C port for connecting a power adapter to charge its battery, rather than being able to simultaneously charge the battery by connecting two separate Type-C ports. The following sections will use tablet computers and laptop computers as examples to explain the possible structures of the charging circuit and the reasons why an electronic device may only have one Type-C port for connecting a power adapter to charge its battery, rather than being able to simultaneously charge the battery by connecting two separate Type-C ports.
[0121] Figure 3 The second schematic diagram shows the hardware structure of an electronic device according to one embodiment.
[0122] In one embodiment, a tablet computer is used as an example of an electronic device. Figure 3 As shown, the tablet computer 300 includes: a first Type-C interface 111, a second Type-C interface 112, a first charging circuit 310, a load circuit 220, and a battery 230. The first charging circuit 310 is connected to the first Type-C interface 111, the second Type-C interface 112, and the battery 230, and the battery 230 is also connected to the load circuit 220.
[0123] The first charging circuit 310 includes a processor 311, and a first protocol chip 312, a first charging chip 313, a second charging chip 314, and a third charging chip 315 connected to the processor 311. The processor 311 is also connected to a first Type-C interface 111, a second Type-C interface 112, a load circuit 220, and a battery 230. The first Type-C interface 111 is also connected to the first protocol chip 312, the first charging chip 313, the second charging chip 314, and the third charging chip 315. The first charging chip 313, the second charging chip 314, and the third charging chip 315 are each connected to the battery 230.
[0124] Since the first Type-C interface 111 is connected to the charging chips and battery 230 in the first charging circuit 310, the output current of the power adapter can flow through the first Type-C interface 111 and the corresponding charging chip to the battery 230, thus charging the tablet computer 300. In other words, the first Type-C interface 111 supports charging. Simultaneously, the first Type-C interface 111 is connected to the processor 311, therefore it supports data communication. However, the second Type-C interface 112 is not connected to the charging chips and battery 230 in the first charging circuit 310, so the power adapter cannot charge the tablet computer 300 through the second Type-C interface 112. In other words, the second Type-C interface 112 does not support charging. However, the second Type-C interface 112 is connected to the processor 311, therefore it supports data communication. Based on this, the power adapter can only connect to one Type-C interface in the tablet computer 300 that supports charging to charge the tablet computer 300. That is to say, blind plugging and charging is not possible during the charging process.
[0125] Figure 4 The third illustration shows a hardware structure diagram of an electronic device provided in one embodiment.
[0126] In one embodiment, a laptop computer is used as an example of an electronic device. Figure 4 As shown, the laptop computer 400 includes: a first Type-C interface 111, a second Type-C interface 112, a second charging circuit 410, a load circuit 220, and a battery 230. The second charging circuit 410 is connected to the first Type-C interface 111, the second Type-C interface 112, and the battery 230, and the battery 230 is also connected to the load circuit 220.
[0127] The second charging circuit 410 includes a processor 311, and a first protocol chip 312, a second protocol chip 411, a first charging chip 313, a first switch 412, and a second switch 413, all connected to the processor 311. The processor 311 is also connected to a first Type-C interface 111, a second Type-C interface 112, and a battery 230. The first Type-C interface 111 is connected to the processor 311 via the first protocol chip 312, and is also connected to the first charging chip 313 via the first switch 412. The second Type-C interface 112 is connected to the processor 311 via the second protocol chip 411, and is also connected to the first charging chip 313 via the second switch 413. The battery 230 is also connected to the first charging chip 313.
[0128] Since the first Type-C port 111 is connected to the first charging chip 313 and the battery 230 in the second charging circuit 410, the power adapter can charge the laptop 400 through the first Type-C port 111. In other words, the first Type-C port 111 supports charging functionality. Similarly, the second Type-C port 112 is connected to the first charging chip 313 and the battery 230 in the second charging circuit 410, so the power adapter can charge the laptop 400 through the second Type-C port 112. In other words, the second Type-C port 112 supports charging functionality. Therefore, the power adapter can be connected to any Type-C port in the laptop 400 to charge the laptop 400's battery 230.
[0129] Figure 5 A schematic diagram of the signal flow during charging of an electronic device is shown in one embodiment.
[0130] In one embodiment, a laptop computer is used as an example of an electronic device. (Combined with...) Figure 4 ,like Figure 5As shown, when the first power adapter 121 is connected to the first Type-C interface 111 and the second power adapter 122 is connected to the second Type-C interface 112, the processor 311 controls both the first switch 412 and the second switch 413 to be turned on. At this time, the output current of the first power adapter flows to the first charging chip 313 through the first Type-C interface 111 and the first switch 412, and the output current of the second power adapter flows to the first charging chip 313 through the second Type-C interface 112 and the second switch 413. Therefore, both the first node A and the second node B are input terminals of the first charging chip 313, and thus the voltage at the first node A and the voltage at the second node B are equal. Here, the first node A refers to the connection node between the first Type-C interface 111 and the first switch 412. The second node B refers to the connection node between the second Type-C interface 112 and the second switch 413.
[0131] When two power adapters have different output voltages, and the voltage at node A (first node) and node B (second node) are the same, one of the power adapters will experience voltage reversal. This can lead to abnormal laptop charging, affect the normal operation of the power adapter, and even burn out the power adapter. For example, suppose the output voltage of the first power adapter is lower than that of the second power adapter, but the voltage at node A and node B are the same. In this case, the first power adapter will experience voltage reversal, affecting the normal charging of the laptop, disrupting the normal operation of the first power adapter, and potentially burning out the first power adapter.
[0132] In summary, when an electronic device has multiple Type-C ports, only one Type-C port can be connected to a power adapter for charging. In this case, if the charging parameters of the power adapter connected to the Type-C port do not match the charging parameters of the electronic device—for example, if the power adapter's output power is less than the charging power of the electronic device—the charging speed of the electronic device will be reduced, thus failing to meet the demand for fast charging.
[0133] To address the aforementioned problems, this application provides an electronic device with an improved charging circuit. The improved charging circuit incorporates a first switch module. When the electronic device includes two Type-C ports, each Type-C port is connected to a corresponding charging chip via the first switch module. When each Type-C port is connected to a power adapter, controlling the state of the first switch module allows each Type-C port to be connected to its corresponding charging chip, thus creating multiple independent charging paths. This allows the electronic device to simultaneously charge its battery via multiple power adapters and corresponding charging chips, thereby increasing the charging speed.
[0134] The electronic device involved in this application embodiment can be a device with charging and data communication functions. This electronic device can be mobile or fixed. It can be deployed on land (e.g., indoors or outdoors, handheld or vehicle-mounted), on water (e.g., on ships), or in the air (e.g., airplanes, balloons). This electronic device can be referred to as user equipment (UE), access terminal, terminal unit, subscriber unit, terminal station, mobile station (MS), mobile station, terminal agent, or terminal device, etc. For example, the electronic device can be a tablet computer, laptop computer, etc. This application embodiment does not limit the specific type and structure of the electronic device.
[0135] Figure 6 This illustration shows one of the hardware structure diagrams of an electronic device provided in an embodiment of this application.
[0136] In one embodiment, taking an electronic device that includes two Type-C interfaces as an example, such as... Figure 6 As shown, the electronic device provided in this application embodiment may include: a first Type-C interface 111, a second Type-C interface 112, a load circuit 220, a battery 230, and an improved charging circuit 610. The improved charging circuit 610 is connected to the first Type-C interface 111, the second Type-C interface 112, and the battery 230, and the battery 230 is also connected to the load circuit 220.
[0137] Specifically, the improved charging circuit 610 includes: a processor 311, a first protocol chip 312, a second protocol chip 411, a first charging chip 313, a second charging chip 314, and a first switch module 611. The first switch module 611 includes: a first active terminal A1, a second active terminal A2, a first fixed terminal B1, a second fixed terminal B2, a third fixed terminal B3, a fourth fixed terminal B4, and a first control terminal G1.
[0138] The first end of the first Type-C interface 111 is connected to the first end of the first protocol chip 312 and the first active end A1 of the first switch module 611. The second end of the first protocol chip 312 is connected to the processor 311. The first end of the first charging chip 313 is connected to the first fixed end B1 and the third fixed end B3 of the first switch module 611. The second end of the first charging chip 313 is connected to the battery 230. The third end of the first charging chip 313 is connected to the processor 311, and the battery 230 is connected to the processor 311. Figure 6 (Not shown in the image).
[0139] The first end of the second Type-C interface 112 is connected to the first end of the second protocol chip 411 and the second active end A2 of the first switch module 611. The second end of the second protocol chip 411 is connected to the processor 311. The first end of the second charging chip 314 is connected to the second fixed end B2 and the fourth fixed end B4 of the first switch module 611. The second end of the second charging chip 314 is connected to the battery 230. The third end of the second charging chip 314 is connected to the processor 311. The processor 311 is also connected to the first control end G1 of the first switch module 611.
[0140] The second end of the first Type-C interface 111 can be used to connect the first power adapter 121, and the second end of the second Type-C interface 112 can be used to connect the second power adapter 122. Figure 6 The example shown is that the first end of the first Type-C interface 111 is connected to the first power adapter 121, and the second end of the second Type-C interface 112 is connected to the second power adapter 122.
[0141] It should be noted that the charging chips discussed in this article (such as the first charging chip and the second charging chip) can simultaneously have both forward charging and reverse charging functions, or they can have forward charging function but not reverse charging function. Forward charging function refers to the charging chip receiving current from a power adapter connected to the Type-C interface to charge the battery. Reverse charging function refers to the charging chip receiving current from the battery to power other devices connected to the Type-C interface.
[0142] It should be noted that the second terminal of the charging chip discussed in this article can be connected to the positive terminal of the battery.
[0143] It should be noted that the signals between the processor and each charging chip and protocol chip can be serial communication bus signals. The signals between the protocol chip and the Type-C interface can be configuration channel (CC) signals or USB signals. The signals between the Type-C interface, charging chips, and battery can be current signals.
[0144] The above text describes a hardware structure of an electronic device provided in an embodiment of this application. The following text, in conjunction with... Figures 7 to 32 This application describes the charging method and other possible hardware structures of the electronic device provided in the embodiments.
[0145] Figure 7 This illustration shows one of the flowcharts of a charging method provided in an embodiment of this application.
[0146] In one embodiment, such as Figure 7 As shown, the charging method provided in this application embodiment may include:
[0147] S701, the processor obtains the first voltage of the first Type-C interface through the first protocol chip, and obtains the second voltage of the second Type-C interface through the second protocol chip.
[0148] The voltage of the Type-C interface is either the voltage of the Type-C interface's power bus (VBUS) pin or the voltage of the Type-C interface's configuration channel (CC) pin. Therefore, the first voltage can include either the voltage of the VBUS pin or the voltage of the CC pin of the first Type-C interface. The second voltage can include either the voltage of the VBUS pin or the voltage of the CC pin of the second Type-C interface.
[0149] Figure 8 A schematic diagram of the structure of a power adapter provided in an embodiment of this application is shown.
[0150] In one embodiment, such as Figure 8As shown in Figure A, the output port 810 of the Type-A power adapter 120 is a Type-A interface. When the Type-A power adapter is connected to both an external power source and the Type-C interface of an electronic device, the power adapter directly outputs a first preset voltage (e.g., 5V) to the VBUS pin of the Type-C interface. At this time, the voltage of the VBUS pin of the Type-C interface connected to the power adapter in the electronic device is the first preset voltage. Therefore, the protocol chip connected to the Type-C interface will detect the first preset voltage of the VBUS pin of the Type-C interface. At this time, the voltage of the Type-C interface is the voltage of the VBUS pin of the Type-C interface.
[0151] In another embodiment, such as Figure 8 As shown in Figure B, the output port 810 of the Type-C power adapter 120 is a Type-C interface. When the Type-C power adapter is connected to both an external power source and the Type-C interface of an electronic device, the voltage of the CC pin of the Type-C interface is a second preset voltage. Therefore, the protocol chip connected to the Type-C interface will detect the second preset voltage of the CC pin of the Type-C interface. At this time, the voltage of the Type-C interface is the voltage of the CC pin of the Type-C interface.
[0152] In another embodiment, when a device with data transfer capabilities (such as a USB flash drive) is connected to the Type-C interface of an electronic device, the voltage of the CC pin of the Type-C interface is a third preset voltage. Therefore, the protocol chip connected to the Type-C interface will detect this third preset voltage on the CC pin. At this time, the voltage of the Type-C interface is the voltage of the CC pin of the Type-C interface.
[0153] Therefore, the voltages of the VBUS and CC pins of the electronic device's Type-C interface differ depending on the device connected to it. Thus, when the electronic device's Type-C interface is connected to other devices, the electronic device can obtain the voltages of the VBUS and CC pins of the Type-C interface through the protocol chip connected to it, and determine the type of other device connected to the Type-C interface based on these voltages.
[0154] In another embodiment, the electronic device may further include an ADC detection circuit connected to each Type-C interface. In this case, the electronic device can obtain the voltage of the VBUS pin and CC pin of the corresponding Type-C interface through the ADC detection circuit connected to each Type-C interface, and determine the type of other devices connected to the Type-C interface based on the voltage of the VBUS pin and CC pin of the Type-C interface.
[0155] S702. Based on the first voltage being a first preset voltage or a second preset voltage, the processor determines that the device connected to the first Type-C interface is the first power adapter, and based on the second voltage being a first preset voltage or a second preset voltage, the processor determines that the device connected to the second Type-C interface is the second power adapter.
[0156] In one embodiment, if the first voltage is a third preset voltage, the first protocol chip can determine that the device connected to the first Type-C interface is a device with data transmission function; if the second voltage is the first preset voltage or the second preset voltage, the second protocol chip can determine that the device connected to the second Type-C interface is a second power adapter.
[0157] Alternatively, if the second voltage is a third preset voltage, the second protocol chip can determine that the device connected to the second Type-C interface is a device with data transmission function; if the first voltage is a first preset voltage or a second preset voltage, the first protocol chip can determine that the device connected to the first Type-C interface is a first power adapter.
[0158] Alternatively, if the first voltage is a third preset voltage, the first protocol chip can determine that the device connected to the first Type-C interface is a device with data transmission function; if the second voltage is a third preset voltage, the second protocol chip can determine that the device connected to the second Type-C interface is a device with data transmission function.
[0159] S703, the first protocol chip receives the first charging parameters sent by the first power adapter through the first Type-C interface, and the second protocol chip receives the second charging parameters sent by the second power adapter through the second Type-C interface.
[0160] In one embodiment, the charging parameters of a power adapter may include: manufacturer information, multiple charging protocols, and output parameters corresponding to each charging protocol, including maximum output voltage, maximum output current, and rated power (or maximum output power).
[0161] In one embodiment, the charging parameters sent by the power adapter to the protocol chip of the electronic device may include: manufacturer information, the first target charging protocol successfully negotiated between the power adapter and the electronic device, and the maximum output voltage, maximum output current and rated power corresponding to the target charging protocol.
[0162] Based on this, the first charging parameters may include: first manufacturer information, a first target charging protocol successfully negotiated by the first power adapter and the electronic device, and the maximum output voltage, maximum output current, and rated power corresponding to the first target charging protocol. The second charging parameters may include: second manufacturer information, a first second target charging protocol successfully negotiated by the second power adapter and the electronic device, and the maximum output voltage, maximum output current, and rated power corresponding to the second target charging protocol.
[0163] In one embodiment, charging protocols can be categorized into proprietary charging protocols and public charging protocols based on whether they have been disclosed by the manufacturer. A proprietary charging protocol refers to a charging protocol that has not been disclosed by the manufacturer, while a public charging protocol refers to a charging protocol that has been disclosed by the manufacturer. A power adapter or an electronic device can support at least one of these proprietary and public charging protocols.
[0164] For example, some public charging protocols may include public output parameters and private output parameters. The private output parameters of a public charging protocol are not disclosed by the vendor, while the public output parameters of a public charging protocol are disclosed by the vendor. Therefore, for the same public charging protocol, the output parameters included in different vendors' public protocols may differ.
[0165] For example, the power delivery (PD) protocol is a public charging protocol. The PD-PPS protocol in the PD protocol includes proprietary output parameters.
[0166] In one embodiment, the type of charging protocol supported by a power adapter depends on the type and manufacturer of the power adapter.
[0167] For example, when a power adapter is a power adapter that comes with a laptop, all laptop manufacturers' power adapters support common charging protocols, such as power delivery (PD) protocol. Some manufacturers' power adapters also support proprietary charging protocols, such as Supercharger Protocol (SCP) and Fast Charger Protocol (FCP).
[0168] For example, when a power adapter is a power adapter for a tablet computer, different tablet manufacturers' power adapters support different proprietary charging protocols. For instance, manufacturer A's power adapter supports the SCP charging protocol, while manufacturer B's power adapter supports the VOOC charging protocol. Some manufacturers' power adapters, in addition to supporting proprietary charging protocols, also support the BC1.2 charging protocol. Some manufacturers' power adapters may only support the BC1.2 charging protocol. The BC1.2 charging protocol corresponds to an output voltage of 5V and an output current of 2A.
[0169] In one embodiment, the various charging protocols supported by the power adapter can be sorted according to certain rules and stored in the power adapter. Similarly, the various charging protocols supported by the electronic device can be sorted according to certain rules and stored in the protocol chip of the electronic device.
[0170] For example, the order of charging protocols in a power adapter depends on the type of power adapter. For instance, if a power adapter is for a laptop and supports both public charging protocols (such as PD) and proprietary charging protocols (such as SCP), the public charging protocol has higher priority than the proprietary one. Similarly, if a power adapter is for a tablet and supports both public charging protocols (such as PD) and proprietary charging protocols (such as SCP), the proprietary charging protocol has higher priority than the public one.
[0171] For example, the order of charging protocols in the protocol chip is related to the type of electronic device. For instance, if an electronic device is a laptop and supports both public charging protocols (such as PD) and proprietary charging protocols (such as SCP), the public charging protocol has a higher priority than the proprietary charging protocol. Similarly, if an electronic device is a tablet and supports both public charging protocols (such as PD) and proprietary charging protocols (such as SCP), the proprietary charging protocol has a higher priority than the public charging protocol.
[0172] Figure 9 The second schematic diagram of a charging method provided in an embodiment of this application is shown.
[0173] In one embodiment, such as Figure 9 As shown, the above S703 may include:
[0174] S901, the first protocol chip sends the protocol identifier of the first charging protocol with the highest priority to the first power adapter through the first Type-C interface, and the second protocol chip sends the protocol identifier of the first charging protocol with the highest priority to the second power adapter through the second Type-C interface.
[0175] In one embodiment, each protocol chip in an electronic device stores multiple charging protocols supported by the electronic device, and the multiple charging protocols in each protocol chip are ordered in the same way.
[0176] For example, the multiple charging protocols supported by an electronic device, sorted by priority from highest to lowest, can include: a first charging protocol, a second charging protocol, a third charging protocol, and so on. Therefore, the highest priority charging protocol in the first protocol chip and the highest priority charging protocol in the second protocol chip can both be the first charging protocol.
[0177] In one embodiment, a charging protocol may have a unique protocol identifier, so the type of charging protocol can be determined by the protocol identifier of a charging protocol.
[0178] For example, assuming that the highest priority charging protocol among all charging protocols supported by the electronic device is the PD protocol, then the protocol identifier of the first charging protocol is the protocol identifier of the PD protocol.
[0179] S902, The first power adapter determines whether there is a protocol identifier for the first charging protocol in the first power adapter.
[0180] In one embodiment, the power adapter stores protocol identifiers for various charging protocols supported by the power adapter. When the power adapter receives a protocol identifier sent by the protocol chip of the electronic device, the power adapter checks whether the same protocol identifier exists in the power adapter to determine whether the power adapter supports the charging protocol corresponding to that protocol identifier.
[0181] Based on this, after receiving the protocol identifier of the first charging protocol, the first power adapter will query whether the protocol identifier of the first charging protocol exists in the first power adapter, thereby determining whether the first power adapter supports the first charging protocol.
[0182] S903. If the first power adapter contains a protocol identifier for the first charging protocol, the first power adapter sends first feedback information to the first protocol chip through the first Type-C interface.
[0183] In one embodiment, if the power adapter contains the same protocol identifier, indicating that the power adapter and the electronic device support the same charging protocol, the power adapter will send feedback information to the corresponding protocol chip in the electronic device. The feedback information indicates that both the power adapter and the electronic device support the charging protocol corresponding to that protocol identifier. In other words, the electronic device and the power adapter have successfully negotiated a charging protocol, and during this charging process, the power adapter will charge the electronic device according to the output parameters corresponding to the successfully negotiated charging protocol.
[0184] For ease of distinction, in this article, if the power adapter contains a protocol identifier for the first charging protocol, the feedback information sent by the power adapter to the protocol chip is referred to as the first feedback information. In this case, the first charging protocol is the first charging protocol successfully negotiated between the power adapter and the electronic device.
[0185] Similarly, if the power adapter lacks a protocol identifier for the first charging protocol but possesses a protocol identifier for the second charging protocol, the feedback information sent by the power adapter to the protocol chip is called the second feedback information. In this case, the second charging protocol is the first charging protocol successfully negotiated between the power adapter and the electronic device. If the power adapter lacks both a protocol identifier for the first and second charging protocols but possesses a protocol identifier for the third charging protocol, the feedback information sent by the power adapter to the protocol chip is called the third feedback information. In this case, the third charging protocol is the first charging protocol successfully negotiated between the power adapter and the electronic device.
[0186] If the power adapter does not contain the same protocol identifier, it indicates that the power adapter does not support the charging protocol corresponding to that identifier. Therefore, upon receiving the protocol identifier, the power adapter will not send feedback information to the corresponding protocol chip.
[0187] Therefore, if the first power adapter does not contain the protocol identifier of the first charging protocol sent by the first protocol chip, the first power adapter will not send the first feedback information to the first protocol chip. Consequently, the first protocol chip will not receive the first feedback information.
[0188] At this point, the first protocol chip sends a protocol identifier for the second charging protocol (priority 2) to the first power adapter via the first Type-C interface. The first power adapter then checks whether it contains the protocol identifier for the second charging protocol. If the first power adapter does not support the second charging protocol, the first protocol chip sends a protocol identifier for the third charging protocol (priority 3) to the first power adapter via the first Type-C interface, and so on.
[0189] In other words, if the first protocol chip does not receive feedback information from the first power adapter, the first protocol chip will send the protocol identifiers of each charging protocol supported by the electronic device to the first power adapter in order of priority of the charging protocol, until the first power adapter and the electronic device successfully negotiate.
[0190] In one embodiment, if no feedback is received within a first time interval after the electronic device initially sends a protocol identifier to the power adapter, the electronic device will then send the next protocol identifier to the power adapter. In other words, if no feedback is received within the first time interval after the electronic device initially sends a protocol identifier to the power adapter, it indicates that the power adapter does not support the charging protocol corresponding to that protocol identifier, meaning that the negotiation between the electronic device and the power adapter has failed.
[0191] In one embodiment, within a first duration after the electronic device first sends a protocol identifier to the power adapter, the electronic device can send the same protocol identifier to the power adapter at a fixed frequency to negotiate the charging protocol with the power adapter. This increases the probability of successful negotiation between the electronic device and the power adapter.
[0192] S904, the first protocol chip sends the first query information to the first power adapter through the first Type-C interface.
[0193] The first query information is used to obtain the first charging parameters of the first power adapter.
[0194] In one embodiment, if the first charging protocol is the first charging protocol successfully negotiated between the first power adapter and the electronic device, then the first charging parameters include the maximum output voltage, maximum output current, and rated power corresponding to the first charging protocol.
[0195] S905, the first power adapter sends the first charging parameters to the first protocol chip through the first Type-C interface.
[0196] Based on this, the first protocol chip obtains the first charging parameters of the first power adapter.
[0197] S906. The second power adapter determines whether the protocol identifier of the first charging protocol exists in the second power adapter.
[0198] Specifically, after receiving the protocol identifier of the first charging protocol, the second power adapter will check whether the protocol identifier of the first charging protocol exists in the second power adapter, thereby determining whether the second power adapter supports the first charging protocol.
[0199] S907. If the second power adapter contains a protocol identifier for the first charging protocol, the second power adapter sends the first feedback information to the second protocol chip through the second Type-C interface.
[0200] This step can be referenced from the relevant description in S903 above. It should be understood that, compared with S903, the relevant modules involved in this step are the second power adapter, the second protocol chip, and the second Type-C interface.
[0201] S908, the second protocol chip sends the second query information to the second power adapter through the second Type-C interface.
[0202] The second query information is used to obtain the second charging parameters of the second power adapter. This step can be referenced from the relevant description in S904 above. It should be understood that, compared to S904, the relevant modules involved in this step are the second power adapter, the second protocol chip, and the second Type-C interface.
[0203] S909, the second power adapter sends the second charging parameters to the second protocol chip through the second Type-C interface.
[0204] The second charging parameter can be found in the relevant description in S703 above.
[0205] It should be noted that S902-S905 above describes the interaction process between the first power adapter and the first protocol chip, and S906-S909 describes the interaction process between the second power adapter and the second protocol chip. The principles of these two interaction processes are the same, and they can be executed simultaneously. This simultaneous execution ensures that the electronic device can simultaneously obtain the charging parameters of both the first and second power adapters. This ensures that both the first and second power adapters charge the electronic device simultaneously, thereby ensuring the normal operation of the charging process.
[0206] S704, the first protocol chip sends the first charging parameters to the processor, and the second protocol chip sends the second charging parameters to the processor.
[0207] The processor can determine, based on the first charging parameters and the second charging parameters, the charging chip that matches the first power adapter from among the multiple charging chips of the electronic device, and also determine the charging chip that matches the second power adapter.
[0208] S705 The processor determines the charging chip that matches each power adapter, as well as the target output voltage and target output current of each power adapter, based on the first charging parameters, the second charging parameters, the charging parameters of the first charging chip, the charging parameters of the second charging chip, and the battery power information.
[0209] The charging parameters of a charging chip may include: the input voltage, input current, output voltage, output current, and rated power of the charging chip, etc.
[0210] The battery's power information may include: remaining power, battery voltage, battery capacity, charging speed, etc.
[0211] In one embodiment, to maximize charging power, when determining the matching relationship between the power adapter and the charging chip, the processor matches the power adapter with the highest rated power among the first power adapter and the second power adapter with the charging chip with the highest rated power among the first charging chip and the second charging chip.
[0212] For example, consider a first power adapter with a rated power greater than that of a second power adapter. If the rated power of the first charging chip is greater than that of the second charging chip, then the charging chip matched with the first power adapter is the first charging chip, and the charging chip matched with the second power adapter is the second charging chip. If the rated power of the first charging chip is less than that of the second charging chip, then the charging chip matched with the first power adapter is the second charging chip, and the charging chip matched with the second power adapter is the first charging chip.
[0213] In one embodiment, the processor can determine the maximum output voltage in the charging parameters sent by the power adapter to the electronic device as the target output voltage of the power adapter.
[0214] For example, assuming the maximum output voltage in the first charging parameters sent by the first power adapter to the electronic device is 20V, then the first target output voltage of the first power adapter is 20V.
[0215] In one embodiment, the charging chip can determine the maximum target output current of the power adapter matched with the charging chip based on the rated power of the charging chip and the target output voltage of the power adapter matched with the charging chip.
[0216] For example, assuming the target output voltage of the first power adapter is 20V and the rated power of the charging chip matched with the first power adapter is 50W, the charging chip can determine that the maximum target output current of the first power adapter is 2.5A.
[0217] Figure 10 This illustration shows a schematic diagram of the changes in charging current and battery voltage over time during battery charging, as provided in an embodiment of this application.
[0218] In one embodiment, the battery charging process is a dynamically changing process. For example... Figure 10 As shown, based on the charging current and battery voltage, the battery charging process can be divided into: trickle charge stage, pre-charge stage, constant current charge (CC) stage, constant voltage charge (CV) stage, and stop charging stage. Figure 10 It can be seen that the battery voltage and the battery charging current are different at different charging stages.
[0219] By monitoring the battery's charge level, the charging chip can determine the current charging stage of the battery. It can then determine the required charging current for that stage and set this required current as the target output current. The charging chip then sends the target output current to the processor.
[0220] In one embodiment, the processor may store the charging parameters of each charging chip. Alternatively, when the processor receives the charging parameters of the power adapter sent by the protocol chip, it can acquire the charging parameters of each charging chip.
[0221] S706, the processor sends first charging information to the first power adapter through the first protocol chip and the first Type-C interface, and the processor sends second charging information to the second power adapter through the second protocol chip and the second Type-C interface.
[0222] The first charging information indicates that the first power adapter charges the electronic device using a first target output voltage and a first target output current through the first Type-C interface. The second charging information indicates that the second power adapter charges the electronic device using a second target output voltage and a second target output current through the second Type-C interface.
[0223] S707. Based on the matching of the first charging chip with the first power adapter and the matching of the second charging chip with the second power adapter, the processor sends first control information to the first switch module.
[0224] The first control information is used to control the first switch module to be in a first state. When the first switch module is in the first state, it can select the first charging path containing the first Type-C interface and the first charging chip, and the second charging path containing the second Type-C interface and the second charging chip. The first charging path and the second charging path are two independent charging paths.
[0225] In other words, if the first charging chip is matched with the first power adapter and the second charging chip is matched with the second power adapter, the processor controls the first switch module to be in the first state, thereby selecting the first charging path where the first Type-C interface and the first charging chip are located, and the second charging path where the second Type-C interface and the second charging chip are located.
[0226] Figure 11 This illustration shows one of the signal flow diagrams of an electronic device provided in an embodiment of this application.
[0227] In one embodiment, combined with Figure 6 ,like Figure 11 As shown, the processor 311 controls the first switch module 611 to select the first charging path where the first Type-C interface 111 and the first charging chip 313 are located. This may include the processor 311 controlling the first active terminal A1 of the first switch module 611 to connect with the first fixed terminal B1 of the first switch module 611. Based on this, the output current of the first power adapter 121 can flow to the battery 230 through the first charging path to charge the electronic device.
[0228] The processor 311 controls the first switch module 611 to select the second charging path containing the second Type-C interface 112 and the second charging chip 314. This may include the processor 311 controlling the second active terminal A2 of the first switch module 611 to connect to the fourth fixed terminal B4 of the first switch module 611. Based on this, the output current of the second power adapter 122 can flow to the battery 230 through the second charging path to charge the electronic device.
[0229] Figure 12 This illustration shows one of the structural schematic diagrams of a first switch module provided in an embodiment of this application.
[0230] In one embodiment, such as Figure 12 As shown, the first switch module 611 may include: a first sub-switch 1101, a second sub-switch 1102, a third sub-switch 1103, and a fourth sub-switch 1104. The first end a1 of the first sub-switch 1101 is connected to the first movable end A1 of the first switch module 611, and the second end a2 of the first sub-switch 1101 is connected to the first fixed end B1 of the first switch module 611. The first end b1 of the second sub-switch 1102 is connected to the first movable end A1 of the first switch module 611, and the second end b2 of the second sub-switch 1102 is connected to the second fixed end B2 of the first switch module 611. The first end c1 of the third sub-switch 1103 is connected to the second movable end A2 of the first switch module 611, and the second end c2 of the third sub-switch 1103 is connected to the third fixed end B3 of the first switch module 611. The first terminal d1 of the fourth sub-switch 1104 is connected to the second active terminal A2 of the first switch module 611, and the second terminal d2 of the fourth sub-switch 1104 is connected to the fourth fixed terminal B4 of the first switch module 611. The third terminals of each sub-switch can be connected to the processor 311. Specifically, the third terminals of each sub-switch can be connected to the processor 311 through the first control terminal of the first switch module.
[0231] Among them, the state of the first sub-switch 1101 is mutually exclusive with the state of the second sub-switch 1102, and the state of the third sub-switch 1103 is mutually exclusive with the state of the fourth sub-switch 1104.
[0232] For example, when the first sub-switch 1101 is in the ON state, the second sub-switch 1102 is in the OFF state; or, when the first sub-switch 1101 is in the OFF state, the second sub-switch 1102 is in the ON state. When the third sub-switch 1103 is in the ON state, the fourth sub-switch 1104 is in the OFF state; or, when the third sub-switch 1103 is in the OFF state, the fourth sub-switch 1104 is in the ON state.
[0233] In this context, a sub-switch being in the ON state means that its first terminal is connected to its second terminal. A sub-switch being in the OFF state means that its first terminal is not connected to its second terminal.
[0234] In one embodiment, continue as follows Figure 12 As shown, the processor 311 controls the connection of the first movable terminal A1 of the first switch module 611 to the first fixed terminal B1 of the first switch module 611, which may include: the processor 311 controlling the connection of the first terminal a1 of the first sub-switch 1101 to the second terminal a2 of the first sub-switch 1101. The processor 311 controls the connection of the second movable terminal A2 of the first switch module 611 to the fourth fixed terminal B4 of the first switch module 611, which may include: the processor 311 controlling the connection of the first terminal d1 of the fourth sub-switch 1104 to the second terminal d2 of the fourth sub-switch 1104.
[0235] The structures of the aforementioned sub-switches may be the same or different, and this application does not limit this in its embodiments. The following description, in conjunction with... Figure 13 The following is an example of how the structures of the various sub-switches are the same.
[0236] Figure 13 A schematic diagram of a sub-switch provided in an embodiment of this application is shown. Figure 14 This is a second schematic diagram of the structure of a first switch module provided in an embodiment of this application.
[0237] In one embodiment, such as Figure 13 and Figure 14As shown, each sub-switch 1200 (e.g., the first sub-switch 1101, the second sub-switch 1102, the third sub-switch 1103, or the fourth sub-switch 1104 described above) may include: a first transistor Q1 and a second transistor Q2. The first terminal of the first transistor Q1 is connected to a movable terminal 1201 in the first switch module (e.g., the first movable terminal A1 or the second movable terminal A2 described above), and the second terminal of the first transistor Q1 is connected to a fixed terminal 1202 in the first switch module (e.g., the first fixed terminal B1, the second fixed terminal B2, the third fixed terminal B3, or the fourth fixed terminal B4 described above). The third terminal of the first transistor Q1 is connected to the power supply terminal 1203, and the first terminal of the second transistor Q2 is connected to the power supply terminal 1203. The second terminal of the second transistor Q2 is connected to the ground terminal of the electronic device, and the third terminal of the second transistor Q2 is connected to the processor 311. Specifically, the first terminal of the first transistor Q1 is the first terminal of the sub-switch 1200, the second terminal of the first transistor Q1 is the second terminal of the sub-switch 1200, and the third terminal of the second transistor Q2 is the third terminal of the sub-switch 1200.
[0238] It should be understood that, since the first terminal of the first transistor Q1 is connected to an active terminal 1201 in the first switch module, and the active terminal 1201 in the first switch module is connected to the first Type-C interface 111 or the second Type-C interface 112, the first terminal of the first transistor Q1 in the first sub-switch 1101 and the first terminal of the first transistor Q1 in the second sub-switch 1102 are connected to the first Type-C interface 111, and the first terminal of the first transistor Q1 in the third sub-switch 1103 and the first terminal of the first transistor Q1 in the fourth sub-switch 1104 are connected to the second Type-C interface 112.
[0239] Since the second terminal of the first transistor Q1 is connected to a fixed terminal 1202 in the first switch module, and the fixed terminal 1202 in the first switch module is connected to the first charging chip 313 or the second charging chip 314, the second terminal of the first transistor Q1 in the first sub-switch 1101 and the second terminal of the first transistor Q1 in the third sub-switch 1103 are connected to the first charging chip 313, the second terminal of the first transistor Q1 in the second sub-switch 1102 and the second terminal of the first transistor Q1 in the fourth sub-switch 1104 are connected to the second charging chip 314.
[0240] In this example, the first transistor Q1 and the second transistor Q2 are transistors with different characteristics. For example, when the first transistor Q1 is an N-type transistor, the second transistor Q2 is a P-type transistor; or, when the first transistor Q1 is a P-type transistor, the second transistor Q2 is an N-type transistor. This article will use the example of the first transistor Q1 being a P-type transistor and the second transistor Q2 being an N-type transistor for illustration.
[0241] For example, continue as follows Figure 13 As shown, taking a sub-switch with a P-type transistor Q1 and an N-type transistor Q2 as an example, the power supply terminal 1203 can continuously provide a high level to the third terminal of the first transistor Q1 in the sub-switch, causing the first transistor Q1 to be in the off state. Thus, the first terminal and the second terminal of the sub-switch are not connected, meaning the sub-switch is in the off state, and the charging path between the Type-C interface and the charging chip is not connected. When it is necessary to control the sub-switch to be turned on, the processor 311 can provide a high level to the third terminal of the second transistor Q2 in the sub-switch, causing the second transistor Q2 to be turned on. At this time, since the second transistor Q2 is connected to the ground terminal, and the first terminal of the second transistor Q2 is connected to the third terminal of the first transistor Q1, the third terminal of the first transistor Q1 will be pulled low, causing the first transistor Q1 to be turned on. Thus, the first terminal and the second terminal of the sub-switch are connected, meaning the sub-switch is in the on state, and the charging path between the Type-C interface and the charging chip is connected.
[0242] The power supply terminal 1203 can be the power supply terminal of any module in the electronic device. The voltage provided by this power supply terminal only needs to meet the turn-on or turn-off conditions of the first transistor Q1.
[0243] In one embodiment, combined with Figures 11-13 As shown, the processor 311 controls the connection between the first terminal a1 and the second terminal a2 of the first sub-switch 1101. This can include the processor 311 providing a high-level signal to the third terminal of the second transistor Q2 in the first sub-switch 1101, causing the second transistor Q2 in the first sub-switch 1101 to be turned on, thereby turning on the first transistor Q1 in the first sub-switch 1101. This connects the first Type-C interface 111 and the first charging chip 313 in the first charging path.
[0244] During this process, the processor 311 can continuously provide a low level to the third terminal of the second transistor Q2 in the second sub-switch 1102, causing the second transistor Q2 in the second sub-switch 1102 to be in the off state, thereby keeping the first transistor Q1 in the second sub-switch 1102 in the off state. In this way, the second sub-switch 1102 can always be in the off state, and the charging path (which can be called the third charging path) where the first Type-C interface 111 and the second charging chip 314 are located will not be connected.
[0245] The processor 311 controls the connection between the first terminal d1 and the second terminal d2 of the fourth sub-switch 1104. This can include the processor 311 providing a high-level signal to the third terminal of the second transistor Q2 in the fourth sub-switch 1104, causing the second transistor Q2 in the fourth sub-switch 1104 to be turned on, thereby turning on the first transistor Q1 in the fourth sub-switch 1104. This connects the second Type-C interface 112 and the second charging chip 314 in the second charging path.
[0246] During this process, the processor 311 can continuously provide a low level to the third terminal of the second transistor Q2 in the third sub-switch 1103, causing the second transistor Q2 in the third sub-switch 1103 to be in the off state, thereby keeping the first transistor Q1 in the third sub-switch 1103 in the off state. In this way, the third sub-switch 1103 can remain in the off state, and the charging path (which can be called the fourth charging path) containing the second Type-C interface 112 and the first charging chip 313 will not be connected.
[0247] S708, the first switch module selects the first charging path and the second charging path based on the first control information.
[0248] S709. Based on the matching of the first charging chip and the second power adapter, and the matching of the second charging chip and the first power adapter, the processor sends second control information to the first switch module.
[0249] The second control information is used to control the first switch module to be in a second state. When the first switch module is in the second state, it can select either the third charging path where the first Type-C interface and the second charging chip are located, or the fourth charging path where the second Type-C interface and the first charging chip are located. The third and fourth charging paths are two independent charging paths.
[0250] In other words, if the first charging chip is matched with the second power adapter and the second charging chip is matched with the first power adapter, the processor controls the first switch module to be in the second state, thereby selecting the third charging path where the first Type-C interface and the second charging chip are located, as well as the fourth charging path where the second Type-C interface and the first charging chip are located.
[0251] Figure 15 This is a second schematic diagram of the signal flow of an electronic device provided in an embodiment of this application.
[0252] In one embodiment, combined with Figure 6 ,like Figure 15As shown, the processor 311 controls the first switch module 611 to select the third charging path where the first Type-C interface 111 and the second charging chip 314 are located. This may include the processor 311 controlling the first active terminal A1 of the first switch module 611 to connect with the second fixed terminal B2 of the first switch module 611. Based on this, the output current of the first power adapter 121 can flow to the battery 230 through the third charging path to charge the electronic device.
[0253] The processor 311 controls the first switch module 611 to select the fourth charging path containing the second Type-C interface 112 and the first charging chip 313. This can include the processor 311 controlling the second active terminal A2 of the first switch module 611 to connect to the third fixed terminal B3 of the first switch module 611. Based on this, the output current of the second power adapter 122 can flow to the battery 230 through the fourth charging path to charge the electronic device.
[0254] In one embodiment, continue as follows Figure 12 As shown, the processor 311 controls the connection between the first active terminal A1 of the first switch module 611 and the second fixed terminal B2 of the first switch module 611, which may include: the processor 311 controlling the connection between the first terminal b1 of the second sub-switch 1102 and the second terminal b2 of the second sub-switch 1102. The processor 311 controls the first switch module 611 to select the fourth charging path where the second Type-C interface 112 and the first charging chip 313 are located, which may include: the processor 311 controlling the connection between the first terminal c1 of the third sub-switch 1103 and the second terminal c2 of the third sub-switch 1103.
[0255] In one embodiment, combined with Figures 12-15 As shown, the processor 311 controls the connection between the first terminal b1 and the second terminal b2 of the second sub-switch 1102. This can include the processor 311 providing a high-level signal to the third terminal of the second transistor Q2 in the second sub-switch 1102, causing the second transistor Q2 in the second sub-switch 1102 to be turned on, thereby turning on the first transistor Q1 in the second sub-switch 1102. This connects the first Type-C interface 111 and the third charging path containing the second charging chip 314.
[0256] During this process, the processor 311 can continuously provide a low level to the third terminal of the second transistor Q2 in the first sub-switch 1101, causing the second transistor Q2 in the first sub-switch 1101 to be in the off state, thereby keeping the first transistor Q1 in the first sub-switch 1101 in the off state. In this way, the first sub-switch 1101 can always be in the off state, and the first charging path containing the first Type-C interface 111 and the first charging chip 313 will not be connected.
[0257] The processor 311 controls the connection between the first terminal c1 and the second terminal c2 of the third sub-switch 1103. This can include the processor 311 providing a high-level signal to the third terminal of the second transistor Q2 in the third sub-switch 1103, causing the second transistor Q2 in the third sub-switch 1103 to be turned on, thereby turning on the first transistor Q1 in the third sub-switch 1103. This connects the second Type-C interface 112 and the fourth charging path containing the first charging chip 313.
[0258] During this process, the processor 311 can continuously provide a low level to the third terminal of the second transistor Q2 in the fourth sub-switch 1104, causing the second transistor Q2 in the fourth sub-switch 1104 to be in the off state, thereby ensuring that the first transistor Q1 in the fourth sub-switch 1104 remains in the off state. Thus, the fourth sub-switch 1104 remains in the off state, and the second charging path containing the second Type-C interface 112 and the second charging chip 314 will not be connected.
[0259] S710, the first switch module selects the third and fourth charging paths based on the second control information.
[0260] S711, the first power adapter provides a first target output voltage and a first target output current to the first Type-C interface, and the second power adapter provides a second target output voltage and a second target output current to the second Type-C interface.
[0261] The first power adapter provides a first target output voltage and a first target output current to the first Type-C interface to charge the electronic device. The second power adapter provides a second target output voltage and a second target output current to the second Type-C interface to charge the electronic device.
[0262] It should be noted that S707-S708 or S709-S710 can be executed simultaneously with S706. Thus, when the first charging path and the second charging path, or the third charging path and the fourth charging path, are activated, the first power adapter and the second power adapter can promptly charge the electronic device with the corresponding target output voltage and target output current.
[0263] Figure 16 The third schematic diagram of a charging method provided in an embodiment of this application is shown.
[0264] In one embodiment, the first charging chip and the second charging chip in the electronic device simultaneously have both forward charging and reverse charging functions; or, the electronic device is a tablet computer, for example. (Combined with...) Figure 7 ,like Figure 16 As shown, after S701 above, the charging method provided in this application embodiment may further include:
[0265] S1601. Based on the first voltage being a first preset voltage or a second preset voltage, the processor determines that the device connected to the first Type-C interface is a first power adapter. Based on the second voltage being a third preset voltage, the processor determines that the device connected to the second Type-C interface is a device with data transmission function.
[0266] In one embodiment, when the protocol chip determines that the device connected to the corresponding Type-C interface is not a power adapter with charging function, the protocol chip will no longer engage in charging protocol negotiation or other charging-related information exchange with the device.
[0267] Based on this, when the second protocol chip determines that the device connected to the second Type-C interface is a device with data transmission function, the second protocol chip will no longer engage in charging protocol negotiation or other charging-related information exchange with the device with data transmission function.
[0268] S1602, the first protocol chip receives the first charging parameters sent by the first power adapter through the first Type-C interface.
[0269] For details, please refer to the relevant description in S703 above; this article will not repeat it here.
[0270] S1603, the first protocol chip sends the first charging parameters to the processor.
[0271] For details, please refer to the relevant description in S704 above; this article will not elaborate further.
[0272] S1604. The processor determines the charging chip that matches the first power adapter, as well as the first target output voltage and the first target output current of the first power adapter, based on the first charging parameters, the charging parameters of the first charging chip, and the charging parameters of the second charging chip.
[0273] In one embodiment, when the electronic device is connected to only one power adapter, the processor matches the power adapter with the charging chip with the highest rated power among the various charging chips in order to maximize charging power.
[0274] For example, if the rated power of the first charging chip is greater than the rated power of the second charging chip, then the charging chip matched with the first power adapter is the first charging chip. If the rated power of the second charging chip is greater than the rated power of the first charging chip, then the charging chip matched with the first power adapter is the second charging chip.
[0275] Specifically, the principle by which the processor determines the first target output voltage and the first target output current of the first power adapter in this step can be found in the relevant description in S705 above, which will not be repeated here.
[0276] S1605, The processor sends the first charging information to the first power adapter through the first protocol chip and the first Type-C interface.
[0277] For details, please refer to the relevant description in S706 above; this article will not elaborate further.
[0278] S1606, The processor sends the first control information to the first switch module.
[0279] Figure 17 The third illustration shows a schematic diagram of the signal flow of an electronic device provided in an embodiment of this application.
[0280] In one embodiment, such as Figure 17 As shown, the first switch module 611 selects the first charging path where the first Type-C interface 111 and the first charging chip 313 are located based on the first control information, and selects the second charging path where the second Type-C interface 112 and the second charging chip 314 are located.
[0281] Specifically, the first switch module 611 selects the first charging path containing the first Type-C interface 111 and the first charging chip 313, allowing the output current of the first power adapter 121 to flow through the first charging path to the battery 230, charging the electronic device's battery 230. The first switch module 611 also selects the second charging path containing the second Type-C interface 112 and the second charging chip 314, allowing the current from the battery 230 to flow through the second charging path to the second Type-C interface 112, supplying power to the data transmission device 1701, enabling data transmission between the electronic device and the data transmission device.
[0282] Figure 18 The fourth illustration shows a schematic diagram of the signal flow of an electronic device provided in an embodiment of this application.
[0283] In another embodiment, taking the example of a second charging chip matched with a first power adapter and a second Type-C interface connected to a device with data transmission capabilities, the processor sends second control information to the first switching module. For example... Figure 18 As shown, the first switch module 611 selects the third charging path where the first Type-C interface 111 and the second charging chip 314 are located based on the second control information, and selects the fourth charging path where the second Type-C interface 112 and the first charging chip 313 are located.
[0284] Specifically, the first switch module 611 selects the third charging path where the first Type-C interface 111 and the second charging chip 314 are located. The output current of the first power adapter 121 can flow to the battery 230 through the third charging path to charge the battery 230 of the electronic device. The first switch module 611 also selects the fourth charging path where the second Type-C interface 112 and the first charging chip 313 are located. The current from the battery 230 can flow to the second Type-C interface 112 through the fourth charging path to power the device 1701 with data transmission function, enabling data transmission between the electronic device and the device with data transmission function.
[0285] exist Figure 17 and Figure 18 In the illustrated embodiment, the first Type-C interface 111 can be referred to as the first target interface, and the second Type-C interface 112 can be referred to as the second target interface. The first active terminal of the first switch module 611 can be referred to as the first target active terminal, and the second active terminal of the first switch module 611 can be referred to as the second target active terminal. The first fixed terminal of the first switch module 611 can be referred to as the first target fixed terminal, the fourth fixed terminal of the first switch module 611 can be referred to as the second target fixed terminal, the second fixed terminal of the first switch module 611 can be referred to as the third target fixed terminal, and the third fixed terminal of the first switch module 611 can be referred to as the fourth target fixed terminal.
[0286] S1607, the first switch module selects the first charging path and the second charging path based on the first control information.
[0287] In another embodiment, the first switch module can select the third charging path and the fourth charging path based on the second control information.
[0288] S1608, The first power adapter provides a first target output voltage and a first target output current to the first Type-C interface.
[0289] It should be noted that S1606-S1607 and S1605 can be executed simultaneously. Thus, when the first charging path and the second charging path, or the third charging path and the fourth charging path, are activated, the first power adapter and the second power adapter can promptly charge the battery of the electronic device with the corresponding target output voltage and target output current.
[0290] Figure 19 The fifth illustration shows a schematic diagram of the signal flow of an electronic device provided in an embodiment of this application.
[0291] In another embodiment, an example is taken where a first Type-C interface is connected to a device with data transmission capabilities, and a second Type-C interface is connected to a second power adapter. Figure 19 As shown, the second power adapter 122 is matched with the second charging chip 314. The processor 311 sends the first control information to the first switch module 611 to control the first switch module 611 to select the first charging path where the first Type-C interface 111 and the first charging chip 313 are located, and to select the second charging path where the second Type-C interface 112 and the second charging chip 314 are located.
[0292] Based on this, the output current of the second power adapter 122 can flow to the battery 230 via the second charging path to charge the battery 230 of the electronic device, and the output current of the battery 230 can flow to the first Type-C interface 111 via the first charging path to supply power to the device 1701 with data transmission function, so that the electronic device and the device 1701 with data transmission function can transmit data.
[0293] Figure 20 This is shown as the sixth schematic diagram of the signal flow of an electronic device provided in an embodiment of this application.
[0294] In another embodiment, an example is taken where a first Type-C interface is connected to a device with data transmission capabilities, and a second Type-C interface is connected to a second power adapter. Figure 20 As shown, the second power adapter 122 is matched with the first charging chip 313. The processor 311 sends second control information to the first switch module 611 to control the first switch module 611 to select the third path where the first Type-C interface 111 and the second charging chip 314 are located, and to select the fourth charging path where the second Type-C interface 112 and the first charging chip 313 are located.
[0295] Based on this, the output current of the second power adapter 122 can flow to the battery 230 through the second charging path to charge the electronic device, and the current of the battery 230 can flow to the first Type-C interface 111 through the first path to supply power to the device 1701 with data transmission function, so that the electronic device and the device 1701 with data transmission function can transmit data.
[0296] exist Figure 19 and Figure 20In the illustrated embodiment, the first Type-C interface 111 can be referred to as the second target interface, and the second Type-C interface 112 can be referred to as the first target interface. The first active terminal of the first switch module 611 can be referred to as the second target active terminal, the second active terminal of the first switch module 611 can be referred to as the first target active terminal, the third fixed terminal of the first switch module 611 can be referred to as the first target fixed terminal, the second fixed terminal of the first switch module 611 can be referred to as the second target fixed terminal, the fourth fixed terminal of the first switch module 611 can be referred to as the third target fixed terminal, and the first fixed terminal of the first switch module 611 can be referred to as the fourth target fixed terminal.
[0297] Furthermore, based on the above hardware structure, the hardware structure of the electronic device will differ if the first and second charging chips in the electronic device do not have reverse charging functionality, or if the types of electronic devices are different. The following section will combine... Figure 21 Introduction:
[0298] Figure 21 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.
[0299] In one embodiment, the first and second charging chips do not have reverse charging functionality, or the electronic device is a laptop computer. (Combined with...) Figure 6 ,like Figure 21 As shown, the improved charging circuit may further include: a second switch module 2001, a third switch module 2002, and a power supply chip 2003. The first terminal of the power supply chip 2003 is connected to the battery 230. The second terminal of the power supply chip 2003 is connected to the first terminals of the second switch module 2001 and the third switch module 2002. The third terminal of the power supply chip is connected to the processor. Figure 21 (Not shown in the image). The second terminal of the second switch module 2001 is connected to the first Type-C interface 111. The second terminal of the third switch module 2002 is connected to the second Type-C interface 112. The third terminal of the second switch module is connected to the processor, and the third terminal of the third switch module is also connected to the processor. Figure 21 (Not shown in the image).
[0300] The power supply chip 2003 can be a chip with boost, buck, or buck-boost functions; the power supply chip 2003 has a reverse charging function, which can convert the voltage of the battery 230 into the voltage required by the Type-C interface for connecting to devices with data transmission functions.
[0301] Figure 22 The fourth schematic flowchart of a charging method provided in an embodiment of this application is shown.
[0302] In one embodiment, a laptop computer is used as an example of an electronic device. (Combined with...) Figure 16 ,like Figure 22 As shown, after S1605 above, the charging method provided in this application embodiment may further include:
[0303] S2201, The processor sends third control information to the first switch module.
[0304] The third control information is used to control the first switch module 611 to be in the third state. When the first switch module is in the third state, it can select the first Type-C interface and the first charging path where the first charging chip is located.
[0305] S2202, the first switch module selects the first charging path based on the third control information.
[0306] S2203, The processor sends the fourth control information to the third switch module.
[0307] The fourth control information is used to control the third switch module to be in the on state so as to select the power supply path between the second Type-C interface and the power supply chip.
[0308] S2204, the third switch module selects the power supply path between the second Type-C interface and the power supply chip based on the fourth control information.
[0309] It should be noted that S2201-S2202 and S2203-S2204 can be executed simultaneously.
[0310] Figure 23 The seventh illustration shows a schematic diagram of the signal flow of an electronic device provided in an embodiment of this application.
[0311] In one embodiment, combined with Figure 21 and Figure 22 ,like Figure 23 As shown, the first switch module 611 activates the first charging path based on the third control information. This allows the output current of the first power adapter 121 to flow through the first charging path to the battery 230, charging the electronic device's battery. The third switch module 2002 activates the power supply path between the second Type-C interface 112 and the power supply chip 2003 based on the fourth control information. This allows the current output from the battery 230 to flow through the power supply chip 2003 to the second Type-C interface 112, supplying power to the data transmission device 1701 connected to the second Type-C interface 112, enabling data transmission between the electronic device and the data transmission device 1701.
[0312] Figure 24This is shown as the eighth schematic diagram of the signal flow of an electronic device provided in an embodiment of this application.
[0313] In another embodiment, an example is taken where a first Type-C interface is connected to a first power adapter, and a second Type-C interface is connected to a device with data transmission capabilities. Combined with... Figure 21 ,like Figure 24 As shown, if the second charging chip 314 is matched with the first power adapter 121, and the second Type-C interface 112 is connected to the device 1701 with data transmission function, then the processor 311 sends fifth control information to the first switch module 611, so that the first switch module 611 turns on the third charging path based on the fifth control information. In this way, the output current of the first power adapter 121 can flow to the battery 230 through the third charging path to charge the battery 230 of the electronic device.
[0314] Simultaneously, the processor 311 sends a fourth control message to the third switch module 2002 to establish a power supply path between the second Type-C interface 112 and the power supply chip 2003. In this way, the current output from the battery 230 flows through the power supply chip 2003 to the second Type-C interface 112, supplying power to devices with data transmission capabilities connected to the second Type-C interface 112, enabling data transmission between the electronic device and such devices.
[0315] exist Figure 23 and Figure 24 In the illustrated embodiment, the first Type-C interface 111 can be referred to as the first target interface, and the second Type-C interface 112 can be referred to as the second target interface. The first active terminal of the first switch module 611 can be referred to as the first target active terminal, the second active terminal of the first switch module 611 can be referred to as the second target active terminal, the first fixed terminal of the first switch module 611 can be referred to as the first target fixed terminal, the fourth fixed terminal of the first switch module 611 can be referred to as the second target fixed terminal, the second fixed terminal of the first switch module 611 can be referred to as the third target fixed terminal, and the third fixed terminal of the first switch module 611 can be referred to as the fourth target fixed terminal. The third switch module 2002 can be referred to as the target module.
[0316] Figure 25 This is shown as diagram nine of the signal flow diagrams of an electronic device provided in an embodiment of this application.
[0317] In another embodiment, an example is taken where the second Type-C interface is connected to the second power adapter, and the first Type-C interface is connected to a device with data transmission capabilities. Combined with... Figure 21 ,like Figure 25As shown, if the second power adapter 122 matches the first charging chip 313, the processor 311 sends a sixth control message to the first switch module 611, causing the first switch module 611 to activate the fourth charging path based on the sixth control message. In this way, the output current of the second power adapter 122 can flow to the battery 230 via the fourth charging path, charging the battery 230 of the electronic device.
[0318] Simultaneously, the processor 311 sends a seventh control message to the second switch module 2001 to select the power supply path between the first Type-C interface 111 and the power supply chip 2003. Thus, the current output from the battery 230 flows through the power supply chip 2003 to the first Type-C interface 111, supplying power to the data transmission-enabled device 1701 connected to the first Type-C interface 111, enabling data transmission between the electronic device and the data transmission-enabled device 1701.
[0319] Figure 26 The tenth illustration shows a schematic diagram of the signal flow of an electronic device provided in an embodiment of this application.
[0320] In another embodiment, an example is taken where the second Type-C interface is connected to the second power adapter, and the first Type-C interface is connected to a device with data transmission capabilities. Combined with... Figure 21 ,like Figure 26 As shown, if the second power adapter 122 matches the second charging chip 314, the processor 311 sends an eighth control message to the first switch module 611, causing the first switch module 611 to select the second charging path based on the eighth control message. In this way, the output current of the second power adapter 122 can flow to the battery 230 via the second path, charging the battery 230 of the electronic device.
[0321] Simultaneously, the processor 311 sends a seventh control message to the second switch module 2001 to establish a power supply path between the first Type-C interface 111 and the power supply chip 2003. In this way, the current output from the battery 230 flows through the power supply chip 2003 to the first Type-C interface 111, supplying power to the data transmission-enabled device 1701 connected to the first Type-C interface 111, enabling data transmission between the electronic device and the data transmission-enabled device 1701.
[0322] exist Figure 25 and Figure 26In the illustrated embodiment, the first Type-C interface 111 can be referred to as the second target interface, and the second Type-C interface 112 can be referred to as the first target interface. The first active terminal of the first switch module 611 can be referred to as the second target active terminal, the second active terminal of the first switch module 611 can be referred to as the first target active terminal, the third fixed terminal of the first switch module 611 can be referred to as the first target fixed terminal, the second fixed terminal of the first switch module 611 can be referred to as the second target fixed terminal, the fourth fixed terminal of the first switch module 611 can be referred to as the third target fixed terminal, and the first fixed terminal of the first switch module 611 can be referred to as the fourth target fixed terminal. The second switch module 2001 can be referred to as the target module.
[0323] Figure 27 The third illustration shows a hardware structure diagram of an electronic device provided in an embodiment of this application.
[0324] Furthermore, based on any of the above embodiments, such as Figure 27 As shown, the improved charging circuit 610 may further include a fourth switch module 2600. The first terminal of the fourth switch module 2600 is connected to the first terminal of the first charging chip 313, and the second terminal of the fourth switch module 2600 is connected to the first terminal of the second charging chip 314. The third terminal of the fourth switch module is connected to the processor. Figure 27 (Not shown in the image).
[0325] In one embodiment, if the first and second charging chips have reverse charging functionality, or if the electronic device is a tablet computer and either the first or second Type-C interface is connected to a power adapter, and the other Type-C interface is connected to an external device, then if the rated power of the power adapter is greater than the rated power of either charging chip, the processor can control the first switching module to select either charging path and control the first terminal of the fourth switching module to connect to the second terminal of the fourth switching module, thereby connecting the first and second charging chips in parallel. In this way, during charging, the power adapter can charge the electronic device at an output power closer to its rated power, achieving fast charging.
[0326] In another embodiment, where the first and second charging chips do not have reverse charging functionality, or where the electronic device is a laptop computer (i.e., the improved charging circuit also includes a power supply chip), if one Type-C interface of the electronic device is connected to a power adapter, and the other Type-C interface is connected to a device with data transmission capabilities, and the rated power of the power adapter is greater than the rated power of either charging chip, then the processor can control the first switching module to select either charging path and control the first terminal of the fourth switching module to connect to the second terminal of the fourth switching module, thus connecting the first and second charging chips in parallel. In this way, during charging, the power adapter can charge the electronic device at an output power closer to its rated power, achieving fast charging.
[0327] For example, consider a first Type-C interface connected to a first power adapter, where the rated power of the first power adapter is greater than the rated power of any charging chip. The processor controls the first switching module to select the first charging path, and the processor also controls the first terminal of the fourth switching module to connect to the second terminal of the fourth switching module. Based on this, the current output from the first power adapter flows through the first charging path and the second charging chip to the battery, charging the electronic device.
[0328] Furthermore, based on any of the above embodiments, the electronic device provided in this application may further include a third Type-C interface. The third Type-C interface can connect to a power adapter or an electronic device with data transmission capabilities. The improved charging circuit may further include a fifth switch module, a third charging chip, and a third protocol chip.
[0329] Figure 28 The fourth illustration shows a hardware structure diagram of an electronic device provided in an embodiment of this application.
[0330] In one embodiment, combined with Figure 6 ,like Figure 28 As shown, the electronic device provided in this application embodiment may further include a third Type-C interface 2701. The improved charging circuit 610 may further include: a third protocol chip 2702, a third charging chip 315, and a fifth switch module 2704. The third charging chip 315 may have both forward charging and reverse charging functions, or the third charging chip 315 may have a forward charging function but not a reverse charging function.
[0331] Specifically, the first end of the third Type-C interface 2701 is connected to the first end of the third protocol chip 2702 and the first end of the fifth switch module 2704. The first end of the third Type-C interface 2701 is also connected to the processor 311. Figure 28(Not shown in the image). The second terminal of the third protocol chip 2702 is connected to the processor 311. The first terminal of the third charging chip 315 is connected to the second terminal of the fifth switch module 2704, and the second terminal of the third charging chip 315 is connected to the battery 230. The third terminal of the third charging chip 315 is connected to the processor 311. Figure 28 (Not shown in the image). Processor 311 is also connected to the third terminal of the fifth switch module 2704 (…). Figure 28 (Not shown in the image).
[0332] The third Type-C interface can be used to connect a third power adapter, or it can be used to connect a device with data transmission capabilities. Figure 28 The example shown is that the first end of the first Type-C interface 111 is connected to the first power adapter 121, the second end of the second Type-C interface 112 is connected to the second power adapter 122, and the third Type-C interface 2701 is connected to the third power adapter 123.
[0333] In this embodiment, when at least one of the first and second Type-C interfaces in the electronic device is connected to the power adapter, the charging principle of the electronic device can be referred to the relevant description in any of the above embodiments, and will not be repeated here.
[0334] Figure 29 This is shown as eleventh of a schematic diagram illustrating the signal flow of an electronic device according to an embodiment of this application.
[0335] In one embodiment, combined with Figure 28 ,like Figure 29 As shown, when the third Type-C interface 2701 is connected to the third power adapter 123, the processor 311 controls the first terminal of the fifth switch module 2704 to connect to the second terminal of the fifth switch module 2704, thereby enabling the third Type-C interface 2701 to conduct with the third charging chip 315. In this way, the output current of the third power adapter 123 can flow through the third Type-C interface 2701, the fifth switch module 2704, and the third charging chip 315 to the battery 230, charging the battery 230 of the electronic device.
[0336] It should be noted that the third charging chip can be compatible with any type of third power adapter. Therefore, when an electronic device is connected to the third power adapter for charging via the third Type-C interface, the third power adapter can be directly matched with the third charging chip.
[0337] Specifically, during the charging process of an electronic device connected to a third power adapter via a third Type-C interface, the third protocol chip negotiates a charging protocol with the third power adapter to determine the charging protocol supported by both the electronic device and the third power adapter. This allows the electronic device to obtain the third charging parameters of the third power adapter. Based on these parameters, the charging parameters of the third charging chip, and the battery's charge level, the electronic device determines the third target output voltage and third target output current of the third power adapter. After determining the third target output voltage and third target output current, the electronic device sends third charging information to the third power adapter, instructing the third power adapter to charge the electronic device via the third Type-C interface with the third target output voltage and third target output current.
[0338] It should be noted that the specific process in this embodiment can be referred to the relevant descriptions in S703-S711 above, and will not be repeated here.
[0339] Figure 30 The image shows a schematic diagram of the signal flow of an electronic device according to an embodiment of this application.
[0340] In one embodiment, the third charging chip has reverse charging functionality, or the electronic device is a tablet computer. (Combined with...) Figure 28 ,like Figure 30 As shown, when the third Type-C interface 2701 is connected to a device with data transmission capabilities, the processor 311 controls the first terminal of the fifth switch module 2704 to connect to the second terminal of the fifth switch module 2704, thereby enabling the third Type-C interface 2701 to conduct with the third charging chip 315. In this way, the output current of the battery 230 flows through the third charging chip 315 and the fifth switch module 2704 to the third Type-C interface 2701, supplying power to the device 1701 with data transmission capabilities, thus enabling data transmission between the electronic device and the device 1701 with data transmission capabilities.
[0341] Figure 31 The fifth illustration shows a hardware structure diagram of an electronic device provided in an embodiment of this application.
[0342] In one embodiment, the third charging chip does not have reverse charging functionality, or the electronic device is a laptop computer. (Combined with...) Figure 21 and Figure 28 ,like Figure 31As shown, the improved charging circuit may further include: a sixth switch module 3001. The first terminal of the sixth switch module 3001 is connected to the second terminal of the power supply chip 2003, the second terminal of the sixth switch module 3001 is connected to the third Type-C interface 2701, and the third terminal of the sixth switch module 3001 is connected to the processor 311. Figure 31 (Not shown in the image).
[0343] Figure 32 The diagram shown is a schematic diagram of the signal flow of an electronic device provided in an embodiment of this application.
[0344] In one embodiment, the third charging chip does not have reverse charging functionality, or the electronic device is a laptop computer. (Combined with...) Figure 31 ,like Figure 32 As shown, when the third Type-C interface 2701 is connected to a device with data transmission capabilities, the processor 311 controls the first terminal of the sixth switch module 3001 to connect to the second terminal of the sixth switch module 3001, thus establishing a power supply path between the third Type-C interface 2701 and the power supply chip 2003. In this way, the current output from the battery 230 flows through the power supply chip 2003 to the third Type-C interface 2701, supplying power to the data transmission-enabled device 1701 connected to the third Type-C interface 2701, enabling data transmission between the electronic device and the data transmission-enabled device 1701.
[0345] In one embodiment, any one of the second, third, fourth, fifth, and sixth switch modules described herein may include a third transistor. The first terminal of the third transistor may be the first terminal of the switch module, the second terminal of the third transistor may be the second terminal of the switch module, and the third terminal of the third transistor may be the third terminal of the switch module.
[0346] For example, taking an N-type transistor as the third transistor, the processor controls the connection between the first terminal of a switching module and the second terminal of the switching module, which may include: the processor providing a high level to the third terminal of the third transistor in the switching module, causing the third transistor to conduct.
[0347] In summary, when each Type-C port in the electronic device provided in this application can be connected to a power adapter, the electronic device can establish a charging path between each Type-C port and its corresponding charging chip. These charging paths are independent of each other. Thus, during a single charging cycle, multiple power adapters can simultaneously charge the electronic device, ensuring maximum input power, improving charging speed, and meeting the demands of fast charging.
[0348] In the several embodiments provided in this application, it should be understood that the disclosed circuits and devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or modules may be electrical, mechanical, or other forms.
[0349] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located on one device or distributed across multiple devices. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0350] In addition, the functional modules in the various embodiments of this application can be integrated into one device, or each module can exist physically separately, or two or more modules can be integrated into one device.
[0351] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A charging circuit, characterized in that, include: The processor, the first protocol chip, the second protocol chip, the first charging chip, the second charging chip, and the first switch module; The first end of the first protocol chip is used to connect to the first Type-C interface, and the second end of the first protocol chip is connected to the processor; The first end of the second protocol chip is used to connect to the second Type-C interface, and the second end of the second protocol chip is connected to the processor; The first movable terminal of the first switch module is used to connect to the first Type-C interface, the first fixed terminal and the third fixed terminal of the first switch module are connected to the first terminal of the first charging chip, the second terminal of the first charging chip is used to connect to the battery, and the third terminal of the first charging chip is connected to the processor. The second active terminal of the first switch module is used to connect to the second Type-C interface, the second fixed terminal and the fourth fixed terminal of the first switch module are connected to the first terminal of the second charging chip, the second terminal of the second charging chip is used to connect to the battery, and the third terminal of the second charging chip is connected to the processor. The control terminal of the first switch module is connected to the processor; The processor is configured to: when the first Type-C interface is connected to the first power adapter, the second Type-C interface is connected to the second power adapter, and the first power adapter is matched with the first charging chip, and the second power adapter is matched with the second charging chip, control the first movable terminal of the first switch module to connect to the first fixed terminal of the first switch module, and control the second movable terminal of the first switch module to connect to the fourth fixed terminal of the first switch module. When the first Type-C interface is connected to the first power adapter, the second Type-C interface is connected to the second power adapter, and the first power adapter is matched with the second charging chip, and the second power adapter is matched with the first charging chip, the first active terminal is controlled to connect to the second fixed terminal of the first switch module, and the second active terminal is controlled to connect to the third fixed terminal of the first switch module.
2. The charging circuit according to claim 1, characterized in that, The processor is further configured to: control the first movable terminal of the first switch module to be connected to the first fixed terminal of the first switch module, and control the second movable terminal of the first switch module not to be connected to either fixed terminal of the first switch module.
3. The charging circuit according to claim 1, characterized in that, The processor is further configured to: control the first movable terminal of the first switch module to be connected to the second fixed terminal of the first switch module, and control the second movable terminal of the first switch module not to be connected to any fixed terminal of the first switch module.
4. The charging circuit according to claim 1, characterized in that, The processor is further configured to: control the second movable terminal of the first switch module to be connected to the third fixed terminal of the first switch module, and control the first movable terminal of the first switch module not to be connected to any fixed terminal of the first switch module.
5. The charging circuit according to claim 1, characterized in that, The processor is further configured to: control the second movable terminal of the first switch module to be connected to the fourth fixed terminal of the first switch module, and control the first movable terminal of the first switch module not to be connected to any fixed terminal of the first switch module.
6. The charging circuit according to any one of claims 1-5, characterized in that, The first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch; The first end of the first sub-switch is connected to the first movable end of the first switch module, and the second end of the first sub-switch is connected to the first fixed end of the first switch module. The first end of the second sub-switch is connected to the first movable end of the first switch module, and the second end of the second sub-switch is connected to the second fixed end of the first switch module. The first end of the third sub-switch is connected to the second movable end of the first switch module, and the second end of the third sub-switch is connected to the third fixed end of the first switch module. The first end of the fourth sub-switch is connected to the second movable end of the first switch module, and the second end of the fourth sub-switch is connected to the fourth fixed end of the first switch module. The third terminal of each sub-switch is connected to the control terminal of the first switch module.
7. The charging circuit according to claim 6, characterized in that, The processor is specifically used to: control the first sub-switch and the fourth sub-switch to be turned on, and control the second sub-switch and the third sub-switch to be turned off.
8. The charging circuit according to claim 6, characterized in that, The processor is specifically used to: control the second sub-switch and the third sub-switch to be turned on, and control the first sub-switch and the fourth sub-switch to be turned on.
9. The charging circuit according to claim 6, characterized in that, The processor is specifically used to: control the first sub-switch to be turned on, and control the second sub-switch, the third sub-switch, and the fourth sub-switch to be turned off.
10. The charging circuit according to claim 6, characterized in that, The processor is specifically used to: control the second sub-switch to be turned on, and control the first sub-switch, the third sub-switch, and the fourth sub-switch to be turned off.
11. The charging circuit according to claim 6, characterized in that, The processor is specifically used to: control the third sub-switch to be turned on, and control the first sub-switch, the second sub-switch, and the fourth sub-switch to be turned off.
12. The charging circuit according to claim 6, characterized in that, The processor is specifically used to: control the fourth sub-switch to be turned on, and control the first sub-switch, the second sub-switch, and the third sub-switch to be turned off.
13. The charging circuit according to claim 6, characterized in that, Each of the sub-switches includes: a first transistor and a second transistor; the first transistor is an N-type transistor and the second transistor is a P-type transistor; or, the second transistor is an N-type transistor and the first transistor is a P-type transistor; The first terminal of the first transistor is the first terminal of the sub-switch, the second terminal of the first transistor is the second terminal of the sub-switch, and the third terminal of the first transistor is connected to the first terminal of the second transistor and the power supply terminal of the electronic device. The second terminal of the second transistor is grounded, and the third terminal of the second transistor is connected to the processor.
14. The charging circuit according to any one of claims 1-5, characterized in that, The charging circuit also includes: a power supply chip, a second switch module, and a third switch module; The first terminal of the power supply chip is used to connect to the battery, the second terminal of the power supply chip is connected to the first terminal of the second switch module and the first terminal of the third switch module, and the third terminal of the power supply chip is connected to the processor. The second end of the second switch module is used to connect to the first Type-C interface, and the third end of the second switch module is connected to the processor; The second end of the third switch module is used to connect to the second Type-C interface, and the third end of the third switch module is connected to the processor.
15. The charging circuit according to claim 14, characterized in that, The charging circuit also includes a fourth switching module; The first end of the fourth switch module is connected to the first end of the first charging chip, the second end of the fourth switch module is connected to the first end of the second charging chip, and the third end of the fourth switch module is connected to the processor.
16. The charging circuit according to claim 15, characterized in that, The charging circuit also includes a third protocol chip, a third charging chip, and a fifth switch module; The first end of the third protocol chip is used to connect to the third Type-C interface, and the second end of the third protocol chip is connected to the processor. The first end of the fifth switch module is used to connect to the third Type-C interface, the second end of the fifth switch module is connected to the first end of the third charging chip, and the second end of the third charging chip is used to connect to the battery; The third terminal of the fifth switch module and the third terminal of the third charging chip are both connected to the processor.
17. The charging circuit according to claim 16, characterized in that, The charging circuit also includes a sixth switch module; The first end of the sixth switch module is connected to the second end of the power supply chip, the second end of the sixth switch module is used to connect to the third Type-C interface, and the third end of the sixth switch module is connected to the processor.
18. The charging circuit according to claim 17, characterized in that, Any one of the following switching modules—the second, third, fourth, fifth, and sixth—includes a third transistor; The first terminal of the third transistor is the first terminal of the switching module, the second terminal of the third transistor is the second terminal of the switching module, and the third terminal of the third transistor is the third terminal of the switching module.
19. A charging method, characterized in that, The charging circuit applied to any one of claims 1-18, the charging method comprising: When the first Type-C interface is connected to the first power adapter, the second Type-C interface is connected to the second power adapter, and the first power adapter is matched with the first charging chip, and the second power adapter is matched with the second charging chip, the processor controls the first active terminal of the first switch module to connect to the first fixed terminal of the first switch module, and controls the second active terminal of the first switch module to connect to the fourth fixed terminal of the first switch module. When the first Type-C interface is connected to the first power adapter, the second Type-C interface is connected to the second power adapter, and the first power adapter is matched with the second charging chip, and the second power adapter is matched with the first charging chip, the processor controls the first active terminal to connect to the second fixed terminal of the first switch module, and controls the second active terminal to connect to the third fixed terminal of the first switch module. The processor sends first charging information to the first power adapter and second charging information to the second power adapter; wherein the first charging information is used to instruct the first power adapter to charge the battery of the electronic device with a first target output voltage and a first target output current, and the second charging information is used to instruct the second power adapter to charge the battery of the electronic device with a second target output voltage and a second target output current.
20. The charging method according to claim 19, characterized in that, The first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch; The processor controls the connection between the first active end and the first fixed end, including: the processor controls the first sub-switch to be turned on; The processor controls the connection between the second active terminal and the fourth fixed terminal, including: the processor controls the fourth sub-switch to be turned on; The processor controls the connection between the first active terminal and the second fixed terminal, including: the processor controls the second sub-switch to be turned on; The processor controls the connection between the second active terminal and the third fixed terminal, including: the processor controls the third sub-switch to be turned on.
21. The charging method according to claim 20, characterized in that, Each of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch includes a first transistor and a second transistor; the power supply terminal of the electronic device continuously provides an operating level to the third terminal of the first transistor in each sub-switch; The processor controls the target sub-switch in the first switching module to turn on, including: The processor provides an operating level to the third terminal of the second transistor of the target sub-switch; wherein the target sub-switch is any one of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch.
22. The charging method according to any one of claims 19-21, characterized in that, The charging method further includes: The processor acquires a first charging parameter of the first power adapter and a second charging parameter of the second power adapter; wherein, the first charging parameter includes a first rated power corresponding to a first target protocol successfully negotiated between the first power adapter and the first protocol chip, and the second charging parameter includes a second rated power corresponding to a first target protocol successfully negotiated between the second power adapter and the second protocol chip. When the rated power of the first charging chip is greater than the rated power of the second charging chip, and the first rated power is greater than the second rated power, the processor determines that the first charging chip is matched with the first power adapter, and the second charging chip is matched with the second power adapter. When the rated power of the first charging chip is greater than the rated power of the second charging chip, and the first rated power is less than the second rated power, the processor determines that the first charging chip is matched with the second power adapter, and the second charging chip is matched with the first power adapter.
23. The charging method according to claim 22, characterized in that, The charging circuit also includes a fifth switching module; The charging method further includes: When the third Type-C interface is connected to the third power adapter, the processor controls the fifth switch module to turn on and sends third charging information to the third power adapter; The third charging information is used to instruct the third power adapter to charge the battery of the electronic device with a third target output voltage and a third target output current.
24. A charging method, characterized in that, The charging circuit applied to any one of claims 1-18, the charging method comprising: When the first target interface is connected to the power adapter, the second target interface is connected to a device with data transmission function, and the power adapter is matched with the first charging chip, the processor controls the first target active terminal of the first switch module to connect to the first target fixed terminal of the first switch module, and controls the second target active terminal of the first switch module to connect to the second target fixed terminal of the first switch module. Wherein, the first target interface is one of a first Type-C interface and a second Type-C interface, and the second target interface is the other of the first Type-C interface and the second Type-C interface; the first target active terminal is one of the two active terminals of the first switch module, and the first target active terminal is connected to the first target interface; the second target active terminal is the other of the two active terminals of the first switch module, and the second target active terminal is connected to the second target interface; the first target fixed terminal is a fixed terminal in the first switch module connected to the first charging chip, and the second target fixed terminal is a fixed terminal in the first switch module connected to the second charging chip; When the first target interface is connected to the power adapter, the second target interface is connected to the device with data transmission function, and the power adapter is matched with the second charging chip, the processor controls the first target active terminal to connect to the third target fixed terminal of the first switch module, and controls the second target active terminal to connect to the fourth target fixed terminal of the first switch module. The third target fixing end is the other end of the first switch module that is connected to the first charging chip, and the fourth target fixing end is the other end of the first switch module that is connected to the second charging chip. The processor sends charging information to the power adapter; wherein the charging information is used to instruct the power adapter to charge the battery of the electronic device with a target output voltage and a target output current.
25. The charging method according to claim 24, characterized in that, The first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch; The processor controls the connection between the active end of the first target and the fixed end of the first target, including: the processor controls one of the first sub-switch and the third sub-switch to be turned on; The processor controls the connection between the active end of the second target and the fixed end of the second target, including: the processor controls one of the second sub-switch and the fourth sub-switch to be turned on; The processor controls the connection between the active end of the first target and the fixed end of the third target, including: the processor controls the other of the first sub-switch and the third sub-switch to be turned on; The processor controls the connection between the active end of the second target and the fixed end of the fourth target, including: the processor controls the other of the second sub-switch and the fourth sub-switch to be turned on.
26. The charging method according to claim 25, characterized in that, Each of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch includes a first transistor and a second transistor; the power supply terminal of the electronic device continuously provides an operating level to the third terminal of the first transistor in each sub-switch; The processor controls the target sub-switch in the first switching module to turn on, including: The processor provides an operating level to the third terminal of the second transistor of the target sub-switch; wherein the target sub-switch is any one of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch.
27. The charging method according to any one of claims 24-26, characterized in that, The charging method further includes: If the rated power of the first charging chip is greater than the rated power of the second charging chip, the processor determines that the power adapter is matched with the first charging chip. If the rated power of the first charging chip is less than the rated power of the second charging chip, the processor determines that the power adapter is matched with the second charging chip.
28. The charging method according to claim 27, characterized in that, The charging circuit also includes a fifth switching module; The charging method further includes: When the third Type-C interface is connected to the third power adapter, the processor controls the fifth switch module to turn on and sends third charging information to the third power adapter; The third charging information is used to instruct the third power adapter to charge the battery of the electronic device with a third target output voltage and a third target output current.
29. A charging circuit, characterized in that, include: The processor, the first protocol chip, the second protocol chip, the first charging chip, the second charging chip, the power supply chip, the first switch module, the second switch module, and the third switch module; The first end of the first protocol chip is used to connect to the first Type-C interface, and the second end of the first protocol chip is connected to the processor; the first end of the second protocol chip is used to connect to the second Type-C interface, and the second end of the second protocol chip is connected to the processor. The first movable terminal of the first switch module is used to connect to the first Type-C interface, the first fixed terminal and the third fixed terminal of the first switch module are connected to the first terminal of the first charging chip, the second terminal of the first charging chip is used to connect to the battery, and the third terminal of the first charging chip is connected to the processor. The second active terminal of the first switch module is used to connect to the second Type-C interface, the second fixed terminal and the fourth fixed terminal of the first switch module are connected to the first terminal of the second charging chip, the second terminal of the second charging chip is used to connect to the battery, and the third terminal of the second charging chip is connected to the processor. The first end of the power supply chip is used to connect to the battery, and the second end of the power supply chip is connected to the first end of the second switch module and the first end of the third switch module; The second end of the second switch module is used to connect to the first Type-C interface; the second end of the third switch module is used to connect to the second Type-C interface. The control terminal of the first switch module, the third terminal of the power supply chip, the third terminal of the second switch module, and the third terminal of the third switch module are respectively connected to the processor; The processor is configured to: when the first target interface is connected to the power adapter, the second target interface is connected to the device with data transmission function, and the power adapter is matched with the first charging chip, control the first target active end of the first switch module to connect to the first target fixed end of the first switch module, and control the target switch module to be turned on. When the first target interface is connected to the power adapter, the second target interface is connected to a device with data transmission function, and the power adapter is matched with the second charging chip, the first target active end is controlled to connect to the second target fixed end of the first switch module, and the target switch module is controlled to be turned on. Wherein, the first target interface is one of the first Type-C interface and the second Type-C interface, and the second target interface is the other of the first Type-C interface and the second Type-C interface; the first target active end is one of the two active ends of the first switch module, and the first target active end is connected to the first target interface; the first target fixed end is a fixed end of the first switch module connected to the first charging chip; the second target fixed end is a fixed end of the first switch module connected to the second charging chip; and the target switch module is connected to the second target interface.
30. The charging circuit according to claim 29, characterized in that, The first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch; The first end of the first sub-switch is connected to the first movable end of the first switch module, and the second end of the first sub-switch is connected to the first fixed end of the first switch module. The first end of the second sub-switch is connected to the first movable end of the first switch module, and the second end of the second sub-switch is connected to the second fixed end of the first switch module. The first end of the third sub-switch is connected to the second movable end of the first switch module, and the second end of the third sub-switch is connected to the third fixed end of the first switch module. The first end of the fourth sub-switch is connected to the second movable end of the first switch module, and the second end of the fourth sub-switch is connected to the fourth fixed end of the first switch module. The third terminal of each sub-switch is connected to the control terminal of the first switch module.
31. The charging circuit according to claim 30, characterized in that, Each of the sub-switches includes: a first transistor and a second transistor; the first transistor is an N-type transistor and the second transistor is a P-type transistor; or, the second transistor is an N-type transistor and the first transistor is a P-type transistor; The first terminal of the first transistor is the first terminal of the sub-switch, the second terminal of the first transistor is the second terminal of the sub-switch, and the third terminal of the first transistor is connected to the first terminal of the second transistor and the power supply terminal of the electronic device. The second terminal of the second transistor is grounded, and the third terminal of the second transistor is connected to the processor.
32. The charging circuit according to any one of claims 29-31, characterized in that, The charging circuit also includes a fourth switching module; The first end of the fourth switch module is connected to the first end of the first charging chip, the second end of the fourth switch module is connected to the first end of the second charging chip, and the third end of the fourth switch module is connected to the processor.
33. The charging circuit according to claim 32, characterized in that, The charging circuit also includes a third protocol chip, a third charging chip, and a fifth switch module; The first end of the third protocol chip is used to connect to the third Type-C interface, and the second end of the third protocol chip is connected to the processor. The first end of the fifth switch module is used to connect to the third Type-C interface, the second end of the fifth switch module is connected to the first end of the third charging chip, and the second end of the third charging chip is used to connect to the battery; The third terminal of the fifth switch module and the third terminal of the third charging chip are both connected to the processor.
34. The charging circuit according to claim 33, characterized in that, The charging circuit also includes a sixth switch module; The first end of the sixth switch module is connected to the second end of the power supply chip, the second end of the sixth switch module is used to connect to the third Type-C interface, and the third end of the sixth switch module is connected to the processor.
35. The charging circuit according to claim 34, characterized in that, Any one of the following switching modules—the second, third, fourth, fifth, and sixth—includes a third transistor; The first terminal of the third transistor is the first terminal of the switching module, the second terminal of the third transistor is the second terminal of the switching module, and the third terminal of the third transistor is the third terminal of the switching module.
36. A charging method, characterized in that, The charging circuit applied to any one of claims 29-35, the charging method comprising: When the first target interface is connected to the power adapter, the second target interface is connected to a device with data transmission function, and the power adapter is matched with the first charging chip, the processor controls the first target active terminal of the first switch module to connect to the first target fixed terminal of the first switch module, and controls the target switch module to be turned on. Wherein, the first target interface is one of a first Type-C interface and a second Type-C interface, and the second target interface is the other of the first Type-C interface and the second Type-C interface; the first target active terminal is one of the two active terminals of the first switch module, and the first target active terminal is connected to the first target interface; the first target fixed terminal is a fixed terminal of the first switch module that is connected to the first charging chip; the target switch module is connected to the second target interface; When the first target interface is connected to the power adapter, the second target interface is connected to a device with data transmission function, and the power adapter is matched with the second charging chip, the processor controls the first target active terminal to connect to the second target fixed terminal of the first switch module, and controls the target switch module to be turned on. The second target fixed end is a fixed end in the first switch module that is connected to the second charging chip; The processor sends charging information to the power adapter; wherein the charging information is used to instruct the power adapter to charge the battery of the electronic device with a target output voltage and a target output current.
37. The charging method according to claim 36, characterized in that, The first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch; The processor controls the connection between the active end of the first target and the fixed end of the first target, including: the processor controls one of the first sub-switch and the third sub-switch to be turned on; The processor controls the connection between the first target active end and the second target fixed end, including: the processor controls one of the second sub-switch and the fourth sub-switch to be turned on.
38. The charging method according to claim 37, characterized in that, Each of the first sub-switch and the second sub-switch includes a first transistor and a second transistor; the power supply terminal of the electronic device continuously provides an operating level to the third terminal of the first transistor in each sub-switch; The processor controls the target sub-switch in the first switching module to turn on, including: The processor provides an operating level to the third terminal of the second transistor of the target sub-switch; wherein the target sub-switch is any one of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch.
39. The charging method according to any one of claims 36-38, characterized in that, The charging method further includes: If the rated power of the first charging chip is greater than the rated power of the second charging chip, the processor determines that the power adapter is matched with the first charging chip. If the rated power of the first charging chip is less than the rated power of the second charging chip, the processor determines that the power adapter is matched with the second charging chip.
40. The charging method according to claim 39, characterized in that, The charging circuit also includes a fifth switching module; The charging method further includes: When the third Type-C interface is connected to the third power adapter, the processor root control turns on the fifth switch module and sends third charging information to the third power adapter; The third charging information is used to instruct the third power adapter to charge the battery of the electronic device with a third target output voltage and a third target output current.
41. A charging circuit, characterized in that, include: The processor, the first protocol chip, the second protocol chip, the first charging chip, the second charging chip, the first switch module, and the fourth switch module; The first end of the first protocol chip is used to connect to the first Type-C interface, and the second end of the first protocol chip is connected to the processor; The first end of the second protocol chip is used to connect to the second Type-C interface, and the second end of the second protocol chip is connected to the processor; The first movable terminal of the first switch module is used to connect to the first Type-C interface, the first fixed terminal and the third fixed terminal of the first switch module are connected to the first terminal of the first charging chip, the second terminal of the first charging chip is used to connect to the battery, and the third terminal of the first charging chip is connected to the processor. The second active terminal of the first switch module is used to connect to the second Type-C interface, the second fixed terminal and the fourth fixed terminal of the first switch module are connected to the first terminal of the second charging chip, the second terminal of the second charging chip is used to connect to the battery, and the third terminal of the second charging chip is connected to the processor. The first end of the fourth switch module is connected to the first end of the first charging chip, and the second end of the fourth switch module is connected to the first end of the second charging chip. The control terminal of the first switch module and the third terminal of the fourth switch module are respectively connected to the processor; The processor is configured to: when connected to a power adapter via a first Type-C interface or a second Type-C interface, and the rated power of the power adapter is greater than the rated power of the first charging chip and greater than the rated power of the second charging chip, control the first switch module to select any one of the following charging paths: from the first active terminal of the first switch module to the first fixed terminal of the first switch module, from the first active terminal to the second fixed terminal of the first switch module, from the second active terminal of the first switch module to the third fixed terminal of the first switch module, and from the second active terminal to the fourth fixed terminal of the first switch module, and control the fourth switch module to be turned on.
42. The charging circuit according to claim 41, characterized in that, The charging circuit also includes: a power supply chip, a second switch module, and a third switch module; The first terminal of the power supply chip is used to connect to the battery, the second terminal of the power supply chip is connected to the first terminal of the second switch module and the first terminal of the third switch module, and the third terminal of the power supply chip is connected to the processor. The second end of the second switch module is used to connect to the first Type-C interface, and the third end of the second switch module is connected to the processor; The second end of the third switch module is used to connect to the second Type-C interface, and the third end of the third switch module is connected to the processor.
43. The charging circuit according to claim 42, characterized in that, The charging circuit also includes a third protocol chip, a third charging chip, and a fifth switch module; The first end of the third protocol chip is used to connect to the third Type-C interface, and the second end of the third protocol chip is connected to the processor. The first end of the fifth switch module is used to connect to the third Type-C interface, the second end of the fifth switch module is connected to the first end of the third charging chip, and the second end of the third charging chip is used to connect to the battery; The third terminal of the fifth switch module and the third terminal of the third charging chip are both connected to the processor.
44. The charging circuit according to claim 43, characterized in that, The charging circuit also includes a sixth switch module; The first end of the sixth switch module is connected to the second end of the power supply chip, the second end of the sixth switch module is used to connect to the third Type-C interface, and the third end of the sixth switch module is connected to the processor.
45. The charging circuit according to claim 41 or 42, characterized in that, The first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch; The first end of the first sub-switch is connected to the first movable end of the first switch module, and the second end of the first sub-switch is connected to the first fixed end of the first switch module. The first end of the second sub-switch is connected to the first movable end of the first switch module, and the second end of the second sub-switch is connected to the second fixed end of the first switch module. The first end of the third sub-switch is connected to the second movable end of the first switch module, and the second end of the third sub-switch is connected to the third fixed end of the first switch module. The first end of the fourth sub-switch is connected to the second movable end of the first switch module, and the second end of the fourth sub-switch is connected to the fourth fixed end of the first switch module. The third terminal of each sub-switch is connected to the control terminal of the first switch module.
46. The charging circuit according to claim 45, characterized in that, Each of the sub-switches includes: a first transistor and a second transistor; the first transistor is an N-type transistor and the second transistor is a P-type transistor; or, the second transistor is an N-type transistor and the first transistor is a P-type transistor; The first terminal of the first transistor is the first terminal of the sub-switch, the second terminal of the first transistor is the second terminal of the sub-switch, and the third terminal of the first transistor is connected to the first terminal of the second transistor and the power supply terminal of the electronic device. The second terminal of the second transistor is grounded, and the third terminal of the second transistor is connected to the processor.
47. The charging circuit according to claim 44, characterized in that, Any one of the following switching modules—the second, third, fourth, fifth, and sixth—includes a third transistor; The first terminal of the third transistor is the first terminal of the switching module, the second terminal of the third transistor is the second terminal of the switching module, and the third terminal of the third transistor is the third terminal of the switching module.
48. A charging method, characterized in that, The charging circuit applied to any one of claims 41-47, the charging method comprising: When the first Type-C interface or the second Type-C interface is connected to the power adapter, and the rated power of the power adapter is greater than the rated power of the first charging chip and greater than the rated power of the second charging chip, the processor controls the first switch module to select any one of the following charging paths: from the first active terminal of the first switch module to the first fixed terminal of the first switch module, from the first active terminal to the second fixed terminal of the first switch module, from the second active terminal of the first switch module to the third fixed terminal of the first switch module, and from the second active terminal to the fourth fixed terminal of the first switch module, and controls the fourth switch module to be turned on.
49. The charging method according to claim 48, characterized in that, The first switch module includes a first sub-switch, a second sub-switch, a third sub-switch, and a fourth sub-switch; The processor controls the connection between the first active end and the first fixed end, including: the processor controls the first sub-switch to be turned on; The processor controls the connection between the second active terminal and the fourth fixed terminal, including: the processor controls the fourth sub-switch to be turned on; The processor controls the connection between the first active terminal and the second fixed terminal, including: the processor controls the second sub-switch to be turned on; The processor controls the connection between the second active terminal and the third fixed terminal, including: the processor controls the third sub-switch to be turned on.
50. The charging method according to claim 49, characterized in that, Each of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch includes a first transistor and a second transistor; the power supply terminal of the electronic device continuously provides an operating level to the third terminal of the first transistor in each sub-switch; The processor controls the target sub-switch in the first switching module to turn on, including: The processor provides an operating level to the third terminal of the second transistor of the target sub-switch; wherein the target sub-switch is any one of the first sub-switch, the second sub-switch, the third sub-switch, and the fourth sub-switch.
51. The charging method according to any one of claims 48-50, characterized in that, The charging circuit also includes a fifth switching module; The charging method further includes: When the third Type-C interface is connected to the third power adapter, the processor controls the fifth switch module to turn on and sends third charging information to the third power adapter; The third charging information is used to instruct the third power adapter to charge the battery of the electronic device with a third target output voltage and a third target output current.
52. An electronic device, characterized in that, The device includes a memory, a first Type-C interface, a second Type-C interface, a charging circuit according to any one of claims 1-18, 29-35, or 41-47, a battery, and a load circuit; the memory, the first Type-C interface, the second Type-C interface, and the battery are respectively connected to the charging circuit, and the battery is also connected to the load circuit; the first Type-C interface is used to connect a power adapter or a device with data transmission function, and the second Type-C interface is used to connect a power adapter or a device with data transmission function.
Citation Information
Patent Citations
Charger and charging control method and device
CN112202222A
Charging circuit, electronic equipment, charging system and reverse charging method
CN116054309A