Charging control method and system for charging device, and device and medium

WO2026200570A1PCT designated stage Publication Date: 2026-10-01ANKER INNOVATIONS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/083340
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-27
Filing Date
2026-03-13
Publication Date
2026-10-01

Smart Images

  • Figure CN2026083340_01102026_PF_FP_ABST
    Figure CN2026083340_01102026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a charging control method and system for a charging device, and a device and a medium. The method comprises: determining a device charging protocol of a power supply output port; when the device charging protocol is a preset fast charging protocol, on the basis of a power supply output level of the power supply output port, determining a transit voltage by using a charging voltage of the power supply output port; on the basis of the transit voltage, adjusting a voltage of a first transformer; when the voltage of the first transformer is adjusted to the transit voltage, switching an alternating-current to direct-current (AC-DC) transformer, which is connected to the power supply output port, from the first transformer to a second transformer of the charging device; then, restoring the voltage of the first transformer after the switching; and subsequently, broadcasting power supply capability information of a target output port. Therefore, the present application achieves efficient multi-port output management and dynamic power allocation, and solves the problem in the prior art of a perceptible charging interruption caused by a power supply voltage of a charging device dropping to zero during the switching of an AC-DC transformer.
Need to check novelty before this filing date? Find Prior Art

Description

Charging control methods, systems, equipment and media for charging devices

[0001] This application claims priority to Chinese Patent Application No. 202510377282.5, filed on March 27, 2025, entitled “Charging Control Method, System, Device and Medium for Charging Device”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of charging equipment technology, and in particular to a charging control method, system, device and medium for a charging device. Background Technology

[0003] With the rapid development of charging technology, charging devices such as chargers and adapters are becoming increasingly popular, bringing great convenience to people's lives, work, and studies.

[0004] Currently, various multi-port charging devices are available on the market. These devices can simultaneously charge multiple electronic devices, greatly improving charging efficiency and convenience. However, in multi-port scenarios, efficiently managing the power distribution and charging strategies of each port remains a technical challenge, especially in scenarios where three or more output ports are controlled by two AC-DC transformers. Firstly, it's crucial to ensure that the output port defined as a high-power port uses the highest-power AC-DC transformer. While two AC-DC transformers offer higher output efficiency in terms of hardware architecture, the need to switch between them inevitably prevents charging devices such as adapters from achieving seamless charging. Summary of the Invention

[0005] This application provides a charging control method, system, device, and medium for a charging device to achieve efficient multi-port output management and dynamic power distribution.

[0006] In a first aspect, this application proposes a charging control method for a charging device. The charging device is equipped with at least two AC-DC transformers and at least two output ports. The method includes: when a device to be charged is inserted into the target output port of the charging device, and the power supply output port currently electrically connected to the first transformer is not the target output port, determining the device charging protocol of the power supply output port, wherein the first transformer is the AC-DC transformer with the largest power among the at least two AC-DC transformers, and the target output port is the output port with the largest power among the at least two output ports;

[0007] When the device's charging protocol is a preset fast charging protocol, the intermediate voltage is determined based on the power output level of the power output port and the charging voltage of the power output port.

[0008] Adjust the voltage of the first transformer according to the transfer voltage;

[0009] With the voltage of the first transformer adjusted to the intermediate voltage, the AC-DC transformer connected to the power supply output port is switched from the first transformer to the second transformer of the charging equipment.

[0010] The voltage of the first transformer is adjusted back; when the voltage of the first transformer is adjusted back to the preset default voltage, the power supply capacity information of the target output port is broadcast.

[0011] In conjunction with the first aspect, in the first possible implementation of the first aspect, the intermediate voltage is determined based on the power output level of the power output port and the charging voltage of the power output port, including: determining the power output level of the power output port; if the power output level is a programmable power output level, then rebroadcasting the power supply capacity information of the power output port and reducing the power of the power output port; when the power of the power output port drops to the power of the second transformer, determining the device request voltage of the power output port as the intermediate voltage.

[0012] In conjunction with the first aspect, in the second possible implementation of the first aspect, after reducing the power of the power supply output port, the above method further includes: determining the output current of the power supply output port after the power is reduced; and if the output current is a preset normal current, obtaining the voltage requested by the power supply output port as the device request voltage.

[0013] In conjunction with the first aspect, in the third possible implementation of the first aspect, after reducing the power of the power supply output port, the above method further includes: if the output current of the power supply output port after reducing the power belongs to a preset abnormal current, obtaining the device request current of the power supply output port; adjusting the current of the first transformer based on the device request current; and if the current of the first transformer is adjusted to the device request current, obtaining the voltage requested by the power supply output port as the device request voltage.

[0014] In conjunction with the first aspect, in the fourth possible implementation of the first aspect, determining the output current after the power supply output port reduces its power includes: determining whether the output current after the power supply output port reduces its power drops to zero; if the output current after the power supply output port reduces its power drops to zero, confirming that the output current belongs to a preset normal current; if the output current after the power supply output port reduces its power does not drop to zero, confirming that the output current belongs to a preset abnormal current.

[0015] In conjunction with the first aspect, in the fifth possible implementation of the first aspect, obtaining the voltage requested by the power supply output port as the device requested voltage includes: after the charging device responds to the device requested voltage, pausing the response to the voltage requested by the power supply output port using the programmable power output level; while pausing the response, obtaining the voltage requested by the power supply output port, and recording the obtained voltage as the device requested voltage. The method further includes: after broadcasting the power supply capability information of the target output port, resuming the response to the voltage requested by the power supply output port using the programmable power output level.

[0016] In conjunction with the first aspect, in the sixth possible implementation of the first aspect, the intermediate voltage is determined based on the power output level of the power output port and the charging voltage of the power output port, including:

[0017] When the power output level is fixed, the power supply capacity information of the power output port is rebroadcast and the power of the power output port is reduced.

[0018] When the power output port drops to the power of the second transformer, the device request voltage at the power output port is determined as the transfer voltage.

[0019] In conjunction with the first aspect, in the seventh possible implementation of the first aspect, after determining the device charging protocol of the power supply output port, the method further includes: determining whether the device charging protocol belongs to a preset fast charging protocol; if the device charging protocol does not belong to a preset fast charging protocol, keeping the current output voltage level of the power supply output port unchanged and obtaining the voltage of the power supply output port; and determining the voltage of the power supply output port as the transfer voltage.

[0020] In conjunction with the first aspect, in the eighth possible implementation of the first aspect, the voltage of the first transformer is adjusted back, including: determining a default voltage; adjusting the voltage of the first transformer according to the default voltage until the voltage of the first transformer is adjusted to the default voltage.

[0021] In conjunction with the first aspect, in the ninth possible implementation of the first aspect, when the voltage of the first transformer is brought back to a preset default voltage, the power supply capability information of the target output port is broadcast, including: when the voltage of the first transformer is brought back to a preset default voltage, the power supply voltage of the target output port is turned on; and based on the power supply voltage, the power supply capability information of the target output port is broadcast.

[0022] Secondly, this application provides a charging control system for a charging device, the charging device being equipped with at least two AC-DC transformers and at least two output ports, the system comprising:

[0023] The protocol determination module is used to determine the device charging protocol of the power supply output port when the device to be charged is inserted into the target output port of the charging device and the power supply output port currently electrically connected to the first transformer is not the target output port. The first transformer is the AC-DC transformer with the largest power among at least two AC-DC transformers, and the target output port is the output port with the largest power among at least two output ports.

[0024] The intermediate voltage determination module is used to determine the intermediate voltage based on the power output level of the power output port and the charging voltage of the power output port when the device charging protocol belongs to the preset fast charging protocol.

[0025] The voltage adjustment module is used to adjust the voltage of the first transformer based on the transfer voltage;

[0026] The switching module is used to switch the AC-DC transformer connected to the power supply output port from the first transformer to the second transformer of the charging equipment when the voltage of the first transformer is adjusted to the intermediate voltage.

[0027] The voltage callback module is used to callback the voltage of the first transformer.

[0028] The broadcast module is used to broadcast power supply capability information of the target output port when the voltage of the first transformer returns to the preset default voltage.

[0029] Thirdly, this application also proposes a charging device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor, when executing the program stored in the memory, implements the steps of the charging control method as described in any of the first aspects of this application above.

[0030] Fourthly, this application also provides a computer storage medium storing computer-executable instructions for performing the steps of the charging control method of any of the above claims of this application.

