Self-adaptive PD charging control method and system based on double Type-C circuits and storage medium
By real-time monitoring of interface status and current information, combining the PD protocol to identify device types, and dynamically configuring function switching and charging management, the problem of insufficient adaptability of dual Type-C interfaces is solved, intelligent power distribution and safety monitoring are achieved, and device compatibility and user experience are improved.
Patent Information
- Application Number
- CN202511335942.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-18
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2045-09-18
AI Technical Summary
Existing dual Type-C interface solutions lack adaptive capabilities and are unable to intelligently identify device types or dynamically assign interface functions, leading to damage from misplugging, unreasonable power distribution, and safety hazards. This is especially true when multiple devices are connected and cannot be effectively managed.
By real-time monitoring of the interface connection status, collecting power-on current information, combining the preset current threshold range with the PD protocol handshake process to intelligently identify the device type, dynamically configuring the function switch and charging management module, achieving intelligent power optimization distribution and adaptive switching, and continuously monitoring electrical parameters to ensure safety.
It realizes intelligent identification of dual Type-C interfaces, optimized power distribution and multi-mode adaptive switching, improves device compatibility, system security and energy efficiency, avoids the risk of damage due to mis-insertion, and improves user experience.
Smart Images

Figure CN120824892A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Type-C interfaces, and more specifically, to an adaptive PD charging control method, system, and storage medium based on dual Type-C circuits. Background Art
[0002] With the mandatory implementation of the Type-C interface in the European Union and its becoming a universal standard for electronic devices, its comprehensive advantages, such as reversible plug-in compatibility, support for high-speed data transmission, video output, and high-power charging, have quickly gained market favor. Currently, more and more devices are beginning to be equipped with multiple Type-C interfaces to meet users' needs for simultaneous charging and data transmission. For example, a laptop has a Type-C port on one side for charging and a Type-C port on the other side for connecting to an expansion dock or monitor. However, this method of pre-setting physical functions has exposed significant flaws: users often plug in the wrong device due to the consistent appearance of the interfaces. This not only causes the function to not work properly, but frequent plugging and unplugging is more likely to cause physical damage to the interface or confusion in system logic. In addition, when the device needs to be rotated or moved, the fixed-function interface makes cable connection extremely inconvenient, seriously affecting the user experience.
[0003] In existing technologies, most dual Type-C interface solutions fail to achieve true adaptability. A common practice is to simply distinguish between charging ports and data ports in hardware, lacking a dynamic identification and switching mechanism based on device type. Some products attempt to distinguish device types through basic level detection, but relying solely on preliminary judgments based on current thresholds results in large errors, making it impossible to distinguish between chargers and mobile hard drives that both have high power requirements. It also struggles to address 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 the total power, which may result in overload protection power outages or interface preemption conflicts. Furthermore, traditional designs lack continuous monitoring of the operating status and adaptive protection, and are unable to dynamically adjust the output in the event of overvoltage, overcurrent, or overheating, posing a safety hazard.
[0004] Therefore, the industry urgently needs a dual Type-C control technology that can intelligently identify device types, dynamically allocate interface functions, support efficient power sharing between two devices, and have full-cycle safety monitoring. Summary of the Invention
[0005] In view of the above problems, the purpose of the present invention is to provide an adaptive PD charging control method, system and storage medium based on dual Type-C circuits. By monitoring the connection status of the dual Type-C interfaces in real time and collecting power-on current information when detecting peripheral access, the system intelligently identifies the device type by combining the preset current threshold range and the PD protocol handshake process, and then dynamically configures the function switching switch and 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 through the PD protocol and high-power transmission is enabled; in addition, when the two ports are connected to the charging device at the same time, the system dynamically allocates the output based on the total power threshold of the interface and the power requested by the device, and supports priority strategy and 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 operations when the limit is exceeded. The present invention realizes intelligent identification of dual interfaces, power optimization allocation and multi-mode adaptive switching, significantly improving device compatibility, system security and energy efficiency.
[0006] A first aspect of the present invention provides an adaptive PD charging control method based on a dual Type-C circuit, the method comprising: Monitor the first interface and the second interface to obtain connection status; If the connection state is in a peripheral access state, obtaining power-on current information; Determining whether the power-on current information is within a preset current threshold range; If yes, then the peripheral type is obtained based on the preset PD protocol handshake process; If not, the peripheral type is obtained based on the upper and lower limits of the current threshold range; Configuring the function switch according to the peripheral type; If the peripheral type is a data device, close the high-power output path and connect the data path; If the peripheral device type is a charging device, configuring the charging management module based on the electrical properties of the circuit; In response to two charging devices being connected simultaneously, switching the charging interface 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 a preset safety threshold, the charging management module is dynamically adjusted or the charging interface is switched.
[0007] In this solution, monitoring the first interface and the second interface to obtain the connection status specifically includes: Based on a preset first sampling period, obtaining voltage information on CC pins of the first interface and the second interface; 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; Recording the interface identifier and timestamp corresponding to the interrupt signal, and marking 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 being in an idle state.
[0008] This solution includes obtaining the peripheral type based on the power-on current information and the current threshold range, specifically: After determining that the interface is in a peripheral access state, controlling the charging management module 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 current value is within the current threshold range, the peripheral type is obtained based on a preset PD protocol handshake process.
[0009] In this solution, the peripheral type is obtained based on the preset PD protocol handshake process, specifically including: Sending a preset first communication message to the peripheral device through the dual-channel PD protocol control module; Receive and analyze a first response message fed back by 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 a preset second voltage threshold, it is determined to be a charging device; If the parsed information contains VMD data or Alt Mode request, it is determined to be a data device, specifically including a display device or a function expansion device; If the receiving response times out or is parsed as invalid data, it is determined to be a traditional data device or a non-standard device.
[0010] In this solution, configuring the function switching switch according to the peripheral type specifically includes: If it is determined to be a charging device, a first switching instruction is sent to the function switching switch, connected to the charging management module, and corresponding output voltage and current limit values are configured based on the negotiated power capability; If it is determined to be a data device, a second switching instruction 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 instruction is sent to the function switching switch to connect to the high-speed signal link.
[0011] In this solution, in response to simultaneous access to two charging devices, switching the charging interface based on a preset total interface power threshold specifically includes: Based on the PD protocol, obtaining a first power requested by the first interface device and a second power requested by the second interface device; Based on the maximum charging power allowed by the interface, obtain a third power and a fourth power according to the first power and the second power; Determining whether the third power and the fourth power are both greater than a preset charging requirement power; If so, the charging port is selected based on a preset priority strategy; If not, select the charging port corresponding to the higher power; Based on the preset adjustment period, a power renegotiation is sent to the unselected charging interface, and the charging interface judgment and selection steps are re-executed after the power is adjusted.
[0012] A second aspect of the present invention provides an adaptive PD charging control system based on a dual Type-C circuit, including an adaptive PD charging control method program based on a dual Type-C circuit. When the adaptive PD charging control method program based on a dual Type-C circuit is executed by the processor, the following steps are implemented: Monitor the first interface and the second interface to obtain connection status; If the connection state is in a peripheral access state, obtaining power-on current information; Determining whether the power-on current information is within a preset current threshold range; If yes, then the peripheral type is obtained based on the preset PD protocol handshake process; If not, the peripheral type is obtained based on the upper and lower limits of the current threshold range; Configuring the function switch according to the peripheral type; If the peripheral type is a data device, close the high-power output path and connect the data path; If the peripheral device type is a charging device, configuring the charging management module based on the electrical properties of the circuit; In response to two charging devices being connected simultaneously, switching the charging interface 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 a preset safety threshold, the charging management module is dynamically adjusted or the charging interface is switched.
[0013] In this solution, monitoring the first interface and the second interface to obtain the connection status specifically includes: Based on a preset first sampling period, obtaining voltage information on CC pins of the first interface and the second interface; 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; Recording the interface identifier and timestamp corresponding to the interrupt signal, and marking 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 being in an idle state.
[0014] This solution includes obtaining the peripheral type based on the power-on current information and the current threshold range, specifically: After determining that the interface is in a peripheral access state, controlling the charging management module 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 current value is within the current threshold range, the peripheral type is obtained based on a preset PD protocol handshake process.
[0015] A third aspect of the present invention provides a computer-readable storage medium, which includes an adaptive PD charging control method program based on a dual Type-C circuit. When the adaptive PD charging control method program based on a dual Type-C circuit is executed by a processor, the steps of the adaptive PD charging control method based on a dual Type-C circuit as described in any one of the above items are implemented.
[0016] The present invention provides an adaptive PD charging control method, system, and storage medium based on dual Type-C circuits. By monitoring the interface connection status in real time and collecting power-on current information when a peripheral device is detected, the method intelligently identifies the device type by combining a preset current threshold range with the PD protocol handshake process, and then dynamically configures a function switch and charging management module. If the device is a data device, the method connects the data path and limits power output; if the device is a charging device, the method negotiates charging parameters and enables high-power transmission. When dual charging devices are connected, the method performs intelligent power allocation and priority management, continuously monitors electrical parameters such as voltage, current, and temperature, and triggers adaptive adjustments when they exceed limits. The present invention implements intelligent function switching and safe power management for dual interfaces, effectively avoiding the risk of damage from mis-insertion, and improving device compatibility, system energy efficiency, and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope.
[0018] Figure 1 A flow chart of an adaptive PD charging control method based on dual Type-C circuits of the present invention is shown; Figure 2 A flowchart of detecting peripheral device access provided by an embodiment of the present invention is shown; Figure 3 A flowchart for confirming the type of a peripheral device provided by an embodiment of the present invention is shown; Figure 4 A block diagram of an adaptive PD charging control system based on dual Type-C circuits of the present invention is shown. DETAILED DESCRIPTION
[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0020] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meaning as commonly understood by those skilled in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined in this manner in the embodiments of the present invention.
[0021] The words "first", "second" and similar terms used in the embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "one", "an" or "the" do not indicate a quantity limitation, but rather indicate the existence of at least one. Similarly, words such as "include" or "comprise" mean that the elements or objects preceding the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method of the embodiment of the present invention do not necessarily have to be performed in exact order. On the contrary, the various steps may be processed in reverse order or simultaneously. At the same time, other operations may be added to these processes, or one or more steps may be removed from these processes.
[0022] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0023] The present invention is applied to a dual Type-C circuit, which includes 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-channel PD protocol control module is used for PD charging protocol configuration of dual Type-C interfaces; The charging management module is used to configure the charging electrical parameters of the Type-C interface.
[0024] Figure 1 A flow chart of an adaptive PD charging control method based on dual Type-C circuits of the present invention is shown.
[0025] like Figure 1 As shown, the first aspect of the present invention discloses an adaptive PD charging control method based on a dual Type-C circuit, the method comprising: S102, monitoring the first interface and the second interface to obtain a connection status; S104, if the connection state is in a peripheral access state, obtaining power-on current information; S106, determining whether the power-on current information is within a preset current threshold range; S108, if yes, then obtain the peripheral type based on the preset PD protocol handshake process; S110, if not, obtain the peripheral type based on the upper and lower limits of the current threshold range; S112, configuring the function switching switch according to the peripheral type; S114, if the peripheral device type is a data device, close the high-power output path and connect the data path; S116, if the peripheral device type is a charging device, configuring the charging management module based on the electrical properties of the circuit; S118, in response to two charging devices being connected simultaneously, switching the charging interface based on a preset total interface power threshold; S120, 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.
[0026] It should be noted that the electrical parameters of the charging interface include at least the voltage, current, and temperature of the Type-C interface. In this embodiment, the connection status of the dual Type-C interfaces is continuously monitored by collecting the voltage signals on the CC pins of each interface in real time and comparing them with preset voltage thresholds to accurately identify whether a peripheral device is connected. Once a device is detected, the system immediately triggers an interrupt response and records the access port identifier and timestamp, thereby initiating the device type identification process. During the identification phase, the system controls the charging management module to provide a default low-voltage power supply to the port and measures the power-up current flowing through the VBUS using a high-precision ADC. The power-up current value is compared with a preset current threshold range. If the current value is significantly below the lower threshold, it is preliminarily identified as a data device. If it is significantly above the upper threshold, it is identified as a charging device. If it falls within the preset threshold range, the PD protocol handshake is initiated for accurate identification. After determining the device type, the system configures the function switch based on the identification result: if it is a data device, the high-power output is disabled and the data path is enabled; if it is a charging device, appropriate charging parameters are set through PD negotiation and the charging circuit is enabled. When dual-port charging devices are connected simultaneously, the system dynamically allocates power or prioritizes the charging port based on the total port power threshold and real-time load conditions. Furthermore, the system continuously monitors the electrical parameters of the working ports, including voltage, current, and temperature. If any parameter exceeds a safe range, it automatically implements adaptive adjustments such as power reduction, port switching, or output suspension to ensure system safety. This embodiment addresses potential issues with dual Type-C devices, such as incorrect insertion and damage, improper power distribution, and thermal stability, significantly improving device intelligence, security, and user experience.
[0027] Figure 2 A flow chart of detecting peripheral device access provided by an embodiment of the present invention is shown.
[0028] According to an embodiment of the present invention, Figure 2 As shown, the monitoring of the first interface and the second interface to obtain the connection status specifically includes: S202, obtaining voltage information on CC pins of the first interface and the second interface based on a preset first sampling period; S204, 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; S206, recording the interface identifier and timestamp corresponding to the interrupt signal, and marking the connection state of the corresponding interface as a peripheral access state; S208: If the voltage information is not greater than a preset first voltage threshold, mark the interface as being in an idle state.
[0029] It should be noted that this embodiment provides a specific implementation process for connection status monitoring. The voltage signal of the CC pin of the dual Type-C interface is obtained at a fixed sampling period, and the signal is compared with the preset first voltage threshold in real time. When the voltage of any interface continues to exceed the threshold, the system determines that a peripheral is stably connected and generates a high-priority interrupt signal. At the same time, the identifier and precise access time of the interface are recorded, and its status is marked as "peripheral access", while the interface that is not triggered maintains the "idle state" mark. This embodiment adopts a refined monitoring mechanism to ensure that the system can respond to device plug-in and unplug events in a timely manner, avoiding misjudgments due to instantaneous poor contact or noise interference; at the same time, it provides accurate and reliable status input for subsequent processes, thereby ensuring the basic stability and real-time response of the entire adaptive control process.
[0030] Figure 3 A flowchart for confirming the type of a peripheral device provided by an embodiment of the present invention is shown.
[0031] According to an embodiment of the present invention, Figure 3 As shown, the peripheral type is obtained based on the power-on current information and the current threshold range, specifically: S302, after determining that the interface is in a peripheral access state, controlling the charging management module to provide a preset low-voltage power supply to the VBUS of the interface; S304, continuously collecting the current value of the VBUS line to obtain power-on current information; S306, if the power-on current information is lower than the lower limit of the current threshold range, determine it as a data device; S308, if the power-on current information is higher than the upper limit of the current threshold range, determine that it is a charging device; S310: If the collected current value is within the current threshold range, obtain the peripheral type based on a preset PD protocol handshake process.
[0032] It should be noted that this embodiment provides an implementation method for preliminarily judging the device type based on power-on current information. When the peripheral device is detected to be connected, the charging management module applies a preset low-voltage power supply to the interface VBUS, and uses a high-precision ADC to continuously collect the current waveform on the power line 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 draws very little current, such as pure data devices such as USB flash drives and keyboards, 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 inrush current, such as a charger or mobile power supply, and is classified as a charging device; if the current value falls within the set threshold range, it enters the PD protocol handshake process for secondary confirmation. The hierarchical judgment mechanism adopted in this embodiment greatly improves the speed and energy efficiency of device identification, especially when connecting to a known type of device, it can avoid unnecessary protocol communication overhead and shorten the system response time.
[0033] According to an embodiment of the present invention, obtaining the peripheral type based on the preset PD protocol handshake process specifically includes: Sending a preset first communication message to the peripheral device through the dual-channel PD protocol control module; Receive and analyze a first response message fed back by 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 a preset second voltage threshold, it is determined to be a charging device; If the parsed information contains VMD data or Alt Mode request, it is determined to be a data device, specifically including a display device or a function expansion device; If the receiving response times out or is parsed as invalid data, it is determined to be a traditional data device or a non-standard device.
[0034] It should be noted that this embodiment provides a PD protocol handshake process. First, a Source_Capabilities message in a standard format is sent to the access device through the dual-channel PD protocol controller, and a Request message or a specific configuration data packet returned by the parsing device is received. If the parsed information contains a valid power request object and its voltage requirement is higher than the system preset threshold, it is confirmed as a charging device and its power capacity is recorded. If the parsed information contains VDM identity data or AltMode switching request, such as DisplayPort Alternate Mode, it is determined to be a video output or function expansion device. If the response times out or the data is invalid, it is classified as a traditional data device or a non-standard device. This embodiment ensures the accuracy and compatibility of device type identification through multi-layer protocol parsing and semantic judgment, and can effectively distinguish various types of devices that comply with the PD standard or the traditional USB standard, providing a reliable basis for subsequent function switching.
[0035] According to an embodiment of the present invention, configuring the function switching switch according to the peripheral type specifically includes: If it is determined to be a charging device, a first switching instruction is sent to the function switching switch, connected to the charging management module, and corresponding output voltage and current limit values are configured based on the negotiated power capability; If it is determined to be a data device, a second switching instruction 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 instruction is sent to the function switching switch to connect to the high-speed signal link.
[0036] It should be noted that this embodiment provides the configuration logic of the function switching switch module. After the device type is determined, if it is determined to be a charging device, a first instruction is sent to the function switching switch module to switch it to the charging management module path; at the same time, the output voltage and current limit are set according to the negotiated power parameters. If it is determined to be 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 data device is identified as a device that supports Alt Mode, such as a DP display, a third instruction is additionally sent to configure the high-speed signal link to the corresponding data or display controller. This embodiment achieves precise resource allocation for different device types through instructionization and hardware abstraction, which not only ensures charging efficiency and data throughput performance, but also avoids conflicts between power and signal resources, reflecting the system's high integration and intelligent scheduling capabilities.
[0037] According to an embodiment of the present invention, in response to simultaneously connecting two charging devices, switching the charging interface based on a preset interface total power threshold specifically includes: Based on the PD protocol, obtaining a first power requested by the first interface device and a second power requested by the second interface device; Based on the maximum charging power allowed by the interface, obtain a third power and a fourth power according to the first power and the second power; Determining whether the third power and the fourth power are both greater than a preset charging requirement power; If so, the charging port is selected based on a preset priority strategy; If not, select the charging port corresponding to the higher power; Based on the preset adjustment period, a power renegotiation is sent to the unselected charging interface, and the charging interface judgment and selection steps are re-executed after the power is adjusted.
[0038] It should be noted that this embodiment provides an intelligent power allocation and interface management process for simultaneous access of two charging devices. First, the system obtains the power values requested by the charging devices connected to the first and second interfaces via an established PD protocol communication link. The system compares these two requested powers with the maximum powers provided by the charging management module for the corresponding interfaces; the smaller value is used to determine the charging power provided to both interfaces. For example, if the power requests for the first and second interfaces are 100W and 80W, respectively, this indicates that the connected charging devices can provide 100W and 80W of charging power, respectively. Based on the maximum power allocated to each interface by the charging management module (e.g., 120W and 20W), the system ultimately determines that the charging powers provided by the first and second interfaces are 100W and 20W, respectively. Furthermore, the system dynamically calculates the optimal power allocation based on user-preset policies (e.g., left-side interface priority or high-power device priority) or real-time system status (e.g., battery charge level and heat dissipation conditions). After determining the priority, the system sends a PD protocol renegotiation request to the interface that is not fully powered, proposing an updated power level, based on a preset renegotiation period. If the device agrees, power is supplied according to the new contract; if not, charging on that port is suspended. The system also periodically reassesses the power allocation status and proactively triggers a new round of negotiation when the total load or system conditions change. This embodiment ensures that the total system power does not exceed the limit in dual-charging scenarios while maximizing the use of available power resources. This avoids charging interruptions caused by overload protection triggering and improves user convenience and system energy efficiency in multi-device charging scenarios.
[0039] It is worth mentioning that the real-time monitoring of the electrical parameters of the charging interface and the dynamic adjustment of the charging management module or the switching of the charging interface when any electrical parameter exceeds a preset safety threshold specifically include: Based on a preset monitoring period, obtain electrical parameters of VBUS of the charging interface, including at least voltage value, current value and temperature value; Compare the voltage value with the preset overvoltage protection threshold and undervoltage protection threshold, compare the current value with the overcurrent protection threshold, and compare the temperature value with the overtemperature protection threshold; When any electrical parameter exceeds the corresponding safety threshold, a fault event signal is generated; In response to the fault event signal, performing a corresponding adaptive adjustment operation includes: If it is overvoltage or overcurrent, lower the output voltage or current limit; If it is over-temperature, reduce the output power or suspend charging; When all parameters return to normal range and remain stable for a period of time, try to gradually restore to the original power output.
[0040] It should be noted that this embodiment provides a real-time safety monitoring and adaptive protection mechanism during the charging process. Multiple electrical parameters of the operating charging interface, including VBUS output voltage and current, interface connector temperature, and so on, are acquired at a fixed sampling period. This real-time data is continuously compared against a set of preset safety thresholds, including overvoltage, undervoltage, overcurrent, and overtemperature protection thresholds. If any parameter exceeds its safety range, the system immediately generates a fault event signal and triggers appropriate compensation and adjustment actions. In one embodiment, if an overvoltage or overcurrent condition is detected, the charging management module is controlled to gradually lower the output voltage or current limit. If an overtemperature condition is detected, the output power is reduced or charging is suspended, and the system's heat dissipation unit can be linked to increase cooling intensity. Furthermore, all protection operations utilize a smooth adjustment strategy to avoid secondary stress caused by sudden voltage and current changes. Once all parameters return to normal and remain stable for a period of time, the system automatically attempts to gradually restore to the original operating point. This embodiment enhances the robustness and safety of the charging process through a closed-loop monitoring and adjustment mechanism, effectively preventing potential risks caused by adapter failure, cable aging, or poor contact, extending device life and ensuring user safety.
[0041] It is worth mentioning that it also includes: If the CC pin voltage of the interface currently charging or transmitting data suddenly drops below the disconnection threshold, it is determined that the interface peripheral has been removed; Controlling the function switching switch to reset the path of the interface to a high impedance state, and notifying the charging management module to stop supplying power to the interface; If it is detected that a new peripheral device is connected to an idle interface, the entire process from obtaining the connection status to configuring the function switch is immediately re-executed.
[0042] It should be noted that this embodiment provides a process for handling device hot-plug events and resetting the system status. By continuously monitoring the level status of the CC pins of each interface. If it is found that the CC voltage of the interface currently in the charging or data transmission state suddenly drops below the disconnection judgment threshold, it is determined that the peripheral on the interface has been physically removed; the system then controls the function switching switch to set the relevant path of the interface to a high-impedance state, and instructs the charging management module to stop the power output to the interface, and at the same time updates the system status table to mark the interface as idle. If a new peripheral is connected to any idle interface, the system immediately re-executes the complete initialization sequence from connection detection, device identification to function configuration, and automatically restores the corresponding function without user intervention. This embodiment realizes seamless detection and state transition of device plug-in events, ensures the timely release and reallocation of system resources, avoids power consumption or signal conflicts, and improves the response speed of the system and the consistency of user experience.
[0043] It is worth mentioning that it also includes: Obtaining system status information, including at least battery power, cooling fan speed, or processor load rate; When the battery level is lower than a preset low-battery threshold, the priority of the charging device is increased or the charging management module is adjusted to allocate more power to the charging port; When the system temperature is too high or the processor load is too high, increase the cooling fan speed, reduce the charging power, or suspend some non-critical data transmission operations.
[0044] It should be noted that this embodiment provides an adaptive optimization strategy for the overall state of the system. By real-time collection of multi-dimensional system state data including the remaining battery power, cooling fan speed, and processor load rate, and comparing with the preset state thresholds. As an implementation method, when the battery power is lower than the low-battery alarm threshold, the system automatically increases the priority of the charging device and allocates more available power to the charging interface to restore the battery power as soon as possible; when it is detected that the system temperature is too high or the processor load is too heavy, the charging power is actively reduced or some background data transmission tasks are suspended to reduce the overall thermal load and computing pressure of the system and ensure the stable operation of the core functions. Among them, all adjustment strategies are implemented in a gradual manner to avoid sudden state changes. This embodiment deeply integrates charging control with system global state management to achieve dynamic optimization of resource allocation, which not only improves energy efficiency at the power level, but also ensures thermal stability and performance reliability at the system level, reflecting the advanced design concept of intelligent device management.
[0045] Figure 4 A block diagram of an adaptive PD charging control system based on dual Type-C circuits of the present invention is shown.
[0046] like Figure 4 As shown, the second aspect of the present invention discloses an adaptive PD charging control system 4 based on a dual Type-C circuit, including a memory 41 and a processor 42. The memory includes an adaptive PD charging control method program based on a dual Type-C circuit. When the adaptive PD charging control method program based on a dual Type-C circuit is executed by the processor, the following steps are implemented: Monitor the first interface and the second interface to obtain connection status; If the connection state is in a peripheral access state, obtaining power-on current information; Determining whether the power-on current information is within a preset current threshold range; If yes, then the peripheral type is obtained based on the preset PD protocol handshake process; If not, the peripheral type is obtained based on the upper and lower limits of the current threshold range; Configuring the function switch according to the peripheral type; If the peripheral type is a data device, close the high-power output path and connect the data path; If the peripheral device type is a charging device, configuring the charging management module based on the electrical properties of the circuit; In response to two charging devices being connected simultaneously, switching the charging interface 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 a preset safety threshold, the charging management module is dynamically adjusted or the charging interface is switched.
[0047] It should be noted that the electrical parameters of the charging interface include at least the voltage, current, and temperature of the Type-C interface. In this embodiment, the connection status of the dual Type-C interfaces is continuously monitored by collecting the voltage signals on the CC pins of each interface in real time and comparing them with preset voltage thresholds to accurately identify whether a peripheral device is connected. Once a device is detected, the system immediately triggers an interrupt response and records the access port identifier and timestamp, thereby initiating the device type identification process. During the identification phase, the system controls the charging management module to provide a default low-voltage power supply to the port and measures the power-up current flowing through the VBUS using a high-precision ADC. The power-up current value is compared with a preset current threshold range. If the current value is significantly below the lower threshold, it is preliminarily identified as a data device. If it is significantly above the upper threshold, it is identified as a charging device. If it falls within the preset threshold range, the PD protocol handshake is initiated for accurate identification. After determining the device type, the system configures the function switch based on the identification result: if it is a data device, the high-power output is disabled and the data path is enabled; if it is a charging device, appropriate charging parameters are set through PD negotiation and the charging circuit is enabled. When dual-port charging devices are connected simultaneously, the system dynamically allocates power or prioritizes the charging port based on the total port power threshold and real-time load conditions. Furthermore, the system continuously monitors the electrical parameters of the working ports, including voltage, current, and temperature. If any parameter exceeds a safe range, it automatically implements adaptive adjustments such as power reduction, port switching, or output suspension to ensure system safety. This embodiment addresses potential issues with dual Type-C devices, such as incorrect insertion and damage, improper power distribution, and thermal stability, significantly improving device intelligence, security, and user experience.
[0048] According to an embodiment of the present invention, monitoring the first interface and the second interface to obtain a connection status specifically includes: Based on a preset first sampling period, obtaining voltage information on CC pins of the first interface and the second interface; 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; Recording the interface identifier and timestamp corresponding to the interrupt signal, and marking 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 being in an idle state.
[0049] It should be noted that this embodiment provides a specific implementation process for connection status monitoring. The voltage signal of the CC pin of the dual Type-C interface is obtained at a fixed sampling period, and the signal is compared with the preset first voltage threshold in real time. When the voltage of any interface continues to exceed the threshold, the system determines that a peripheral is stably connected and generates a high-priority interrupt signal. At the same time, the identifier and precise access time of the interface are recorded, and its status is marked as "peripheral access", while the interface that is not triggered maintains the "idle state" mark. This embodiment adopts a refined monitoring mechanism to ensure that the system can respond to device plug-in and unplug events in a timely manner, avoiding misjudgments due to instantaneous poor contact or noise interference; at the same time, it provides accurate and reliable status input for subsequent processes, thereby ensuring the basic stability and real-time response of the entire adaptive control process.
[0050] According to an embodiment of the present invention, obtaining the peripheral type according to the power-on current information and the current threshold range is specifically as follows: After determining that the interface is in a peripheral access state, controlling the charging management module 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 current value is within the current threshold range, the peripheral type is obtained based on a preset PD protocol handshake process.
[0051] It should be noted that this embodiment provides an implementation method for preliminarily judging the device type based on power-on current information. When the peripheral device is detected to be connected, the charging management module applies a preset low-voltage power supply to the interface VBUS, and uses a high-precision ADC to continuously collect the current waveform on the power line 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 draws very little current, such as pure data devices such as USB flash drives and keyboards, 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 inrush current, such as a charger or mobile power supply, and is classified as a charging device; if the current value falls within the set threshold range, it enters the PD protocol handshake process for secondary confirmation. The hierarchical judgment mechanism adopted in this embodiment greatly improves the speed and energy efficiency of device identification, especially when connecting to a known type of device, it can avoid unnecessary protocol communication overhead and shorten the system response time.
[0052] According to an embodiment of the present invention, obtaining the peripheral type based on the preset PD protocol handshake process specifically includes: Sending a preset first communication message to the peripheral device through the dual-channel PD protocol control module; Receive and analyze a first response message fed back by 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 a preset second voltage threshold, it is determined to be a charging device; If the parsed information contains VMD data or Alt Mode request, it is determined to be a data device, specifically including a display device or a function expansion device; If the receiving response times out or is parsed as invalid data, it is determined to be a traditional data device or a non-standard device.
[0053] It should be noted that this embodiment provides a PD protocol handshake process. First, a Source_Capabilities message in a standard format is sent to the access device through the dual-channel PD protocol controller, and a Request message or a specific configuration data packet returned by the parsing device is received. If the parsed information contains a valid power request object and its voltage requirement is higher than the system preset threshold, it is confirmed as a charging device and its power capacity is recorded. If the parsed information contains VDM identity data or AltMode switching request, such as DisplayPort Alternate Mode, it is determined to be a video output or function expansion device. If the response times out or the data is invalid, it is classified as a traditional data device or a non-standard device. This embodiment ensures the accuracy and compatibility of device type identification through multi-layer protocol parsing and semantic judgment, and can effectively distinguish various types of devices that comply with the PD standard or the traditional USB standard, providing a reliable basis for subsequent function switching.
[0054] According to an embodiment of the present invention, configuring the function switching switch according to the peripheral type specifically includes: If it is determined to be a charging device, a first switching instruction is sent to the function switching switch, connected to the charging management module, and corresponding output voltage and current limit values are configured based on the negotiated power capability; If it is determined to be a data device, a second switching instruction 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 instruction is sent to the function switching switch to connect to the high-speed signal link.
[0055] It should be noted that this embodiment provides the configuration logic of the function switching switch module. After the device type is determined, if it is determined to be a charging device, a first instruction is sent to the function switching switch module to switch it to the charging management module path; at the same time, the output voltage and current limit are set according to the negotiated power parameters. If it is determined to be 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 data device is identified as a device that supports Alt Mode, such as a DP display, a third instruction is additionally sent to configure the high-speed signal link to the corresponding data or display controller. This embodiment achieves precise resource allocation for different device types through instructionization and hardware abstraction, which not only ensures charging efficiency and data throughput performance, but also avoids conflicts between power and signal resources, reflecting the system's high integration and intelligent scheduling capabilities.
[0056] According to an embodiment of the present invention, in response to simultaneously connecting two charging devices, switching the charging interface based on a preset interface total power threshold specifically includes: Based on the PD protocol, obtaining a first power requested by the first interface device and a second power requested by the second interface device; Based on the maximum charging power allowed by the interface, obtain a third power and a fourth power according to the first power and the second power; Determining whether the third power and the fourth power are both greater than a preset charging requirement power; If so, the charging port is selected based on a preset priority strategy; If not, select the charging port corresponding to the higher power; Based on the preset adjustment period, a power renegotiation is sent to the unselected charging interface, and the charging interface judgment and selection steps are re-executed after the power is adjusted.
[0057] It should be noted that this embodiment provides an intelligent power allocation and interface management process for simultaneous access of two charging devices. First, the system obtains the power values requested by the charging devices connected to the first and second interfaces via an established PD protocol communication link. The system compares these two requested powers with the maximum powers provided by the charging management module for the corresponding interfaces; the smaller value is used to determine the charging power provided to both interfaces. For example, if the power requests for the first and second interfaces are 100W and 80W, respectively, this indicates that the connected charging devices can provide 100W and 80W of charging power, respectively. Based on the maximum power allocated to each interface by the charging management module (e.g., 120W and 20W), the system ultimately determines that the charging powers provided by the first and second interfaces are 100W and 20W, respectively. Furthermore, the system dynamically calculates the optimal power allocation based on user-preset policies (e.g., left-side interface priority or high-power device priority) or real-time system status (e.g., battery charge level and heat dissipation conditions). After determining the priority, the system sends a PD protocol renegotiation request to the interface that is not fully powered, proposing an updated power level, based on a preset renegotiation period. If the device agrees, power is supplied according to the new contract; if not, charging on that port is suspended. The system also periodically reassesses the power allocation status and proactively triggers a new round of negotiation when the total load or system conditions change. This embodiment ensures that the total system power does not exceed the limit in dual-charging scenarios while maximizing the use of available power resources. This avoids charging interruptions caused by overload protection triggering and improves user convenience and system energy efficiency in multi-device charging scenarios.
[0058] It is worth mentioning that the real-time monitoring of the electrical parameters of the charging interface and the dynamic adjustment of the charging management module or the switching of the charging interface when any electrical parameter exceeds a preset safety threshold specifically include: Based on a preset monitoring period, obtain electrical parameters of VBUS of the charging interface, including at least voltage value, current value and temperature value; Compare the voltage value with the preset overvoltage protection threshold and undervoltage protection threshold, compare the current value with the overcurrent protection threshold, and compare the temperature value with the overtemperature protection threshold; When any electrical parameter exceeds the corresponding safety threshold, a fault event signal is generated; In response to the fault event signal, performing a corresponding adaptive adjustment operation includes: If it is overvoltage or overcurrent, lower the output voltage or current limit; If it is over-temperature, reduce the output power or suspend charging; When all parameters return to normal range and remain stable for a period of time, try to gradually restore to the original power output.
[0059] It should be noted that this embodiment provides a real-time safety monitoring and adaptive protection mechanism during the charging process. Multiple electrical parameters of the operating charging interface, including VBUS output voltage and current, interface connector temperature, and so on, are acquired at a fixed sampling period. This real-time data is continuously compared against a set of preset safety thresholds, including overvoltage, undervoltage, overcurrent, and overtemperature protection thresholds. If any parameter exceeds its safety range, the system immediately generates a fault event signal and triggers appropriate compensation and adjustment actions. In one embodiment, if an overvoltage or overcurrent condition is detected, the charging management module is controlled to gradually lower the output voltage or current limit. If an overtemperature condition is detected, the output power is reduced or charging is suspended, and the system's heat dissipation unit can be linked to increase cooling intensity. Furthermore, all protection operations utilize a smooth adjustment strategy to avoid secondary stress caused by sudden voltage and current changes. Once all parameters return to normal and remain stable for a period of time, the system automatically attempts to gradually restore to the original operating point. This embodiment enhances the robustness and safety of the charging process through a closed-loop monitoring and adjustment mechanism, effectively preventing potential risks caused by adapter failure, cable aging, or poor contact, extending device life and ensuring user safety.
[0060] It is worth mentioning that it also includes: If the CC pin voltage of the interface currently charging or transmitting data suddenly drops below the disconnection threshold, it is determined that the interface peripheral has been removed; Controlling the function switching switch to reset the path of the interface to a high impedance state, and notifying the charging management module to stop supplying power to the interface; If it is detected that a new peripheral device is connected to an idle interface, the entire process from obtaining the connection status to configuring the function switch is immediately re-executed.
[0061] It should be noted that this embodiment provides a process for handling device hot-plug events and resetting the system status. By continuously monitoring the level status of the CC pins of each interface. If it is found that the CC voltage of the interface currently in the charging or data transmission state suddenly drops below the disconnection judgment threshold, it is determined that the peripheral on the interface has been physically removed; the system then controls the function switching switch to set the relevant path of the interface to a high-impedance state, and instructs the charging management module to stop the power output to the interface, and at the same time updates the system status table to mark the interface as idle. If a new peripheral is connected to any idle interface, the system immediately re-executes the complete initialization sequence from connection detection, device identification to function configuration, and automatically restores the corresponding function without user intervention. This embodiment realizes seamless detection and state transition of device plug-in events, ensures the timely release and reallocation of system resources, avoids power consumption or signal conflicts, and improves the response speed of the system and the consistency of user experience.
[0062] It is worth mentioning that it also includes: Obtaining system status information, including at least battery power, cooling fan speed, or processor load rate; When the battery level is lower than a preset low-battery threshold, the priority of the charging device is increased or the charging management module is adjusted to allocate more power to the charging port; When the system temperature is too high or the processor load is too high, increase the cooling fan speed, reduce the charging power, or suspend some non-critical data transmission operations.
[0063] It should be noted that this embodiment provides an adaptive optimization strategy for the overall state of the system. By real-time collection of multi-dimensional system state data including the remaining battery power, cooling fan speed, and processor load rate, and comparing with the preset state thresholds. As an implementation method, when the battery power is lower than the low-battery alarm threshold, the system automatically increases the priority of the charging device and allocates more available power to the charging interface to restore the battery power as soon as possible; when it is detected that the system temperature is too high or the processor load is too heavy, the charging power is actively reduced or some background data transmission tasks are suspended to reduce the overall thermal load and computing pressure of the system and ensure the stable operation of the core functions. Among them, all adjustment strategies are implemented in a gradual manner to avoid sudden state changes. This embodiment deeply integrates charging control with system global state management to achieve dynamic optimization of resource allocation, which not only improves energy efficiency at the power level, but also ensures thermal stability and performance reliability at the system level, reflecting the advanced design concept of intelligent device management.
[0064] A third aspect of the present invention provides a computer-readable storage medium, which includes an adaptive PD charging control method program based on a dual Type-C circuit. When the adaptive PD charging control method program based on a dual Type-C circuit is executed by a processor, the steps of the adaptive PD charging control method based on a dual Type-C circuit as described in any one of the above items are implemented.
[0065] In summary, the present invention provides an adaptive PD charging control method, system, and storage medium based on dual Type-C circuits. By monitoring the interface connection status in real time and collecting power-on current information when detecting peripheral access, the system 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 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 transmission is enabled. When dual charging devices are connected, intelligent power allocation and priority management are performed, and electrical parameters such as voltage, current, and temperature are continuously monitored, triggering adaptive adjustment when the limit is exceeded. The present invention realizes intelligent function switching and safe power management of dual interfaces, effectively avoids the risk of damage caused by mis-insertion, and improves device compatibility, system energy efficiency, and user experience.
[0066] If the functions are implemented as software modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or the portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.
[0067] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.
Claims
1. An adaptive PD charging control method based on a dual Type-C circuit, applied to a dual Type-C circuit comprising two Type-C interfaces, a function 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-channel PD protocol control module is used for PD charging protocol configuration of dual Type-C interfaces; The charging management module is used to configure the charging electrical parameters of the Type-C interface; It is characterized by: The method comprises: Monitor the first interface and the second interface to obtain connection status; If the connection state is in a peripheral access state, obtaining power-on current information; Determining whether the power-on current information is within a preset current threshold range; If yes, then the peripheral type is obtained based on the preset PD protocol handshake process; If not, the peripheral type is obtained based on the upper and lower limits of the current threshold range; Configuring the function switch according to the peripheral type; If the peripheral type is a data device, close the high-power output path and connect the data path; If the peripheral device type is a charging device, configuring the charging management module based on the electrical properties of the circuit; In response to two charging devices being connected simultaneously, switching the charging interface 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 a preset safety threshold, the charging management module is dynamically adjusted or the charging interface is switched.
2. The adaptive PD charging control method based on dual Type-C circuit according to claim 1, characterized in that: The monitoring of the first interface and the second interface to obtain the connection status specifically includes: Based on a preset first sampling period, obtaining voltage information on CC pins of the first interface and the second interface; 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; Recording the interface identifier and timestamp corresponding to the interrupt signal, and marking 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 being in an idle state.
3. The adaptive PD charging control method based on dual Type-C circuit according to claim 1, characterized in that: This includes obtaining the peripheral type based on the power-on current information and the current threshold range, specifically: After determining that the interface is in a peripheral access state, controlling the charging management module 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 current value is within the current threshold range, the peripheral type is obtained based on a preset PD protocol handshake process.
4. The adaptive PD charging control method based on dual Type-C circuit according to claim 3, characterized in that: The peripheral type is obtained based on the preset PD protocol handshake process, specifically including: Sending a preset first communication message to the peripheral device through the dual-channel PD protocol control module; Receive and analyze a first response message fed back by 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 a preset second voltage threshold, it is determined to be a charging device; If the parsed information contains VMD data or Alt Mode request, it is determined to be a data device, specifically including a display device or a function expansion device; If the receiving 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 circuit according to claim 4, characterized in that: Configuring the function switching switch according to the peripheral type specifically includes: If it is determined to be a charging device, a first switching instruction is sent to the function switching switch, connected to the charging management module, and corresponding output voltage and current limit values are configured based on the negotiated power capability; If it is determined to be a data device, a second switching instruction 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 instruction is sent to the function switching switch to connect to the high-speed signal link.
6. The adaptive PD charging control method based on dual Type-C circuits according to claim 1, characterized in that: The switching of the charging interface based on a preset total interface power threshold in response to simultaneous access to two charging devices specifically includes: Based on the PD protocol, obtaining a first power requested by the first interface device and a second power requested by the second interface device; Based on the maximum charging power allowed by the interface, obtain a third power and a fourth power according to the first power and the second power; Determining whether the third power and the fourth power are both greater than a preset charging requirement power; If so, the charging port is selected based on a preset priority strategy; If not, select the charging port corresponding to the higher power; Based on the preset adjustment period, a power renegotiation is sent to the unselected charging interface, and the charging interface judgment and selection steps are re-executed after the power is adjusted.
7. 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-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-channel PD protocol control module is used for PD charging protocol configuration of dual Type-C interfaces; The charging management module is used to configure the charging electrical parameters of the Type-C interface; It is characterized by: The system includes a memory and a processor. The memory includes an adaptive PD charging control method program based on a dual Type-C circuit. When the adaptive PD charging control method program based on a dual Type-C circuit is executed by the processor, the following steps are implemented: Monitor the first interface and the second interface to obtain connection status; If the connection state is in a peripheral access state, obtaining power-on current information; Determining whether the power-on current information is within a preset current threshold range; If yes, then the peripheral type is obtained based on the preset PD protocol handshake process; If not, the peripheral type is obtained based on the upper and lower limits of the current threshold range; Configuring the function switch according to the peripheral type; If the peripheral type is a data device, close the high-power output path and connect the data path; If the peripheral device type is a charging device, configuring the charging management module based on the electrical properties of the circuit; In response to two charging devices being connected simultaneously, switching the charging interface 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 a preset safety threshold, the charging management module is dynamically adjusted or the charging interface is switched.
8. The adaptive PD charging control system based on dual Type-C circuits according to claim 7, characterized in that: The monitoring of the first interface and the second interface to obtain the connection status specifically includes: Based on a preset first sampling period, obtaining voltage information on CC pins of the first interface and the second interface; 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; Recording the interface identifier and timestamp corresponding to the interrupt signal, and marking 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 being in an idle state.
9. The adaptive PD charging control system based on dual Type-C circuits according to claim 7, characterized in that: This includes obtaining the peripheral type based on the power-on current information and the current threshold range, specifically: After determining that the interface is in a peripheral access state, controlling the charging management module 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 current value is within the current threshold range, the peripheral type is obtained based on a preset PD protocol handshake process.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes an adaptive PD charging control method program based on a dual Type-C circuit. When the adaptive PD charging control method program based on a dual Type-C circuit is executed by a processor, the steps of the adaptive PD charging control method based on a dual Type-C circuit are implemented as described in any one of claims 1 to 6.
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
Cited By
Multi-protocol self-adaption and battery matching mobile phone electrode charging adaptation method
CN121216675A
Multi-protocol adaptive and battery matching mobile phone extreme charging adaptation method
CN121216675B