Intelligent port distribution method and system for docking station
By analyzing the PIN arrangement, protocol handshake rate and level holding time, combined with the multi-frequency signal energy distribution, optimizing bandwidth control and device priority, the problems of port allocation resource waste and slow response in the existing technology are solved, and dynamic balancing and efficient allocation of port resources are achieved.
Patent Information
- Application Number
- CN202510791825.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-09-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technologies rely on fixed port attributes and single priority rules, lack real-time parameter collection and multi-dimensional feature identification, resulting in resource adaptation being limited to a static setting range. This makes it difficult to cope with type determination in complex access environments. Port allocation is prone to resource waste, slow response, or priority imbalance, resulting in a decline in user experience.
By analyzing the PIN arrangement, protocol handshake rate, and level holding time, the device identity and port type are identified. Combined with the multi-frequency signal energy distribution, bandwidth control and device priority are optimized to achieve dynamic port allocation.
It improves the dynamic balance and coordination capabilities of port and bandwidth resource allocation, supports intelligent optimization under device diversity and high concurrency conditions, and improves resource utilization and user experience.
Smart Images

Figure CN120639725A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent port identification, and in particular to a method and system for allocating intelligent ports of an expansion dock. Background Art
[0002] Intelligent port identification involves the automatic identification and connection control of computer peripheral devices, including external device port type determination, connected device identity confirmation, port signal transmission method determination, and data communication path management between the host and expansion devices. It systematically covers interface standard compatibility, multi-port input and output switching, port priority determination mechanism, and port allocation strategy, aiming to achieve efficient collaborative access and rational allocation of port resources between computer systems and multiple types of external devices. Among them, the traditional intelligent port allocation method of expansion docks means that after the host and expansion dock are connected, the system reads the basic information of the host or peripheral according to the preset port type matching logic, and completes the allocation of specific ports such as USB or HDMI in a static rule or device table driven manner by reading the basic information of the host or peripheral according to the preset port type matching logic. It usually relies on the device compatibility list, port priority parameters or physical port identification solidified in the expansion dock to complete resource allocation. It mainly obtains the peripheral insertion status through the port detection circuit, uses the host query command to determine the port demand, and then allocates and switches ports according to the priority allocation rules inherent in the expansion dock.
[0003] Existing technologies often rely on fixed port attributes and single priority rules, lack real-time parameter collection and multi-dimensional feature identification, resulting in resource adaptation being limited to a static setting range. The device identification link is only based on preset identifiers or basic signal queries, which makes it difficult to cope with type judgment in complex access environments. In the port allocation process, bandwidth management lacks differentiated parameter analysis and cannot flexibly adjust the allocation strategy according to the diverse needs of devices. In high-concurrency scenarios or when bandwidth resources are tight, port allocation is prone to resource waste, slow response or priority imbalance, resulting in a poor user experience and reduced resource utilization. Summary of the Invention
[0004] In order to solve the technical problems that the existing technology relies on fixed port attributes and single priority rules, lacks real-time parameter collection and multi-dimensional feature discrimination, resulting in resource adaptation being limited to a static setting range, the device identification link is only based on preset identifiers or basic signal queries, and it is difficult to cope with type judgment in complex access environments. In the port allocation process, bandwidth management lacks differentiated parameter analysis and cannot flexibly adjust the allocation strategy according to the diverse needs of devices. In high-concurrency scenarios or when bandwidth resources are tight, port allocation is prone to resource waste, slow response or priority imbalance, resulting in a decline in user experience and reduced resource utilization, the embodiment of the present invention provides a method and system for intelligent port allocation of an expansion dock. The technical solution is as follows:
[0005] In one aspect, a method for allocating smart ports on a docking station is provided, comprising the following steps:
[0006] S1: Based on the docking station's connection port, analyze the PIN arrangement, protocol handshake rate, and level hold time, determine the timing changes of the drive signal, perform parameter standardization, and simultaneously organize the collected parameters to obtain the port access feature set;
[0007] S2: Based on the port access feature set, compare parameters with the device identity standard template, analyze the level holding time and signal timing of the USB-C control channel, calculate the rate difference, identify devices that meet the conditions, and obtain a device identity access identifier;
[0008] S3: Based on the device identity access identifier, analyze the multi-frequency signal energy distribution of the multi-protocol control chip, identify the energy peak and the length of the continuous signal segment, determine the consistency with the port type template, and obtain port feature mapping data;
[0009] S4: Calling the port feature mapping data, analyzing the corresponding port type, comparing the bandwidth demand with the remaining bandwidth of the port, determining the device priority, optimizing bandwidth control, identifying the optimal device-port pairing, and obtaining the optimal allocation combination;
[0010] S5: According to the allocation preferred combination, determine the device weight combination, if the weights are consistent, sort by request time, select the priority devices to allocate ports, adjust the unallocated devices into the candidate queue, and obtain the port allocation priority sequence.
[0011] On the other hand, the port access feature set includes connection structure parameters, protocol status parameters, and signal stability parameters; the device identity access identifier includes a device category label, compatibility characteristics, and an access priority identifier; the port feature mapping data includes a signal identification label, a port type code, and a feature mapping factor; the allocation preferred combination includes a bandwidth adaptation item, a priority association item, and a port allocation item; and the port allocation priority sequence includes an allocation order item and a waiting queue item.
[0012] On the other hand, the steps of the port access feature set are specifically as follows:
[0013] S101: Analyze the PIN arrangement when docking with an external device based on the docking port of the docking station, determine the on / off status of each PIN pin when connected, select key PIN pins associated with data transmission or power supply, and determine the corresponding port type based on the functions of different PIN pins to obtain PIN arrangement structure information;
[0014] S102: Based on the PIN arrangement structure information, comparing the rate response speeds of the channels during the protocol handshake process, analyzing the changing trends of the signals during the establishment phase of each data channel, screening the channel characteristics with outstanding response performance, and classifying them based on the channel handshake sequence and response characteristics to obtain a rate response characteristic group;
[0015] S103: Analyze the duration distribution of each channel level when the port is connected to the external device according to the rate response characteristic group, determine the continuous change of the driving signal timing, adjust the synchronization process of signal acquisition and parameter arrangement, and obtain the port access feature set.
[0016] On the other hand, the steps of accessing the device identity are specifically as follows:
[0017] S201: Based on the port access feature set, analyzing various communication characteristics corresponding to the device identity standard template, comparing the level continuity of the data channel and the signal change sequence, determining the matching relationship of the parameter combination under the standard template, identifying the channel combination that meets the template characteristics, and obtaining the standard feature matching amount;
[0018] S202: Analyzing signal fluctuations of the USB-C control channel during data exchange based on the standard feature matching amount, comparing response changes between different channels, determining the continuity and fluctuation distribution of signal timing during the handshake phase, identifying channels with key signal variation patterns, and obtaining a set of fluctuation response coefficients;
[0019] S203: calling the fluctuation response coefficient group, determining the channel whose cumulative difference meets the communication requirements, screening the device identification field that can establish a data connection, and obtaining the device identity access identifier based on the correspondence between the channel and the device field.
[0020] On the other hand, the steps of mapping the port characteristics data are specifically as follows:
[0021] S301: Analyze the energy distribution of the multi-frequency signal of the port monitored by the multi-protocol control chip in each frequency band based on the device identity access identifier, select the frequency band area where energy changes, determine the concentration trend of the energy distribution in each frequency band, and obtain the spectrum energy concentration;
[0022] S302: Identify the frequency band location corresponding to the energy peak in the port signal and the length of the continuous signal segment based on the spectrum energy concentration, analyze the continuity characteristics of the signal in the different time periods, compare the change trends of the energy peak area and the continuous segment interval, and generate an energy peak distribution group;
[0023] S303: calling the energy peak distribution group, determining the consistency between the signal parameters and the port type template, analyzing the identification process corresponding to each template, identifying the signal characteristic data consistent with the template, and obtaining the port characteristic mapping data.
[0024] On the other hand, the consistency between the signal parameters and the port type template is determined by using the formula:
[0025] ;
[0026] Calculate the energy feature difference value, analyze the recognition process corresponding to each template, and identify the signal characteristic data that matches the template, where: Representative The energy characteristic difference value of the port samples, Representative The number of peaks in the energy peak distribution group of the port samples, Representative Port sample No. The actual amplitude of the energy peak, Representative Port type template The template amplitude of the energy peak, Representative The total energy of the peak energy distribution group of the port samples, Representative The total energy of the energy peak distribution of each port type template.
[0027] On the other hand, the step of allocating the preferred combination is specifically as follows:
[0028] S401: calling the port feature mapping data, analyzing the port type information corresponding to the mapping data, comparing each port type parameter with the protocol category supported by the current port, identifying the port combination supporting bandwidth control, and obtaining a mapping type index;
[0029] S402: Based on the mapping type index, compare the external device bandwidth requirement parameter with the port remaining bandwidth parameter, determine the priority parameter of each device, and screen the devices and ports that meet the pairing conditions according to the bandwidth allocation order to obtain a bandwidth allocation sequence;
[0030] S403: Optimizing the bandwidth control and allocation process according to the bandwidth allocation sequence, calculating the pairing priority between devices and ports, and identifying the device and port combination with the best pairing relationship by comparing the device priority and the remaining bandwidth of the port, thereby obtaining the optimal allocation combination.
[0031] On the other hand, by comparing the device priority and the remaining bandwidth of the port, the formula is adopted:
[0032] ;
[0033] Calculate the pairing priority value and identify the device and port combination with the best pairing relationship, where: Representative Device and The pairing priority value between ports, Representative The bandwidth requirement of each device, Representative The remaining bandwidth parameter of each port, Representative The priority weight parameter of each device, Representative The service priority parameters corresponding to the ports, Representative The total priority parameter value of the device.
[0034] On the other hand, the steps of allocating the ports to a priority sequence are specifically as follows:
[0035] S501: Determine the weight combination of each device based on the assigned preferred combination, compare the distribution patterns of weight parameters within the same pairing group, select a set of devices with consistent weights, and group them based on combination characteristics to obtain a weight distribution set;
[0036] S502: Analyze the device request time parameters for the weight distribution set, determine the time order of devices with consistent weights, prioritize devices with earlier request times, determine the allocation order, and assign the remaining devices to candidate queues to obtain a time-ordered queue.
[0037] S503: calling the time-ordered queue, optimizing the port bandwidth allocation process, adjusting the port resource allocation sequence based on the device and port allocation relationship in the time-ordered queue, and obtaining a port allocation priority sequence.
[0038] In another aspect, a docking station intelligent port allocation system is provided, which is applied to a docking station intelligent port allocation method, including:
[0039] The feature collection module analyzes the PIN arrangement, protocol handshake rate, and level hold time based on the docking station's connection port, determines the timing changes of the drive signal, standardizes the parameters, and simultaneously organizes the collected parameters to obtain the port access feature set.
[0040] The identity screening module compares parameters with the device identity standard template based on the port access feature set, analyzes the level holding time and signal timing of the USB-C control channel, calculates the rate difference, identifies devices that meet the conditions, and obtains a device identity access identifier;
[0041] The type mapping module analyzes the energy distribution of the multi-frequency signal of the port monitored by the multi-protocol control chip based on the device identity access identifier, identifies the energy peak and the length of the continuous signal segment, determines the consistency of various signal parameters with the port type template, and obtains the port feature mapping data;
[0042] The optimal allocation module calls the port feature mapping data, analyzes the corresponding port type, compares the bandwidth requirement parameters of the external device with the remaining bandwidth parameters of the port, determines the device priority parameters, optimizes the bandwidth control calculation process, identifies the optimal device and port pairing in the combination, and obtains the optimal allocation combination;
[0043] The sequential sorting module determines the device weight combination according to the allocation preferred combination. If the weights are consistent, the module sorts the devices by request time, selects the priority devices for port allocation, and adjusts the unallocated devices into the candidate queue to obtain the port allocation priority sequence.
[0044] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0045] By jointly processing multi-source parameters such as protocol rate, level continuity and signal timing, the comprehensiveness of data expression is effectively improved. The device identity determination link adopts a parameter hierarchical accumulation method to distinguish device types and access levels, enhancing the targeted identity recognition. Port type discrimination introduces multi-frequency signal feature comparison, and constructs type mapping based on energy distribution, peak value and continuous segment structure differences to achieve synchronous identification of multiple physical port states. The bandwidth allocation stage adopts collaborative analysis of demand and remaining capacity, supplemented by priority sorting and weight group optimization to achieve adaptive matching under the needs of multiple devices. The processing logic of each link is integrated to support intelligent optimization of allocation under device diversity and high concurrency, thereby improving the dynamic balance and coordination ability of port and bandwidth resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 It is a flow chart of the main steps of the present invention;
[0048] Figure 2 is a flow chart of the steps of S1 of the present invention;
[0049] Figure 3 This is a flow chart of the steps of S2 of the present invention;
[0050] Figure 4This is a flow chart of the steps of S3 of the present invention;
[0051] Figure 5 This is a flow chart of the steps of S4 of the present invention;
[0052] Figure 6 This is a flow chart of the steps of S5 of the present invention;
[0053] Figure 7 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0054] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0055] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as an "exemplary" in the present invention should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner. Furthermore, in the embodiments of the present invention, "and / or" can mean both or either of the two.
[0056] In the embodiments of the present invention, the terms "image" and "picture" may sometimes be used interchangeably. It should be noted that, when the distinction is not emphasized, the meanings they convey are the same. The terms "of," "corresponding," and "corresponding" may sometimes be used interchangeably. It should be noted that, when the distinction is not emphasized, the meanings they convey are the same.
[0057] In the embodiments of the present invention, sometimes a subscript such as W1 may be written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are the same.
[0058] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0059] The embodiment of the present invention provides a method for allocating intelligent ports of an expansion dock, such as Figure 1 As shown, the following steps are included:
[0060] S1: Based on the docking station's connection port, analyze the PIN arrangement of the port when the docking station is connected to the external device, compare the initial protocol handshake rate, monitor the port level hold time, determine the continuous change of the drive signal timing, and synchronize and organize the collected parameters through parameter standardization to obtain the port access feature set;
[0061] S2: Based on the port access feature set, various parameters are compared with the device identity standard template, the level holding time and signal timing changes collected by the expansion dock's USB-C control channel are analyzed, the standard difference in the protocol handshake rate is calculated, and the device with the cumulative difference that meets the access requirements is identified to obtain the device identity access identifier;
[0062] S3: Based on the device identity access identifier, analyze the energy distribution of the multi-frequency signal on the port monitored by the multi-protocol control chip, identify the energy peak and the length of the continuous signal segment, determine the consistency of various signal parameters with the port type template, optimize the identification results, and obtain the port feature mapping data;
[0063] S4: Call the port feature mapping data, analyze the corresponding port type, compare the bandwidth requirement parameters of the external device with the remaining bandwidth parameters of the port, determine the device priority parameters, optimize the bandwidth control calculation process, identify the optimal device and port pairing in the combination, and obtain the optimal allocation combination;
[0064] S5: Based on the preferred allocation combination, the weight combination of each device is determined. When the weight combination is consistent, additional sorting is performed based on the request time, and the prioritized devices are identified for port allocation. The unassigned devices are adjusted to enter the candidate queue, and the port bandwidth allocation is optimized to obtain the port allocation priority sequence.
[0065] The port access feature set includes connection structure parameters, protocol status parameters, and signal stability parameters. The device identity access identifier includes the device category label, compatibility characteristics, and access priority identifier. The port feature mapping data includes the signal identification label, port type code, and feature mapping factor. The allocation preferred combination includes bandwidth adaptation items, priority association items, and port allocation items. The port allocation priority sequence includes allocation order items and waiting queue items.
[0066] In S1, the protocol handshake initial rate refers to the rate parameter at which both parties complete the connection confirmation in accordance with the protocol when the external device first establishes communication with the docking station port. It usually reflects the initial state of the communication capability between the device and the port. The level hold time refers to the duration for which the port signal level (high or low) remains unchanged. It is used to reflect signal stability and is often used to identify device categories or detect signal integrity. The drive signal timing refers to the order and duration of signal changes on different control or data pins when the docking station port communicates with the external device. It is used to identify device characteristics and communication types. Parameter standardization processing refers to the unified dimension processing and format normalization of all collected original parameters (such as rate, timing, duration, etc.) to facilitate subsequent feature comparison and judgment.
[0067] In S2, the device identity standard template refers to a pre-defined benchmark data set in the expansion dock that is used to characterize the parameter characteristics of various types of devices allowed to be connected, and is used as a reference object for actual detection parameter comparison; the USB-C control channel refers to the dedicated line (such as the CC line) in the USB-C interface used for device communication management and power supply control, which can collect signal changes and control information when external devices are connected; the standard difference refers to the difference, deviation or similarity calculation between the currently collected parameters and the parameters in the standard template, reflecting the degree of difference between the actual device parameters and the ideal device parameters; compliance with access requirements means that by comparing with the standard template, the cumulative parameter difference is within the allowable range preset by the system, and the device is judged to be able to be normally connected.
[0068] In S3, the multi-protocol control chip refers to the integrated circuit chip inside the docking station that is responsible for supporting multiple data transmission protocols (such as USB, HDMI, etc.) and can realize signal switching and protocol identification; the multi-frequency signal energy distribution refers to the distribution of signal amplitude or energy of the port at different frequencies, reflecting the spectrum characteristics of the device when transmitting data, and is used to distinguish the port or device type; the energy peak refers to the point with the largest signal amplitude on the energy distribution curve, which is often used to identify different types of signal characteristics; the signal continuous segment length refers to the length of time or data segment that the signal continues at a certain energy level, which is used to further assist in determining the signal type; the port type template refers to the typical signal feature data set corresponding to different port types stored in the system, which is used to determine the actual port type.
[0069] In S4, the remaining bandwidth parameter refers to the data transmission capacity of the current docking station port that can continue to be allocated to new devices based on the existing occupancy, usually described in terms of bandwidth size; the bandwidth control calculation process refers to the calculation process of prioritizing and making bandwidth allocation decisions based on parameters such as the device's bandwidth requirements, the port's remaining bandwidth and priority, using set rules.
[0070] In S5, the weight combination of devices refers to a comprehensive ranking reference formed according to certain rules based on parameters such as device bandwidth requirements, priority, and access requests. It is usually used for priority evaluation in multi-device allocation scenarios. Supplementary ranking refers to the further introduction of other parameters (such as request time) for sorting when the weight combination is the same or the priority is tied, in order to determine the allocation order.
[0071] like Figure 2 As shown, the steps of port access feature set are as follows:
[0072] S101: Analyze the PIN arrangement when docking with an external device based on the docking port of the docking station, determine the on / off status of each PIN pin when connected, select key PIN pins associated with data transmission or power supply, and determine the corresponding port type based on the functions of different PIN pins to obtain PIN arrangement structure information;
[0073] Call the underlying control program to read the electrical signal status of the PIN pins connected to the peripherals one by one, and use the level detection function to determine whether each PIN pin is at a high or low level when stably powered. Determine whether it is a valid connection PIN pin based on the continuous state within the sampling time. Then, retrieve the function definition that is consistent with the current actual read PIN pin position and level status in the preset standard PIN function comparison table. For example, identify a PIN pin as a power supply pin, voltage reference pin, or data transceiver pin, and mark the key PIN pins according to the importance of the function. List the PIN pins closely related to the communication or power supply function as the core identification objects, and then number them in sequence in the arrangement. Compare the defined typical port layouts, such as whether the order of VBUS, GND, D+ / D-, and CC pins in the USB-C standard layout matches. If there are different PIN pins with different PIN positions, inconsistent numbers, or overlapping functions, further analyze their logical correspondence and compare the PIN pin arrangement results one by one in sequence with the definition in the standard port configuration to see if there are any differences. Determine whether the sequence of logical connections meets the defined difference standards. If the number of differences is within the specified range, it can be determined as the same type. If it is out of the range, it can be determined as a different type of port. The logical number, function name, and stable connection status are used as the PIN arrangement structure information when the port is connected.
[0074] S102: Based on the PIN arrangement structure information, the rate response speeds of the channels are compared during the protocol handshake process, the signal change trends during the establishment phase of each data channel are analyzed, and channel characteristics with outstanding response performance are screened. The channels are classified based on the channel handshake sequence and response characteristics to obtain a rate response characteristic group;
[0075] Channel PINs with data communication capabilities are screened. For example, after identifying several groups of pins with data transmission capabilities, the handshake process is monitored in real time during the connection phase. During the initial device connection phase, the time interval from the first response signal generated by the channel to the completion of the handshake signal confirmation is collected. The response time of each channel is obtained by time recording. The handshake times of all channels are analyzed in parallel. Channels with short response times are classified as faster, while those with long response times are classified as slower. Next, the order in which the handshake responses of each channel appear is reassembled to obtain a channel response sequence. The level signal changes of each channel during the response process are reviewed, and the time and number of level changes are recorded. A set of signal response trends is generated for each channel. The number of fluctuations, level amplitude changes, and change intervals from the initial state to the stable state are extracted. These trend characteristics are compared item by item with a preset standard channel sample. If a channel type in the sample exhibits a rapid level drop, low frequency of changes, and long duration in response, whether the current channel exhibits similar behavior becomes the basis for classification. The comparison results of each parameter are combined and the classification results are used to form the final rate response characteristic group.
[0076] S103: Analyze the duration distribution of each channel level when the port is connected to the external device based on the rate response characteristic group, determine the continuity change of the driving signal timing, adjust the synchronization process of signal acquisition and parameter arrangement, and obtain the port access feature set;
[0077] Based on the established rate response characteristic group, the level retention status of each channel is further refined. The level status of each channel during the connection stability period is monitored for changes. The length of time the level remains unchanged is continuously recorded. Statistics are compiled for each retention process to determine which channels have stable level outputs for longer periods of time. Channels are then identified as having higher stability. The frequency of level changes is then used to determine whether their communication status is consistent. The moment of level change is recorded for each channel, and the level transition sequence and duration between different channels are continuously compared to check for sudden or irregular timing changes. If the transition time intervals between most channels are stable, the channel is considered to have good drive signal timing consistency. The level retention time, signal fluctuation count, and timing variation patterns collected from all channels are then consolidated into a unified parameter format. During this consolidation process, all original parameter values of different dimensions are converted to the same unit format by setting minimum and maximum reference value ranges. The corresponding channel number, response status, stability level, and other information are then merged and summarized to form a unified feature set data structure, generating a port access feature set for subsequent judgment and device matching.
[0078] like Figure 3 As shown, the steps for device identity access identification are as follows:
[0079] S201: Based on the port access feature set, analyze the communication characteristics corresponding to the device identity standard template, compare the level continuity of the data channel and the signal change sequence, determine the matching relationship of the parameter combination under the standard template, identify the channel combination that meets the template characteristics, and obtain the standard feature matching amount;
[0080] Read the basic data of each channel such as the level holding time, driving signal transition sequence, signal stability parameters, etc., and then use the channel number as the index to call the standard communication characteristic values of various defined devices stored in the device identity standard template, and compare the measured parameters of the current access channel with the preset reference parameters in the template one by one. Set the comparison strategy as follows: the level holding time deviation shall not exceed 10ms, the driving signal transition sequence matching degree shall not be less than 80%, and the signal stability shall be within the fluctuation range of 0.2. Execute the above three conditions in sequence. If a channel has a level holding time deviation of 8m If four of the first five digits of the signal transition sequence match and the signal stability fluctuation is 0.15, then it is determined that all three conditions are met and this channel is determined to be completely matched with a standard type in the template. Conversely, if a channel deviation is 12ms, it exceeds the allowable range and will no longer participate in the next matching. Then, all channel numbers that meet the matching conditions are collected and organized to form a channel combination that meets the template characteristics. The number of channels identified as matching channels is counted and recorded as the standard feature matching amount. For example, if there are eight channels in total and only five meet all the judgment conditions, the standard feature matching amount is 5. This value will serve as an important basis for subsequent device identity recognition.
[0081] S202: Analyze the signal fluctuation performance of the USB-C control channel during data exchange based on the standard feature matching quantity, compare the response changes between different channels, determine the continuity and fluctuation distribution of the signal timing during the handshake phase, identify the channels with key signal change patterns, and obtain a set of fluctuation response coefficients;
[0082] First, the level change curve of the CC channel in the USB-C interface during the handshake phase and the initial data exchange phase is extracted. The number of signal changes, level fluctuation amplitude, and stable period in each time period are sampled and counted. If the number of signal fluctuations occurring within a 300-ms observation period exceeds 10 times and the amplitude change is above 0.3V, the channel is recorded as a high-fluctuation response channel. Then, a comparison operation is performed on all USB-C control channels. The total number of signal jumps and their duration of each channel are arranged horizontally to compare whether there are response time delays, signal discontinuity, or cycle asymmetry problems during the handshake process. For example, If the response interval variation is 15ms and the average value of other channels is 5ms, it is determined to be an abnormal fluctuation channel. Subsequently, the channels with abnormal fluctuation characteristics are further classified to find the channel group with continuous change patterns. For example, there are two channels that have three equally spaced jumps in the initial, middle and final stages of the handshake, which are regarded as key channels with periodic regular characteristics. Finally, the channel combination with key response characteristics is recorded, and its representativeness is evaluated based on its stability and mutation behavior in different timing stages. A fluctuation response coefficient group is established according to the channel number and stage distribution. This array is used to subsequently determine whether the communication protocol connection requirements are met.
[0083] S203: Calling the fluctuation response coefficient group, determining the channel whose cumulative difference meets the communication requirements, screening the device identification field that can establish a data connection, and combining the correspondence between the channel and the device field to obtain the device identity access identifier;
[0084] The fluctuation response value, response interval distribution, and level stabilization period length of each channel are read one by one. The minimum number of response channels required for each device type is preset to be 4, and the stabilization interval is no less than 200 milliseconds. If the number of response channels for a device is 6 and the average stabilization interval is 230 milliseconds when it is connected, it is determined to meet the communication requirements. The corresponding device fields in the channel are then extracted. The device fields include the device unique number, communication interface number, power supply requirement level, manufacturer identification code, etc. The channel number and device field are then cross-mapped. For example, channel 3 is mapped to the device field "Type-C: PowerOnly", channel 4 is mapped to "Type-C: DataHigh", and channel 7 is mapped to "HDMI-Audio". This means that the device has multi-mode support capabilities. Based on the combination of field type and channel type, an identity access identifier is generated for the device. The identity identifier content includes the device number, compatible mode tag, and access priority tag. This identifier serves as the entry data for subsequent port scheduling and bandwidth allocation to form a unique corresponding device identity access identifier.
[0085] like Figure 4 As shown, the steps of port feature mapping data are as follows:
[0086] S301: Based on the device identity access identifier, analyze the energy distribution of the multi-frequency signals of the port monitored by the multi-protocol control chip in each frequency band, select the frequency band area where energy changes, determine the concentration trend of the energy distribution in each frequency band, and obtain the spectrum energy concentration;
[0087] The signal strength data of each port in different frequency ranges collected by the multi-protocol control chip is read, and the frequency range is divided into multiple fixed bandwidth segments, such as 10MHz per segment, forming ninety frequency intervals from the starting frequency of 100MHz to the maximum frequency of 1000MHz. The signal level value in each frequency band is then averaged, and the center frequency and average signal amplitude of the corresponding frequency band are recorded. The energy value difference between adjacent frequency bands is then compared. If the energy value of a certain frequency band is more than 3dB higher than that of the adjacent bands on the left and right, it is recorded as an energy change frequency band. If the number of energy change frequency bands exceeds 5, it is determined to be a complex distribution signal, otherwise it is determined to be a concentrated signal structure. The frequency band position where the maximum energy value appears in all frequency bands is further counted, and the energy value trend of the extended frequency bands on both sides of the frequency band is analyzed. If a decreasing characteristic is observed on both sides and the energy value within the extended frequency band drops by more than 2dB, the frequency band is determined to have a significant concentration characteristic. The set of frequency bands with concentrated energy is then merged. All frequency bands with energy values exceeding 70% of the center frequency band are aggregated into a concentrated bandwidth block. The width of this block is calculated. If a continuous bandwidth block exceeds 50MHz, it is recorded as a high-concentration frequency band; if it is less than 20MHz, it is recorded as a low-concentration frequency band. The overall concentration level is calculated based on the number of occurrences of such high-concentration frequency bands in the spectrum graph of each port. For example, if device A has an energy-dense area between 900MHz and 960MHz, and this band aggregates six 10MHz frequency bands with high values, then the device port is determined to have concentrated energy in this frequency band. The energy concentration characteristics appearing in the spectrum of all ports are recorded and summarized as spectrum energy concentration data.
[0088] S302: Based on the spectrum energy concentration, identify the frequency band location corresponding to the energy peak in the port signal and the length of the continuous signal segment, analyze the continuity characteristics of the signal in the different time periods, compare the change trends of the energy peak area and the continuous segment interval, and generate an energy peak distribution group;
[0089] Extract the high-concentration frequency band recorded in each port spectrum graph and determine the position of the maximum energy peak therein. Record the interval number according to the frequency band division index, and extend from the frequency band to both sides to count the number of adjacent frequency bands whose energy drops by no more than 5%. This is used as the judgment standard for the length of the continuous signal segment. For example, if the energy of the center frequency band is 100 units and the energy of its five adjacent segments is all above 95 units, then the length of this continuous signal segment is six segments, i.e. 60MHz. In this way, scan the entire spectrum graph, count all energy peaks and their corresponding continuous segment ranges, number and organize the starting frequency band, ending frequency band, and maximum value position of each continuous segment, and then compare the signals collected by the same port in different time periods to analyze the signals at different sampling periods. Whether the inner peak interval remains stable and continuous. If the peak frequency band overlaps four times in five samplings and the change in the continuous segment length does not exceed 10MHz, the frequency band is judged to be a frequency band with strong continuity. Then the energy peak distribution of different devices or ports is summarized, and their distribution range on the frequency axis is visualized. If multiple peaks appear in similar frequency bands and the duration difference is less than 50ms, they are considered to belong to the same energy peak segment. Then they are grouped according to the energy value fluctuation range, continuous segment length and the degree of overlap in the time dimension. Each group of energy peak information is recorded as a group of energy peak distribution data. The energy peaks of all ports during the operation cycle and their corresponding structures are sorted out to form a complete energy peak distribution group.
[0090] S303: Calling the energy peak distribution group, determining the consistency between the signal parameters and the port type template, analyzing the identification process corresponding to each template, identifying the signal characteristic data that matches the template, and obtaining the port feature mapping data;
[0091] To determine the consistency between signal parameters and port type templates, use the following formula:
[0092] ;
[0093] Calculate the energy feature difference value, analyze the recognition process corresponding to each template, and identify the signal characteristic data that matches the template, where: Representative The energy characteristic difference value of the port samples, Representative The number of peaks in the energy peak distribution group of the port samples, Representative Port sample No. The actual amplitude of the energy peak, Representative Port type template The template amplitude of the energy peak, Representative The total energy of the peak energy distribution group of the port samples, Representative The total energy of the energy peak distribution of each port type template;
[0094] The energy characteristic difference value refers to the numerical parameter obtained by quantitatively calculating the difference between the energy peak distribution actually collected from the expansion dock port sample and the energy peak distribution of the corresponding port type template in two key parameters: peak amplitude and total energy. This parameter reflects the overall degree of difference in the energy peak characteristics between the port sample and the template.
[0095] First, the local extreme value identification is performed on the signal sequence collected by the port sample, and the local maximum value with a higher amplitude than the previous and next sampling points in the continuous sampling points on the signal curve is extracted as the energy peak to form the peak sequence of the port sample. At the same time, the number of peaks is counted and recorded as , sum up all peak amplitudes to get the total energy of the port sample , and perform normalization to obtain the standard amplitude set and normalized total energy, then retrieve the energy characteristic data of the corresponding port type template and read the peak amplitude sequence under the same structure and total template energy , compare the sample peak value with the template peak value one by one, and calculate the energy characteristic difference value by combining the cumulative average value of all peak amplitude differences with the total energy difference The difference value is compared with the set type recognition threshold to determine whether the port sample matches a certain type template.
[0096] Jordi The sample of the port is a USB-C high-speed channel. After connecting to the device, the signal peak sequence is collected as follows: , then the peak number is , the total energy is:
[0097] ;
[0098] The normalized amplitude set is:
[0099] ;
[0100] The normalized total energy is:
[0101] ;
[0102] The peak sequence of the corresponding port in the system template is:
[0103] ;
[0104] The normalized total energy is:
[0105] ;
[0106] Substitute the formula for step-by-step calculation:
[0107] ;
[0108] ;
[0109] ;
[0110] If the threshold is set to , when the current difference value is less than the threshold, it is considered that the current port sample matches the template, and the signal characteristic data that meets the standard structure is identified. The numerical result is used as a difference measurement indicator and directly used as the judgment standard for signal recognition. When it is less than the preset threshold, the subsequent template recognition process is triggered, and the correspondence between the sample and the template is organized and output as port feature mapping data through mapping matching.
[0111] like Figure 5 As shown, the steps of allocating the preferred combination are specifically as follows:
[0112] S401: Calling port feature mapping data, analyzing port type information corresponding to the mapping data, comparing each port type parameter with the protocol category supported by the current port, identifying a port combination that supports bandwidth control, and obtaining a mapping type index;
[0113] First, read the port signal identification tag, port type code and feature mapping factor contained in the mapping data, parse each set of data item by item, confirm the specific port category it points to, such as HDMI, USB3.2, Thunderbolt, etc., and then use the type code corresponding to each type of port as an index to call out the preset protocol support capability list. The list lists in detail the protocol types, maximum transmission rates, number of synchronous channels and other parameter information supported by each type of port. Compare the protocol characteristics of the current port with the list content one by one. If a port is mapped to USB3.2 and the maximum rate is 10Gbps, it is judged to support high High-speed data channel. If the other port is mapped to USB2.0 and the bandwidth limit is 480Mbps, it is identified as a low-bandwidth port. Then, the port numbers of all ports with a bandwidth limit greater than 1Gbps and supporting dual-channel control function are extracted and recorded as the port set that supports bandwidth regulation. The device connection channel number listed in the device identity is then intersected with the set to filter out the port number that can currently establish a bandwidth-regulated connection with the specific device. The port number, protocol type, bandwidth limit, and regulation capability level of each matching result are recorded as a set of index items. This combined content is used to construct a structured mapping type index for subsequent pairing judgment.
[0114] S402: Based on the mapping type index, compare the external device bandwidth requirement parameter with the port remaining bandwidth parameter, determine the priority parameter of each device, and screen the devices and ports that meet the pairing conditions according to the bandwidth allocation order to obtain a bandwidth allocation sequence;
[0115] First, the bandwidth requirement parameters corresponding to each device are extracted. The parameters are determined by the device's active reporting or preset standard values during the protocol handshake during the access phase. For example, a high-definition video capture device requires a bandwidth of 5Gbps, and a storage device requires a bandwidth of 1.2Gbps. At the same time, the current remaining bandwidth value of each port is read from the port mapping index. For example, the remaining bandwidth of port A is 6Gbps, the remaining bandwidth of port B is 1Gbps, and the remaining bandwidth of port C is 2Gbps. Next, the requirements are compared device by device. If the bandwidth required by device X is 5Gbps, the port with a remaining bandwidth greater than or equal to its required value is matched first. If only A meets the conditions among A, B, and C, it is marked as a candidate matching item. If there is If multiple ports meet the bandwidth requirement, the device priority parameter must be called to sort them. The priority parameter is generated by weighted calculation of parameters such as device function level, access timestamp, and task urgency. For example, if device X has a weight of 0.85 and device Y has a weight of 0.63, devices with higher weights are preferentially assigned to access high-bandwidth ports. If the weights are the same during the sorting process, the access request time is further compared, and the one with the earlier time is given priority. After completing the above judgment, a list of ports that can be paired for each device is obtained and arranged in matching order to form the final device and port pairing record. At the same time, all matching relationships are sorted from largest to smallest bandwidth and from highest to lowest priority, and the final bandwidth allocation sequence is output.
[0116] S403: Optimizing the bandwidth control and allocation process based on the bandwidth allocation sequence, calculating the pairing priority between devices and ports, and identifying the device and port combination with the best pairing relationship by comparing the device priority and the remaining bandwidth of the port, thereby obtaining the optimal allocation combination;
[0117] By comparing the device priority and the remaining bandwidth of the port, the formula is used:
[0118] ;
[0119] Calculate the pairing priority value and identify the device and port combination with the best pairing relationship, where: Representative Device and The pairing priority value between ports, Representative The bandwidth requirement of each device, Representative The remaining bandwidth parameter of each port, Representative The priority weight parameter of each device, Representative The service priority parameters corresponding to the ports, Representative The total priority parameter value of each device;
[0120] The pairing priority value typically reflects the combined difference between a device's bandwidth requirements and the port's remaining bandwidth, as well as between the device's priority and the port's service priority. A smaller value indicates a closer match between the device and port's parameters, resulting in a higher matching degree. This device is typically given priority for pairing with the port. A larger value indicates a significant difference between the two and a lower pairing priority.
[0121] Read the current remaining bandwidth parameters of each port from the docking station control chip, which is expressed as , the value is recorded in Gbps. For example, port j is USB-C 3.2 Gen 2 specification, the maximum bandwidth is 10 Gbps, and 6.4 Gbps is currently allocated. The remaining bandwidth is Gbps, the normalized bandwidth ratio is 0.36; the bandwidth request value of device z is monitored simultaneously , in Gbps, is obtained based on the device's declared usage requirements. For example, device z is an image processing workstation that needs to transmit two high-definition video streams and a set of real-time control data. The requested bandwidth is 6.0 Gbps, and the normalized bandwidth is 0.60. The device priority weight parameter is called This parameter is obtained by evaluating information such as device type, purpose, access frequency and user permissions. The setting value range is [0, 1]. If the device z weight is set to 0.85, it remains unchanged after normalization; further read the port service priority parameter , which is the priority level of the port in the scheduling layer. For example, port j is the main output channel of the docking station, and the service priority is set to 0.90, which is 0.90 after normalization. Then extract the total priority parameter of the device This parameter is the evaluation result of factors such as task category, task level, and interaction intensity, and is dimensionless. For example, device z is bound to the main graphics rendering task, and the priority is set to 1.6. After normalization, it is set to 0.80. After completing the above parameter collection, substitute each parameter into the formula for calculation:
[0122] ;
[0123] ;
[0124] The first term of the numerator Indicates the matching deviation between the device bandwidth request and the port's available bandwidth. The squaring operation is used to increase the sensitivity of the bandwidth matching difference. It indicates the inconsistency in scheduling priority between the device and the port; Indicates the sum of the bandwidth and priority resource base of the device and port combination, which serves as the normalization benchmark for the entire pairing priority value. It is a numerical value that comprehensively reflects the compatibility of device and port scheduling, and is used as a ranking basis for the pairing selection of multiple device ports. The smaller the value, the stronger the synergy between the device and port in terms of bandwidth capability and scheduling logic, and the more likely it is to be selected by the system for resource allocation. This formula introduces two core dimensions, bandwidth request matching and scheduling weight consistency, into the pairing decision process, and normalizes the two through the denominator. This improves the multi-dimensional integration capability of the pairing scoring system, avoids deviations caused by the dominance of a single parameter, and has higher discrimination accuracy in an environment with concurrent access of multiple devices.
[0125] like Figure 6 As shown in FIG, the steps of the port allocation priority sequence are as follows:
[0126] S501: Determine the weight combination of each device based on the assigned preferred combination, compare the distribution pattern of weight parameters within the same pairing group, select a set of devices with consistent weights, and group them based on combination characteristics to obtain a weight distribution set;
[0127] First, extract the weight combination value corresponding to each device. The weight value is composed of the cumulative value of three parameters: bandwidth demand level, device priority level, and access policy number. Each parameter is assigned an integer weight. For example, if the bandwidth demand is medium, it is set to 2 points, the priority level is high, and the policy number is 1 point for a static mapping device. Then, the weight combination of device A is 2+3+1=6 points. The corresponding total weight value is generated for all devices in turn. Then, the weight values of the devices in each pairing group are arranged, and the devices with the same value are identified. For example, in pairing group 1, the weight values of devices A, B, and C are all 6. These three devices are recorded as a weighted set and marked as set number W1. Repeat this comparison operation in all paired groups, summarize all device numbers with the same weight value, and then further read the weight component parameters of the devices in each weight consistent set to determine whether there is a consistent weight component. If the combination of device A and device B is 2+3+1, and device C is 1+4+1, then A and B are classified as a group with completely consistent combination characteristics, and device C is classified into a subgroup with partially consistent combination characteristics. Subdivide and mark according to the degree of similarity of the combination characteristics, such as completely consistent as group T1 and partially consistent as group T1′. Finally, construct a structured weight distribution set based on the number of members in the group and the combination structure form, which is used for the priority processing sequence in the subsequent sorting logic.
[0128] S502: Analyze the device request time parameters for the weight distribution set, determine the time order of devices with consistent weights, prioritize devices with the highest request times, determine the allocation order, and assign the remaining devices to candidate queues to obtain a time-ordered queue.
[0129] Continue to extract the access request timestamp of the device in each group. The timestamp records the millisecond moment when the device first makes a resource application. The actual time data shall prevail. For example, the request time of device A is 09:10:03.245, the request time of device B is 09:10:02.801, and the request time of device C is 09:10:02.801. First, sort the timestamps from small to large. Devices B and C are sorted before device A. If the time of devices B and C is exactly the same, then read their sub-sorting parameters. For example, if the device identification number is arranged from small to large, device B is numbered 0012 and C is 0023, then B still takes precedence over C. All sorted position numbers are written into the time priority list. First, the device is arranged into groups, such as B→C→A. The above sorting process is performed on each weight set to generate a time-sorted sequence within the set. At the same time, it records which ports in the current pairing group have been prioritized in the bandwidth allocation process. If the device is ranked after N in the sorting (such as N=2) and the corresponding port resources have been allocated, it is automatically marked as a candidate state and included in the candidate queue. The current time and weight information are attached as a deferred waiting mark. All devices ranked within the current processing range and their sorting status are written to the main time-sorted queue. The queue structure contains four fields: device number, sorting position, remaining bandwidth adaptation flag, and candidate state label to support the next allocation process.
[0130] S503: Invoke the time-ordered queue to optimize the port bandwidth allocation process, adjust the port resource allocation order based on the device and port allocation relationship in the time-ordered queue, and obtain a port allocation priority sequence;
[0131] First, the list of non-candidate devices in the current queue is read. Each device is matched against the port number in the preferred allocation combination in chronological order, prioritizing the port with the largest remaining bandwidth for pairing. The system then checks whether the port is currently bound to another device. If not, the allocation and binding operation is performed. If it is bound, the system compares the current device's ranking to see if it has a higher priority than the bound device. If the current device is ranked higher and has an equal or higher weight, the current device is bound to the port and the previously bound device is moved to the candidate queue for reordering. The remaining bandwidth status and port occupancy flag are then updated, and processing continues with the next device in the queue. If all of a device's available ports are allocated and its ranking priority is lower than that of the bound device, it is automatically added to the subsequent queue. Its waiting times and time difference are recorded. The information for all currently allocated devices and their corresponding port bindings is recorded as the main allocation result. Resource usage in this round of processing is also evaluated to determine whether there are resources that can be released to trigger the next round of scheduling. Finally, all bound devices and their occupied port numbers are written into a structured sequence to generate a complete port allocation priority sequence.
[0132] like Figure 7 As shown, a docking station intelligent port allocation system includes:
[0133] The feature collection module analyzes the PIN arrangement of the docking station's connection port when it connects to an external device, compares the initial protocol handshake rate, monitors the port level hold time, and determines the continuous change of the drive signal timing. Through parameter standardization, the collected parameters are synchronized and organized to obtain the port access feature set.
[0134] The identity screening module compares various parameters with the device identity standard template based on the port access feature set, analyzes the level hold time and signal timing changes collected by the expansion dock's USB-C control channel, calculates the standard difference in the protocol handshake rate, identifies devices whose cumulative differences meet the access requirements, and obtains the device identity access identifier;
[0135] Based on the device identity access identifier, the type mapping module analyzes the energy distribution of the multi-frequency signal of the port monitored by the multi-protocol control chip, identifies the energy peak and the length of the continuous signal segment, determines the consistency of various signal parameters with the port type template, optimizes the identification results, and obtains the port feature mapping data;
[0136] The optimal allocation module calls the port feature mapping data, analyzes the corresponding port type, compares the bandwidth requirement parameters of the external device with the remaining bandwidth parameters of the port, determines the device priority parameters, optimizes the bandwidth control calculation process, identifies the optimal device and port pairing in the combination, and obtains the optimal allocation combination;
[0137] The sequential sorting module determines the weight combination of each device based on the preferred allocation combination. When the weight combination is consistent, it performs supplementary sorting based on the request time, identifies the prioritized devices to perform port allocation, and adjusts the unallocated devices into the candidate queue to optimize the port bandwidth allocation and obtain the port allocation priority sequence.
[0138] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. A and B can be singular or plural. Furthermore, the character " / " as used herein generally indicates an "or" relationship between the associated objects, but it may also indicate an "and / or" relationship. For specific understanding, please refer to the context.
[0139] In this disclosure, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, "at least one of a, b, or c" can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.
[0140] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0141] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0142] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0143] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of the device or unit, which can be electrical, mechanical or other forms.
[0144] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0145] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0146] If the functions are implemented as software functional units 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 several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include various media that can store program code, such as USB flash drives, mobile hard drives, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical disks.
[0147] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A method for allocating intelligent ports of an expansion dock, characterized in that: The method comprises: S1: Based on the docking station's connection port, analyze the PIN arrangement, protocol handshake rate, and level hold time, determine the timing changes of the drive signal, perform parameter standardization, and simultaneously organize the collected parameters to obtain the port access feature set; S2: Based on the port access feature set, compare parameters with the device identity standard template, analyze the level holding time and signal timing of the USB-C control channel, calculate the rate difference, identify devices that meet the conditions, and obtain a device identity access identifier; S3: Based on the device identity access identifier, analyze the multi-frequency signal energy distribution of the multi-protocol control chip, identify the energy peak and the length of the continuous signal segment, determine the consistency with the port type template, and obtain port feature mapping data; S4: Calling the port feature mapping data, analyzing the corresponding port type, comparing the bandwidth demand with the remaining bandwidth of the port, determining the device priority, optimizing bandwidth control, identifying the optimal device-port pairing, and obtaining the optimal allocation combination; S5: According to the allocation preferred combination, determine the device weight combination, if the weights are consistent, sort by request time, select the priority devices to allocate ports, adjust the unallocated devices into the candidate queue, and obtain the port allocation priority sequence.
2. The docking station intelligent port allocation method according to claim 1, wherein: The port access feature set includes connection structure parameters, protocol status parameters, and signal stability parameters; the device identity access identifier includes a device category label, compatibility characteristics, and an access priority identifier; the port feature mapping data includes a signal identification label, a port type code, and a feature mapping factor; the allocation preferred combination includes a bandwidth adaptation item, a priority association item, and a port allocation item; and the port allocation priority sequence includes an allocation order item and a waiting queue item.
3. The docking station intelligent port allocation method according to claim 1, wherein: The steps of the port access feature set are specifically as follows: S101: Analyze the PIN arrangement when docking with an external device based on the docking port of the docking station, determine the on / off status of each PIN pin when connected, select key PIN pins associated with data transmission or power supply, and determine the corresponding port type based on the functions of different PIN pins to obtain PIN arrangement structure information; S102: Based on the PIN arrangement structure information, comparing the rate response speeds of the channels during the protocol handshake process, analyzing the changing trends of the signals during the establishment phase of each data channel, screening the channel characteristics with outstanding response performance, and classifying them based on the channel handshake sequence and response characteristics to obtain a rate response characteristic group; S103: Analyze the duration distribution of each channel level when the port is connected to the external device according to the rate response characteristic group, determine the continuous change of the driving signal timing, adjust the synchronization process of signal acquisition and parameter arrangement, and obtain the port access feature set.
4. The docking station intelligent port allocation method according to claim 1, wherein: The steps of accessing the device identity are specifically as follows: S201: Based on the port access feature set, analyzing various communication characteristics corresponding to the device identity standard template, comparing the level continuity of the data channel and the signal change sequence, determining the matching relationship of the parameter combination under the standard template, identifying the channel combination that meets the template characteristics, and obtaining the standard feature matching amount; S202: Analyzing signal fluctuations of the USB-C control channel during data exchange based on the standard feature matching amount, comparing response changes between different channels, determining the continuity and fluctuation distribution of signal timing during the handshake phase, identifying channels with key signal variation patterns, and obtaining a set of fluctuation response coefficients; S203: calling the fluctuation response coefficient group, determining the channel whose cumulative difference meets the communication requirements, screening the device identification field that can establish a data connection, and obtaining the device identity access identifier based on the correspondence between the channel and the device field.
5. The docking station intelligent port allocation method according to claim 1, wherein: The steps of mapping the port feature data are specifically as follows: S301: Analyze the energy distribution of the multi-frequency signal of the port monitored by the multi-protocol control chip in each frequency band based on the device identity access identifier, select the frequency band area where energy changes, determine the concentration trend of the energy distribution in each frequency band, and obtain the spectrum energy concentration; S302: Identify the frequency band location corresponding to the energy peak in the port signal and the length of the continuous signal segment based on the spectrum energy concentration, analyze the continuity characteristics of the signal in the different time periods, compare the change trends of the energy peak area and the continuous segment interval, and generate an energy peak distribution group; S303: calling the energy peak distribution group, determining the consistency between the signal parameters and the port type template, analyzing the identification process corresponding to each template, identifying the signal characteristic data consistent with the template, and obtaining the port characteristic mapping data.
6. The method for allocating intelligent ports of a docking station according to claim 5, wherein: The consistency between the signal parameters and the port type template is determined by the formula: ; Calculate the energy feature difference value, analyze the recognition process corresponding to each template, and identify the signal characteristic data that matches the template, where: Representative The energy characteristic difference value of the port samples, Representative The number of peaks in the energy peak distribution group of the port samples, Representative Port sample No. The actual amplitude of the energy peak, Representative Port type template The template amplitude of the energy peak, Representative The total energy of the peak energy distribution group of the port samples, Representative The total energy of the energy peak distribution of each port type template.
7. The docking station intelligent port allocation method according to claim 1, wherein: The steps of allocating the preferred combination are specifically as follows: S401: calling the port feature mapping data, analyzing the port type information corresponding to the mapping data, comparing each port type parameter with the protocol category supported by the current port, identifying the port combination supporting bandwidth control, and obtaining a mapping type index; S402: Based on the mapping type index, compare the external device bandwidth requirement parameter with the port remaining bandwidth parameter, determine the priority parameter of each device, and screen the devices and ports that meet the pairing conditions according to the bandwidth allocation order to obtain a bandwidth allocation sequence; S403: Optimizing the bandwidth control and allocation process according to the bandwidth allocation sequence, calculating the pairing priority between devices and ports, and identifying the device and port combination with the best pairing relationship by comparing the device priority and the remaining bandwidth of the port, thereby obtaining the optimal allocation combination.
8. The method for allocating intelligent ports of a docking station according to claim 7, wherein: By comparing the device priority and the remaining bandwidth of the port, the formula is used: ; Calculate the pairing priority value and identify the device and port combination with the best pairing relationship, where: Representative Device and The pairing priority value between ports, Representative The bandwidth requirement of each device, Representative The remaining bandwidth parameter of each port, Representative The priority weight parameter of each device, Representative The service priority parameters corresponding to each port, Representative The total priority parameter value of the device.
9. The method for allocating intelligent ports of a docking station according to claim 1, wherein: The steps of allocating the priority sequence of ports are specifically as follows: S501: Determine the weight combination of each device based on the assigned preferred combination, compare the distribution patterns of weight parameters within the same pairing group, select a set of devices with consistent weights, and group them based on combination characteristics to obtain a weight distribution set; S502: Analyze the device request time parameters for the weight distribution set, determine the time order of devices with consistent weights, prioritize devices with earlier request times, determine the allocation order, and assign the remaining devices to candidate queues to obtain a time-ordered queue. S503: calling the time-ordered queue, optimizing the port bandwidth allocation process, adjusting the port resource allocation sequence based on the device and port allocation relationship in the time-ordered queue, and obtaining a port allocation priority sequence.
10. A docking station intelligent port allocation system, the system being used to implement the docking station intelligent port allocation method according to any one of claims 1 to 9, characterized in that: The system comprises: The feature collection module analyzes the pin arrangement, protocol handshake rate, and level hold time based on the docking station's connection port, determines the timing changes of the drive signal, standardizes the parameters, and simultaneously organizes the collected parameters to obtain the port access feature set. The identity screening module compares parameters with the device identity standard template based on the port access feature set, analyzes the level holding time and signal timing of the USB-C control channel, calculates the rate difference, identifies devices that meet the conditions, and obtains a device identity access identifier; The type mapping module analyzes the energy distribution of the multi-frequency signal of the port monitored by the multi-protocol control chip based on the device identity access identifier, identifies the energy peak and the length of the continuous signal segment, determines the consistency of various signal parameters with the port type template, and obtains the port feature mapping data; The optimal allocation module calls the port feature mapping data, analyzes the corresponding port type, compares the bandwidth requirement parameters of the external device with the remaining bandwidth parameters of the port, determines the device priority parameters, optimizes the bandwidth control calculation process, identifies the optimal device and port pairing in the combination, and obtains the optimal allocation combination; The sequential sorting module determines the device weight combination according to the allocation preferred combination. If the weights are consistent, the module sorts the devices by request time, selects the priority devices for port allocation, and adjusts the unallocated devices into the candidate queue to obtain the port allocation priority sequence.
Citation Information
Cited By
Docking station data flow intelligent regulation and control method and system
CN121125624A