[0031] As can be seen from the above, the charging control method, system, charging device, and computer storage medium provided in this application, when a device to be charged is inserted into the target output port of the charging device, and the power supply output port currently connected to the first transformer is not the target output port, determines the device charging protocol of the power supply output port. If the device charging protocol belongs to a preset fast charging protocol, based on the power output level of the power supply output port and using the charging voltage of the power supply output port, a transfer voltage is determined. Then, the voltage of the first transformer is adjusted according to this transfer voltage. When the voltage of the first transformer is adjusted to the transfer voltage, the AC-DC transformer connected to the power supply output port is switched from the first transformer to the second transformer of the charging device. After the switching, the second transformer... The voltage of one transformer is adjusted back to a preset default voltage. Then, the power supply capacity information of the target output port is broadcast, thereby ensuring that the target output port can obtain high power output. This achieves efficient multi-port output management and dynamic power allocation without increasing hardware costs. Furthermore, the introduction of the relay voltage allows the first and second transformers to be connected in parallel with the same voltage during switching, avoiding the problem of voltage drop to zero caused by voltage inconsistency. In addition, through dynamic voltage adjustment, it is ensured that the device being charged is unaware of the switching process, effectively avoiding the problem of charging interruption caused by voltage drop to zero. That is, it solves the problem of perceived charging interruption caused by the supply voltage drop to zero when the charging device switches between AC and DC transformers in existing related technologies. Attached Figure Description

[0032] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 is a flowchart illustrating the steps of a charging control method for a charging device provided in an embodiment of this application.

[0034] Figure 2 is a schematic diagram of the architecture of a charging control system for a charging device provided in an example of this application;

[0035] Figure 3 is a schematic diagram of port power path allocation of a charging device provided in an example of this application;

[0036] Figure 4 is a schematic diagram of a charging control method provided by an example of this application;

[0037] Figure 5 is a schematic diagram of a charging control method provided in another example of this application;

[0038] Figure 6 is a structural block diagram of a charging control system provided in an embodiment of this application;

[0039] Figure 7 is a schematic diagram of the structure of a charging device provided in an embodiment of this application. Detailed Implementation

[0040] Various exemplary embodiments of this application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of this application.

[0041] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of this application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they indicate the logical order between them.

[0042] It should also be understood that in this embodiment, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.

[0043] It should also be understood that any component, data or structure mentioned in the embodiments of this application can generally be understood as one or more unless explicitly defined or given contrary guidance in the context.

[0044] Furthermore, the term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects have an "or" relationship.

[0045] It should also be understood that the description of the various embodiments in this application emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.

[0046] The following description of at least one exemplary embodiment is merely illustrative and is not intended to limit the scope of this application or its application or use.

[0047] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0048] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0049] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. To facilitate understanding of the embodiments of this application, the application will be described in detail below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0050] In multi-output port charging devices, when only one output port is plugged in, the highest-power transformer is typically used to power that port. However, when two or more output ports are plugged in, the AC-DC transformer usually needs to be switched to ensure that the output port defined as the high-power port uses the highest-power AC-DC transformer. Due to the switching of the AC-DC transformer, charging devices such as adapters often experience a brief drop in the Universal Serial Bus (USB) power supply voltage to zero. Therefore, although two AC-DC transformers offer higher output efficiency in hardware architecture, the need to switch transformers inevitably prevents seamless charging for devices like adapters. Thus, finding a charging control logic in software that enables seamless charging is crucial.

[0051] Existing technologies address the issue of involuntary charging interruptions caused by brief drops in USB power supply voltage due to AC-DC transformer switching. Common approaches include adding an additional AC-DC transformer or adding a DC-DC transformer to each USB-C and USB-A port controlled by an integrated circuit (IC), using the DC-DC voltage drop to control the voltage of each port. While this ensures uninterrupted charging, it significantly increases project costs. Therefore, achieving seamless charging through software control logic in dual-AC-DC architectures remains a challenging technical problem requiring further research and resolution.

[0052] Based on the above, embodiments of this application provide a charging control method, system, device, and medium for a charging device. By dynamically adjusting the voltage and switching strategy of the AC-DC transformer, seamless switching of multi-port output charging devices is achieved while ensuring smooth voltage transition. Furthermore, the introduction of a transfer voltage allows the first and second transformers to be connected in parallel with the same voltage during switching, thus solving the problem of perceived charging interruption caused by AC-DC transformer switching in existing related technologies without increasing hardware costs. The core idea of ​​this application is that in scenarios where multiple AC-DC transformers supply power to multiple output ports, when switching the power supply path of an output port is required, a transfer voltage for voltage matching is introduced. This ensures that at least two AC-DC transformers involved in the switching have the same or substantially the same output voltage during the switching process, thereby maintaining the continuity of the output port power supply voltage during transformer switching and avoiding power interruption or perceived charging interruption due to voltage inconsistency. The determination of the transfer voltage is not limited to specific charging protocols, power configurations, or voltage sources; it can be determined based on the actual system state, output port voltage, power request information, or preset strategies.

[0053] Figure 1 is a schematic flowchart illustrating the steps of a charging control method for a charging device according to an embodiment of this application. In this embodiment, the charging device is equipped with at least two AC-DC transformers and at least two output ports; wherein the at least two AC-DC transformers may include a first transformer and a second transformer, and the first transformer is the AC-DC transformer with the highest power among the at least two AC-DC transformers. The second transformer may refer to the AC-DC transformer that the power supply output port currently connected to the first transformer needs to be connected to after the AC-DC transformer switching, and the power of the second transformer is less than the power of the first transformer. As shown in Figure 1, the charging control method provided in this embodiment includes the following steps:

[0054] Step 110: When the device to be charged is inserted into the target output port of the charging device, and the power supply output port currently connected to the first transformer is not the target output port, determine the device charging protocol of the power supply output port.

[0055] The target output port is the output port with the highest power among at least two output ports; the device charging protocol of the power supply output port refers to the charging protocol used by the device currently plugged into the power supply output port. Specifically, to ensure that the high-power port uses the highest-power DC-AC transformer for output, this embodiment can pre-determine the output port with the highest power in the charging device as the target output port. When the device being charged is plugged into the target output port of the charging device, it can be determined whether a DC-AC transformer switch is needed by judging whether the power supply output port currently electrically connected to the first transformer of the charging device is the target output port. In other embodiments, the target output port can also be determined according to port priority, system strategy, or preset rules, and is not limited to the output port with the highest power. If the power supply output port currently electrically connected to the first transformer is not the target output port, it is determined that a DC-AC transformer switch is needed. At this time, the device charging protocol of the power supply output port can be determined so that the intermediate voltage can be determined according to the charging voltage of the power supply output port based on the device charging protocol.

[0056] Step 120: If the device charging protocol is a preset fast charging protocol, or if an AC-DC transformer switching is detected, the intermediate voltage is determined based on the power output level of the power output port and the charging voltage of the power output port.

[0057] The intermediate voltage can refer to the voltage at which two AC-DC transformers are connected in parallel during AC-DC transformer switching. Specifically, in this embodiment, when it is determined that AC-DC transformer switching is required, the charging voltage of the power supply output port can be obtained according to the current device charging protocol used at the power supply output port. The obtained charging voltage can be determined as the intermediate voltage so that the AC-DC transformers can be connected in parallel subsequently. This allows the first and second transformers to be connected in parallel with the same voltage during switching, avoiding the problem of voltage drop to zero caused by voltage inconsistency.

[0058] In some optional embodiments of this application, the charging voltage of the power output port can be determined by judging whether the device currently inserted into the power output port uses a preset fast charging protocol. That is, by judging whether the device charging protocol of the power output port belongs to a preset fast charging protocol, the charging voltage of the power output port can be determined so that a relay voltage can be determined subsequently. For example, if the device charging protocol belongs to a preset fast charging protocol, the programmable power supply (PPS) level defined in the fast charging protocol can be used to rebroadcast the power supply capacity information of the power output port and reduce the power of the power output port. When the power of the power output port drops to the power of the second transformer, the device request voltage of the power output port can be obtained. This obtained device request voltage can then be determined as the relay voltage, allowing for efficient charging control in the future. If the device charging protocol does not belong to a preset fast charging protocol, the current output voltage level of the power output port can be kept unchanged, and the voltage of the power output port can be obtained to determine the voltage of the power output port as the relay voltage. Here, the device request voltage of the power output port refers to the voltage requested by the power output port sink.

