Flow control method and device based on wireless adjustment, equipment and medium

By introducing a wireless adjustment-based flow control method in the USB system, and using Zigbee devices to dynamically adjust the transmission rate, the problem of lack of flexibility and adaptability of data flow control in the USB system is solved, and data transmission efficiency and quality are improved.

CN119690897AInactive Publication Date: 2025-03-25HEFEI HEXAGON SEMICON CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510192726.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-03-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In complex and changeable practical application scenarios, traditional data flow control methods lack flexibility and adaptability, resulting in low transmission efficiency or data loss.

Method used

By introducing a wireless adjustment-based flow control method in the USB system, the Zigbee device is used to determine the capability factor of the receiver and dynamically adjust the initial transmission rate according to the factor to realize dynamic regulation of real-time data flow.

Benefits of technology

It effectively avoids data loss caused by insufficient receiver capabilities, and at the same time prevents efficiency waste caused by too low transmission rate, improves the efficiency and quality of data transmission in USB system, and enhances the adaptability and stability of the system under different environments and equipment conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690897A_ABST
    Figure CN119690897A_ABST
Patent Text Reader

Abstract

The invention discloses a flow control method and device based on wireless adjustment, equipment and a medium. The method is applied to a USB system, comprises a transmitting end, a receiving end and wireless equipment, and comprises the following steps: performing data class negotiation through the transmitting end and the receiving end to determine an initial transmission rate; transmitting the data stream to the receiving end through the transmitting end based on the initial transmission rate; determining a capability factor of the receiving end through the wireless equipment, and sending the capability factor to the sending end; and the initial transmission rate is dynamically adjusted through the sending end according to the capability factor. By defining the capability factor, the current state of the receiving end can be reflected more accurately, and a basis is provided for transmission rate adjustment. Dynamic adjustment is carried out by the sending end according to the capability factor, dynamic optimization of the transmission rate is realized, and adaptive adjustment can be carried out according to the actual capability of the receiving end. The problem of data loss caused by insufficient capacity of the receiving end is effectively avoided, and meanwhile, efficiency waste caused by too low transmission rate can be prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a flow control method, device, equipment and medium based on wireless regulation. Background Art

[0002] In today's era of rapid development of digitalization and informatization, fast, accurate and stable data transmission has become the key to the operation of various applications and systems. As a widely used data transmission method, the USB system plays an important role in many fields such as computers, mobile devices, industrial control, etc. However, in complex and changing actual application scenarios, the data flow control of the USB system faces many challenges.

[0003] Traditional USB data transmission solutions often use fixed transmission rate settings, which lack flexibility and adaptability. In the actual transmission process, due to the instability of the network environment, differences in the performance of the receiving device and various other factors, if an initial transmission rate that is too high is set at the beginning, and the processing capacity of the receiving end cannot keep up, it may cause data loss, buffer overflow and other problems, seriously affecting the integrity and accuracy of the data. On the contrary, if the initial transmission rate is set too low, although data loss and other problems can be avoided, it will greatly reduce the efficiency of data transmission, waste system resources and time, and cannot meet the needs of high-speed data transmission. Summary of the invention

[0004] The present invention provides a flow control method, device, equipment and medium based on wireless regulation to realize the real-time dynamic regulation function of USB data flow, and prevent the problems of low transmission efficiency caused by slow data transmission at the sending end or data flow loss caused by too fast transmission.

[0005] According to one aspect of the present invention, a flow control method based on wireless regulation is provided, which is applied to a USB system, including: a transmitting end, a receiving end and a wireless device Zigbee, and the method includes:

[0006] The data class is negotiated between the sender and the receiver to determine the initial transmission rate;

[0007] Transmitting a data stream to a receiving end based on an initial transmission rate by a sending end;

[0008] Determine the capability factor of the receiving end through Zigbee and send the capability factor to the sending end;

[0009] The initial transmission rate is dynamically adjusted by the sender according to the capability factor.

[0010] Optionally, data class negotiation is performed by the sending end and the receiving end to determine the initial transmission rate, including: the sending end generates a data class negotiation request based on its own device information, and sends the data class negotiation request to the receiving end; the receiving end determines the initial transmission rate based on its own processing capability and the data class negotiation request, and feeds back the initial transmission rate to the sending end, wherein the own processing capability includes CPU performance, memory capacity and current load.

