Adaptive pd charging control method, system and storage medium based on dual type-c circuit

By monitoring the interface status and PD protocol handshake process in real time, dynamically identifying the device type and configuring function switching, the problem of insufficient adaptive capability of dual Type-C interfaces is solved, realizing intelligent power management and safety protection, and improving device compatibility and user experience.

CN120824892BActive Publication Date: 2025-12-23SHENZHEN JOYAR TECH (GRP) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511335942.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-18
Publication Date
2025-12-23
Estimated Expiration
2045-09-18

AI Technical Summary

Technical Problem

Existing dual Type-C interface solutions lack adaptive capabilities, failing to intelligently identify device types and dynamically allocate interface functions, leading to frequent plugging and unplugging that damages the interface, unreasonable power allocation, and safety hazards.

Method used

By monitoring the interface status in real time and collecting power-on current information, the device type is intelligently identified by combining the preset current threshold range and the PD protocol handshake process. The function switching switch and charging management module are dynamically configured to achieve intelligent power optimization allocation and adaptive switching.

Benefits of technology

It improves device compatibility, system security and energy efficiency, avoids the risk of damage from mis-plugging, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120824892B_ABST
    Figure CN120824892B_ABST
Patent Text Reader

Abstract

The application provides a self-adaptive PD charging control method, system and storage medium based on a double Type-C circuit, real-time monitoring of an interface connection state, and collection of power-on current information when a peripheral device is detected to be connected, intelligent identification of a device type in combination with a preset current threshold range and a PD protocol handshake process, and then dynamic configuration of a function switching switch and a charging management module; if it is a data device, a data path is connected and power output is limited, and if it is a charging device, charging parameters are negotiated and high-power power transmission is enabled; when double charging devices are connected, intelligent power distribution and priority management are performed, and electrical parameters such as voltage, current and temperature are continuously monitored, and adaptive adjustment is triggered when the limit is exceeded. The application realizes intelligent function switching and safe power management of a double interface, effectively avoids damage caused by misplug, and improves device compatibility, system energy efficiency and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of Type-C interface, more particularly, to a self-adaptive PD charging control method, system and storage medium based on double Type-C circuit. BACKGROUND

[0002] With the mandatory implementation of Type-C interface in the European Union and becoming the general standard of electronic devices, its advantages such as positive and negative plug compatibility, support for high-speed data transmission, video output, and high-power charging have rapidly gained market favor. Currently, more and more devices begin to be equipped with multiple Type-C interfaces to meet the needs of users to charge and transmit data at the same time, for example, a notebook computer is equipped with a Type-C port for charging on one side and a Type-C port for connecting a docking station or a display on the other side. However, this physical function presetting method exposes significant defects: users often insert the wrong device due to the same appearance of the interface, which not only leads to the inability to use the function normally, but frequent plugging and unplugging can also cause physical damage to the interface or logical confusion of the system; in addition, when the device needs to be rotated or moved, the fixed function interface causes great inconvenience in cable connection, which seriously affects the user experience.

[0003] In the prior art, most double Type-C interface solutions fail to achieve true adaptive capability. The common approach is to simply distinguish between charging ports and data ports on the hardware, lacking a dynamic recognition and switching mechanism based on device type. Some products attempt to distinguish device types through basic level detection, but the error is large in the way of relying only on current threshold to make a preliminary judgment, which cannot distinguish between chargers and mobile hard drives with high power requirements, and is also difficult to cope with non-standard devices or protocol compatibility issues. More importantly, existing solutions generally lack system-level power scheduling and management when multiple devices are connected: when two chargers are plugged in at the same time, the system often cannot intelligently allocate total power, which may cause overload protection power failure or interface preemption conflict. In addition, traditional designs also lack continuous monitoring and adaptive protection of working status, and cannot dynamically adjust the output in the case of overvoltage, overcurrent or overheating, which poses a safety hazard.

[0004] Therefore, the industry urgently needs a double Type-C control technology that can intelligently identify device types, dynamically allocate interface functions, support efficient power sharing of two devices, and have full-cycle safety monitoring. SUMMARY

[0005] In view of the above problems, the purpose of the present application is to provide a dual Type-C circuit-based adaptive PD charging control method, system and storage medium, which monitors the connection state of the dual Type-C interface in real time, collects power-on current information when detecting peripheral access, intelligently identifies the device type in combination with the preset current threshold range and the PD protocol handshake process, and then dynamically configures the function switching switch and the charging management module: if it is a data device, the data path is turned on and the power output is limited, and if it is a charging device, the charging parameters are negotiated through the PD protocol and high-power power transmission is enabled; in addition, when two ports are simultaneously accessed to a charging device, the system dynamically allocates the output based on the interface total power threshold and the device request power, and supports the priority strategy and the power renegotiation mechanism; at the same time, the system continuously monitors parameters such as voltage, current and temperature, and automatically triggers power reduction or switching operation when the limit is exceeded. The present application realizes intelligent identification, power optimization allocation and multi-mode adaptive switching of dual interfaces, and significantly improves the device compatibility, system safety and energy efficiency performance.

[0006] The first aspect of the present application provides a dual Type-C circuit-based adaptive PD charging control method, which comprises:

[0007] Monitoring the first interface and the second interface to obtain the connection state;

[0008] If the connection state is in the peripheral access state, the power-on current information is obtained;

[0009] Determine whether the power-on current information is within the preset current threshold range;

[0010] If yes, the peripheral type is obtained based on the preset PD protocol handshake process;

[0011] If no, the peripheral type is obtained based on the upper and lower limits of the current threshold range;

[0012] According to the peripheral type, the function switching switch is configured;

[0013] If the peripheral type is a data device, the high-power output path is closed and the data path is turned on;

[0014] If the peripheral type is a charging device, the charging management module is configured based on the electrical properties of the circuit;

[0015] In response to the simultaneous access of two charging devices, the charging interface is switched based on the preset interface total power threshold;

[0016] Real-time monitoring of the electrical parameters of the charging interface, when any electrical parameter exceeds the preset safety threshold, dynamically adjusting the charging management module or switching the charging interface.

[0017] The monitoring first interface and second interface obtains a connection state, and specifically comprises:

[0018] Based on a preset first sampling period, voltage information on CC pins of the first interface and the second interface is acquired;

[0019] When the voltage information of any interface is greater than a preset first voltage threshold, it is determined that a peripheral device is connected, and an interrupt signal is generated;

[0020] The interface identifier and timestamp corresponding to the interrupt signal are recorded, and the connection state of the corresponding interface is marked as a peripheral device connection state;

[0021] If the voltage information is not greater than the preset first voltage threshold, the interface is marked as an idle state.

[0022] In the present scheme, the peripheral device type is obtained according to the power-on current information and the current threshold range, and specifically comprises:

[0023] After determining that the interface is in a peripheral device connection state, the charging management module is controlled to provide a preset low-voltage power supply to the VBUS of the interface;

[0024] The current value of the VBUS line is continuously collected to obtain power-on current information;