[0059] Step 130: Adjust the voltage of the first transformer according to the transfer voltage;

[0060] In this step, the voltage of the first transformer of the charging equipment can be adjusted according to the transfer voltage to adjust the voltage of the first transformer to the transfer voltage.

[0061] Step 140: With the voltage of the first transformer adjusted to the intermediate voltage, the AC-DC transformer connected to the power supply output port is switched from the first transformer to the second transformer of the charging device.

[0062] Specifically, when the voltage of the first transformer is adjusted to the intermediate voltage, this intermediate voltage can be used as a transfer voltage to connect the first and second transformers in parallel. This allows the power output port currently connected to the first transformer to connect to the second transformer. Subsequently, the connection between the power output port and the first transformer can be disconnected, and the AC-DC transformer connected to the power output port can be switched from the first transformer to the second transformer of the charging device, achieving seamless switching. This switching method is not limited to parallel switching; other switching methods that maintain power supply continuity during the switching process can also be used.

[0063] Step 150: Adjust the voltage of the first transformer.

[0064] Specifically, after the AC-DC transformer switching is completed, the voltage of the first transformer can be restored to the reference voltage that was pre-set for the power of the first transformer.

[0065] Step 160: When the voltage of the first transformer is restored to the preset default voltage, broadcast the power supply capability information of the target output port.

[0066] The preset default voltage refers to the reference voltage pre-set for the power of the first transformer. Specifically, after the voltage of the first transformer returns to the preset default voltage, the power supply voltage of the target output port can be turned on, and then the power supply capacity information of the target output port is broadcast. This power supply capacity information indicates the voltage and current capabilities that the target output port can support, so that the device being charged can adjust its charging parameters according to the power supply capacity information. This allows the device to select the appropriate charging capacity for charging, ensuring that the target output port can obtain high power output and improving the user experience.

[0067] As can be seen, in this embodiment, when the device to be charged is inserted into the target output port of the charging device, and the power supply output port currently connected to the first transformer is not the target output port, the device charging protocol of the power supply output port is determined. If the device charging protocol belongs to a preset fast charging protocol, the intermediate voltage is determined based on the power output level of the power supply output port and the charging voltage of the power supply output port. Then, the voltage of the first transformer is adjusted according to this intermediate voltage. When the voltage of the first transformer is adjusted to the intermediate voltage, the AC-DC transformer connected to the power supply output port is switched from the first transformer to the second transformer of the charging device, achieving a seamless switching. After the switching, the first transformer... The voltage is adjusted back to the preset default voltage of the first transformer, and the power supply capacity information of the target output port is broadcast. This enables efficient multi-port output management and dynamic power allocation without increasing hardware costs. The introduction of the intermediate voltage allows the first and second transformers to be connected in parallel with the same voltage during switching, avoiding the problem of voltage drop to zero caused by voltage inconsistency. Furthermore, through dynamic voltage adjustment, it is ensured that the device being charged is unaware of the switching process, effectively avoiding the problem of charging interruption caused by voltage drop to zero. In other words, it solves the problem of perceived charging interruption caused by the supply voltage drop to zero when the charging device switches between AC and DC transformers in existing related technologies.

[0068] Optionally, the charging voltage of the power supply output port includes the voltage of the power supply output port. After determining the device charging protocol of the power supply output port, the charging control method provided in this application embodiment further includes: determining whether the device charging protocol belongs to a preset fast charging protocol; if the device charging protocol does not belong to a preset fast charging protocol, keeping the current output voltage level of the power supply output port unchanged and obtaining the voltage of the power supply output port; and determining the voltage of the power supply output port as the transfer voltage.

[0069] Specifically, when the device's charging protocol is not a preset fast charging protocol, the current output voltage level of the power supply output port remains unchanged. This means that the charging device will not change the voltage level of the power supply output port under these circumstances, thereby maintaining voltage stability. At this time, the voltage of the power supply output port can be obtained and determined as the transfer voltage.

[0070] The voltage at the power supply output port refers to the actual voltage value at the power supply output port. In a specific implementation, the voltage value at the power supply output port can be monitored in real time by setting a voltage detection circuit in the charging device. This allows the voltage value to be used as a transfer voltage when the device's charging protocol is not a preset fast charging protocol. Alternatively, a software control module can be used to maintain the voltage level and acquire the voltage value. This application embodiment does not impose specific restrictions on the method of acquiring the voltage value.

[0071] When the device charging protocol is a preset fast charging protocol, the embodiments of this application can rebroadcast the power supply capacity information of the power supply output port and reduce the power of the power supply output port so as to obtain the device request voltage of the power supply output port when the power of the power supply output port drops to the power of the second transformer. The obtained device request voltage can be determined as the transfer voltage so that the transfer voltage can be used to achieve efficient charging control in the future.

[0072] Optionally, the charging voltage of the power supply output port includes the device request voltage of the power supply output port. In this embodiment, when the device charging protocol belongs to a preset fast charging protocol, the charging voltage of the power supply output port is used to determine the transfer voltage based on the power output level of the power supply output port. Specifically, this may include: when the device charging protocol belongs to a preset fast charging protocol, rebroadcasting the power supply capacity information of the power supply output port based on the power output level of the power supply output port, and reducing the power of the power supply output port; when the power of the power supply output port drops to the power of the second transformer, the device request voltage of the power supply output port is determined as the transfer voltage.

[0073] The power supply capability information can be used to indicate the voltage and current output capabilities supported by the power supply output port. For example, if the preset fast charging protocol is the PD protocol, the power supply capability information can be a Power Delivery Object (PDO) in the PD protocol. Specifically, in this embodiment, when the device charging protocol is a preset fast charging protocol, the power supply capability information of the power supply output port can be rebroadcast based on the power output level of the power supply output port to update the broadcast power supply capability information of the power supply output port and reduce the power of the power supply output port. When the power of the power supply output port drops to the power of the second transformer, the device request voltage of the power supply output port can be obtained. The obtained device request voltage can then be determined as a transfer voltage for subsequent use. The rebroadcasting of power supply capability information can be achieved by updating the voltage and current information of the power supply output port, while the reduction of the power of the power supply output port can be achieved by adjusting the output current of the power supply output port. This embodiment does not impose specific limitations on this.

[0074] Optionally, to avoid charging interruptions caused by transformer switching, in this embodiment, when the device charging protocol is a preset fast charging protocol, the power output level of the power supply output port can be determined to see if it is a fixed level. If the power output level of the power supply output port is a fixed level, it means that the power output level of the power supply output port is fixed and unchanging. In this case, the power supply capacity information of the power supply output port can be rebroadcast, reducing the power of the power supply output port to the power of the second transformer. The device request voltage of the power supply output port is recorded as V1, which is then determined as the transfer voltage. Subsequently, the voltage of the first transformer is adjusted to V1, so that V1 is used as a transfer voltage to connect two AC-DC transformers in parallel. Thus, when the voltage of the first transformer is adjusted to the transfer voltage, the AC-DC transformer connected to the power supply output port can be switched from the first transformer to the second transformer of the charging device. The transformer enables seamless switching between power supply output ports. If the power output level of the power supply output port is a programmable power output level, it means that the voltage of the power supply output port can be adjusted according to demand using the programmable power output level. In this case, it can be determined whether the output current after the power supply output port reduces power is abnormal, thus determining whether the voltage requested by the power supply output port can be directly determined as the voltage requested by the device. If the output current after the power supply output port reduces power is normal, the voltage requested by the power supply output port can be directly determined as the voltage requested by the device. However, if the output current after the power supply output port reduces power is abnormal, it can be assumed that the charging mode of the power supply output port has changed to constant current charging mode. Due to the characteristics of the battery, the output current of the first transformer needs to be gradually increased to enter the constant current loop before adjusting the voltage of the first transformer. This is to avoid the problem of direct charging interruption caused by the inconsistency between the current of the first transformer and the current of the power supply output port during transformer switching.