[0011] Optionally, the capability factor of the receiving end is determined through Zigbee, including: obtaining each target monitoring item set by the user; monitoring the receiving end based on each target monitoring item through Zigbee to obtain each monitoring data corresponding to each target monitoring item; and inputting each monitoring data into a preset capability factor calculation model to obtain an output capability factor.

[0012] Optionally, each monitoring data is input into a preset capability factor calculation model to obtain an output capability factor, including: determining the degree of influence of each target monitoring item on the processing capability of the receiving end through the capability factor calculation model, and assigning a corresponding weight to each monitoring data according to the degree of influence; performing weighted calculation on each monitoring data based on each weight to determine the capability factor of the receiving end.

[0013] Optionally, the initial transmission rate is dynamically adjusted by the sending end according to the capability factor, including: obtaining a preset adjustment interval, wherein the preset adjustment interval includes an upper adjustment limit and a lower adjustment limit; determining whether the capability factor is within the preset adjustment interval, and if so, continuing to use the initial transmission rate to transmit the data stream to the receiving end; otherwise, dynamically adjusting the initial transmission rate according to the preset adjustment interval and the capability factor.

[0014] Optionally, the initial transmission rate is dynamically adjusted according to a preset adjustment interval and a capability factor, including: when the capability factor is greater than an adjustment upper limit, increasing the initial transmission rate according to a preset adjustment gradient.

[0015] Optionally, the initial transmission rate is dynamically adjusted according to a preset adjustment interval and a capability factor, including: when the capability factor is less than an adjustment lower limit, reducing the initial transmission rate according to a preset adjustment gradient.

[0016] According to another aspect of the present invention, there is provided a flow control device based on wireless regulation, the device comprising:

[0017] An initial transmission rate determination module, used for determining an initial transmission rate by negotiating a data class between a sending end and a receiving end;

[0018] A data stream transmission module, used for transmitting a data stream from a transmitting end to a receiving end based on an initial transmission rate;

[0019] A capability factor determination module is used to determine the capability factor of the receiving end through Zigbee and send the capability factor to the sending end;

[0020] The transmission rate adjustment module is used to dynamically adjust the initial transmission rate according to the capability factor through the sending end.

[0021] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0022] at least one processor;

[0023] and a memory communicatively coupled to the at least one processor;

[0024] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a flow control method based on wireless regulation as described in any embodiment of the present invention.

[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a flow control method based on wireless regulation as described in any embodiment of the present invention when executed.

[0026] The technical solution of the embodiment of the present invention can more accurately reflect the current state of the receiving end by defining the capability factor, and provide a basis for adjusting the transmission rate. The transmitting end can dynamically adjust according to the capability factor, so as to achieve dynamic optimization of the transmission rate, and can adaptively adjust according to the actual capability of the receiving end. The problem of data loss caused by insufficient capability of the receiving end is effectively avoided, and the waste of efficiency caused by too low a transmission rate can also be prevented. The efficiency and quality of data transmission of the USB system are improved, and the adaptability and stability of the system under different environments and equipment conditions are enhanced.

[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] 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.

[0029] Figure 1is a flow chart of a flow control method based on wireless adjustment provided according to Embodiment 1 of the present invention;

[0030] Figure 2 is a flow chart of another flow control method based on wireless adjustment provided according to Embodiment 1 of the present invention;

[0031] Figure 3 is a flow chart of another flow control method based on wireless adjustment provided according to Embodiment 2 of the present invention;

[0032] Figure 4 is a structural schematic diagram of a flow control device based on wireless adjustment provided according to Embodiment 3 of the present invention;

[0033] Figure 5 It is a structural schematic diagram of an electronic device for implementing a flow control method based on wireless regulation according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] Embodiment 1

[0037] Figure 1A flow chart of a flow control method based on wireless regulation is provided for the first embodiment of the present invention. This embodiment is applicable to the scenario of USB system transmitting data stream. The method can be executed by a flow control device based on wireless regulation. The flow control device based on wireless regulation can be implemented in the form of hardware and / or software. The flow control device based on wireless regulation can be configured in a computer controller. Figure 1 As shown, the method includes:

[0038] S110: The sending end and the receiving end negotiate the data class to determine an initial transmission rate.

[0039] Among them, USB is a standard interface for communication and data transmission between computers and external devices. The sender refers to the device that generates and sends data signals during the data transmission process. The receiver is the device that receives data signals in contrast to the sender. Data class negotiation refers to the information exchange process between the sender and the receiver to reach a consensus on the transmission conditions, mainly for the parameters of data transmission, such as transmission rate, data format, etc. The initial transmission rate refers to the speed at which the sender sends data to the receiver at the beginning of the communication.