[0025] If the power-on current information is lower than the lower limit value of the current threshold range, it is determined to be a data device;

[0026] If the power-on current information is higher than the upper limit value of the current threshold range, it is determined to be a charging device;

[0027] If the collected current value is within the current threshold range, the peripheral device type is obtained based on a preset PD protocol handshake process.

[0028] In the present scheme, the peripheral device type is obtained based on a preset PD protocol handshake process, and specifically comprises:

[0029] A preset first communication message is sent to the peripheral device through the dual-path PD protocol control module;

[0030] A first response message fed back by the peripheral device is received and parsed;

[0031] If the parsed information contains a power request object, and the voltage data provided by the power request object is higher than a preset second voltage threshold, it is determined to be a charging device;

[0032] If the parsed information contains VMD data or an Alt Mode request, it is determined to be a data device, specifically including a display device or a function expansion device;

[0033] If the response is received overtime or is parsed as invalid data, it is determined that the data device is a legacy device or a non-standard device.

[0034] In the scheme, the function switch is configured according to the type of the peripheral device, and specifically includes:

[0035] If the device is determined to be a charging device, a first switching instruction is sent to the function switch, connected to the charging management module, and the corresponding output voltage and current limit are configured based on the negotiated power capability;

[0036] If the device is determined to be a data device, a second switching instruction is sent to the function switch, connected to the data path, and the charging management module is controlled to be disconnected or limited to the VBUS power output of the interface;

[0037] If the data device is determined to be an Alt Mode device, a third switching instruction is sent to the function switch, connected to the high-speed signal link.

[0038] In the scheme, when two charging devices are accessed at the same time, the charging interface is switched based on a preset interface total power threshold, and specifically includes:

[0039] Based on the PD protocol, a first power requested by a first interface device and a second power requested by a second interface device are obtained;

[0040] Based on the maximum charging power allowed by the interface, the first power and the second power are used to obtain a third power and a fourth power;

[0041] It is determined whether the third power and the fourth power are both greater than a preset charging demand power;

[0042] If yes, the charging interface is selected based on a preset priority strategy;

[0043] If no, the charging interface corresponding to the larger power is selected;

[0044] Based on a preset adjustment period, power re-negotiation execution is sent to the unselected charging interface, and the charging interface selection step is re-executed after the power is adjusted.

[0045] The second aspect of the application provides a self-adaptive PD charging control system based on a double Type-C circuit, including a self-adaptive PD charging control method program based on a double Type-C circuit, and the self-adaptive PD charging control method program based on the double Type-C circuit is executed by the processor to realize the following steps:

[0046] The first interface and the second interface are monitored to obtain a connection state;

[0047] If the connection state is in a peripheral device access state, power-on current information is obtained;

[0048] determining whether the power-on current information is within a preset current threshold range;

[0049] If yes, obtaining a peripheral type based on a preset PD protocol handshake process;

[0050] If no, obtaining the peripheral type based on upper and lower limits of the current threshold range;

[0051] configuring the function switching switch according to the peripheral type;

[0052] If the peripheral type is a data device, closing a high-power output path and connecting a data path;

[0053] If the peripheral type is a charging device, configuring the charging management module based on electrical properties of a circuit;

[0054] In response to simultaneous access of two charging devices, switching a charging interface based on a preset interface total power threshold;

[0055] Real-time monitoring of electrical parameters of the charging interface, and dynamic adjustment of the charging management module or switching of the charging interface when any electrical parameter exceeds a preset safety threshold.

[0056] In the scheme, the first interface and the second interface are monitored to obtain a connection state, specifically including:

[0057] Based on a preset first sampling period, voltage information on CC pins of the first interface and the second interface is obtained;

[0058] When the voltage information of any interface is greater than a preset first voltage threshold, it is determined that a peripheral is accessed, and an interrupt signal is generated;

[0059] The interface identifier and the time stamp corresponding to the interrupt signal are recorded, and the connection state of the corresponding interface is marked as a peripheral access state;

[0060] If the voltage information is not greater than the preset first voltage threshold, the interface is marked as an idle state.

[0061] In the scheme, the peripheral type is obtained according to the power-on current information and the current threshold range, specifically including:

[0062] After determining that the interface is in the peripheral access state, the charging management module is controlled to provide a preset low-voltage power supply to the VBUS of the interface;

[0063] The current value of the VBUS line is continuously collected to obtain the power-on current information;

[0064] If the power-on current information is lower than the lower limit value of the current threshold range, it is determined to be a data device;

[0065] If the power-on current information is higher than the upper limit of the current threshold range, it is determined that the charging device is connected;

[0066] If the collected current value is within the current threshold range, the type of the peripheral device is determined based on a preset PD protocol handshake process.

[0067] The third aspect of the present application provides a computer readable storage medium, which comprises a self-adaptive PD charging control method based on a double Type-C circuit, and the self-adaptive PD charging control method based on the double Type-C circuit is executed by a processor to realize the steps of the self-adaptive PD charging control method based on the double Type-C circuit according to any one of the above aspects.

[0068] The present application provides a self-adaptive PD charging control method, system and storage medium based on a double Type-C circuit, which monitors the interface connection state in real time, collects power-on current information when detecting the connection of a peripheral device, intelligently identifies the type of the device by combining a preset current threshold range and a PD protocol handshake process, and dynamically configures a function switching switch and a charging management module; if it is a data device, the data path is connected and the power output is limited, if it is a charging device, the charging parameters are negotiated and high-power power transmission is enabled; when two charging devices are connected, intelligent power distribution and priority management are performed, and electrical parameters such as voltage, current and temperature are continuously monitored, and adaptive adjustment is triggered when the limit is exceeded. The present application realizes intelligent function switching and safe power management of the double interface, effectively avoids the risk of damage caused by misplug, and improves the device compatibility, system energy efficiency and user experience. BRIEF DESCRIPTION OF DRAWINGS

[0069] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope.

[0070] Figure 1 A flowchart of a self-adaptive PD charging control method based on a double Type-C circuit is shown;

[0071] Figure 2 A flowchart of detecting the connection of a peripheral device provided by an embodiment of the present application is shown;

[0072] Figure 3 A flowchart of confirming the type of a peripheral device provided by an embodiment of the present application is shown;

[0073] Figure 4 A block diagram of a self-adaptive PD charging control system based on a double Type-C circuit is shown. DETAILED DESCRIPTION

[0074] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0075] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present application have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined in the embodiments of the present application.

[0076] The terms "first", "second", and similar terms used in the embodiments of the present application do not denote any order, quantity, or importance, but are only used to distinguish different constituent parts. The terms "one", "a", or "the" and similar terms do not denote a quantity restriction, but mean that at least one exists. Similarly, the terms "include" or "contain" and similar terms mean that the elements or objects before the terms encompass the elements or objects listed after the terms and their equivalents, and do not exclude other elements or objects. The terms "connect" or "connected" and similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The steps before or after the methods in the embodiments of the present application do not necessarily proceed in order. On the contrary, various steps can be processed in reverse order or simultaneously. Meanwhile, other operations can be added to these processes, or a step or several steps can be removed from these processes.

