Charging input and output control method of docking station equipment and related equipment
By obtaining and calculating the charging and discharging attributes and device information of the docking station device, judging the supply and demand scenario, and adjusting the interface power, the problem of insufficient power supply management of the docking station device in the existing technology is solved, and dynamic adjustment of the interface power and stable power supply of the device are achieved.
Patent Information
- Application Number
- CN202410887559.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-22
AI Technical Summary
Existing docking station devices cannot effectively manage power supply input and output when multiple devices are connected, causing some devices to be unable to supply power normally. Existing power management chips cannot dynamically update input and output power after interface changes.
By obtaining the charging and discharging attribute information of each interface and the device information of the plug-in device, the total input power and the total output power are calculated, the supply and demand scenario is determined, and the input or output power of the interface is adjusted according to the principle of minimum power matching error to achieve dynamic adjustment of the interface power. .
It realizes the dynamic and flexible adjustment of the power supply input and output of the docking station device when the interface changes, ensuring the normal power supply of the device and improving the stability and efficiency of the device connection.
Smart Images

Figure CN118819263A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of docking stations, and in particular to a charging input and output control method for an docking station device and related equipment. Background Art
[0002] As an external device for expanding and converting device interfaces, the docking station has many interfaces, including but not limited to interfaces for connecting laptops, tablets, network cables, mice, external keyboards, USB flash drives, printers, and external displays. The power input of the docking station device is usually limited. When there are many devices connected to the docking station device, some devices often cannot be powered normally after being connected. Therefore, it is particularly important for the docking station device to reasonably manage the input and output of power. The docking station device in the prior art has a built-in power management chip, but the existing power management chip can only prevent excessive power consumption at the output end, and cannot achieve real-time dynamic update of input and output power based on interface changes.
[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0004] The present invention provides a charging input and output control method of a docking station device and related devices. The main purpose of the present invention is to solve the technical problems mentioned in the background technology of the prior art.
[0005] A first aspect of the present invention provides a charging input and output control method for a docking station device, comprising:
[0006] In response to the plugging and unplugging of the interface, acquiring the charge and discharge property information of each configured interface and the device information of the plugged and unplugged device;
[0007] Based on the charge and discharge property information of each of the configured interfaces, obtaining a total input power and a total output power of the expansion dock device;
[0008] Based on the device information of the pluggable device, obtaining target input and output data of the pluggable interface;
[0009] Performing supply-demand balancing calculation based on the total input power, the total output power and the target input-output data to obtain updated configuration information of each of the configured interfaces and the plug-in interface;
[0010] The update configuration information is sent to each of the configured interfaces and the plug-in interface for execution.
[0011] In an optional implementation manner of the first aspect of the present invention, obtaining the total input power and the total output power of the docking station device based on the charge and discharge attribute information of each of the configured interfaces includes:
[0012] Extracting the charge and discharge type, rated voltage and rated current of each configured interface from the charge and discharge attribute information of each configured interface;
[0013] Dividing the configured interface into a charging input interface and a charging output interface based on the charging and discharging type;
[0014] Calculate the total input power of the docking station device using the rated voltages and the rated currents of all the charging input interfaces;
[0015] The total output power of the docking station device is calculated using the rated voltages and the rated currents of all the charging output interfaces.
[0016] In an optional implementation of the first aspect of the present invention, obtaining target input and output data of the plug-in interface based on the device information of the plug-in device includes:
[0017] Based on the device information of the pluggable device, obtaining a device type of the pluggable device, the device type including a charging device, a discharging device, and a chargeable and dischargeable device;
[0018] The target input and output data is obtained based on the device type of the plug-in device and the device charging and discharging attributes in the device information.
[0019] In an optional implementation of the first aspect of the present invention, the performing supply and demand balance calculation based on the total input power, the total output power and the target input and output data to obtain updated configuration information of each of the configured interfaces and the pluggable interface includes:
[0020] Based on the total input power, the total output power and the target input and output data, determining whether a power supply and demand scenario is one in which supply exceeds demand or supply falls short of demand;
[0021] If the power supply and demand scenario is that supply exceeds demand, analyzing the connected devices on each of the charging input interfaces to obtain the adjustable input power devices on each of the charging input interfaces;
[0022] The target adjustable input power device is determined according to the principle of minimum power matching error, and the input power of the charging input interface corresponding to the target adjustable input power device is changed to the first target power.
[0023] In an optional implementation manner of the first aspect of the present invention, determining a target adjustable input power device according to a principle of minimum power matching error, and changing the input power of the charging input interface corresponding to the target adjustable input power device to a first target power includes:
[0024] Obtaining a power supply protocol supported by each of the adjustable input power devices;
[0025] Calculating the power supply power of each of the adjustable input power devices under different power supply protocols;
[0026] Sorting all the adjustable input power devices in descending order according to their maximum power supply;
[0027] Perform power matching in sequence according to the sorting order to find the target adjustable input power device when the power matching error is the smallest;
[0028] The input power of the charging input interface corresponding to the target adjustable input power device is changed to a first target power.
[0029] In an optional implementation manner of the first aspect of the present invention, after judging whether the power supply and demand scenario is greater than demand or less than demand based on the total input power, the total output power and the target input and output data, the step further includes:
[0030] If the power supply and demand scenario is that supply is less than demand, analyzing the connected devices on each of the charging output interfaces to obtain the adjustable power devices on each of the charging output interfaces;
[0031] The target adjustable electric power device is determined according to the principle of minimum power matching error, and the output power of the charging output interface corresponding to the target adjustable electric power device is changed to a second target power.
[0032] In an optional implementation manner of the first aspect of the present invention, determining the target adjustable electric power device according to the principle of minimum power matching error, and changing the output power of the charging output interface corresponding to the target adjustable electric power device to the second target power includes:
[0033] Obtaining a power supply protocol supported by each of the adjustable power supply devices;
[0034] Calculate the power consumption of each adjustable power consumption device under different power consumption agreements;
[0035] Sorting all the adjustable power-taking devices in ascending order according to their maximum power taking;
[0036] Perform power matching in sequence according to the sorting order to find the target adjustable power device with the minimum power matching error;
[0037] The output power of the charging output interface corresponding to the target adjustable electric power device is changed to a second target power.
[0038] A second aspect of the present invention provides a charging input and output control device for a docking station device, the charging input and output control device for the docking station device comprising:
[0039] An information acquisition module, used to obtain the charge and discharge property information of each configured interface and the device information of the plugged and unplugged device in response to the plugging and unplugging of the interface;
[0040] A configured interface data calculation module, used to obtain the total input power and the total output power of the expansion dock device based on the charge and discharge attribute information of each of the configured interfaces;
[0041] A plug-in interface data calculation module, used to obtain target input and output data of the plug-in interface based on the device information of the plug-in device;
[0042] A supply-demand matching module, configured to perform supply-demand balancing calculation based on the total input power, the total output power and the target input-output data, and obtain updated configuration information of each of the configured interfaces and the plug-in interface;
[0043] The interface configuration update module is used to send the update configuration information to each of the configured interfaces and the plug-in interface for execution.
[0044] A third aspect of the present invention provides a docking station device, the docking station device comprising: a memory and at least one processor, the memory storing instructions, the memory and the at least one processor being interconnected via a line;
[0045] The at least one processor calls the instruction in the memory so that the docking station device executes the charging input and output control method of the docking station device as described in any one of the first aspects above.
[0046] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the charging input and output control method of the expansion dock device as described in any one of the above-mentioned first aspects is implemented.
[0047] Beneficial effects: The present invention provides a charging input and output control method and related equipment for an expansion dock device, the method comprising: obtaining the charging and discharging property information of each configured interface and the device information of the plug-in device in response to the plug-in and unplugging of the interface; obtaining the total input power and the total output power of the expansion dock device based on the charging and discharging property information of each configured interface; obtaining the target input and output data of the plug-in interface based on the device information of the plug-in device; performing supply and demand balancing calculation based on the total input power, the total output power and the target input and output data to obtain the updated configuration information of each configured interface and the plug-in interface; and sending the updated configuration information to each configured interface and the plug-in interface for execution. Each interface change of the expansion dock device of the present invention triggers the redistribution of the interface power, thereby realizing dynamic and flexible adjustment of charging input and output. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic diagram of an embodiment of a charging input and output control method for a docking station device according to the present invention;
[0049] Figure 2 A schematic diagram of the module composition of a charging input and output control device for an expansion dock device according to the present invention;
[0050] Figure 3 The figure is a schematic diagram of an embodiment of an expansion dock device of the present invention. DETAILED DESCRIPTION
[0051] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish
[0052] Similar objects are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0053] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first aspect of the present invention provides a charging input and output control method of a docking station device, comprising:
[0054] S100. In response to the plugging and unplugging of the interface, the charging and discharging property information of each configured interface and the device information of the plugged-in device are obtained; in the present invention, in response to the plugging and unplugging of the interface means that when it is monitored that a device is plugged in or unplugged from each interface of the expansion dock device, the charging and discharging property information of each configured interface and the device information of the plugged-in device are obtained from the configuration master table in the memory of the power management chip. It should be noted that in the present invention, once the device is unplugged from the interface, the configuration information of the interface will be cleared, and the configured interface is the interface to which a device was previously connected and the connected device has not been unplugged. When a new device is connected to an interface, the information of the connected device will also be uploaded to the configuration master table in the memory of the power management chip.
[0055] S200, based on the charge and discharge attribute information of each configured interface, obtain the total input power and total output power of the docking station device; in this step, the main purpose is to obtain which of the configured interfaces in the docking station are input, which are output, how much the input power is, and how much the output power is. The specific process of step S200 can be as follows:
[0056] From the charge and discharge attribute information of each of the configured interfaces, the charge and discharge type (charging interface or discharging interface), rated voltage and rated current of each of the configured interfaces are extracted. It should be noted that in the present invention, the charge and discharge attributes of each interface of the expansion dock can be changed, that is, in a certain case, this interface can be discharging, and another interface is charging; based on the charge and discharge type, the configured interfaces are divided into charging input interfaces and charging output interfaces; the total input power of the expansion dock device is calculated using the rated voltage and the rated current of all the charging input interfaces; the total output power of the expansion dock device is calculated using the rated voltage and the rated current of all the charging output interfaces.
[0057] S300, based on the device information of the plug-in device, obtain the target input and output data of the plug-in interface; in the present invention, the target input and output data is mainly for the case where a new device is plugged into the interface. For the case where the interface is unplugged, the step of obtaining the target input and output data in step S300 can be omitted. The specific steps of obtaining the target input and output data in step S300 can be as follows:
[0058] Based on the device information of the plug-in device, the device type of the plug-in device is obtained, and the device type includes charging devices, discharging devices, and chargeable and dischargeable devices; based on the device type of the plug-in device and the device charging and discharging attributes in the device information, the target input and output data is obtained. Among them, the device charging and discharging attributes record the rated voltage and rated current of the plug-in device in the charging mode and / or discharging mode, and the target input and output data is the power required for the normal operation of the plug-in device.
[0059] S400, perform supply and demand balance calculation based on the total input power, the total output power and the target input and output data to obtain updated configuration information of each of the configured interfaces and the plug-in interface; in the present invention, the criterion for supply and demand balance is that the total input power + the target input and output data is greater than or equal to the total output power and the difference is in a first threshold interval, or the total input power is greater than or equal to the total output power + the target input and output data and the difference is in a second threshold interval. The specific method to be adopted depends on whether the plug-in device corresponding to the target input and output data is a power supply device or a power extraction device. In the present invention, the updated configuration information is to adjust the input and output parameters of each interface (that is, which protocol the interface adopts, and what are the voltage and current under the definition of this protocol).
[0060] In an optional implementation manner of step S400 of the present invention, performing a supply-demand balance operation based on the total input power, the total output power, and the target input and output data to obtain updated configuration information of each of the configured interfaces and the plug-in interface includes:
[0061] Based on the total input power, the total output power and the target input and output data, determining whether a power supply and demand scenario is one in which supply exceeds demand or supply falls short of demand;
[0062] If the power supply and demand scenario is that supply exceeds demand, the connected devices on each of the charging input interfaces are analyzed to obtain the adjustable input power devices or changeable charging and discharging mode devices on each of the charging input interfaces; if the adjustable input power devices are obtained, the target adjustable input power devices are determined according to the principle of minimum power matching error, and the input power of the charging input interface corresponding to the target adjustable input power devices is changed to the first target power; if the changeable charging and discharging mode devices are obtained, the target changeable charging and discharging mode devices are determined according to the principle of minimum power matching error, the target changeable charging and discharging mode devices are changed from power supply mode to power extraction mode, and the power extraction protocol under the power extraction mode is determined.
[0063] Specifically, the present invention has two means to achieve supply and demand balance when supply exceeds demand. One is to adjust the input power of the input device, and the other is to convert part of the input device into a power-taking device. Taking the method of adjusting the input power of the input device as an example, the specific process of the supply and demand balance operation may include: obtaining the power supply protocol supported by each of the adjustable input power devices; calculating the power supply power of each of the adjustable input power devices under different power supply protocols (each device may support multiple power supply protocols, and each protocol will have a power supply power value, so there will be a maximum power supply power and a minimum power supply power); sorting all the adjustable input power devices in descending order according to the maximum power supply power; performing power matching in sequence according to the sorting order to find the target adjustable input power device when the power matching error is the smallest; changing the input power of the charging input interface corresponding to the target adjustable input power device to the first target power. In the present invention, the target adjustable input power device may be one or more, and for different target adjustable input power devices, the first target power may be different values.
[0064] If the power supply and demand scenario is that supply is less than demand, the connected devices on each of the charging output interfaces are analyzed to obtain the adjustable power devices or the changeable charging and discharging mode devices on each of the charging output interfaces; if the adjustable power devices are obtained, the target adjustable power devices are determined according to the principle of minimum power matching error, and the output power of the charging output interface corresponding to the target adjustable power devices is changed to the second target power; if the changeable charging and discharging mode devices are obtained, the target changeable charging and discharging mode devices are determined according to the principle of minimum power matching error, the target changeable charging and discharging mode devices are changed from power collection mode to power supply mode, and the power supply protocol used in the power supply mode is determined.
[0065] Specifically, the present invention also has two means to achieve supply and demand balance when supply is less than demand. One is to adjust the power of the power-taking device, and the other is to convert part of the power-taking device into an input device. Taking the method of adjusting the power of the power-taking device as an example, the specific process of the above steps may include: obtaining the power-taking protocol supported by each of the adjustable power-taking devices; calculating the power of each of the adjustable power-taking devices under different power-taking protocols (each device may support multiple power-taking protocols, and each protocol will have a power-taking power value, so there will be a maximum power-taking power and a minimum power-taking power); sorting all the adjustable power-taking devices in ascending order according to the maximum power; performing power matching in sequence according to the sorting order to find the target adjustable power-taking device when the power matching error is the smallest; changing the output power of the charging output interface corresponding to the target adjustable power-taking device to a second target power. In the present invention, the target adjustable power-taking device may also be one or more, and for different target adjustable power-taking devices, the second target power may be different values.
[0066] S500, sending the updated configuration information to each of the configured interfaces and the plug-in interface for execution. In step S500, the charging and discharging protocols (power supply protocol and / or power extraction protocol) used by each interface re-determined in the updated configuration information and the corresponding voltage and current parameters under the protocol are sent to each interface for execution. Each interface change of the expansion dock device of the present invention triggers the redistribution of interface power, thereby realizing dynamic and flexible adjustment of charging input and output.
[0067] See also Figure 2 According to a second aspect of the present invention, there is provided a charging input / output control device for a docking station device, the charging input / output control device for the docking station device comprising:
[0068] The information acquisition module 10 is used to obtain the charge and discharge property information of each configured interface and the device information of the plugged and unplugged device in response to the plugging and unplugging of the interface;
[0069] A configured interface data calculation module 20, configured to obtain the total input power and the total output power of the docking station device based on the charge and discharge attribute information of each configured interface;
[0070] A plug-in interface data calculation module 30, configured to obtain target input and output data of the plug-in interface based on the device information of the plug-in device;
[0071] A supply-demand matching module 40, configured to perform supply-demand balancing calculation based on the total input power, the total output power and the target input-output data, and obtain updated configuration information of each of the configured interfaces and the plug-in interface;
[0072] The interface configuration updating module 50 is used to send the updated configuration information to each of the configured interfaces and the plug-in interface for execution.
[0073] In an optional implementation of the second aspect of the present invention, the configured interface data calculation module includes:
[0074] An information extraction unit, configured to extract the charge and discharge type, rated voltage and rated current of each configured interface from the charge and discharge attribute information of each configured interface;
[0075] an interface division unit, configured to divide the configured interface into a charging input interface and a charging output interface based on the charging and discharging type;
[0076] an input total power calculation unit, configured to calculate the total input power of the docking station device by using the rated voltages and the rated currents of all the charging input interfaces;
[0077] The total output power calculation unit is used to calculate the total output power of the docking station device by using the rated voltages and the rated currents of all the charging output interfaces.
[0078] In an optional implementation of the second aspect of the present invention, the plug interface data calculation module includes:
[0079] A plug-in device type acquisition unit, configured to obtain a device type of the plug-in device based on the device information of the plug-in device, wherein the device type includes a charging device, a discharging device, and a chargeable and dischargeable device;
[0080] The plug-in device demand calculation unit is used to obtain the target input and output data based on the device type of the plug-in device and the device charging and discharging attributes in the device information.
[0081] In an optional implementation of the second aspect of the present invention, the supply and demand matching module includes:
[0082] A supply and demand scenario judgment unit, configured to judge whether the power supply and demand scenario is a power supply exceeding the demand or a power supply falling short of the demand based on the total input power, the total output power and the target input and output data;
[0083] The first supply and demand matching unit is used to analyze the connected devices on each of the charging input interfaces if the power supply and demand scenario is that supply exceeds demand, and obtain the adjustable input power devices on each of the charging input interfaces; and determine the target adjustable input power device according to the principle of minimum power matching error, and change the input power of the charging input interface corresponding to the target adjustable input power device to the first target power.
[0084] In an optional implementation of the second aspect of the present invention, the first supply-demand matching unit includes:
[0085] A power supply protocol acquisition unit, used to acquire a power supply protocol supported by each of the adjustable input power devices;
[0086] A power supply calculation unit, used to calculate the power supply power of each of the adjustable input power devices under different power supply protocols;
[0087] A descending order sorting unit, used to sort all the adjustable input power devices in descending order according to the maximum power supply power;
[0088] The first power matching unit is used to perform power matching in sequence according to the sorting order to find the target adjustable input power device when the power matching error is the smallest;
[0089] The first power changing unit is used to change the input power of the charging input interface corresponding to the target adjustable input power device to a first target power.
[0090] In an optional implementation of the second aspect of the present invention, the supply-demand matching module based on the total input power further includes:
[0091] The second supply and demand matching unit is used to analyze the connected devices on each of the charging output interfaces if the power supply and demand scenario is that supply is less than demand, and obtain the adjustable electric power devices on each of the charging output interfaces; and determine the target adjustable electric power device according to the principle of minimum power matching error, and change the output power of the charging output interface corresponding to the target adjustable electric power device to the second target power.
[0092] In an optional implementation manner of the second aspect of the present invention, the second supply-demand matching unit includes:
[0093] A power supply protocol acquisition unit, used to acquire the power supply protocol supported by each of the adjustable power supply devices;
[0094] A power taking calculation unit, used to calculate the power taking power of each of the adjustable power taking devices under different power taking protocols;
[0095] An ascending sorting unit, used to sort all the adjustable power-taking devices in ascending order according to their maximum power taking powers;
[0096] The second power matching unit is used to perform power matching in sequence according to the sorting order to find the target adjustable power device when the power matching error is the smallest;
[0097] The second power changing unit is used to change the output power of the charging output interface corresponding to the target adjustable electric power device to a second target power.
[0098] Figure 3 It is a structural schematic diagram of a docking station device provided by an embodiment of the present invention. The docking station device may have relatively large differences due to different configurations or performances, and may include one or more processors 60 (central processing units, CPU) (for example, one or more processors) and a memory 70, and one or more storage media 80 for storing application programs or data (for example, one or more mass storage devices). Among them, the memory and the storage medium may be temporary storage or permanent storage. The program stored in the storage medium may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the docking station device. Furthermore, the processor may be configured to communicate with the storage medium to execute a series of instruction operations in the storage medium on the docking station device.
[0099] The docking station device of the present invention may also include one or more power supplies 90, one or more wired or wireless network interfaces 100, one or more input and output interfaces 110, and / or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 3 The structure of the docking station device shown does not constitute a limitation on the docking station device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0100] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the charging input and output control method of the expansion dock device.
[0101] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system or system or unit described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0103] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A charging input and output control method for a docking station device, characterized in that: include: In response to the plugging and unplugging of the interface, acquiring the charge and discharge property information of each configured interface and the device information of the plugged and unplugged device; Based on the charge and discharge property information of each of the configured interfaces, obtaining a total input power and a total output power of the expansion dock device; Based on the device information of the pluggable device, obtaining target input and output data of the pluggable interface; Performing supply-demand balancing calculation based on the total input power, the total output power and the target input-output data to obtain updated configuration information of each of the configured interfaces and the plug-in interface; The update configuration information is sent to each of the configured interfaces and the plug-in interface for execution.
2. The charging input and output control method of the docking station device according to claim 1, characterized in that: The obtaining of the total input power and the total output power of the docking station device based on the charge and discharge property information of each of the configured interfaces includes: Extracting the charge and discharge type, rated voltage and rated current of each configured interface from the charge and discharge attribute information of each configured interface; Dividing the configured interface into a charging input interface and a charging output interface based on the charging and discharging type; Calculate the total input power of the docking station device using the rated voltages and the rated currents of all the charging input interfaces; The total output power of the docking station device is calculated using the rated voltages and the rated currents of all the charging output interfaces.
3. The charging input and output control method of the docking station device according to claim 2, characterized in that: The obtaining target input and output data of the plug-in interface based on the device information of the plug-in device comprises: Based on the device information of the pluggable device, obtaining a device type of the pluggable device, the device type including a charging device, a discharging device, and a chargeable and dischargeable device; The target input and output data is obtained based on the device type of the plug-in device and the device charging and discharging attributes in the device information.
4. The charging input and output control method of the docking station device according to claim 3, characterized in that: The performing supply-demand balance calculation based on the total input power, the total output power and the target input-output data to obtain updated configuration information of each of the configured interfaces and the plug-in interface includes: Based on the total input power, the total output power and the target input and output data, determining whether a power supply and demand scenario is one in which supply exceeds demand or supply falls short of demand; If the power supply and demand scenario is that supply exceeds demand, analyzing the connected devices on each of the charging input interfaces to obtain the adjustable input power devices on each of the charging input interfaces; The target adjustable input power device is determined according to the principle of minimum power matching error, and the input power of the charging input interface corresponding to the target adjustable input power device is changed to the first target power.
5. The charging input and output control method of the docking station device according to claim 4, characterized in that: The step of determining a target adjustable input power device according to a principle of minimum power matching error, and changing the input power of the charging input interface corresponding to the target adjustable input power device to a first target power includes: Obtaining a power supply protocol supported by each of the adjustable input power devices; Calculating the power supply power of each of the adjustable input power devices under different power supply protocols; Sorting all the adjustable input power devices in descending order according to their maximum power supply; Perform power matching in sequence according to the sorting order to find the target adjustable input power device when the power matching error is the smallest; The input power of the charging input interface corresponding to the target adjustable input power device is changed to a first target power.
6. The charging input and output control method of the docking station device according to claim 4, characterized in that: The step of determining whether the power supply and demand scenario is one of oversupply or undersupply based on the total input power, the total output power and the target input and output data further includes: If the power supply and demand scenario is that supply is less than demand, analyzing the connected devices on each of the charging output interfaces to obtain the adjustable power devices on each of the charging output interfaces; The target adjustable electric power device is determined according to the principle of minimum power matching error, and the output power of the charging output interface corresponding to the target adjustable electric power device is changed to a second target power.
7. The charging input and output control method of the docking station device according to claim 6, characterized in that: The step of determining the target adjustable electric power device according to the principle of minimum power matching error, and changing the output power of the charging output interface corresponding to the target adjustable electric power device to the second target power comprises: Obtaining a power supply protocol supported by each of the adjustable power supply devices; Calculate the power consumption of each adjustable power consumption device under different power consumption agreements; Sorting all the adjustable power-taking devices in ascending order according to their maximum power taking; Perform power matching in sequence according to the sorting order to find the target adjustable power device with the minimum power matching error; The output power of the charging output interface corresponding to the target adjustable electric power device is changed to a second target power.
8. A charging input and output control device for a docking station device, characterized in that: The charging input and output control device of the expansion dock device includes: An information acquisition module, used to obtain the charge and discharge property information of each configured interface and the device information of the plugged and unplugged device in response to the plugging and unplugging of the interface; A configured interface data calculation module, used to obtain the total input power and the total output power of the expansion dock device based on the charge and discharge attribute information of each of the configured interfaces; A plug-in interface data calculation module, used to obtain target input and output data of the plug-in interface based on the device information of the plug-in device; A supply-demand matching module, configured to perform supply-demand balancing calculation based on the total input power, the total output power and the target input-output data, and obtain updated configuration information of each of the configured interfaces and the plug-in interface; The interface configuration update module is used to send the update configuration information to each of the configured interfaces and the plug-in interface for execution.
9. A docking station device, characterized in that: The docking station device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instruction in the memory so that the docking station device executes the charging input and output control method of the docking station device according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the charging input and output control method of the docking station device according to any one of claims 1 to 7 is implemented.