[0040] Specifically, during the data transmission process, the sender and the receiver first conduct data class negotiation. The sender generates a negotiation request based on its own device status, such as network interface performance and data processing capability, and sends it to the receiver. The receiver responds to the sender's request based on its own CPU performance, memory capacity, current load and other processing capability information, thereby determining the initial transmission rate.

[0041] Optionally, data class negotiation is performed by the sending end and the receiving end to determine the initial transmission rate, including: the sending end generates a data class negotiation request based on its own device information, and sends the data class negotiation request to the receiving end; the receiving end determines the initial transmission rate based on its own processing capability and the data class negotiation request, and feeds back the initial transmission rate to the sending end, wherein the own processing capability includes CPU performance, memory capacity and current load.

[0042] The sending device has its own device characteristics. For example, a USB3.0 mobile hard disk supports a maximum transfer rate of 5Gbps. The read and write speed of the USB internal storage chip, the performance of the interface controller and other device information will affect the data transmission capacity. The sending end will generate a data class negotiation request based on its own device information, which includes the range of transfer rates it supports. The sending end can send the data class negotiation request to the receiving end through the physical line of the USB interface in accordance with the communication method specified by the USB protocol.

[0043] It should be noted that if the receiving end is a computer, the CPU performance will affect the data processing speed, that is, if the CPU's main frequency is low and the number of instructions that can be executed per second is small, the corresponding maximum data transfer rate that can be processed will also be reduced. If the memory space of the receiving end is limited, when a large amount of data is quickly transmitted, the memory buffer may be filled up quickly. For example, a device with only 2GB of memory may not be able to maintain a high transmission rate due to insufficient memory when receiving large amounts of data. The receiving end needs to determine the appropriate transmission rate based on the available memory space to avoid data loss. The current load situation of the receiving end will also affect the determination of the transmission rate. If the computer is running multiple large programs at the same time, such as video editing software and 3D games, the CPU and memory resources are already occupied in large quantities. Then when receiving USB data, the resources that the receiving end can allocate to USB data reception and processing will be reduced, and the initial transmission rate needs to be reduced to ensure that the data can be processed correctly.

[0044] Specifically, the receiving end will determine the initial transmission rate based on the negotiation request sent by the sending end after comprehensively considering its own processing capabilities. For example, the transmission rate requested by the sending end is in the range of 100Mbps-1Gbps, and the receiving end may choose a relatively low initial transmission rate, such as 100Mbps, due to the current high CPU load and tight memory, to ensure that data can be stably received and processed, and avoid data loss or system freezes due to excessively high transmission rates.

[0045] S120: The sending end transmits a data stream to the receiving end based on the initial transmission rate.

[0046] Furthermore, the receiving end will feed back the determined initial transmission rate information to the sending end through the communication line of the USB interface. After receiving the feedback of the initial transmission rate, the sending end will adjust its data transmission strategy according to the initial transmission rate. For example, the sending speed of the internal data cache and the clock frequency of the data transmission can be adjusted to meet the 100Mbps transmission rate required by the receiving end, thereby starting the initial data transmission.

[0047] S130 . Determine the capability factor of the receiving end through Zigbee, and send the capability factor to the sending end.

[0048] Among them, Zigbee is a low-power, low-rate, short-distance wireless communication technology standard with the advantages of low power consumption, low latency, and high transmission security. The capability factor is an indicator that reflects the ability of the receiving end to process data, which can include hardware processing capabilities, software operating efficiency, current system resource usage, signal reception and decoding capabilities, and other factors. The capability factor can be defined with different meanings according to different user applications. For example, when receiving a data stream via USB, users generally need to open a buffer of a certain size to store data. In this scenario, it can be stipulated that: when the buffer size is empty (indicating that there is enough space to store data), p_capbility=1, when the buffer data is full (indicating that the CPU currently has no extra space to store data), p_capbility=0, when the buffer size is 30% remaining, p_capbility=0.7, etc.

[0049] Specifically, the transmitter transmits the data stream to the receiver at this initial transmission rate. At the same time, Zigbee technology comes into play. Zigbee will obtain the target monitoring items of the receiver set by the user, such as signal strength, device temperature, remaining power, etc., and monitor the receiver based on the target monitoring items to collect the corresponding monitoring data. The monitoring data is then input into the preset capacity factor calculation model. The capacity factor calculation model will first determine the degree of influence of each target monitoring item on the processing capacity of the receiver, and then assign corresponding weights to each monitoring data. Finally, the capacity factor of the receiver is obtained through weighted calculation and transmitted back to the transmitter.