[0077] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0078] The present application is applied to a dual Type-C circuit, which comprises two Type-C interfaces, a function switching switch, a dual-path PD protocol control module, and a charging management module.

[0079] The function switching switch is used to set the Type-C interface to a charging mode or a data mode.

[0080] The dual-path PD protocol control module is used for PD charging protocol configuration of the dual Type-C interface.

[0081] The charging management module is used for configuring the charging electrical parameters of the Type-C interface.

[0082] Figure 1 A flow chart of an adaptive PD charging control method based on a double Type-C circuit is shown.

[0083] As Figure 1 shown, the first aspect of the application discloses an adaptive PD charging control method based on a double Type-C circuit, the method comprising:

[0084] S102, monitoring the first interface and the second interface to obtain a connection state;

[0085] S104, if the connection state is in a peripheral access state, obtaining power-on current information;

[0086] S106, judging whether the power-on current information is within a preset current threshold range;

[0087] S108, if yes, obtaining a peripheral type based on a preset PD protocol handshake process;

[0088] S110, if no, obtaining a peripheral type based on the upper and lower limits of the current threshold range;

[0089] S112, configuring the function switch according to the peripheral type;

[0090] S114, if the peripheral type is a data device, closing a high-power output path and connecting a data path;

[0091] S116, if the peripheral type is a charging device, configuring the charging management module based on the electrical properties of the circuit;

[0092] S118, in response to the simultaneous access of two charging devices, switching the charging interface based on a preset interface total power threshold;

[0093] S120, real-time monitoring the electrical parameters of the charging interface, and dynamically adjusting the charging management module or switching the charging interface when any electrical parameter exceeds a preset safety threshold.

[0094] It should be noted that the electrical parameters of the charging interface at least include voltage, current and temperature values of the Type-C interface. In the embodiment, the continuous monitoring of the double Type-C interface connection state is achieved by collecting the voltage signal on the CC pin of each interface in real time and comparing it with the preset voltage threshold, so as to accurately identify whether the external device is connected. Once it is determined that a device is inserted, the system immediately triggers an interrupt response and records the access port identifier and timestamp, and then starts the device type identification process. In the identification stage, the system controls the charging management module to provide a default low-voltage power supply to the port, and measures the power-on current value flowing through the VBUS through a high-precision ADC. The power-on current value is compared with the preset current threshold range, if the current value is significantly lower than the lower threshold, it is preliminarily determined as a data device, if it is significantly higher than the upper threshold, it is determined as a charging device, and if it falls within the preset threshold range, the PD protocol handshake is started for accurate identification. After determining the type of the device, the system configures the function switch according to the identification result: if it is a data device, the high-power output is turned off and the data path is turned on, if it is a charging device, the appropriate charging parameters are set through the PD negotiation and the charging loop is turned on. When the double ports are connected to the charging device at the same time, the system dynamically allocates power or selects the charging interface according to the priority strategy based on the interface total power threshold and the real-time load. In addition, the system also continuously monitors the electrical parameters of the working interface, including voltage, current, temperature parameters; once any parameter exceeds the safe range, the adaptive adjustment operation such as power reduction, interface switching or output suspension is automatically executed to ensure the safety of the system. The embodiment is used to solve the problems of wrong insertion damage, unreasonable power distribution and thermal stability of the double Type-C device, and significantly improves the intelligence, safety and user experience of the device.

[0095] Figure 2 A flowchart of detecting the access of the external device is shown.

[0096] According to the embodiment of the application, as shown in Figure 2 The monitoring of the first interface and the second interface to obtain the connection state specifically includes:

[0097] S202, voltage information on the CC pin of the first interface and the second interface is obtained based on a preset first sampling period;

[0098] S204, when the voltage information of any interface is greater than a preset first voltage threshold, it is determined that an external device is connected, and an interrupt signal is generated;

[0099] S206, the interface identifier and the timestamp corresponding to the interrupt signal are recorded, and the connection state of the corresponding interface is marked as an external device access state;

[0100] S208, if the voltage information is not greater than the preset first voltage threshold, the interface is marked as an idle state.

[0101] It should be noted that the embodiment provides a specific implementation process of connection state monitoring. The voltage signal of the CC pin of the double Type-C interface is acquired at a fixed sampling period, and the signal is compared with a preset first voltage threshold in real time. When the voltage of any interface continuously exceeds the threshold, the system determines that a peripheral device is stably connected and generates a high-priority interrupt signal. At the same time, the identifier and the accurate connection time of the interface are recorded, and the state of the interface is marked as "peripheral device connection", and the interface that is not triggered is maintained as "idle state" mark. The embodiment adopts a refined monitoring mechanism to ensure that the system can respond to the device plugging event in time, avoid misjudgment caused by transient poor contact or noise interference, and provide accurate and reliable state input for subsequent processes, thereby guaranteeing the basic stability and response real-time performance of the entire adaptive control process.

[0102] Figure 3 A flowchart for confirming the type of peripheral device is shown.

[0103] According to the embodiment of the application, as shown in Figure 3 , the type of peripheral device is obtained according to the power-on current information and the current threshold range, specifically:

[0104] S302, after determining that the interface is in a peripheral device connection state, controlling the charge management module to provide a preset low-voltage power supply to the VBUS of the interface;

[0105] S304, continuously collecting the current value of the VBUS line to obtain power-on current information;

[0106] S306, if the power-on current information is lower than the lower limit value of the current threshold range, it is determined to be a data device;

[0107] S308, if the power-on current information is higher than the upper limit value of the current threshold range, it is determined to be a charging device;

[0108] S310, if the collected current value is within the current threshold range, the type of peripheral device is obtained based on a preset PD protocol handshake process.

[0109] It should be noted that the embodiment provides an implementation of preliminary determination of device type based on power-on current information. When detecting the access of the external device, the charging management module applies a preset low-voltage power supply to the interface VBUS, and continuously collects the current waveform on the power supply line by using a high-precision ADC to extract the characteristic current value in the initial stage of power-on. If the current value is lower than the lower limit of the preset threshold range, it indicates that the device has a very small current, such as a U disk, a keyboard, and other pure data devices, and is directly classified as a data device. If the current value is higher than the upper limit of the threshold range, it indicates that the device has a significant surge current, such as a charger or a power bank, and is classified as a charging device. If the current value falls within the set threshold interval, the PD protocol handshake process is entered for secondary confirmation. The hierarchical judgment mechanism used in the embodiment greatly improves the speed and energy efficiency of device identification, especially when accessing known types of devices, unnecessary protocol communication overhead can be avoided, and the system response time is shortened.

[0110] According to the embodiment of the application, the device type is obtained based on the preset PD protocol handshake process, specifically comprising:

[0111] sending a preset first communication message to the external device through the dual-path PD protocol control module;

[0112] receiving and analyzing the first response message fed back by the external device;