[0075] Specifically, when the device charging protocol is a preset fast charging protocol, this embodiment determines the intermediate voltage based on the power output level of the power output port and the charging voltage of the power output port. This can include: determining the power output level of the power output port; if the power output level is a programmable power output level, rebroadcasting the power supply capacity information of the power output port and reducing the power of the power output port; when the power of the power output port drops to the power of the second transformer, determining the device-requested voltage of the power output port as the intermediate voltage. Specifically, during the process of reducing the power of the power output port, the output current of the power output port after the power reduction can be determined. By judging whether the output current of the power output port after the power reduction is normal, it can be determined whether the power output port has entered constant current charging mode. If the output current of the power output port after the power reduction is abnormal, it can be determined that the power output port has entered constant current charging mode, and the voltage adjustment needs to be performed after the current of the first transformer is adjusted to the device-requested current of the power output port. When the output current is within the preset normal current, the voltage requested by the power supply output port can be directly obtained as the device request voltage. This allows the obtained device request voltage to be used as a relay voltage, enabling the first transformer and the second transformer to be connected in parallel with the same voltage during switching, thus achieving seamless switching of the transformers.

[0076] The device request current at the power output port refers to the current requested by the sink at the power output port, which is the actual output current of the power output port. In this embodiment, when the output current of the power output port after power reduction is a preset abnormal current, the device request current of the power output port can be obtained. Subsequently, the current of the first transformer is adjusted based on the device request current so that when the current of the first transformer is adjusted to the device request current, the voltage requested by the power output port is obtained as the device request voltage.

[0077] Optionally, the charging control method provided in this application embodiment may further include, after reducing the power of the power supply output port, the following: determining the output current of the power supply output port after the power is reduced; if the output current is a preset abnormal current, obtaining the device request current of the power supply output port; adjusting the current of the first transformer based on the device request current; and obtaining the voltage requested by the power supply output port as the device request voltage when the current of the first transformer is adjusted to the device request current.

[0078] In an optional embodiment of this application, after reducing the power of the power output port, it can be determined whether the output current of the power output port is abnormal by judging whether the output current drops to zero after the power reduction. Optionally, determining the output current of the power output port after the power reduction in this application embodiment may specifically include: judging whether the output current of the power output port drops to zero; if the output current drops to zero, confirming that the output current belongs to a preset normal current; if the output current does not drop to zero, confirming that the output current belongs to a preset abnormal current.

[0079] Specifically, when the power output level is set to programmable, the charging device's system will rebroadcast the power supply capacity information of the power output port and reduce the power of the power output port. At this time, the system will determine whether the output current of the power output port has dropped to zero to determine whether the output current of the power output port is abnormal. If the output current of the power output port drops to zero, it is considered that the power output port has entered a normal state and the current is normal. The system can then acquire the device request voltage at the power output port at this time to determine the acquired device request voltage as the transfer voltage. If the output current of the power output port does not drop to zero, it is considered that the current is abnormal. At this time, the system will acquire... When a device requests current from the power output port, and due to a device issue, the PPS level is re-applied for, the current does not drop to zero. At this time, the charging mode of the power output port will change to constant current mode. To avoid the problem of inductive charging interruption caused by the USB power supply voltage briefly dropping to zero due to the switching, the current of the first transformer can be adjusted based on the device's requested current. When the current of the first transformer is adjusted to the device's requested current, the voltage requested by the power output port can be obtained as the device's requested voltage. This obtained device requested voltage can be determined as the transfer voltage, so that the voltage of the first transformer can be adjusted using this transfer voltage later.

[0080] Optionally, if the voltage requested by the power supply output port is the device request voltage, the voltage of the first transformer can be adjusted to the device request voltage after the charging device responds to the device request voltage. During the voltage adjustment of the first transformer, it can be determined whether the power supply output port requests voltage again. If the voltage adjustment of the first transformer is completed and the power supply output port does not request voltage again, it is considered that the voltage of the first transformer has been adjusted to the intermediate voltage. Then, the AC-DC transformer connected to the power supply output port can be switched from the first transformer to the second transformer of the charging device to achieve seamless switching.

[0081] The embodiments of this application are described below by way of example. However, it should be noted that the implementation of this application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of this application.

[0082] As an example of this application, taking an adapter as an example, in the case of an adapter including two AC-DC transformers and four output ports, as shown in Figure 2, these four output ports are: C1 port, C2 port, C3 port, and A port. The two AC-DC transformers have different power ratings; for example, one AC-DC transformer is a 75W transformer, and the other is a 25W transformer. Specifically, the 75W AC-DC transformer serves as the first transformer of the adapter. The protocol IC used by the 75W AC-DC transformer can be used as the adapter's master protocol IC, while the protocol IC used by the 25W AC-DC transformer can be used as the adapter's slave protocol IC. The master and slave protocol ICs can establish a communication connection through an Inter-Integrated Circuit (IIC) bus, allowing the adapter to control which transformer's power is used for output by controlling the switching of transistors based on this communication connection.

[0083] In the specific implementation process, the adapter's C1 port can be predefined as the adapter's maximum power output port, that is, the C1 port is used as the target output port in this embodiment. After the adapter is started, as shown in Figure 3, the port status can be detected to determine whether the port status has changed. If the port status has not changed, the port status detection step can be returned to. If the port status has changed, the detected port status information can be used to determine which output ports are connected to the device, and the power of the newly connected device port can be used to determine whether parallel switching can be achieved. If parallel switching can be achieved, the voltage can be adjusted to achieve parallel switching. After parallel switching, the power of the output port can be updated through the switched transformer, that is, the power is updated to update the power path of each output port, thereby achieving power path update for each port. If it is determined that parallel switching cannot be achieved, the power of the output port can be directly updated by updating the power, thereby achieving power path update for each port.

[0084] For example, applying the charging control method provided in this application embodiment, as shown in Figure 4, at the beginning of the process, the insertion of a device into port C2 is detected. At this time, the first transistor MOS1 connected to port C2 can be turned on by the main protocol IC, so that port C2 is powered by the first transformer, that is, port C2 is the power output port currently electrically connected to the first transformer. Subsequently, when the insertion of a device into port C1 is detected, since port C1 is defined as the maximum power output port of the adapter, it is necessary to switch to a higher power AC-DC converter to power port C1. The system can determine the device charging protocol of the power output port by judging whether the device in port C2 uses a preset fast charging protocol. For example, if the PD protocol is preset as the adapter's preset fast charging protocol, it can determine whether the device inserted into port C2 supports the PD fast charging protocol by judging whether the device charging protocol of port C2 is the PD protocol. Here, the device in port C2 refers to the device inserted into port C2.

[0085] If the device at port C2 does not support the PD protocol, such as when the charging protocol of the device at port C2 is QC, FCP, or AFC, i.e. when the device charging protocol is not a preset fast charging protocol, then port C2 maintains its current output voltage level, acquires the voltage of port C2, and records the acquired voltage of port C2 as V0. Then, the voltage of the first transformer is adjusted to V0, so that V0 is used as a transfer voltage to connect the two AC-DC transformers in parallel. This allows the first and second transformers to be connected in parallel with the same voltage when switching. After the two AC-DC transformers are connected in parallel, through communication between the master protocol IC and the slave protocol IC, the second transistor MOS2 set between port C2 and the second transformer can be turned on within a preset time, and the first transistor MOS1 set between port C2 and the first transformer can be turned off, so as to switch the AC-DC transformer connected to port C2 from the first transformer to the second transformer. The preset time can be set according to the switching requirements. For example, the preset time can be set to 10 milliseconds to complete the AC-DC transformer switching within 10ms. This application embodiment does not impose specific restrictions on the time value of the preset time.

[0086] If the device plugged into the C2 port supports the PD protocol, that is, if the device's charging protocol is a preset fast charging protocol, then it is further determined whether the C2 port is a PPS output to determine whether the power output level of the C2 port is a fixed level.

[0087] When port C2 is in PPS output mode, the system updates the PDO of the broadcast power output port and reduces the power of port C2. Specifically, when port C2 is in PPS output mode, that is, when the power output mode of port C2 is in programmable power output mode, the PDO of port C2 is rebroadcast, and the power of port C2 is reduced to the power of the second transformer. At this time, the system can determine whether the output current of port C2 is abnormal by checking whether the output current of port C2 drops to zero.

[0088] If the output current of port C2 does not drop to zero, it is determined that the output current of port C2 is abnormal. Record the current requested by the sink of port C2 at this time as A1. Since port C2 has entered constant current mode and the output current of port C2 does not drop to zero, the current of the first transformer needs to be adjusted to A1. After adjusting the current of the first transformer to A1, the voltage of the first transformer should be adjusted. That is, after the current of the first transformer is adjusted to A1, record the device request voltage of C2 as V2.0. This avoids the charging interruption problem caused by directly switching transformers due to the inconsistency between the current of the first transformer and the output current of port C2.