[0050] S140: The sending end dynamically adjusts the initial transmission rate according to the capability factor.

[0051] Specifically, after receiving the capability factor, the sender will compare it with the preset adjustment interval. If the capability factor is within the adjustment interval, the transmission will continue to use the initial transmission rate; if the capability factor is greater than the upper limit of the adjustment, the sender will increase the initial transmission rate according to the preset adjustment gradient; if the capability factor is less than the lower limit of the adjustment, the sender will reduce the initial transmission rate according to the preset adjustment gradient, thus achieving dynamic adaptation of the transmission rate and the receiving end's capability, and ensuring efficient and stable data transmission.

[0052] Figure 2 A flow chart of a flow control method based on wireless adjustment is provided for the first embodiment of the present invention, and step S140 mainly includes the following steps S141 to S144:

[0053] S141. Obtain a preset adjustment interval, wherein the preset adjustment interval includes an upper adjustment limit and a lower adjustment limit.

[0054] The preset adjustment interval clearly defines the upper and lower boundaries of the reasonable change of the initial transmission rate, and the upper adjustment limit is the highest value of the interval. The capacity factor is a quantitative indicator that comprehensively reflects the actual processing capacity of the receiving end. It is obtained by monitoring and evaluating various aspects of the receiving end.

[0055] S142: Determine whether the capability factor is within a preset adjustment range. If so, execute S143; otherwise, execute S144.

[0056] Specifically, the transmitter compares the acquired capability factor with the preset adjustment interval. The capability factor is a value between 0 and 1, where 0 indicates that the device is in the worst state and 1 indicates that the device is in the best state. That is, if the adjustment interval is [0.4, 0.8], when the capability factor is 0.6, it is within the preset adjustment interval.

[0057] S143. Continue to transmit the data stream to the receiving end at the initial transmission rate.

[0058] Specifically, if the capability factor is within the preset adjustment range, it indicates that the current comprehensive state of the receiving end can support the initial transmission rate. At this time, the sending end will continue to transmit data streams to the receiving end at the initial transmission rate. For example, if the initial transmission rate is 1Gbps, the adjustment range is [0.4,0.8], and the capability factor is 0.6, the sending end will maintain the initial transmission rate, continue to read data from the internal cache, and send data at a rate of 1Gbps through the USB interface.

[0059] S144. Dynamically adjust the initial transmission rate according to a preset adjustment interval and capability factor.

[0060] Specifically, if the capability factor is not within the preset adjustment interval, the transmitter needs to dynamically adjust the initial transmission rate. For example, the capability factor is 0.3, which is lower than the adjustment lower limit of 0.4, indicating that the current receiving capability of the receiving end is poor. The adjustment strategy can be based on a proportional relationship, for example, adjusting the transmission rate according to the ratio of the capability factor to the adjustment interval boundary. For example, if the capability factor is lower than the adjustment lower limit, the transmission rate can be reduced according to the ratio of the capability factor to the adjustment lower limit. Assuming that the initial transmission rate is 1Gbps, the adjustment lower limit is 0.4, and the capability factor is 0.3, then the adjusted transmission rate may be 1Gbps*(0.3 / 0.4)=750Mbps.

[0061] Optionally, the initial transmission rate is dynamically adjusted according to a preset adjustment interval and a capability factor, including: when the capability factor is greater than an adjustment upper limit, increasing the initial transmission rate according to a preset adjustment gradient.

[0062] Specifically, when the capacity factor is greater than the upper limit of adjustment, it indicates that the current actual processing capacity of the receiving end exceeds the ideal upper limit level that was originally set when it was expected to cope well with the initial transmission rate. This may be due to the hardware upgrade of the receiving end device, the original low-configuration CPU was replaced with a high-performance processor, or the memory capacity was expanded, so that it can process more data per unit time; it may also be that the network environment of the receiving end has been greatly improved, the signal strength has become stronger, and the packet loss rate has been greatly reduced, making data transmission smoother and more efficient, thereby making the overall data processing ability of the receiving end stronger, and ultimately causing the capacity factor to exceed the preset upper limit of adjustment.

[0063] The preset adjustment gradient is a preset fixed change amount, which specifies the specific amplitude of each dynamic adjustment of the initial transmission rate. Gradually increasing the rate according to the preset adjustment gradient allows the receiving end to have a relatively smooth adaptation process, and to systematically allocate its own resources to cope with the gradually increasing amount of data, ensuring stable and continuous data transmission.