[0113] if the analyzed information contains a power request object, and the voltage data provided by the power request object is higher than a preset second voltage threshold, it is determined as a charging device;

[0114] if the analyzed information contains VMD data or an Alt Mode request, it is determined as a data device, specifically including a display device or a functional expansion device;

[0115] if the response reception is timed out or the analysis is invalid data, it is determined as a traditional data device or a non-standard device.

[0116] It should be noted that the embodiment provides a PD protocol handshake process. First, a standard format Source_Capabilities message is sent to the access device through the dual-path PD protocol controller, and a Request message or a specific configuration data packet returned by the parsing device is received. If the parsing information contains a valid power request object, and the voltage demand is higher than the system preset threshold, it is confirmed as a charging device and its power capacity is recorded. If the parsing information contains VDM identity data or AltMode switching request, such as DisplayPort Alternate Mode, it is determined as a video output or function expansion device. If the response is timed out or the data is invalid, it is classified as a traditional data device or a non-standard device. The embodiment ensures the accuracy and compatibility of device type identification through multi-layer protocol parsing and semantic judgment, and can effectively distinguish various devices conforming to the PD standard or the traditional USB standard, providing a reliable basis for subsequent function switching.

[0117] According to the embodiment of the application, the function switching switch is configured according to the type of the peripheral device, and specifically includes:

[0118] If it is determined as a charging device, a first switching instruction is sent to the function switching switch, connected to the charging management module, and the corresponding output voltage and current limit value are configured based on the negotiated power capability;

[0119] If it is determined as a data device, a second switching instruction is sent to the function switching switch, connected to the data path, and the charging management module is controlled to be disconnected or limited to the VBUS power output of the interface;

[0120] If the data device is determined as an Alt Mode device, a third switching instruction is sent to the function switching switch, connected to the high-speed signal link.

[0121] It should be noted that the embodiment provides the configuration logic of the function switching switch module. After the device type is determined, if it is determined as a charging device, a first instruction is sent to the function switching switch module to switch to the charging management module path; and the output voltage and current limit are set according to the negotiated power parameters. If it is determined as a data device, a second instruction is sent to connect the data bus, such as a USB host controller or a PCIe channel, and the charging management module is configured to limit or cut off the VBUS power supply. If the identified data device is an Alt Mode supported device, such as a DP display, an additional third instruction is sent to configure the high-speed signal link to the corresponding data or display controller. The embodiment realizes accurate resource allocation for different device types through instruction and hardware abstraction, which not only guarantees charging efficiency and data throughput performance, but also avoids conflicts between power and signal resources, and embodies the high integration and intelligent scheduling capability of the system.

[0122] According to the embodiment of the present application, the switching the charging interface based on the preset interface total power threshold value in response to the simultaneous access of two charging devices specifically comprises:

[0123] Based on the PD protocol, the first power requested by the first interface device and the second power requested by the second interface device are obtained;

[0124] Based on the maximum charging power allowed by the interface, the third power and the fourth power are obtained according to the first power and the second power;

[0125] It is judged whether the third power and the fourth power are both greater than the preset charging demand power;

[0126] If yes, the charging interface is selected based on the preset priority strategy;

[0127] If no, the charging interface corresponding to the greater power is selected;

[0128] Based on the preset adjustment period, the power re-negotiation execution is sent to the unselected charging interface, and the judgment and selection steps of the charging interface are re-executed after the power is adjusted.

[0129] It should be noted that the embodiment provides an intelligent power distribution and interface management process when two charging devices are simultaneously accessed. First, through the established PD protocol communication link, the power values requested by the charging devices connected to the first interface and the second interface are obtained respectively. The system compares the two requested powers with the maximum power provided by the charging management module for the corresponding interface; the charging power provided for the two interfaces is according to the smaller value. For example, if the requested powers of the first interface and the second interface are 100W and 80W respectively, it indicates that the connected charging devices can provide 100W and 80W of charging power respectively. According to the maximum power allocated by the charging management module for each interface (for example, 120W and 20W), the system finally determines that the charging power that the first interface and the second interface can provide is 100W and 20W respectively. Further, based on the user preset strategy (such as left port priority or high power device priority), or based on the real-time state of the system (such as battery power and heat dissipation condition), the optimal allocation scheme is dynamically calculated. After determining the priority, based on the preset re-negotiation period, the PD protocol re-negotiation request is sent to the interface that is not fully powered, and the power rating is proposed to be updated. If the device agrees, it will be powered according to the new contract, and if it disagrees, the charging function of the port will be suspended. The system also periodically re-evaluates the power distribution state, and actively triggers a new round of negotiation when the total load or system conditions change. The embodiment is used to ensure that the total power of the system does not exceed the limit in the dual charging scene, and at the same time, the available power resources are maximized, which avoids the charging interruption caused by the overload protection trigger, and improves the user convenience and system energy efficiency in the multi-device charging scene.

[0130] It is worth mentioning that the electrical parameters of the real-time monitoring charging interface are monitored, and when any electrical parameter exceeds a preset safety threshold, the charging management module is dynamically adjusted or the charging interface is switched, specifically including:

[0131] Based on a preset monitoring period, electrical parameters of the VBUS of the interface being charged are obtained, including at least voltage value, current value and temperature value;

[0132] The voltage value is compared with the preset overvoltage protection threshold and the under-voltage protection threshold, the current value is compared with the over-current protection threshold, and the temperature value is compared with the over-temperature protection threshold;

[0133] When any electrical parameter exceeds the corresponding safety threshold, a fault event signal is generated;

[0134] In response to the fault event signal, a corresponding adaptive adjustment operation is performed, including:

[0135] If it is overvoltage or overcurrent, the output voltage or current limit is lowered;

[0136] If it is over-temperature, the output power is reduced or the charging is suspended;

[0137] When all parameters return to the normal range and continue for a stable time, the original power output is attempted to be gradually restored.

[0138] It is worth mentioning that the real-time safety monitoring and adaptive protection mechanism during charging is provided. A plurality of electrical parameters on the working charging interface are obtained at a fixed sampling period, including VBUS output voltage and current, interface connector temperature, etc.; and these real-time data are continuously compared with a set of preset safety thresholds, including overvoltage protection threshold, under-voltage protection threshold, over-current protection threshold and over-temperature protection threshold. When any parameter exceeds its safety range, the system immediately generates a fault event signal and triggers a corresponding compensation adjustment operation. As an embodiment, if overvoltage or overcurrent condition is detected, the charging management module gradually lowers the output voltage or current limit; if over-temperature is detected, the output power is reduced or the charging is suspended, and the system cooling unit can be linked to increase the cooling strength. Further, all protection operations adopt a smooth adjustment strategy to avoid secondary stress caused by sudden changes in voltage and current. Once all parameters return to normal and remain stable for a period of time, the system will automatically attempt to gradually restore to the original working point. Through the closed-loop monitoring and adjustment mechanism, the robustness and safety of the charging process are enhanced, potential risks caused by adapter failure, cable aging or poor contact are effectively prevented, the service life of the equipment is prolonged, and the safety of the user is guaranteed.