[0089] If the current drops to zero, it is considered that port C2 has entered a normal state and the current is normal. The device request voltage for port C2 can be directly recorded as V2.0. After the adapter sends the response information corresponding to the device request voltage, the voltage of the first transformer is adjusted to V2.0. Before the voltage of the first transformer is adjusted to V2.0, it can be determined whether port C2 reuses the PPS request voltage. If port C2 does not reuse the PPS request voltage, the second transistor MOS2 can be turned on and the first transistor MOS1 can be turned off within a preset time to switch the AC-DC transformer connected to port C2 from the first transformer to the second transformer. After the transformer switching is complete, the voltage of the first transformer is restored to the default voltage. Once the voltage of the first transformer is restored to the default voltage, the system will turn on the USB power supply voltage Vbus of port C1 and broadcast the PDO of port C1. At this point, the process ends. If port C2 requests voltage again using PPS, the number of repeated voltage adjustments, X, is recorded. This number X refers to the variable set for the number of repeated voltage adjustments. For example, the number of repeated voltage adjustments, X, can be incremented by one. Then, it is determined whether the number of repeated voltage adjustments, X, is greater than a preset threshold. The number of repeated voltage adjustments is recorded by the number of repeated voltage adjustments, which determines whether a hardware reset message needs to be sent to port C2. If the number of repeated voltage adjustments, X, is greater than the preset threshold, the adapter sends a hardware reset message to adjust the voltage of the first and second transformers to the intermediate voltage and then connect them in parallel. Then, within a preset time, the system turns on the second transistor MOS2 and turns off the first transistor MOS1 to switch the AC-DC transformer connected to port C2 from the first transformer to the second transformer. Finally, the correct PDOs for ports C1 and C2 are broadcast, and the process ends. If the number of times the variable X is not greater than the preset threshold, the device request voltage for port C2 can be recorded again as V2.1. After the adapter sends a response message to the device request voltage V2.1D, the voltage of the first transformer is adjusted to V2.1. Before the voltage adjustment of the first transformer is completed, it can be determined whether port C2 reuses PPS to request voltage. If port C2 reuses PPS to request voltage, the process returns to the step of recording the number of times the variable X is repeatedly adjusted. If port C2 does not reuse PPS to request voltage, the second transistor MOS2 is turned on and the first transistor MOS1 is turned off within a preset time to switch the AC-DC transformer connected to port C2 from the first transformer to the second transformer. After the AC-DC transformer is switched, the voltage of the first transformer is restored to the default voltage to ensure that the switching process is imperceptible to the device being charged through dynamic voltage adjustment. After the voltage of the first transformer is restored to the default voltage, the USB power supply voltage Vbus of port C1 is turned on and port C1's PDO is broadcast. At this point, the process ends.The default voltage of the first transformer can be set to 5V. This application embodiment does not impose specific restrictions on the specific voltage value of the default voltage. The preset number of times threshold can be set according to the switching requirements, such as 20. This application embodiment does not impose specific restrictions on this either.

[0090] If port C2 is not a PPS output, the adapter's system will also update the PDO of the broadcast power output port and reduce the power of port C2. That is, when the power output level of port C2 is a fixed power output level, the PDO of port C2 will be rebroadcast, the power of port C2 will be reduced to the power of the second transformer, and the voltage requested by the Sink of the power output port will be recorded as V1, that is, the voltage requested by the device of port C2 will be recorded as V1. Then, the voltage of the first transformer will be adjusted to V1, and the two AC-DC transformers will be connected in parallel using the V1 voltage as the intermediate voltage. Then, the second transistor MOS2 will be turned on and the first transistor MOS1 will be turned off within a preset time to switch the AC-DC transformer connected to port C2 from the first transformer to the second transformer. After the AC-DC transformer switching is completed, the voltage of the first transformer will be restored to the default voltage. Then, the USB power supply voltage Vbus of port C1 will be turned on, and the PDO of port C1 will be broadcast. At this time, the process ends.

[0091] In some optional embodiments of this application, in order to ensure that the device request voltage at the power output port can be accurately obtained, after rebroadcasting the power supply capacity information of the power output port, the response (Accept) to the voltage continuously requested (Request) by the device plugged into the power output port using the PPS level can be paused for a short period of time to stop PPS voltage regulation. Specifically, when the device charging protocol is a preset fast charging protocol and the power output level of the power output port is a programmable power output level, the voltage requested by the power output port in this embodiment of the application is obtained as the device request voltage. Specifically, this may include: after the charging device responds to the device request voltage, pausing the response to the voltage requested by the power output port using the programmable power output level; while pausing the response, obtaining the voltage requested by the power output port, and recording the obtained voltage as the device request voltage, so that the recorded device request voltage can be used as a transfer voltage to adjust the voltage of the first transformer, thereby enabling the first transformer and the second transformer to be connected in parallel with the same voltage during switching, and thus enabling seamless switching between the two transformers based on the same voltage. Optionally, the charging control method provided in this application embodiment further includes: after broadcasting the power supply capability information of the target output port, restoring the voltage in response to the request of the power supply output port to use the programmable power output level.

[0092] Specifically, in this embodiment, when the device charging protocol at the power output port is a preset fast charging protocol, by determining whether the power output level of the power output port is a predefined programmable power output level in the fast charging protocol, it can be determined whether the power output port can adjust the voltage according to demand using the programmable power output level. If the power output level of the power output port is a programmable power output level, the power of the power output port is reduced while the response to the voltage request of the power output port is suspended, that is, the response to the voltage request of the power output port using the programmable power output level is suspended, so as to temporarily disable the voltage response function of the power output port; when the power supply capacity information of the target output port is broadcast, the response to the voltage request of the power output port is resumed, that is, after the power supply capacity information of the target output port is broadcast, the response to the voltage request of the power output port using the programmable power output level is resumed, so as to restart the voltage response function of the power output port. Thus, under the fast charging protocol, the voltage and power of the power output port can be reasonably managed to ensure the stability of voltage regulation and power management and efficiency.

[0093] Optionally, when the power output level is a programmable power output level, in this embodiment, after reducing the power of the power output port to the power of the second transformer, the abnormality of the output current of the power output port can be determined by judging whether the output current of the power output port drops to zero. If the output current of the power output port drops to zero, the power output port enters a normal state and the current is normal, which means the current is considered normal. Subsequently, the response to the voltage continuously requested by the PPS level of the power output port can be paused for a short time, and the device request voltage of the power output port at this time can be recorded. Thus, the recorded device request voltage can be determined as the relay voltage, and the voltage of the first transformer can be directly adjusted to the relay voltage, so that the recorded device request voltage is used as the relay to connect two AC-DC transformers in parallel. If the output current of the power supply output port does not drop to zero, it is considered an abnormal current. When a device plugged into the power supply output port sends a request voltage to the power supply output port of the charging device using the PPS setting, the response information sent by the charging device to the device plugged into the power supply output port can be paused for a short time, the PPS voltage regulation can be stopped, and the device request voltage at the power supply output port can be recorded at this time. The recorded device request voltage is determined as the transfer voltage. If the current does not drop to zero when the PPS setting is re-requested due to the device, the charging mode of the power supply output port will change to constant current mode. In order to avoid the problem of sensored charging interruption caused by the USB power supply voltage dropping to zero briefly due to the switching, the current of the first transformer can be gradually increased to enter the constant current loop by adjusting the current first. Then, the voltage of the first transformer can be adjusted. After the voltage of the first transformer is adjusted to the transfer voltage, the AC-DC transformer can be switched by the same voltage to achieve sensorless switching.

[0094] Optionally, the charging control method provided in this application embodiment may further include: when the output current is a preset abnormal current, obtaining the device request current of the power supply output port; adjusting the current of the first transformer based on the device request current; when the current of the first transformer is adjusted to the device request current, obtaining the voltage requested by the power supply output port as the device request voltage, so as to use the obtained device request as a transfer voltage to adjust the voltage of the first transformer.

[0095] Specifically, when the power output level is a programmable power output level, this application can determine the charging mode of the power output port based on the output current after the power output port reduces its power. For example, when the power output level is a programmable power output level, it is first necessary to determine whether the current after the power output port reduces its power is normal, such as whether the current after the power output port reduces its power drops to zero. If the current after the power output port reduces its power drops to zero, it is considered that the current after the power output port reduces its power is normal, and at this time, the charging mode of the power output port can be considered not to be a constant current charging mode. If the current after the power output port reduces its power does not drop to zero, it is considered that the current after the power output port reduces its power is abnormal, and at this time, the charging mode of the power output port can be considered to be a constant current charging mode. Then, based on the device request current of the power output port, the current of the first transformer is adjusted, and when the current of the first transformer is adjusted to the device request current, the voltage of the first transformer is adjusted to the intermediate voltage.