[0064] It is known that the degree of capacity improvement of different receiving ends may vary, and the preset adjustment gradient can more accurately and adaptively adjust the transmission rate according to the actual processing capacity enhancement of the receiving end. For example, if the capacity of the receiving end is only slightly higher than the upper limit of the adjustment, a smaller adjustment gradient can avoid excessive increase in the transmission rate and cause waste, so that the transmission rate just adapts to the improved capacity of the receiving end; and if the capacity of the receiving end is greatly improved, by increasing the rate multiple times according to the adjustment gradient, the transmission rate can gradually reach a suitable level that matches it, making full use of the processing capacity advantage of the receiving end to achieve more efficient data transmission.

[0065] For example, assuming that the initial transmission rate is set to 50Mbps, the preset adjustment gradient is 5Mbps, and the adjustment upper limit is 60Mbps, when it is monitored that the capacity factor of the receiving end is greater than the adjustment upper limit, the sending end will gradually increase the initial transmission rate to 55Mbps, 60Mbps, 65Mbps, etc. according to the gradient of 5Mbps each time, until it reaches a suitable rate value that can fully utilize the processing capacity of the receiving end and ensure stable and reliable data transmission.

[0066] Optionally, the initial transmission rate is dynamically adjusted according to a preset adjustment interval and a capability factor, including: when the capability factor is less than an adjustment lower limit, reducing the initial transmission rate according to a preset adjustment gradient.

[0067] Similarly, when the capacity factor is less than the lower limit of adjustment, it indicates that the actual processing capacity of the receiving end is poor, which may be due to low CPU performance, insufficient memory capacity, too many tasks currently running, or poor network environment, such as weak signal, high packet loss rate, etc., making it difficult to cope with the current initial transmission rate. At this time, you can refer to the above adjustment process and reduce the initial transmission rate according to the preset adjustment gradient.

[0068] The technical solution of the embodiment of the present invention can more accurately reflect the current state of the receiving end by defining the capability factor, and provide a basis for adjusting the transmission rate. The transmitting end can dynamically adjust according to the capability factor, so as to achieve dynamic optimization of the transmission rate, and can adaptively adjust according to the actual capability of the receiving end. The problem of data loss caused by insufficient capability of the receiving end is effectively avoided, and the waste of efficiency caused by too low a transmission rate can also be prevented. The efficiency and quality of data transmission of the USB system are improved, and the adaptability and stability of the system under different environments and equipment conditions are enhanced.

[0069] Embodiment 2

[0070] Figure 3 This is a flow chart of a flow control method based on wireless regulation provided in the second embodiment of the present invention. This embodiment adds a specific process of determining the capability factor of the receiving end through Zigbee on the basis of the above-mentioned first embodiment. Among them, the specific contents of steps S210-S220 and S260 are roughly the same as steps S110-S120 and S140 in the first embodiment, so they will not be repeated in this embodiment. Figure 3 As shown, the method includes:

[0071] S210: The sending end and the receiving end negotiate the data class to determine an initial transmission rate.

[0072] Optionally, data class negotiation is performed by the sending end and the receiving end to determine the initial transmission rate, including: the sending end generates a data class negotiation request based on its own device information, and sends the data class negotiation request to the receiving end; the receiving end determines the initial transmission rate based on its own processing capability and the data class negotiation request, and feeds back the initial transmission rate to the sending end, wherein the own processing capability includes CPU performance, memory capacity and current load.

[0073] S220: The sending end transmits a data stream to the receiving end based on the initial transmission rate.

[0074] S230, obtaining each target monitoring item set by the user.

[0075] S240 , monitoring the receiving end based on each target monitoring item through Zigbee to obtain each monitoring data corresponding to each target monitoring item.

[0076] Among them, users can set target monitoring items according to actual needs. For example, users may pay attention to the signal strength of the receiving device, the free memory size of the device, or the remaining power of the receiving device. Low power may affect its normal data reception and subsequent processing capabilities. In addition, users can also set the network connection stability of the device, the number of currently running tasks, etc. as target monitoring items.