[0139] It is worth mentioning that it also includes:

[0140] If the CC pin voltage of the interface currently charging or transmitting data suddenly drops below the disconnection threshold, it is determined that the peripheral device on the interface has been removed.

[0141] The function switch is controlled to reset the path of the interface to a high resistance state, and the charging management module is notified to stop supplying power to the interface.

[0142] If a new peripheral device is detected to access the idle interface, the complete process from obtaining the connection state to configuring the function switch is immediately re-executed.

[0143] It should be noted that the embodiment provides a process for handling device hot plug events and a system state reset process. By continuously monitoring the level state of the CC pin of each interface, if the CC voltage of the interface currently in the charging or data transmission state suddenly drops below the disconnection threshold, it is determined that the peripheral device on the interface has been physically removed; the system immediately controls the function switch to set the relevant path of the interface to a high resistance state, and instructs the charging management module to stop the power supply output to the interface, and updates the system state table to mark the interface as idle. If a new peripheral device accesses any idle interface, the system immediately re-executes the complete initialization sequence from connection detection, device identification to function configuration, without user intervention, and automatically recovers the corresponding function. The embodiment realizes seamless detection and state conversion of device plug-in events, ensures timely release and reallocation of system resources, avoids power waste or signal conflict, and improves the response speed and consistency of user experience of the system.

[0144] It is worth mentioning that it also includes:

[0145] Obtaining system state information, including at least battery power, cooling fan speed or processor load rate;

[0146] When the battery power is lower than the preset low power threshold, the charging device priority is increased or the charging management module is adjusted to allocate more power to the charging interface;

[0147] When the system temperature is too high or the processor load rate is too large, the cooling fan speed is increased, the charging power is reduced or part of the non-critical data transmission operation is suspended.

[0148] It should be noted that the embodiment provides an adaptive optimization strategy for the overall state of the system. By collecting multi-dimensional system state data including battery remaining capacity, cooling fan speed, processor load rate, and comparing with the preset state threshold value. As an embodiment, when the battery capacity is lower than the low capacity alarm threshold, the system automatically promotes the priority of the charging device and allocates more available power to the charging interface to restore the battery capacity as soon as possible; when the system temperature is too high or the processor load is too heavy, the charging power is reduced or the part of the background data transmission task is suspended to reduce the overall thermal load and computing pressure of the system, and to ensure the stable operation of the core function. Among them, all adjustment strategies are implemented in a gradual manner to avoid state mutation. The embodiment deeply integrates the charging control and the global state management of the system, realizes the dynamic optimization of resource allocation, not only improves the energy efficiency at the power level, but also ensures the thermal stability and performance reliability at the system level, and embodies the advanced design concept of intelligent device management.

[0149] Figure 4 A block diagram of an adaptive PD charging control system based on a double Type-C circuit is shown.

[0150] As Figure 4 shown, the second aspect of the application discloses an adaptive PD charging control system 4 based on a double Type-C circuit, comprising a memory 41 and a processor 42, the memory comprising an adaptive PD charging control method program based on a double Type-C circuit, the adaptive PD charging control method program based on a double Type-C circuit is executed by the processor to realize the following steps:

[0151] Monitoring the first interface and the second interface to obtain the connection state;

[0152] If the connection state is in the peripheral access state, the power-on current information is obtained;

[0153] Determine whether the power-on current information is within the preset current threshold range;

[0154] If yes, the peripheral type is obtained based on the preset PD protocol handshake process;

[0155] If not, the peripheral type is obtained based on the upper and lower limits of the current threshold range;

[0156] According to the peripheral type, the function switch is configured;

[0157] If the peripheral type is a data device, the high-power output path is closed and the data path is connected;

[0158] If the peripheral type is a charging device, the charging management module is configured based on the electrical properties of the circuit;

[0159] switching the charging interface based on a preset interface total power threshold in response to simultaneous access to two charging devices;

[0160] monitoring electrical parameters of the charging interface in real time, and dynamically adjusting the charging management module or switching the charging interface when any electrical parameter exceeds a preset safety threshold.

[0161] It should be noted that the electrical parameters of the charging interface at least include voltage, current and temperature values of the Type-C interface. In this embodiment, the continuous monitoring of the dual Type-C interface connection state is achieved by collecting the voltage signals on the CC pins of each interface in real time and comparing them with the preset voltage threshold, so as to accurately identify whether the external device is connected. Once it is determined that a device is inserted, the system immediately triggers an interrupt response and records the access port identifier and timestamp, and then starts the device type identification process. In the identification stage, the system controls the charging management module to provide a default low-voltage power supply to the port, and measures the power-on current value flowing through the VBUS through a high-precision ADC. The power-on current value is compared with the preset current threshold range, if the current value is significantly lower than the lower threshold, it is preliminarily determined as a data device, if it is significantly higher than the upper threshold, it is determined as a charging device, and if it falls within the preset threshold range, the PD protocol handshake is started for accurate identification. After determining the device type, the system configures the function switch according to the identification result: if it is a data device, the high-power output is turned off and the data path is turned on, if it is a charging device, the appropriate charging parameters are set through PD negotiation and the charging loop is turned on. When two ports are simultaneously connected to charging devices, the system dynamically allocates power or selects the charging interface according to the priority strategy based on the interface total power threshold and the real-time load. In addition, the system also continuously monitors the electrical parameters of the working interface, including voltage, current and temperature parameters; once any parameter exceeds the safety range, the adaptive adjustment operation such as power reduction, interface switching or output suspension is automatically performed to ensure system safety. This embodiment solves the problems of wrong insertion damage, unreasonable power distribution and thermal stability of dual Type-C devices, and significantly improves the intelligence, safety and user experience of the device.

[0162] According to the embodiment of the application, the monitoring the first interface and the second interface to obtain the connection state specifically comprises:

[0163] obtaining voltage information on CC pins of the first interface and the second interface based on a preset first sampling period;

[0164] when the voltage information of any interface is greater than a preset first voltage threshold, it is determined that an external device is connected, and an interrupt signal is generated;

[0165] recording the interface identifier and the timestamp corresponding to the interrupt signal, and marking the connection state of the corresponding interface as an external device access state;

[0166] If the voltage information is not greater than a preset first voltage threshold, mark the interface as an idle state.

[0167] It should be noted that the embodiment provides a specific implementation process of connection state monitoring. The voltage signal of the CC pin of the double Type-C interface is obtained at a fixed sampling period, and the signal is compared with a preset first voltage threshold in real time. When the voltage of any interface continuously exceeds the threshold, the system determines that a peripheral device is stably connected and generates a high-priority interrupt signal. At the same time, the identifier and accurate connection time of the interface are recorded, and the state of the interface is marked as "peripheral device connection", and the interface that is not triggered is maintained as "idle state" mark. The embodiment adopts a refined monitoring mechanism to ensure that the system can respond to device plugging and unplugging events in time, avoid misjudgment caused by transient poor contact or noise interference, and provide accurate and reliable state input for subsequent processes, thereby ensuring the basic stability and response real-time performance of the entire adaptive control process.

