Adaptive method, system and electronic device for wired data transmission rate
By setting the difference in data frame duration between the data sending and receiving devices, the data transmission rate is adaptively adjusted, solving the problem of data loss in short-distance wired data transmission and achieving improved reliability and reduced costs.
Patent Information
- Application Number
- CN202310691602.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-12
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2043-06-12
AI Technical Summary
In existing technologies, the data processing capabilities of the data receiving device in short-range wired data transmission limit the adaptive adjustment of the data transmission rate, leading to data loss. Furthermore, existing methods rely on network transmission protocols and equipment, which are costly and complex.
By setting the maximum difference duration of n consecutive data frames between the data sending and receiving devices as the first calibrated difference duration, the data sending device is controlled to delay sending data frames, thereby achieving adaptive adjustment of the data transmission rate without relying on network protocols and devices.
It enables adaptive adjustment of data transmission frequency in short-distance wired data transmission, improving data transmission reliability and reducing costs.
Smart Images

Figure CN116582223B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of data transmission, in particular to a method and system for adaptive wired data transmission rate and an electronic device. BACKGROUND
[0002] In the case of short-distance wired state, when data communication is performed between two devices, the data transmission rate of the data sending device needs to be adaptively adjusted due to the limitation of the data processing capability (speed) of the data receiving device, so that the data receiving device can correctly receive data and the problem of data loss due to insufficient processing speed at the receiving device end can be avoided, thereby improving the reliability of data transmission. The application range is directed to short-distance wired and slow data transmission scenarios.
[0003] However, in the prior art, the method for controlling the data transmission rate relies on network transmission protocols and related network devices, which is costly and complex. SUMMARY
[0004] The present application provides a method and system for adaptive wired data transmission rate and an electronic device to at least solve the technical problem that the data transmission rate needs to rely on network transmission protocols and related network devices in related technologies.
[0005] According to an aspect of an embodiment of the present application, a method for adaptive wired data transmission rate is provided, which is applied to a wired data transmission system including a data sending device and a data receiving device. The adaptive method includes a preparation phase and a dynamic adjustment phase. The dynamic adjustment phase includes: controlling the data sending device to send a plurality of data frames to the data receiving device; determining the difference duration of the data processing duration and the data sending duration of each data frame; setting the maximum difference duration in the continuous n data frames as the first calibration difference duration, where n≥2, n is a natural number; and controlling the data sending device to send the first data frame after the continuous n data frames to the data receiving device after delaying for the first calibration difference duration, and send the second data frame after the continuous n data frames.
[0006] Optionally, the preparation phase includes: controlling the data sending device to start sending data frames to the data receiving device; controlling the data receiving device to send a signal representing the end of data frame processing to the data sending device after the current data frame processing is completed; and when the data sending device receives the signal representing the end of data frame processing, controlling the data sending device to send the next data frame to the data receiving device until the nth data frame is sent.
[0007] Optionally, the preparation stage further comprises: obtaining a data processing duration and a data transmission duration of each frame of data; determining a difference between the data processing duration and the data transmission duration of each frame of data; and setting a maximum difference duration in the first-n frames of data as a second calibration difference duration.
[0008] Optionally, the dynamic adjustment stage further comprises: determining whether the signal sending time for starting processing of the current frame of data is later than the signal sending time for ending processing of the previous frame of data; and if the signal sending time for starting processing of the current frame of data is not later than the signal sending time for ending processing of the previous frame of data, controlling the data transmission device to retransmit the current frame of data.
[0009] Optionally, the dynamic adjustment stage further comprises: if the signal sending time for starting processing of the current frame of data is later than the signal sending time for ending processing of the previous frame of data, determining a delay duration in which the signal sending time for starting processing of the current frame of data is later than the signal sending time for ending processing of the previous frame of data; determining whether the delay duration is greater than a preset maximum delay duration; and if the delay duration is greater than the preset maximum delay duration, decreasing the value of n.
[0010] Optionally, the dynamic adjustment stage further comprises: determining whether the delay duration is less than a preset minimum delay duration; and if the delay duration is less than the preset minimum delay duration, increasing the value of n.
[0011] According to another aspect of the embodiments of the present application, a wired data transmission system is further provided, which comprises a data transmission device and a data receiving device, and a first signal line, a second signal line and a data line are connected between the data transmission device and the data receiving device.
[0012] Optionally, the system further comprises: a difference duration determining module configured to determine a difference duration between a data processing duration and a data transmission duration of each frame of data; a first calibration difference duration setting module configured to set a maximum difference duration in consecutive n frames of data as a first calibration difference duration, where n≥2 and n is a natural number; and a frame sending module configured to control the data transmission device to send multiple frames of data to the data receiving device, and control the data transmission device to send the first frame of data after the consecutive n frames of data to the data receiving device after a delay of the first calibration difference duration, and send the second frame of data after the consecutive n frames of data.
[0013] According to still another aspect of the embodiments of the present application, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus, the memory is configured to store a computer program, and the processor is configured to execute the steps of the adaptive method for wired data transmission rate by running the computer program stored in the memory.
[0014] According to still another aspect of the embodiments of the present application, a computer readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is configured to execute the steps of the adaptive method for wired data transmission rate when running.
[0015] In the embodiments of the present application, the adaptive method for wired data transmission rate is provided, the maximum difference value duration in the continuous n data frames is set as a first calibration difference value duration, and the data sending device is controlled to send the first data frame after the continuous n data frames to the data receiving device after delaying for the first calibration difference value duration, and send the second data frame after the continuous n data frames. The frequency of data sending can be adaptively adjusted according to the transmission rate of multiple data frames, and the method does not need to rely on network transmission protocol and related network devices, and is strong in realizability and cost saving. BRIEF DESCRIPTION OF DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application together with the specification.
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows, and obviously, other drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0018] Figure 1 is an optional adaptive method flow chart for wired data transmission rate according to the embodiments of the present application;
[0019] Figure 2 is an optional structure block diagram of an electronic device according to the embodiments of the present application. DETAILED DESCRIPTION
[0020] In order to make the person skilled in the art better understand the scheme of the present application, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should be within the scope of protection of the present application.
[0021] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0022] For short-distance wired state, when data communication is carried out between two devices, the data processing capacity (speed) of the data receiving end device is limited, and the data sending end device needs to adaptively adjust its data sending rate, so that the data receiving device can correctly receive data, and the problem of data loss at the receiving device due to insufficient processing time can be avoided, thereby improving the data transmission reliability. The application range is directed to short-distance wired and slow data transmission scenarios. However, in the prior art, the method capable of controlling the data transmission rate relies on network transmission protocols and related network devices, which has high cost and complex method.
[0023] As shown in Figure 1 The present application embodiment provides a kind of self-adaptive method of wired data transmission rate, applied to a kind of wired data transmission system, the limited data transmission system includes data sending device and data receiving device, including preparation phase and dynamic adjustment phase, wherein, the dynamic adjustment phase includes:
[0024] S1 controls data sending device to send multiple data frames to data receiving device;
[0025] S2 determines the difference duration of the duration used for data processing and the duration used for data sending of each frame of data;
[0026] S3 sets the maximum difference duration in the continuous n data frames as the first calibration difference duration, wherein n≥2, n is a natural number;
[0027] S4 controls the data sending device to send the first data frame after the n continuous data frames to the data receiving device after delaying for the first calibration difference time length, and sends the second data frame after the n continuous data frames.
[0028] Specifically, in the dynamic adjustment stage, the maximum difference time length in the n continuous data frames is set as the first calibration difference time length, and the data sending device is controlled to send the n-th data frame in the n continuous data frames to the data receiving device after delaying for the first calibration difference time length, that is, the time difference between each data frame and the sending time of the previous data frame is the difference time length of the data processing time length and the data sending time length of the maximum one of the n data frames before this data frame. This way makes the frequency of the data sending device sending data frames dynamic, which can adaptively adjust the frequency; at the same time, it does not rely on the network transmission protocol and related network devices, and reduces the cost while realizing the adaptive adjustment of the data sending frequency.
[0029] It should be noted that the present application does not limit the specific value of n, which can be selected according to the actual situation. For example, n=10 can be selected.
[0030] Optionally, the preparation stage comprises: controlling the data sending device to start sending data frames to the data receiving device; controlling the data receiving device to send a signal representing the end of data frame processing to the data sending device after the current data frame processing is completed; when the data sending device receives the signal representing the end of data frame processing, controlling the data sending device to send the next data frame to the data receiving device until the n-th data frame is sent.
[0031] Specifically, it is easy to understand that before sending the n+1-th data frame, the difference time length of the data processing time length and the data sending time length of the n data frames is not available for reference, therefore, the sending of the first n data frames is set as the preparation stage, at this time, when the data sending device receives the signal representing the end of data frame processing, the data sending device is controlled to send the next data frame to the data receiving device until the n-th data frame is sent.
[0032] Optionally, the preparation stage further comprises: obtaining the data processing time length and the data sending time length of each data frame; determining the difference of the data processing time length and the data sending time length of each data frame; setting the maximum difference time length in the first-n data frames as the second calibration difference time length.
[0033] It can be understood that after the n+1th data frame is sent, the n+2th data frame is sent after the second calibration difference value interval.
[0034] Optionally, the dynamic adjustment stage further comprises: judging whether the signal sending time for starting processing of the current data frame is later than the signal sending time for ending processing of the previous data frame; if the signal sending time for starting processing of the current data frame is not later than the signal sending time for ending processing of the previous data frame, controlling the data sending device to resend the current data frame.
[0035] It needs to be understood that if the signal sending time for starting processing of the current data frame is not later than the signal sending time for ending processing of the previous data frame, it can be considered that the current data frame fails to be sent, and at this time, the data sending device needs to be controlled to resend the current data frame.
[0036] Optionally, the dynamic adjustment stage further comprises: if the signal sending time for starting processing of the current data frame is later than the signal sending time for ending processing of the previous data frame, determining the delay time length of the signal sending time for starting processing of the current data frame being later than the signal sending time for ending processing of the previous data frame; judging whether the delay time length is greater than a preset maximum delay time length; if the delay time length is greater than the preset maximum delay time length, decreasing the value of n.
[0037] Specifically, if the signal sending time for starting processing of the current data frame is later than the signal sending time for ending processing of the previous data frame, it indicates that the maximum difference value time length of the previous n data frames and the difference value time length of the current data frame exist deviation, and the delay time length of the signal sending time for starting processing of the current data frame being later than the signal sending time for ending processing of the previous data frame is further determined, and if the delay time length is greater than the preset maximum delay time length, it indicates that the deviation of the maximum difference value time length of the previous n data frames and the difference value time length of the current data frame is large, and at this time, the deviation can be reduced by decreasing the value of n.
[0038] Optionally, the dynamic adjustment stage further comprises: judging whether the delay time length is less than a preset minimum delay time length; if the delay time length is less than the preset minimum delay time length, increasing the value of n.
[0039] Similarly, if the delay time length is less than the preset minimum delay time length, it indicates that the deviation of the maximum difference value time length of the previous n data frames and the difference value time length of the current data frame is small, and on this basis, in order to balance the processing amount of the data frame sending frequency, the value of n can be appropriately increased, which can reduce the processing amount of the data transmission system on the data frame sending frequency.
[0040] It should be understood that the preset maximum delay duration and the minimum delay duration can be selected according to factors such as data frame processing amount, which is not limited in the present application.
[0041] According to another aspect of the embodiments of the present application, a wired data transmission system is further provided, which comprises a data sending device and a data receiving device, and a first signal line, a second signal line and a data line are connected between the data sending device and the data receiving device.
[0042] Specifically, the data line is responsible for data transmission between the two devices; the first signal line is responsible for informing the data sending device of the time when the data receiving device starts to receive and process data; and the second signal line is responsible for informing the data sending device of the time when the data receiving device ends to receive and process data. Optionally, the data frame length transmitted between the first signal line and the second signal line is equal each time.
[0043] Optionally, the wired data transmission system further comprises:
[0044] a difference duration determination module, configured to determine a difference duration between the duration for processing each data frame and the duration for sending data;
[0045] a first calibrated difference duration setting module, configured to set the maximum difference duration in the continuous n data frames as a first calibrated difference duration, where n≥2, and n is a natural number;
[0046] a data frame sending module, configured to control the data sending device to send a plurality of data frames to the data receiving device, and control the data sending device to send the first data frame after the continuous n data frames to the data receiving device after delaying for the first calibrated difference duration, and send the second data frame after the continuous n data frames.
[0047] Figure 2 is a structural block diagram of an optional electronic device according to the embodiments of the present application, as shown in Figure 2 which comprises a processor 202, a communication interface 204, a memory 206 and a communication bus 208, wherein the processor 202, the communication interface 204 and the memory 206 complete mutual communication through the communication bus 208, wherein,
[0048] the memory 206 is configured to store a computer program;
[0049] the processor 202 is configured to execute the computer program stored in the memory 206, and realize the following steps:
[0050] control the data sending device to send a plurality of data frames to the data receiving device;
[0051] determine a difference duration between a data processing duration and a data sending duration of each frame of data;
[0052] set a maximum difference duration in the continuous n frames of data as a first calibration difference duration, wherein n≥2, n is a natural number;
[0053] control the data sending device to send the first data frame after the continuous n frames of data to the data receiving device after a delay of the first calibration difference duration, and send the second data frame after the continuous n frames of data.
[0054] According to another aspect of the embodiments of the present application, an electronic device for the adaptive method of wired data transmission rate is also provided, which can be a server, a terminal, or a combination thereof.
[0055] Optionally, in the embodiment, the communication bus can be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, Figure 2 In the figure, only one thick line is used to represent the bus, but it does not mean that there is only one bus or only one type of bus.
[0056] The communication interface is used for communication between the electronic device and other devices.
[0057] The memory can include a RAM and can also include a non-volatile memory, for example, at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.
[0058] Other module units in the wired data transmission system can also be included, but are not limited to the above, and will not be described herein.
[0059] According to another aspect of the embodiments of the present application, a storage medium is also provided. Optionally, in the embodiment, the storage medium can be used to execute the program code of the adaptive method of wired data transmission rate.
[0060] Optionally, in the embodiment, the storage medium can be located on at least one of the network devices in the network shown in the above embodiment.
[0061] Optionally, in the embodiment, the storage medium is configured to store program code for executing the following steps:
[0062] The control data sending device sends a plurality of data frames to a data receiving device;
[0063] A difference duration is determined for each data frame between a data processing duration and a data sending duration;
[0064] A maximum difference duration in the continuous n data frames is set as a first calibration difference duration, where n is greater than or equal to 2 and n is a natural number;
[0065] The control data sending device sends the first data frame after the continuous n data frames to the data receiving device with a delay of the first calibration difference duration, and sends the second data frame after the continuous n data frames. The specific examples in the embodiment can refer to the examples described in the above embodiments, and the embodiment will not be described again.
[0066] Optionally, in the embodiment, the storage medium can include but is not limited to a U disk, a ROM, a RAM, a mobile hard disk, a magnetic disk or an optical disk, and various storage program code storage media.
[0067] The serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0068] The integrated units in the above embodiments, if realized in the form of software function units and sold or used as independent products, can be stored in the above computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that make contributions to the prior art or the whole or part of the technical solutions can be embodied in the form of software products. The computer software product is stored in a storage medium and includes a plurality of instructions for causing one or more electronic devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application.
[0069] In the above embodiments of the present application, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can refer to the related description of other embodiments.
[0070] In the several embodiments provided by the present application, it should be understood that the disclosed client can be implemented in other ways. Of course, the above device embodiment is only illustrative, for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed mutual units can be indirect coupling or communication connection through some interfaces, units or modules, and can be electrical or other forms.
[0071] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place or distributed on multiple network units. Part or all of the units can be selected to achieve the purpose of the scheme provided in the embodiment according to actual needs.
[0072] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0073] In the above embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can refer to the relevant description of other embodiments.
[0074] The above is only the preferred embodiment of the present application, and it should be pointed out that for ordinary skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which should be considered as the protection scope of the present application.
Claims
1. A method of adapting the rate of wired data transmission, applied to a wired data transmission system comprising a data transmitting device and a data receiving device, characterized in that, The adaptive method comprises a preparation stage and a dynamic adjustment stage, wherein the dynamic adjustment stage comprises: controlling the data sending device to send a plurality of data frames to the data receiving device; determining a difference duration of a data processing duration and a data sending duration of each data frame; setting a maximum difference duration in the continuous n data frames as a first calibration difference duration, wherein n≥2, and n is a natural number; controlling the data sending device to send the second data frame after the first data frame after the continuous n data frames to the data receiving device after delaying for the first calibration difference duration.
2. The method for adaptive data transmission rate of a wireline according to claim 1, wherein, The preparation stage comprises: controlling the data sending device to start sending data frames to the data receiving device; controlling the data receiving device to send a signal representing the end of data frame processing to the data sending device after the end of processing the current data frame; controlling the data sending device to send the next data frame to the data receiving device when the data sending device receives the signal representing the end of data frame processing, until the nth data frame is sent.
3. The method for adaptive data transmission rate of a wireline according to claim 2, wherein, The preparation stage further comprises: obtaining a data processing duration and a data sending duration of each data frame; determining a difference of the data processing duration and the data sending duration of each data frame; setting a maximum difference duration in the first-n data frames as a second calibration difference duration.
4. The method for adaptive data transmission rate of a wireline according to claim 1, wherein, The dynamic adjustment stage further comprises: judging whether the signal representing the start of processing the current data frame is sent later than the signal representing the end of processing the previous data frame; if the signal representing the start of processing the current data frame is not sent later than the signal representing the end of processing the previous data frame, controlling the data sending device to resend the current data frame.
5. The method for adaptive data transmission rate of a wireline according to claim 4, wherein, The dynamic adjustment stage further comprises: if the signal representing the start of processing the current data frame is sent later than the signal representing the end of processing the previous data frame, determining a delay duration of the signal representing the start of processing the current data frame sent later than the signal representing the end of processing the previous data frame; judging whether the delay duration is greater than a preset maximum delay duration; if the delay duration is greater than the preset maximum delay duration, decreasing the value of n.
6. The method for adaptive data transmission rate of a wireline according to claim 5, wherein, The dynamic adjustment stage further comprises: judging whether the delay duration is less than a preset minimum delay duration; if the delay duration is less than the preset minimum delay duration, increasing the value of n.
7. A wired data transmission system comprising a data transmitting device and a data receiving device, characterized in that The data sending device and the data receiving device are connected with a first signal line, a second signal line and a data line; and further comprising: a difference duration determination module for determining a difference duration of a data processing duration and a data sending duration of each data frame; a first calibration difference duration setting module for setting a maximum difference duration in the continuous n data frames as a first calibration difference duration, wherein n≥2, and n is a natural number; The data frame sending module is configured to control the data sending device to send a plurality of data frames to a data receiving device, and control the data sending device to send a first data frame after the continuous n data frames to the data receiving device, and then delay for a first calibration difference value time length, and send a second data frame after the continuous n data frames.
8. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein, The processor, the communication interface and the memory complete mutual communication through the communication bus, and the method comprises the steps that The memory is used for storing a computer program. The processor is used for executing the adaptive method steps of the wired data transmission rate in any one of claims 1 to 6 by running the computer program stored on the memory.
9. A computer readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program is configured to execute the adaptive method steps of the wired data transmission rate in any one of claims 1 to 6 when running.
Citation Information
Patent Citations
Audio data transmission and reception methods and electronic apparatus using the same
US20090024236A1