[0096] As can be seen, in constant current charging mode, this application can adjust the current of the first transformer based on the device's requested current at the power output port. This allows the voltage of the first transformer to be adjusted to the intermediate voltage once the current of the first converter is adjusted to match the device's requested current at the power output port. This method allows the intermediate voltage to be determined in constant current charging mode, enabling subsequent adjustment of the first transformer's voltage. This allows the charging device to effectively adjust voltage and current, avoiding direct power outages due to switching when the first transformer's current fails to reach the constant current charging threshold.

[0097] After the AC-DC transformer switching is completed, the voltage to the first transformer can be adjusted back to a preset default voltage. This ensures that the first transformer can stably return to the preset default voltage during the voltage pullback process, thus providing stable voltage support for subsequent operations. Optionally, the voltage pullback of the first transformer in this embodiment can specifically include: determining a preset default voltage; adjusting the voltage of the first transformer according to the default voltage until the voltage of the first transformer is adjusted to the default voltage. The determination of the default voltage can be achieved through a preset algorithm or by reading a preset value from memory; this embodiment does not impose any limitations on this. Specifically, the default voltage of the first transformer can be set during system initialization, and the voltage value can be monitored and adjusted in real time during the voltage pullback process. For example, a digital controller can be used to sample the current voltage of the first transformer in real time and compare the sampled current voltage with the default voltage to adjust the output based on the comparison result until the current voltage of the first transformer reaches the default voltage. Optionally, a PID control algorithm can be used during the voltage adjustment process to ensure a smooth and rapid response; this embodiment also does not impose any specific limitations on this.

[0098] In summary, when the voltage of the first transformer is adjusted back in this embodiment, a preset default voltage is determined and the voltage of the first transformer is adjusted according to the default voltage. This allows the first transformer to quickly return to a stable preset voltage after switching, avoiding the problem of device interruption due to voltage instability. Furthermore, through dynamic voltage adjustment, the switching process is ensured to be imperceptible to the device being charged, avoiding the problem of interruption due to voltage drop to zero, thereby improving the overall performance of the charging device.

[0099] Furthermore, when the voltage of the first transformer returns to a preset default voltage, this embodiment of the application can broadcast the power supply capability information of the target output port to other devices, such as broadcasting the power supply capability information to the device being charged plugged into the target output port, ensuring that the device being charged can receive accurate power supply capability information. Optionally, broadcasting the power supply capability information of the target output port when the voltage of the first transformer returns to a preset default voltage may specifically include the following sub-steps:

[0100] Sub-step S1601: When the voltage of the first transformer is restored to the preset default voltage, turn on the power supply voltage of the target output port.

[0101] Sub-step S1602: Based on the power supply voltage, broadcast the power supply capability information of the target output port.

[0102] As can be seen, in this embodiment, when the voltage of the first transformer returns to the preset default voltage, the power supply voltage of the target output port is turned on. For example, when the preset default voltage is reached, the power supply voltage of the target output port is automatically turned on by the control circuit, or, through software control, when the voltage returns to the preset default voltage, a command is sent to turn on the power supply voltage of the target output port, and the power supply capacity information of the target output port is broadcast based on the power supply voltage. This ensures that the power supply capacity information of the target output port is accurately broadcast while ensuring system stability, and ensures that the device being charged plugged into the target output port can receive accurate power supply capacity information. This allows the device being charged to adjust its charging parameters according to the accurate power supply capacity information to select the appropriate charging capacity for charging, thereby enabling the target output port to obtain high power output and improving the user experience.

[0103] As another example of this application, in the case where the adapter includes two AC-DC transformers and four output ports, as shown in Figure 2, these four output ports are: C1 port, C2 port, C3 port, and A port. The C1 port of the adapter can be pre-defined as the adapter's maximum power output port, that is, the C1 port is used as the target output port in this embodiment. After the adapter starts, port status detection can determine whether the port status has changed. If the port status changes, the detected port status information can be used to determine which output ports are used to insert devices. For example, as shown in Figure 5, at the beginning of the process, the insertion of a device into port C2 is detected first. At this time, the main protocol IC can control the first transistor MOS1 connected to port C2 to conduct, so that port C2 is powered by the first transformer, that is, port C2 becomes the power output port currently electrically connected to the first transformer. Subsequently, when the insertion of a device into port C1 is detected, since port C1 is defined as the adapter's maximum power output port, a higher-power AC-DC converter needs to be switched to power port C1. The system can determine whether the device inserted into port C2 supports the PD fast charging protocol by judging whether the charging protocol of the device in port C2 is the PD protocol. Among them, the C2 port device refers to the device that is inserted into the C2 port.