[0168] According to the embodiment of the application, the peripheral device type is obtained according to the power-on current information and the current threshold range, specifically:

[0169] After determining that the interface is in a peripheral device connection state, the charging management module is controlled to provide a preset low-voltage power supply to the VBUS of the interface;

[0170] The current value of the VBUS line is continuously collected to obtain power-on current information;

[0171] If the power-on current information is lower than the lower limit value of the current threshold range, it is determined to be a data device;

[0172] If the power-on current information is higher than the upper limit value of the current threshold range, it is determined to be a charging device;

[0173] If the collected current value is within the current threshold range, the peripheral device type is obtained based on a preset PD protocol handshake process.

[0174] It should be noted that the embodiment provides an implementation of preliminary determination of device type based on power-on current information. When detecting the access of the external device, the charging management module applies a preset low-voltage power supply to the interface VBUS, and continuously collects the current waveform on the power supply line by using a high-precision ADC to extract the characteristic current value in the initial stage of power-on. If the current value is lower than the lower limit of the preset threshold range, it indicates that the device has a minimum current, such as a U disk, a keyboard, and other pure data devices, and is directly classified as a data device. If the current value is higher than the upper limit of the threshold range, it indicates that the device has a significant surge current, such as a charger or a mobile power supply, and is classified as a charging device. If the current value falls within the set threshold interval, the PD protocol handshake process is entered for secondary confirmation. The hierarchical judgment mechanism adopted in the embodiment greatly improves the speed and energy efficiency of device identification, especially when accessing known types of devices, unnecessary protocol communication overhead can be avoided, and the system response time is shortened.

[0175] According to the embodiment of the application, the device type is obtained based on the preset PD protocol handshake process, and specifically includes:

[0176] sending a preset first communication message to the external device through the dual-path PD protocol control module;

[0177] receiving and analyzing the first response message fed back by the external device;

[0178] if the analyzed information contains a power request object, and the voltage data provided by the power request object is higher than a preset second voltage threshold, the device is determined to be a charging device;

[0179] if the analyzed information contains VMD data or an Alt Mode request, the device is determined to be a data device, specifically including a display device or a functional expansion device;

[0180] if the response is received overtime or is invalid data, the device is determined to be a traditional data device or a non-standard device.

[0181] It should be noted that the embodiment provides a PD protocol handshake process. First, a standard format Source_Capabilities message is sent to the access device through the dual-path PD protocol controller, and a Request message or a specific configuration data packet returned by the parsing device is received. If the parsing information contains a valid power request object, and the voltage demand is higher than the system preset threshold, it is confirmed as a charging device and its power capacity is recorded. If the parsing information contains VDM identity data or AltMode switching request, such as DisplayPort Alternate Mode, it is determined as a video output or function expansion device. If the response is timed out or the data is invalid, it is classified as a traditional data device or a non-standard device. The embodiment ensures the accuracy and compatibility of device type identification through multi-layer protocol parsing and semantic judgment, and can effectively distinguish various devices conforming to the PD standard or the traditional USB standard, providing a reliable basis for subsequent function switching.

[0182] According to the embodiment of the application, the function switching switch is configured according to the type of the peripheral device, and specifically includes:

[0183] If it is determined as a charging device, a first switching instruction is sent to the function switching switch, connected to the charging management module, and the corresponding output voltage and current limit value are configured based on the negotiated power capability;

[0184] If it is determined as a data device, a second switching instruction is sent to the function switching switch, connected to the data path, and the charging management module is controlled to be disconnected or limited to the VBUS power output of the interface;

[0185] If the data device is determined as an Alt Mode device, a third switching instruction is sent to the function switching switch, connected to the high-speed signal link.

[0186] It should be noted that the embodiment provides the configuration logic of the function switching switch module. After the device type is determined, if it is determined as a charging device, a first instruction is sent to the function switching switch module to switch to the charging management module path; and the output voltage and current limit are set according to the negotiated power parameters. If it is determined as a data device, a second instruction is sent to connect the data bus, such as a USB host controller or a PCIe channel, and the charging management module is configured to limit or cut off the VBUS power supply. If the identified data device is an Alt Mode supported device, such as a DP display, an additional third instruction is sent to configure the high-speed signal link to the corresponding data or display controller. The embodiment realizes accurate resource allocation for different device types through instruction and hardware abstraction, which not only guarantees charging efficiency and data throughput performance, but also avoids conflicts between power and signal resources, and embodies the high integration and intelligent scheduling capability of the system.

[0187] According to the embodiment of the present application, the response to simultaneous access to two charging devices, based on the preset interface total power threshold, switching charging interface, specifically comprising:

[0188] Based on the PD protocol, the first interface device requested first power and the second interface device requested second power are obtained;

[0189] Based on the maximum charging power allowed by the interface, the third power and the fourth power are obtained according to the first power and the second power;

[0190] Determine whether the third power and the fourth power are greater than the preset charging demand power;

[0191] If yes, select the charging interface based on the preset priority strategy;

[0192] If not, select the charging interface corresponding to the larger power;

[0193] Based on the preset adjustment period, send power renegotiation execution to the unselected charging interface, adjust the power and re-execute the judgment and selection steps of the charging interface.

[0194] It should be noted that the embodiment provides an intelligent power distribution and interface management process when two charging devices are simultaneously accessed. First, through the established PD protocol communication link, the power values requested by the charging devices connected to the first interface and the second interface are obtained respectively. The system compares the two requested powers with the maximum power provided by the charging management module for the corresponding interface; the charging power provided for the two interfaces is according to the smaller value. For example, if the requested powers of the first interface and the second interface are 100W and 80W respectively, it means that the connected charging devices can provide 100W and 80W of charging power respectively. According to the maximum power allocated by the charging management module for each interface (for example, 120W and 20W), the system finally determines that the charging power that the first interface and the second interface can provide is 100W and 20W respectively. Further, based on the user preset strategy (such as left port priority or high power device priority), or based on the real-time state of the system (such as battery power and cooling condition), the optimal allocation scheme is dynamically calculated. After determining the priority, based on the preset renegotiation period, the PD protocol renegotiation request is sent to the interface that is not fully powered, and the power level is proposed to be updated. If the device agrees, it will be powered according to the new contract, and if it disagrees, the charging function of the port will be suspended. The system also periodically re-evaluates the power distribution state and actively triggers a new round of negotiation when the total load or system conditions change. The embodiment is used to ensure that the total power of the system does not exceed the limit in the dual charging scene, and at the same time, the available power resources are maximized. It not only avoids the charging interruption caused by overload protection triggering, but also improves the user convenience and system energy efficiency in the multi-device charging scene.

[0195] It is worth mentioning that the electrical parameters of the real-time monitoring charging interface are monitored, and when any electrical parameter exceeds a preset safety threshold, the charging management module is dynamically adjusted or the charging interface is switched, specifically including:

[0196] Based on a preset monitoring period, electrical parameters of the VBUS of the interface being charged are obtained, including at least voltage value, current value and temperature value;

[0197] The voltage value is compared with the preset overvoltage protection threshold and the under-voltage protection threshold, the current value is compared with the over-current protection threshold, and the temperature value is compared with the over-temperature protection threshold;

[0198] When any electrical parameter exceeds the corresponding safety threshold, a fault event signal is generated;

[0199] In response to the fault event signal, a corresponding adaptive adjustment operation is performed, including:

[0200] If it is overvoltage or overcurrent, the output voltage or current limit is lowered;

[0201] If it is over-temperature, the output power is reduced or the charging is suspended;

[0202] When all parameters return to the normal range and last for a stable time, the original power output is tried to be gradually restored.

[0203] It should be noted that the embodiment provides a real-time safety monitoring and adaptive protection mechanism during charging. A plurality of electrical parameters on the working charging interface are obtained at a fixed sampling period, including VBUS output voltage and current, interface connector temperature, etc.; and these real-time data are continuously compared with a set of preset safety thresholds, including overvoltage protection threshold, under-voltage protection threshold, over-current protection threshold and over-temperature protection threshold. When any parameter exceeds its safety range, the system immediately generates a fault event signal and triggers a corresponding compensation adjustment operation. As an implementation, if overvoltage or overcurrent condition is detected, the charging management module gradually lowers the output voltage or current limit; if over-temperature is detected, the output power is reduced or the charging is suspended, and the system cooling unit can be linked to increase the cooling strength. Further, all protection operations adopt a smooth adjustment strategy to avoid secondary stress caused by sudden changes in voltage and current. Once all parameters return to normal and remain stable for a period of time, the system will automatically try to gradually restore to the original working point. Through the closed-loop monitoring and adjustment mechanism, the embodiment enhances the robustness and safety of the charging process, effectively prevents potential risks caused by adapter failure, cable aging or poor contact, prolongs the service life of the equipment and ensures user safety.

[0204] It is worth mentioning that it also includes:

[0205] If the CC pin voltage of the interface currently charging or transmitting data suddenly drops below the disconnection threshold, it is determined that the peripheral device on the interface has been removed.

[0206] The function switch is controlled to reset the path of the interface to a high resistance state, and the charging management module is notified to stop supplying power to the interface.

[0207] If a new peripheral device is detected to access the idle interface, the complete process from obtaining the connection state to configuring the function switch is immediately re-executed.

[0208] It should be noted that the embodiment provides a process for handling device hot plug events and a system state reset process. By continuously monitoring the level state of the CC pin of each interface, if the CC voltage of the interface currently in the charging or data transmission state suddenly drops below the disconnection threshold, it is determined that the peripheral device on the interface has been physically removed; the system immediately controls the function switch to set the related path of the interface to a high resistance state, and instructs the charging management module to stop the power supply output to the interface, and updates the system state table to mark the interface as idle. If a new peripheral device accesses any idle interface, the system immediately re-executes the complete initialization sequence from connection detection, device identification to function configuration, without user intervention, and automatically recovers the corresponding function. The embodiment realizes seamless detection and state conversion of device plug-in events, ensures timely release and reallocation of system resources, avoids power waste or signal conflict, and improves the response speed and consistency of user experience of the system.

[0209] It is worth mentioning that it also includes:

[0210] Obtaining system state information, including at least battery power, cooling fan speed or processor load rate;

[0211] When the battery power is lower than the preset low power threshold, the charging device priority is increased or the charging management module is adjusted to allocate more power to the charging interface;

[0212] When the system temperature is too high or the processor load rate is too large, the cooling fan speed is increased, the charging power is reduced, or part of the non-critical data transmission operation is suspended.

[0213] It should be noted that the embodiment provides an adaptive optimization strategy for the overall state of the system. By collecting multi-dimensional system state data including battery remaining capacity, cooling fan speed, processor load rate, etc. in real time, and comparing with the preset state threshold value. As an embodiment, when the battery capacity is lower than the low capacity alarm threshold, the system automatically improves the priority of the charging device and allocates more available power to the charging interface to restore the battery capacity as soon as possible; when it is monitored that the system temperature is too high or the processor load is too heavy, the charging power is actively reduced or part of the background data transmission task is suspended to reduce the overall thermal load and computing pressure of the system, and ensure the stable operation of the core function. Among them, all adjustment strategies are implemented in a gradual manner to avoid state mutation. The embodiment deeply integrates the charging control and the global state management of the system, realizes the dynamic optimization of resource allocation, not only improves the energy efficiency at the power level, but also ensures the thermal stability and performance reliability at the system level, and embodies the advanced design concept of intelligent device management.

[0214] The third aspect of the application provides a computer readable storage medium, comprising a dual Type-C circuit based adaptive PD charging control method program in the computer readable storage medium, the dual Type-C circuit based adaptive PD charging control method program is executed by the processor, the steps of the dual Type-C circuit based adaptive PD charging control method are realized.

[0215] In summary, the application provides a dual Type-C circuit based adaptive PD charging control method, system and storage medium, by monitoring the interface connection state in real time, and collecting power-on current information when detecting external device access, combining the preset current threshold range and PD protocol handshake process to intelligently identify the device type, and then dynamically configuring the function switching switch and the charging management module; if it is a data device, the data path is connected and the power output is limited, if it is a charging device, the charging parameters are negotiated and high-power power transmission is enabled; when dual charging devices are connected, intelligent power distribution and priority management are performed, and electrical parameters such as voltage, current and temperature are continuously monitored, and adaptive adjustment is triggered when the limit is exceeded. The application realizes intelligent function switching and safe power management of dual interfaces, effectively avoids the risk of damage caused by misplug, and improves device compatibility, system energy efficiency and user experience.

[0216] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the technical solutions that essentially contribute to the prior art or the parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0217] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. An adaptive PD charging control method based on a dual Type-C circuit, applied to a dual Type-C circuit, the circuit including two Type-C interfaces, a function switching switch, a dual-path PD protocol control module, and a charging management module; The function switch is used to set the Type-C interface to charging mode or data mode; The dual-path PD protocol control module is used for configuring the PD charging protocol of the dual Type-C interfaces; The charging management module is used to configure the charging electrical parameters of the Type-C interface; Its features are, The method includes: Monitor the first and second interfaces to obtain the connection status; If the connection status is in the peripheral access state, obtain the power-on current information; Determine whether the power-on current information is within a preset current threshold range; If so, the peripheral type is obtained based on the preset PD protocol handshake process; If not, the peripheral type is determined based on the upper and lower limits of the current threshold range; Configure the function switching switch according to the peripheral device type; If the peripheral device type is a data device, turn off the high-power output path and turn on the data path; If the peripheral device type is a charging device, the charging management module is configured based on the electrical attributes of the circuit; When two charging devices are connected simultaneously, the charging interface is switched based on a preset total interface power threshold. The electrical parameters of the charging interface are monitored in real time. When any electrical parameter exceeds the preset safety threshold, the charging management module is dynamically adjusted or the charging interface is switched. The response to simultaneously connecting two charging devices involves switching the charging interface based on a preset total interface power threshold, specifically including: Based on the PD protocol, the first power requested by the first interface device and the second power requested by the second interface device are obtained; Based on the maximum charging power allowed by the interface, the third power and the fourth power are obtained according to the first power and the second power; Determine whether both the third power and the fourth power are greater than the preset charging demand power; If so, the charging interface will be selected based on a preset priority strategy; If not, select the charging port with the higher power. Based on a preset adjustment cycle, power is sent to the unselected charging interface for renegotiation and execution. After adjusting the power, the charging interface selection step is re-executed.