[0077] Specifically, as a low-power, short-distance wireless communication technology, Zigbee has strong networking and data collection capabilities. It will carry out corresponding monitoring work in the network environment where the receiving end is located according to the various target monitoring items set by the user. Taking the monitoring signal strength as an example, Zigbee can periodically detect the strength value of the received wireless signal through the wireless communication module on the receiving device, and record it as the monitoring data of the corresponding target monitoring item. For the remaining power, Zigbee can interact and communicate with the power management module of the receiving device to obtain the real-time power percentage value as power monitoring data. Similarly, for the stability of the network connection, Zigbee can monitor the packet loss rate, retransmission times and other indicators between the receiving end and the network to reflect its stability; for the number of running tasks, Zigbee can query the task management system of the receiving device to obtain the data on the number of running tasks.

[0078] S250: Input each monitoring data into a preset capability factor calculation model to obtain an output capability factor, and send the capability factor to a sending end.

[0079] Specifically, the capability factor calculation model sets different weights and calculation rules to comprehensively consider the impact of each monitoring data on the overall capability of the receiving end. The capability factor calculation model will substitute the collected monitoring data into it for calculation according to the established mathematical formula and logical relationship.

[0080] Optionally, each monitoring data is input into a preset capability factor calculation model to obtain an output capability factor, including: determining the degree of influence of each target monitoring item on the processing capability of the receiving end through the capability factor calculation model, and assigning a corresponding weight to each monitoring data according to the degree of influence; performing weighted calculation on each monitoring data based on each weight to determine the capability factor of the receiving end.

[0081] Specifically, the capability factor calculation model can first standardize the monitoring data to make them within the same dimensional range, and then perform weighted summation and other operations according to their respective weights. The final output is a capability factor value that can comprehensively reflect the capability of the receiving end. Through the capability factor, the sending end can intuitively understand the current approximate capability level of the receiving end, and then make corresponding adjustment decisions on aspects such as data transmission rate.

[0082] For example, the monitoring data of signal strength may be assigned a higher weight in the model because it plays a key role in the quality of data reception. If the signal strength is poor, errors and packet loss are likely to occur during data transmission, which seriously affects the accurate acquisition and processing of data by the receiving end. Insufficient memory may cause data processing to stall, but its impact is slightly lower than that of signal strength, so the weight assigned will be smaller. The weight of the remaining power data may be relatively moderate. After all, when the power fluctuates within a certain range, the impact on the ability to receive data is limited. The capacity factor calculation model will comprehensively consider the key role of various monitoring items in the actual data reception and processing process, and use professional analysis methods and a lot of past practical experience to accurately determine the degree of influence of each target monitoring item on the receiving end's processing capacity, and then assign reasonable weight values ​​to the corresponding monitoring data, so as to prepare for the subsequent accurate calculation of the capacity factor.

[0083] Furthermore, after assigning corresponding weights to each monitoring data, the capability factor calculation model will use weighted calculation to comprehensively obtain the capability factor of the receiving end. For example, suppose there are three monitoring data, the value corresponding to the signal strength is 0.8, the weight is set to 0.5; the value corresponding to the free memory size is 0.6, the weight is set to 0.3; the value corresponding to the number of currently running tasks is 0.4, and the weight is set to 0.2. When weighted calculation is performed, each monitoring data is multiplied by its corresponding weight, and then these products are added, that is, (0.8×0.5)+(0.6×0.3)+(0.4×0.2)=0.4+0.18+0.08=66, which is 0.66 when converted to decimal. Through weighted calculation, the different aspects of the receiving end reflected by each target monitoring item can be integrated according to their importance, and finally a quantitative value that can reflect the overall processing capability level of the receiving end is obtained, that is, the capability factor, which is convenient for the sending end to reasonably adjust the transmission-related strategies based on this factor.

[0084] S260: The sending end dynamically adjusts the initial transmission rate according to the capability factor.

[0085] Optionally, the initial transmission rate is dynamically adjusted by the sending end according to the capability factor, including: obtaining a preset adjustment interval, wherein the preset adjustment interval includes an upper adjustment limit and a lower adjustment limit; determining whether the capability factor is within the preset adjustment interval, and if so, continuing to use the initial transmission rate to transmit the data stream to the receiving end; otherwise, dynamically adjusting the initial transmission rate according to the preset adjustment interval and the capability factor.

[0086] Optionally, the initial transmission rate is dynamically adjusted according to a preset adjustment interval and a capability factor, including: when the capability factor is greater than an adjustment upper limit, increasing the initial transmission rate according to a preset adjustment gradient.

[0087] Optionally, the initial transmission rate is dynamically adjusted according to a preset adjustment interval and a capability factor, including: when the capability factor is less than an adjustment lower limit, reducing the initial transmission rate according to a preset adjustment gradient.