[0104] If the device at port C2 does not support the PD protocol, such as when the charging protocol at port C2 is QC, FCP, or AFC (i.e., the device's charging protocol is not a preset fast charging protocol), then port C2 can maintain its current output voltage level. The voltage at port C2 is then acquired and recorded as V0. Subsequently, the voltage of the first transformer is adjusted to V0, and V0 is used as a transfer voltage to connect two AC-DC transformers in parallel. This allows the first and second transformers to be connected in parallel using the same voltage during switching. After the two AC-DC transformers are connected in parallel, communication between the master and slave protocol ICs allows the second transistor MOS2 connected to the second transformer to be turned on and the first transistor MOS1 connected to the first transformer to be turned off within a preset time, thus switching the AC-DC transformer connected to port C2 from the first transformer to the second transformer. The preset time can be set according to switching requirements; for example, it can be set to 10 milliseconds to complete the AC-DC transformer switching within 10ms. This embodiment does not impose a specific limitation on the value of the preset time.

[0105] If the device plugged into the C2 port supports the PD protocol, that is, if the device's charging protocol is a preset fast charging protocol, then it is further determined whether the C2 port is a PPS output to determine whether the power output level of the C2 port is a fixed level.

[0106] When port C2 is in PPS output mode, the system updates the PDO of the broadcast power output port and reduces the power of port C2. Specifically, when port C2 is in PPS output mode, that is, when the power output mode of port C2 is in programmable power output mode, the PDO of port C2 is rebroadcast, and the power of port C2 is reduced to the power of the second transformer. At this time, the system can determine whether the current is abnormal by checking whether the output current of port C2 drops to zero.

[0107] If the output current of port C2 does not drop to zero, an abnormal current is confirmed. When the device on port C2 is using PPS and sending a request voltage to the power output port of the adapter, the adapter's response to the device on port C2 can be temporarily paused, stopping PPS voltage regulation. This means temporarily pausing the response to the continuous voltage requests from port C2's PPS, and recording the voltage requested by the sink on port C2 as V3. If the current does not drop to zero after re-applying for a new PPS setting due to device issues, the charging mode of port C2 will switch to constant current mode. Due to battery characteristics, the current of the first transformer needs to be gradually increased to enter the constant current loop before increasing the voltage of the first transformer; otherwise, charging will be directly interrupted. Finally, the AC-DC transformer is switched back using the same voltage. Therefore, when port C2 enters constant current mode and the current is not zero, the output current of the first transformer needs to be gradually increased to match the actual output current of port C2 (i.e., the device's requested current). After the current stabilizes, the voltage of the first transformer is adjusted to V3. After the voltage of the first transformer is adjusted to the intermediate voltage, the AC-DC transformer is switched using the same voltage. That is, the second transistor MOS2 is turned on and the first transistor MOS1 is turned off within a preset time, switching the AC-DC transformer connected to port C2 from the first transformer to the second transformer. After the AC-DC transformer switching is completed, the voltage of the first transformer will be restored to the preset default voltage. For example, if the preset default voltage is 5V, after the voltage of the first transformer is restored to 5V, the system will turn on the USB power supply voltage Vbus of port C1 and broadcast the PDO of port C1. Finally, after the system receives the second PPS request packet sent by port C2, it can restore the voltage that responded to the previous PPS request of port C2.

[0108] If the current drops to zero, port C2 enters a normal state with no abnormal current. The voltage of the first transformer can be directly adjusted to the device-requested voltage at port C2, using this voltage as a relay voltage to connect two AC-DC transformers in parallel. Specifically, if the output current of port C2 drops to zero, it is considered that port C2 has entered a normal state with normal current. After the adapter sends the response information corresponding to the device-requested voltage (i.e., after the adapter agrees to voltage adjustment), the response to the continuously requested voltage from port C2's PPS can be temporarily paused, and the voltage requested by the port C2 sink at this time is recorded as V2 (i.e., the device-requested voltage of port C2 is recorded as V2). Then, the voltage of the first transformer is adjusted to V2, using V2 as a relay voltage to connect two AC-DC transformers in parallel. Within a preset time, the system will turn on the second transistor MOS2 and turn off the first transistor MOS1, switching the AC-DC transformer connected to port C2 from the first transformer to the second transformer. After the AC-DC transformer switching is complete, the voltage of the first transformer will return to 5V. Once the voltage of the first transformer returns to the default voltage, the system will turn on the USB power supply voltage Vbus of port C1 and broadcast the PDO of port C1. Finally, after the system accepts the second PPS Request packet sent by the power supply output port, it will restore the voltage of the previous PPS Request of the Accept power supply output port, and the process ends.

[0109] If port C2 is not a PPS output, the adapter's system will also update the PDO of the broadcast power output port and reduce the power of port C2. That is, if the power output level of port C2 is a fixed power output level, the PDO of port C2 will be rebroadcast, reducing the power of port C2 to the power of the second transformer. Simultaneously, the voltage requested by the sink at the power output port will be recorded as V1, meaning the device's requested voltage at port C2 will be recorded as V1. Then, the voltage of the first transformer will be adjusted to V1. Using V1 as an intermediate voltage, two AC-DC transformers will be connected in parallel. Within a preset time, the second transistor MOS2 will be turned on, and the first transistor MOS1 will be turned off to complete the AC-DC transformer switching. After the AC-DC transformer switching is complete, the voltage of the first transformer will return to the default voltage. Once the voltage of the first transformer returns to the default voltage, the system will turn on the USB power supply voltage Vbus of port C1 and broadcast the PDO of port C1. At this point, the process ends.

[0110] In summary, the charging control method for the charging device provided in this application, through port status detection, determines whether AC-DC transformer switching is required by judging whether the power supply output port currently electrically connected to the first transformer of the charging device is the target output port when the port status changes. This allows for the determination of whether AC-DC transformer switching is needed when the power supply output port currently connected to the first transformer is not the target output port. By determining the device charging protocol of the power supply output port, the charging voltage of the power supply output port is used to determine the intermediate voltage based on the charging protocol. For example, by judging whether the device charging protocol of the power supply output port belongs to a preset fast charging protocol, the charging voltage of the power supply output port is determined, and the intermediate voltage is determined based on this charging voltage. AC-DC transformer switching is then implemented based on this intermediate voltage. This achieves efficient multi-port output management and dynamic power allocation without increasing hardware costs. Especially in constant current charging mode, the voltage and current can be appropriately adjusted by regulating the intermediate voltage, ensuring the stability and reliability of the charging device in different charging modes. This effectively solves the problem of voltage drop to zero caused by converter switching in the prior art, improving the charging efficiency of the charging device.

[0111] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should know that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps may be performed in other orders or simultaneously.

[0112] As shown in Figure 6, this application embodiment provides a charging control system for a charging device. The charging device is equipped with at least two AC-DC transformers and at least two output ports. The system includes the following modules:

[0113] The electrical protocol determination module 410 is used to determine the device charging protocol of the power supply output port when the device to be charged is inserted into the target output port of the charging device and the power supply output port currently connected to the first transformer is not the target output port. The first transformer is the AC-DC transformer with the largest power among at least two AC-DC transformers, and the target output port is the output port with the largest power among at least two output ports.

[0114] The intermediate voltage determination module 420 is used to determine the intermediate voltage based on the power output level of the power output port and the charging voltage of the power output port when the device charging protocol belongs to the preset fast charging protocol.

[0115] The voltage adjustment module 430 is used to adjust the voltage of the first transformer according to the transfer voltage;

[0116] The switching module 440 is used to switch the AC-DC transformer connected to the power supply output port from the first transformer to the second transformer of the charging equipment when the voltage of the first transformer is adjusted to the intermediate voltage.

[0117] Voltage callback module 450 is used to callback the voltage of the first transformer;

[0118] The broadcast module 460 is used to broadcast power supply capability information of the target output port when the voltage of the first transformer is restored to the preset default voltage.

[0119] Optionally, the transfer voltage determination module 420 includes the following sub-modules:

[0120] The power output level determination submodule is used to determine the power output level of the power output port;

[0121] The first power reduction submodule is used to rebroadcast the power supply capacity information of the power supply output port and reduce the power of the power supply output port when the power output level is a programmable power output level.

[0122] The first determining submodule is used to determine the device request voltage at the power supply output port as the transfer voltage when the power at the power supply output port drops to the power of the second transformer.

[0123] Optionally, the charging control system may also include the following modules:

[0124] The current determination module is used to determine the output current of the power supply output port after the power is reduced.

[0125] The voltage request acquisition module is used to acquire the voltage requested by the power supply output port as the device request voltage when the output current is within the preset normal current.

[0126] Optionally, the system may also include the following modules:

[0127] The current determination module is used to determine the output current of the power supply output port after the power is reduced.

[0128] The current acquisition module is used to acquire the device request current at the power supply output port when the output current is a preset abnormal current.

[0129] The current adjustment module is used to adjust the current of the first transformer based on the current requested by the device, and when the current of the first transformer is adjusted to the current requested by the device, it triggers the request voltage acquisition module to obtain the voltage requested by the power supply output port as the voltage requested by the device.

[0130] Optionally, the current determination module includes:

[0131] The judgment submodule is used to determine whether the output current of the power supply output port drops to zero after the power is reduced;

[0132] The first confirmation submodule is used to confirm that the output current belongs to the preset normal current when the output current drops to zero after the power is reduced at the power output port.

[0133] The second confirmation submodule is used to confirm that the output current belongs to a preset abnormal current if the output current does not drop to zero after the power is reduced at the power output port.

[0134] Optionally, the requested voltage acquisition module includes:

[0135] The pause submodule is used to pause the response to the voltage requested by the power supply output port using the programmable power output level after the charging device responds to the device's voltage request.

[0136] The acquisition submodule is used to acquire the voltage requested by the power output port when the response is paused, and record the acquired voltage as the device request voltage;

[0137] The aforementioned charging control system further includes a recovery response module; the recovery response module is used to restore the voltage requested by the power supply output port using the programmable power output level after the broadcast module broadcasts the power supply capability information of the target output port.

[0138] Optionally, when the power output level is a programmable power output level, the system further includes: a charging mode determination module; the charging mode determination module is used to determine the charging mode of the power output port based on the output current after the power output port is reduced. When the charging mode is a constant current charging mode, the voltage adjustment module 430 is specifically used to: adjust the first transformer based on the output current of the power output port; and adjust the voltage of the first transformer to the intermediate voltage when the current of the first transformer is adjusted to match the output current of the power output port.

[0139] Optionally, the transfer voltage determination module 420 includes the following sub-modules:

[0140] The second power reduction submodule is used to rebroadcast the power supply capacity information of the power supply output port and reduce the power of the power supply output port when the power output level is at a fixed level.

[0141] The second determining submodule is used to determine the device request voltage at the power supply output port as the transfer voltage when the power at the power supply output port drops to the power of the second transformer.

[0142] Optionally, the above-mentioned charging control system also includes:

[0143] The protocol determination module is used to determine whether the device's charging protocol belongs to the preset fast charging protocol;

[0144] The voltage acquisition module is used to maintain the current output voltage level of the power supply output port unchanged and acquire the voltage of the power supply output port when the device's charging protocol is not a preset fast charging protocol.

[0145] The intermediate voltage determination module 420 is also used to determine the voltage of the power supply output port as the intermediate voltage.

[0146] Optionally, the voltage callback module 450 includes:

[0147] The default voltage determination submodule is used to determine the default voltage;

[0148] The adjustment submodule is used to adjust the voltage of the first transformer according to the default voltage until the voltage of the first transformer is adjusted to the default voltage.

[0149] Optionally, the broadcast module 460 includes:

[0150] The power supply voltage submodule is used to turn on the power supply voltage of the target output port when the voltage of the first transformer is restored to the preset default voltage.

[0151] The broadcast submodule is used to broadcast power supply capability information of the target output port based on the power supply voltage.

[0152] In practical implementation, the aforementioned charging control system can be integrated into charging devices such as adapters and chargers. When a new device is plugged into the target output port of the charging device, it determines whether the power supply output port currently connected to the first transformer is the target output port. If the power supply output port currently connected to the first transformer is not the target output port, the device charging protocol of the power supply output port is determined. Subsequently, if the device charging protocol belongs to a preset fast charging protocol, the intermediate voltage is determined based on the power output level of the power supply output port and the charging voltage of the power supply output port. The voltage of the first transformer is adjusted according to the intermediate voltage. When the voltage of the first transformer is adjusted to the intermediate voltage, the AC-DC transformer connected to the power supply output port is connected. The system seamlessly switches from the first transformer to the second transformer of the charging device. After the switch, the voltage of the first transformer is adjusted back to a preset default voltage. Then, the power supply capacity information of the target output port is broadcast, ensuring that the target output port can receive high power output. This achieves efficient multi-port output management and dynamic power allocation without increasing hardware costs. The introduction of a relay voltage allows the first and second transformers to be connected in parallel with the same voltage during switching, avoiding voltage drop issues caused by voltage inconsistency. Furthermore, through dynamic voltage adjustment, the system ensures that the device being charged is unaware of the switching process, effectively preventing charging interruptions caused by voltage drop and improving the user experience.

[0153] As shown in Figure 7, this application embodiment provides a charging device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114. The processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114. The memory 113 is used to store computer programs. When the processor 111 executes the program stored in the memory 113, it implements the steps of the charging control method provided in any of the aforementioned method embodiments.

[0154] In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the charging control method provided in any of the aforementioned method embodiments, including: when a device to be charged is inserted into the target output port of the charging device, and the power supply output port currently electrically connected to the first transformer is not the target output port, determining the device charging protocol of the power supply output port, wherein the first transformer is the AC-DC transformer with the highest power among at least two AC-DC transformers, and the target output port is the output port with the highest power among at least two output ports; when the device charging protocol belongs to a preset fast charging protocol, determining the transfer voltage based on the power output level of the power supply output port and the charging voltage of the power supply output port; adjusting the voltage of the first transformer according to the transfer voltage; when the voltage of the first transformer is adjusted to the transfer voltage, switching the AC-DC transformer connected to the power supply output port from the first transformer to the second transformer of the charging device; adjusting the voltage of the first transformer back; and when the voltage of the first transformer is adjusted back to a preset default voltage, broadcasting the power supply capability information of the target output port.

[0155] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the charging control method provided in any of the foregoing method embodiments.

[0156] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple grid units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0157] In a specific implementation, this application also provides a computer storage medium, wherein the computer storage medium may store a program, and the program, when executed, may include some or all of the steps in the foregoing embodiments. The storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0158] Those skilled in the art will clearly understand that the techniques in the embodiments of this application can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or certain parts of the embodiments of this application.