2. The adaptive PD charging control method based on dual Type-C circuits according to claim 1, characterized in that, The monitoring of the first and second interfaces, and the acquisition of connection status, specifically includes: Based on a preset first sampling period, acquire voltage information on the CC pins of the first and second interfaces; When the voltage information of any interface is greater than the preset first voltage threshold, it is determined that a peripheral device is connected and an interrupt signal is generated. Record the interface identifier and timestamp corresponding to the interrupt signal, and mark the connection status of the corresponding interface as the peripheral access status; If the voltage information is not greater than a preset first voltage threshold, the interface is marked as idle.

3. The adaptive PD charging control method based on dual Type-C circuits according to claim 1, characterized in that, This includes determining the peripheral type based on power-on current information and current threshold range, specifically: After determining that the interface is in the peripheral access state, the charging management module is controlled to provide a preset low-voltage power supply to the VBUS of the interface. Continuously collect the current value of the VBUS line to obtain the power-on current information; If the power-on current information is lower than the lower limit of the current threshold range, it is determined to be a data device; If the power-on current information is higher than the upper limit of the current threshold range, it is determined to be a charging device; If the collected power-on current information is within the current threshold range, the peripheral type is obtained based on the preset PD protocol handshake process.

4. The adaptive PD charging control method based on dual Type-C circuits according to claim 3, characterized in that, The peripheral type is obtained based on the preset PD protocol handshake process, specifically including: The dual-channel PD protocol control module sends a preset first communication message to the peripheral device. Receive and parse the first response message from the peripheral device; If the parsed information contains a power request object, and the voltage data provided by the power request object is higher than the preset second voltage threshold, then it is determined to be a charging device. If the parsed information contains VDM data or Alt Mode requests, it is determined to be a data device, specifically including display devices or function extension devices; If the received response times out or is parsed as invalid data, it is determined to be a traditional data device or a non-standard device.

5. The adaptive PD charging control method based on dual Type-C circuits according to claim 4, characterized in that, The configuration of the function switching switch according to the peripheral device type specifically includes: If it is determined to be a charging device, a first switching command is sent to the function switching switch, connecting to the charging management module, and configuring the corresponding output voltage and current limits based on the negotiated power capability; If it is determined to be a data device, a second switching command is sent to the function switching switch to connect to the data path, and at the same time the charging management module is controlled to disconnect or limit the VBUS power output to the interface. If the data device is determined to be an Alt Mode device, a third switching command is sent to the function switch to connect to the high-speed signal link.

6. An adaptive PD charging control system based on a dual Type-C circuit, applied to a dual Type-C circuit, the circuit including two Type-C interfaces, a function switching switch, a dual-channel PD protocol control module and a charging management module; The function switch is used to set the Type-C interface to charging mode or data mode; The dual-path PD protocol control module is used for configuring the PD charging protocol of the dual Type-C interfaces; The charging management module is used to configure the charging electrical parameters of the Type-C interface; Its features are, The system includes a memory and a processor. The memory includes a program for an adaptive PD charging control method based on a dual Type-C circuit. When the processor executes the program for the adaptive PD charging control method based on the dual Type-C circuit, it performs the following steps: Monitor the first and second interfaces to obtain the connection status; If the connection status is in the peripheral access state, obtain the power-on current information; Determine whether the power-on current information is within a preset current threshold range; If so, the peripheral type is obtained based on the preset PD protocol handshake process; If not, the peripheral type is determined based on the upper and lower limits of the current threshold range; Configure the function switching switch according to the peripheral device type; If the peripheral device type is a data device, turn off the high-power output path and turn on the data path; If the peripheral device type is a charging device, the charging management module is configured based on the electrical attributes of the circuit; When two charging devices are connected simultaneously, the charging interface is switched based on a preset total interface power threshold. The electrical parameters of the charging interface are monitored in real time. When any electrical parameter exceeds the preset safety threshold, the charging management module is dynamically adjusted or the charging interface is switched. The response to simultaneously connecting two charging devices involves switching the charging interface based on a preset total interface power threshold, specifically including: Based on the PD protocol, the first power requested by the first interface device and the second power requested by the second interface device are obtained; Based on the maximum charging power allowed by the interface, the third power and the fourth power are obtained according to the first power and the second power; Determine whether both the third power and the fourth power are greater than the preset charging demand power; If so, the charging interface will be selected based on a preset priority strategy; If not, select the charging port with the higher power. Based on a preset adjustment cycle, power is sent to the unselected charging interface for renegotiation and execution. After adjusting the power, the charging interface selection step is re-executed.

7. The adaptive PD charging control system based on dual Type-C circuits according to claim 6, characterized in that, The monitoring of the first and second interfaces, and the acquisition of connection status, specifically includes: Based on a preset first sampling period, acquire voltage information on the CC pins of the first and second interfaces; When the voltage information of any interface is greater than the preset first voltage threshold, it is determined that a peripheral device is connected and an interrupt signal is generated. Record the interface identifier and timestamp corresponding to the interrupt signal, and mark the connection status of the corresponding interface as the peripheral access status; If the voltage information is not greater than a preset first voltage threshold, the interface is marked as idle.

8. The adaptive PD charging control system based on dual Type-C circuits according to claim 6, characterized in that, This includes determining the peripheral type based on power-on current information and current threshold range, specifically: After determining that the interface is in the peripheral access state, the charging management module is controlled to provide a preset low-voltage power supply to the VBUS of the interface. Continuously collect the current value of the VBUS line to obtain the power-on current information; If the power-on current information is lower than the lower limit of the current threshold range, it is determined to be a data device; If the power-on current information is higher than the upper limit of the current threshold range, it is determined to be a charging device; If the collected power-on current information is within the current threshold range, the peripheral type is obtained based on the preset PD protocol handshake process.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer-readable storage medium includes a program for an adaptive PD charging control method based on a dual Type-C circuit. When the program for the adaptive PD charging control method based on a dual Type-C circuit is executed by a processor, it implements the steps of the adaptive PD charging control method based on a dual Type-C circuit as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Double-Type-C-port shared charging power charger and intelligent output power distribution method thereof

    CN113472043A

  • Dynamic power sharing dual USB type C and power delivery receptacle

    US11586271B1