[0088] The technical solution of the embodiment of the present invention allows users to flexibly set target monitoring items according to actual needs, thereby improving the pertinence and adaptability of monitoring. Monitoring using Zigbee is not limited by wired connections, which broadens the scope and application scenarios of monitoring, and can fully obtain monitoring data corresponding to the target monitoring items, providing a rich information basis for accurately evaluating the capabilities of the receiving end. The capability factor calculation model can scientifically measure the degree of influence of each monitoring item, making the capability evaluation more reasonable and accurate. It provides strong support for flow control based on wireless regulation in USB systems, thereby improving the efficiency and stability of data transmission.

[0089] Embodiment 3

[0090] Figure 4 This is a schematic diagram of the structure of a flow control device based on wireless adjustment provided by Embodiment 3 of the present invention. Figure 4 As shown, the device includes: an initial transmission rate determination module 310, which is used to determine the initial transmission rate by negotiating the data class through the sending end and the receiving end;

[0091] The data stream transmission module 320 is used to transmit the data stream to the receiving end based on the initial transmission rate through the sending end;

[0092] A capability factor determination module 330 is used to determine the capability factor of the receiving end through Zigbee and send the capability factor to the sending end;

[0093] The transmission rate adjustment module 340 is used to dynamically adjust the initial transmission rate according to the capability factor through the sending end.

[0094] Optionally, the initial transmission rate determination module 310 is specifically used to: generate a data class negotiation request according to its own device information by the sending end, and send the data class negotiation request to the receiving end; determine the initial transmission rate according to its own processing capability and the data class negotiation request by the receiving end, and feed back the initial transmission rate to the sending end, wherein the own processing capability includes CPU performance, memory capacity and current load.

[0095] Optionally, the capability factor determination module 330 specifically includes a target monitoring item acquisition unit, used to: obtain each target monitoring item set by the user; a monitoring data acquisition unit, used to: monitor the receiving end based on each target monitoring item through Zigbee to obtain each monitoring data corresponding to each target monitoring item; a capability factor calculation unit, used to: input each monitoring data into a preset capability factor calculation model to obtain an output capability factor.

[0096] Optionally, the capability factor calculation unit is specifically used to: determine the degree of influence of each target monitoring item on the processing capability of the receiving end through a capability factor calculation model, and assign corresponding weights to each monitoring data according to the degree of influence; perform weighted calculation on each monitoring data based on each weight to determine the capability factor of the receiving end.

[0097] Optionally, the transmission rate adjustment module 340 is specifically used to: obtain a preset adjustment interval, wherein the preset adjustment interval includes an upper adjustment limit and a lower adjustment limit; determine whether the capacity factor is within the preset adjustment interval, and if so, continue to use the initial transmission rate to transmit the data stream to the receiving end; otherwise, dynamically adjust the initial transmission rate according to the preset adjustment interval and the capacity factor.

[0098] Optionally, the transmission rate adjustment module 340 includes: a rate increasing unit, which is used to: when the capacity factor is greater than the adjustment upper limit, increase the initial transmission rate according to a preset adjustment gradient.

[0099] Optionally, the transmission rate adjustment module 340 includes: a rate reduction unit, configured to: when the capability factor is less than an adjustment lower limit, reduce the initial transmission rate according to a preset adjustment gradient.

[0100] The technical solution of the embodiment of the present invention can more accurately reflect the current state of the receiving end by defining the capability factor, and provide a basis for adjusting the transmission rate. The transmitting end can dynamically adjust according to the capability factor, so as to achieve dynamic optimization of the transmission rate, and can adaptively adjust according to the actual capability of the receiving end. The problem of data loss caused by insufficient capability of the receiving end is effectively avoided, and the waste of efficiency caused by too low a transmission rate can also be prevented. The efficiency and quality of data transmission of the USB system are improved, and the adaptability and stability of the system under different environments and equipment conditions are enhanced.

[0101] A flow control device based on wireless regulation provided in an embodiment of the present invention can execute a flow control method based on wireless regulation provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0102] Embodiment 4

[0103] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0104] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0105] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0106] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a flow control method based on wireless regulation.

[0107] In some embodiments, a flow control method based on wireless regulation may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the flow control method based on wireless regulation described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a flow control method based on wireless regulation in any other appropriate manner (e.g., by means of firmware).