[0159] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, for the embodiments of ..., since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

[0160] The above embodiments of this application do not constitute a limitation on the scope of protection of this application.

Claims

1. A charging control method for a charging device, characterized in that, The charging device is equipped with at least two AC-DC transformers and at least two output ports, and the method includes: When a device to be charged is inserted into the target output port of the charging device, and the power supply output port currently electrically connected to the first transformer is not the target output port, the device charging protocol of the power supply output port is determined, wherein the first transformer is the AC-DC transformer with the largest power among the at least two AC-DC transformers, and the target output port is the output port with the largest power among the at least two output ports; When the device's charging protocol is a preset fast charging protocol, the intermediate voltage is determined based on the power output level of the power output port and the charging voltage of the power output port. Adjust the voltage of the first transformer according to the aforementioned transfer voltage; When the voltage of the first transformer is adjusted to the intermediate voltage, the AC-DC transformer connected to the power supply output port is switched from the first transformer to the second transformer of the charging device. The voltage of the first transformer is adjusted back; When the voltage of the first transformer is restored to the preset default voltage, the power supply capability information of the target output port is broadcast.

2. The charging control method according to claim 1, characterized in that, The determination of the transfer voltage based on the power output level of the power output port and the charging voltage of the power output port includes: Determine the power output level of the power output port; If the power output level is a programmable power output level, then the power supply capacity information of the power output port is rebroadcast, and the power of the power output port is reduced. When the power at the power output port drops to the power of the second transformer, the device request voltage at the power output port is determined as the transfer voltage.

3. The charging control method according to claim 2, characterized in that, After reducing the power output port, the method further includes: Determine the output current of the power supply output port after power reduction; If the output current is within a preset normal current, the voltage requested by the power supply output port is obtained as the device requested voltage.

4. The charging control method according to claim 2, characterized in that, After reducing the power output port, the method further includes: Determine the output current of the power supply output port after power reduction; If the output current is a preset abnormal current, obtain the device request current at the power supply output port; Based on the current request from the device, the current of the first transformer is adjusted; When the current of the first transformer is adjusted to the current requested by the device, the voltage requested by the power supply output port is obtained as the voltage requested by the device.

5. The charging control method according to claim 3 or 4, characterized in that, Determining the output current of the power supply output port after power reduction includes: Determine whether the output current of the power supply output port drops to zero after the power is reduced; When the output current drops to zero after the power is reduced at the power output port, it is confirmed that the output current belongs to the preset normal current. If the output current does not drop to zero after the power is reduced at the power output port, it is confirmed that the output current belongs to the preset abnormal current.

6. The charging control method according to claim 3 or 4, characterized in that, The step of obtaining the voltage requested by the power output port as the voltage requested by the device includes: After the charging device responds to the device's requested voltage, it suspends responding to the voltage requested by the power output port using the programmable power output level; In the case of the pause response, the voltage requested by the power output port is obtained, and the obtained voltage is recorded as the voltage requested by the device; The method further includes: after broadcasting the power supply capability information of the target output port, restoring the voltage in response to the request of the power supply output port to use the programmable power output level.

7. The charging control method according to claim 1, characterized in that, The determination of the transfer voltage based on the power output level of the power output port and the charging voltage of the power output port includes: When the power output level is a fixed level, the power supply capacity information of the power output port is rebroadcast, and the power of the power output port is reduced. When the power at the power output port drops to the power of the second transformer, the device request voltage at the power output port is determined as the transfer voltage.

8. The charging control method according to claim 1, characterized in that, After determining the device charging protocol of the power output port, the method further includes: Determine whether the device's charging protocol belongs to a preset fast charging protocol; If the device's charging protocol is not a preset fast charging protocol, keep the current output voltage level of the power supply output port unchanged and obtain the voltage of the power supply output port; The voltage at the power supply output port is determined as the transfer voltage.

9. The charging control method according to claim 1, characterized in that, The step of broadcasting the power supply capability information of the target output port when the voltage of the first transformer returns to a preset default voltage includes: When the voltage of the first transformer is restored to the preset default voltage, the power supply voltage of the target output port is turned on; Based on the power supply voltage, broadcast the power supply capability information of the target output port.

10. A charging control system for a charging device, characterized in that, The charging device is equipped with at least two AC-DC transformers and at least two output ports, and the system includes: The protocol determination module is used to determine the device charging protocol of the power supply output port when the device to be charged is inserted into the target output port of the charging device and the power supply output port currently electrically connected to the first transformer is not the target output port. The first transformer is the AC-DC transformer with the largest power among the at least two AC-DC transformers, and the target output port is the output port with the largest power among the at least two output ports. The intermediate voltage determination module is used to determine the intermediate voltage based on the power output level of the power output port and the charging voltage of the power output port when the charging protocol of the device belongs to a preset fast charging protocol. A voltage adjustment module is used to adjust the voltage of the first transformer according to the relay voltage; The switching module is used to switch the AC-DC transformer connected to the power supply output port from the first transformer to the second transformer of the charging device when the voltage of the first transformer is adjusted to the transfer voltage. The voltage callback module is used to callback the voltage of the first transformer. The broadcast module is used to broadcast the power supply capability information of the target output port when the voltage of the first transformer is restored to the preset default voltage.

11. A charging device, characterized in that, include: The processor, communication interface, memory, and communication bus are connected, with the processor, communication interface, and memory communicating with each other via the communication bus. Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the charging control method as described in any one of claims 1-9.