CN-122019300-A - Multi-source equipment state visual monitoring method and related device for docking station
Abstract
A multi-source equipment state visual monitoring method and a related device of a docking station are provided, wherein the method comprises the steps of obtaining original data flow on an uplink data bus between a target docking station and host equipment, calculating average flow value and flow change rate sequence of the original data flow, calculating I/O pressure index of the uplink data bus, determining whether the docking station is in a performance sensitive state or not based on the I/O pressure index, obtaining first state data of the host equipment and second state data of an external equipment through a first preset sampling frequency when the docking station is not in the performance sensitive state, obtaining the first state data of the host equipment and the second state data of the external equipment through a second preset sampling frequency when the docking station is in the performance sensitive state, generating visual instructions of the running states of the host equipment and the external equipment, and controlling a display screen of the docking station to perform visual presentation according to the visual instructions. The application can improve the adaptability of the visual monitoring of the docking station.
Inventors
- LI JUN
- TANG MINGJIA
- HUANG GUOQIANG
Assignees
- 深圳市欣博跃电子有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260123
Claims (10)
- 1. A method for visually monitoring the status of a multi-source device of a docking station, the method comprising: Acquiring original data flow on an uplink data bus between a target docking station and host equipment, wherein the uplink data bus is a main data channel for carrying communication between the host equipment and all external equipment connected by the target docking station; Calculating the average flow value and the flow change rate sequence of the original data flow in a preset sliding time window; calculating an I/O pressure index of the uplink data bus based on the average flow value and the flow change rate sequence, wherein the I/O pressure index is used for representing the instantaneous load state of the uplink data bus; Determining whether the docking station is in a performance sensitive state based on the I/O pressure index, wherein the performance sensitive state is used for representing a system state of the uplink data bus, wherein the system state is required to ensure data transmission performance preferentially; when the docking station is determined not to be in the performance sensitive state, acquiring first state data of the host device and second state data of the external device through a first preset sampling frequency; when the docking station is determined to be in the performance sensitive state, acquiring the first state data of the host device and the second state data of the external device through a second preset sampling frequency, wherein the first preset sampling frequency is higher than the second preset sampling frequency; Generating a visual instruction of the running states of the host device and the external device based on the first state data and the second state data; And controlling the display screen of the docking station to perform visual presentation according to the visual instruction.
- 2. The method according to claim 1, wherein the calculating the average flow value and flow rate change sequence of the original data flow within a preset sliding time window specifically comprises: Calculating the median of the original data flow in the preset sliding time window, and determining the median as a flow baseline value; When the flow baseline value is greater than a preset high load threshold value, determining a plurality of data points which are greater than a dynamic burst threshold value in the original data flow in the preset sliding time window as burst flow components, wherein the dynamic burst threshold value is the product of the flow baseline value and a preset burst identification factor, and determining a plurality of data points except the burst flow components in the original data flow in the preset sliding time window as background flow components; Calculating the average flow value based on the background flow component and generating the flow rate change sequence based on the bursty flow component.
- 3. The method according to claim 2, wherein said calculating said average flow value based on said background flow component and generating said sequence of flow rates based on said bursty flow component comprises: calculating a flow arithmetic mean of a plurality of the data points in the background flow component and determining the flow arithmetic mean as the Ping Junliu magnitude; dividing the preset sliding time window into a plurality of target time windows according to a preset window dividing rule, wherein the time length of each target time window is equal; Calculating, for each of the data points in the bursty flow component, an instantaneous magnitude of each of the data points in each of the target time windows relative to the flow baseline value; Calculating the total amplitude of the burst flow quanta of each target time window, wherein the total amplitude of the burst flow quanta is the sum of all the instantaneous amplitudes in the target time windows, and one target window corresponds to one total amplitude of the burst flow quanta; And respectively calculating the ratio of the total amplitude of the burst flow quanta corresponding to each target time window to the duration of the target time window to obtain a plurality of flow change rates, and combining the flow change rates into a flow change rate sequence according to a time sequence.
- 4. A method according to claim 3, wherein said calculating an I/O pressure indicator of said upstream data bus based on said average flow value and said sequence of flow rates of change comprises: Calculating the ratio of the average flow value to the preset reference flow value to obtain a load intensity coefficient; when the load intensity coefficient is larger than a preset load threshold value, calculating the duration of a first time window based on the load intensity coefficient, wherein the duration is inversely proportional to the load intensity coefficient; determining a plurality of flow rate change rates corresponding to the first time window in the flow rate change rate sequence as a first flow rate change rate sub-sequence; determining a maximum value of the flow rate change rate in the first flow rate change rate sub-sequence as a target flow rate change rate; Determining a plurality of flow change rates corresponding to a second time window in the flow change rate sequence as a second flow change rate subsequence, wherein the duration of the second time window is a preset fixed duration; When the load intensity coefficient is smaller than or equal to the preset load threshold value, determining the maximum value of the flow rate change rate in the second flow rate change rate sub-sequence as the target flow rate change rate; and dynamically adjusting the load intensity coefficient based on the target flow rate change rate to obtain the I/O pressure index.
- 5. The method of claim 4, wherein dynamically adjusting the load intensity factor based on the target flow rate change rate to obtain the I/O pressure indicator comprises: when the target flow rate is greater than a preset burst threshold, determining the product of the load intensity coefficient and a preset amplification factor as the I/O pressure index; And when the target flow rate change rate is smaller than or equal to the preset burst threshold value, determining the product of the load intensity coefficient and a preset attenuation factor as the I/O pressure index.
- 6. The method of claim 1, wherein the determining whether the docking station is in a performance sensitive state based on the I/O pressure indicator, in particular comprises: Recording as a valid fluctuation when the I/O pressure index is transited from being smaller than a preset pressure lower limit threshold value to being larger than a preset pressure upper limit threshold value or the I/O pressure index is fallen back from being larger than the preset pressure upper limit threshold value to being smaller than the preset pressure lower limit threshold value in a preset judging time period; Accumulating the number of effective fluctuation times and determining the fluctuation times; When the fluctuation times are larger than a preset fluctuation threshold, calculating the accumulated duration time of the I/O pressure index higher than the preset pressure upper limit threshold in the preset judging time period; if the accumulated duration is longer than a preset duration threshold, determining that the docking station is in the performance sensitive state; if the accumulated duration is less than or equal to the preset duration threshold, determining that the docking station is not in the performance sensitive state; When the fluctuation times are smaller than or equal to the preset fluctuation threshold value, determining the I/O pressure index at the tail end of the preset judging time period as a current I/O pressure index; if the current I/O pressure index is larger than the preset pressure upper limit threshold, determining that the docking station is in the performance sensitive state; and if the current I/O pressure index is smaller than or equal to the preset pressure upper limit threshold value, determining that the docking station is not in the performance sensitive state.
- 7. The method according to claim 1, wherein the generating the visual instruction of the operation states of the host device and the external device based on the first state data and the second state data specifically includes: performing anomaly detection on the first state data and the second state data to obtain an anomaly state data set; acquiring an abnormal grade of each item of state data in the abnormal state data set, and sequencing the priority of each item of state data based on the abnormal grade; According to a preset display rule, determining the state data with the highest abnormal grade in the abnormal state data set as main display content, and determining the state data except the main display content in the abnormal state data set as secondary display content; Analyzing the change frequency of the secondary display content, and switching the display mode of the secondary display content into a simplified display mode when the change frequency is larger than a preset frequency threshold value, wherein the simplified display mode only displays the state type and the abnormal level; When the change frequency is smaller than or equal to the preset frequency threshold, switching the display mode of the secondary display content into a complete display mode, wherein the complete display mode displays detailed information of a state; Generating a first display instruction of the main display content and generating a second display instruction of the secondary display content; and combining the first display instruction and the second display instruction into the visual instruction.
- 8. A multi-source device status visualization monitoring system of a docking station, comprising one or more processors and a memory coupled to the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the multi-source device status visualization monitoring system of the docking station to perform the method of any of claims 1-7.
- 9. A computer readable storage medium comprising instructions which, when run on a multi-source device state visualization monitoring system of a docking station, cause the multi-source device state visualization monitoring system of the docking station to perform the method of any of claims 1-7.
- 10. A computer program product, characterized in that the computer program product, when run on a multi-source device status visualization monitoring system of a docking station, causes the multi-source device status visualization monitoring system of the docking station to perform the method of any of claims 1-7.
Description
Multi-source equipment state visual monitoring method and related device for docking station Technical Field The application relates to the technical field of visual monitoring, in particular to a multi-source equipment state visual monitoring method and a related device of a docking station. Background With the continuous increase of requirements on data transmission rate and system response, such as multimedia data processing, high-definition video transmission, high-speed storage access and the like, the docking station (Docking Station) is used as an important bridge for connecting a host device (such as a notebook computer) with a plurality of external devices (such as a display, a keyboard, a storage device and the like), and increasingly plays a key role in multi-source data aggregation and distribution. Modern docking stations are typically connected to the host device via a single upstream data bus (e.g., USB-C, thunderbolt, etc.), which carries all of the communication data between the host and all peripherals, and is a potential source of system performance bottlenecks. In the prior art, a part of docking system has a status monitoring function, and can perform status collection on a host device or a part of external devices, for example, display connection status, read-write speed of a storage device, and the like. Such systems typically periodically collect device status data using a fixed sampling frequency and are presented via a display screen or host software interface onboard the docking station. However, the status monitoring behavior of the docking station itself, including the interrogation command sent by the docking station and the status data received by the docking station, all need to occupy the uplink data bus resources and the processing capacity of the micro control unit. While this part of the overhead affects little when the bus is idle, it forms a direct bandwidth and processing resource competition with the user's main data traffic in a high load scenario. Such competition may cause unexpected jitter in the performance of the primary data transfer task, such as a momentary drop in the data copy rate, delay or tearing of the video frames, thereby substantially negatively impacting the user's core experience, reducing the adaptability of the dock to visual monitoring. Disclosure of Invention The application provides a multi-source equipment state visual monitoring method and a related device of a docking station, which are used for solving the technical problem that the data transmission performance is reduced due to the fact that the monitoring behavior and main data transmission of the existing docking station monitoring system compete with each other for bandwidth resources under the condition of high load, and improving the adaptability of the visual monitoring of the docking station. In a first aspect of the present application, there is provided a method for visually monitoring a status of a multi-source device of a docking station, the method comprising: Acquiring original data flow on an uplink data bus between a target docking station and host equipment, wherein the uplink data bus is a main data channel for carrying communication between the host equipment and all external equipment connected by the target docking station; Calculating the average flow value and the flow change rate sequence of the original data flow in a preset sliding time window; calculating an I/O pressure index of the uplink data bus based on the average flow value and the flow change rate sequence, wherein the I/O pressure index is used for representing the instantaneous load state of the uplink data bus; Determining whether the docking station is in a performance sensitive state based on the I/O pressure index, wherein the performance sensitive state is used for representing a system state of the uplink data bus, wherein the system state is required to ensure data transmission performance preferentially; when the docking station is determined not to be in the performance sensitive state, acquiring first state data of the host device and second state data of the external device through a first preset sampling frequency; when the docking station is determined to be in the performance sensitive state, acquiring the first state data of the host device and the second state data of the external device through a second preset sampling frequency, wherein the first preset sampling frequency is higher than the second preset sampling frequency; Generating a visual instruction of the running states of the host device and the external device based on the first state data and the second state data; And controlling the display screen of the docking station to perform visual presentation according to the visual instruction. Optionally, calculating the average flow value and the flow rate change rate sequence of the original data flow within a preset sliding time window specifically includes: Calculating the me