[0108] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0109] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0110] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0111] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0112] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0113] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0114] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0115] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A flow control method based on wireless regulation, characterized in that: Applied to a USB system, including: a transmitting end, a receiving end and a wireless device Zigbee, the method includes: The data class is negotiated between the sender and the receiver to determine the initial transmission rate; Transmitting a data stream to the receiving end based on the initial transmission rate by the transmitting end; Determine the capability factor of the receiving end through Zigbee, and send the capability factor to the sending end; Dynamically adjusting the initial transmission rate according to the capability factor by the transmitting end; The data class negotiation between the sender and the receiver is performed to determine the initial transmission rate, including: The sending end generates a data class negotiation request according to its own device information, and sends the data class negotiation request to the receiving end, wherein the own device information includes network interface performance and data processing capability; The receiving end determines an initial transmission rate according to its own processing capability and the data class negotiation request, and feeds back the initial transmission rate to the sending end, wherein the own processing capability includes CPU performance, memory capacity and current load; Among them, the capability factor of the receiving end is determined by Zigbee, including: Get the target monitoring items set by the user, where the target monitoring items include signal strength, free memory size, remaining power, network connection stability or the number of currently running tasks; Monitoring the receiving end based on each of the target monitoring items through Zigbee to obtain each monitoring data corresponding to each of the target monitoring items; Each of the monitoring data is input into a preset capability factor calculation model to obtain an output capability factor.

2. The method according to claim 1, characterized in that The step of inputting each of the monitoring data into a preset capability factor calculation model to obtain an output capability factor comprises: Determine the influence degree of each target monitoring item on the processing capability of the receiving end through the capability factor calculation model, and assign corresponding weights to each monitoring data according to the influence degree; A weighted calculation is performed on each of the monitoring data based on each of the weights to determine a capability factor of the receiving end.

3. The method according to claim 1, characterized in that The dynamically adjusting the initial transmission rate according to the capability factor by the transmitting end includes: Obtain a preset adjustment interval, wherein the preset adjustment interval includes an upper adjustment limit and a lower adjustment limit, wherein the upper adjustment limit is 0.8 and the lower adjustment limit is 0.4; Determining whether the capability factor is within the preset adjustment interval, and if so, continuing to transmit the data stream to the receiving end at the initial transmission rate; Otherwise, the initial transmission rate is dynamically adjusted according to the preset adjustment interval and the capability factor.

4. The method according to claim 3, characterized in that The dynamically adjusting the initial transmission rate according to the preset adjustment interval and the capability factor includes: When the capability factor is greater than the adjustment upper limit, the initial transmission rate is increased according to a preset adjustment gradient.

5. The method according to claim 3, characterized in that: The dynamically adjusting the initial transmission rate according to the preset adjustment interval and the capability factor includes: When the capability factor is less than the adjustment lower limit, the initial transmission rate is reduced according to a preset adjustment gradient.

6. A flow control device based on wireless regulation, applied to the method according to any one of claims 1 to 5, characterized in that: include: An initial transmission rate determination module, used for determining an initial transmission rate by negotiating a data class between a sending end and a receiving end; A data stream transmission module, configured to transmit a data stream to the receiving end through the transmitting end based on the initial transmission rate; A capability factor determination module, used to determine the capability factor of the receiving end through Zigbee, and send the capability factor to the sending end; A transmission rate adjustment module, configured to dynamically adjust the initial transmission rate according to the capability factor through the transmitting end; The initial transmission rate determination module is specifically used to: generate a data class negotiation request according to the device information of the sending end, and send the data class negotiation request to the receiving end, wherein the device information of the sending end includes network interface performance and data processing capability; The receiving end determines an initial transmission rate according to its own processing capability and the data class negotiation request, and feeds back the initial transmission rate to the sending end, wherein the own processing capability includes CPU performance, memory capacity and current load; The capability factor determination module is specifically used to: obtain each target monitoring item set by the user, wherein the target monitoring items include signal strength, free memory size, remaining power, network connection stability or the number of currently running tasks; Monitoring the receiving end based on each of the target monitoring items through Zigbee to obtain each monitoring data corresponding to each of the target monitoring items; Each of the monitoring data is input into a preset capability factor calculation model to obtain an output capability factor.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 5.

8. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Communication system, communication transmission rate determination method and apparatus, and electronic device

    CN117201415A

  • Data transmission rate control method and device based on DPU and data processor

    CN118018491A

  • Control method and device for unidirectional data transmission, storage medium and program product

    CN118555248A

  • Congestion control method and device for data transmission

    WO2011150651A1