Method and system for improving data transmission efficiency

CN122802123APending Publication Date: 2026-09-22SICHUAN JIUZHOU ELECTRIC GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610917243.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-24
Publication Date
2026-09-22

AI Technical Summary

Technical Problem

[0005]本发明提供一种数据传输效率提升方法,解决了现有技术中因逐帧响应导致的传输效率低下及断线后无法续传的技术问题

Benefits of technology

[0036]通过减少响应交互次数,有效降低了因等待单个数据帧响应而产生的累积延迟,尤其在高丢包率的不稳定网络环境中能大幅缩短总传输时间;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122802123A_ABST
    Figure CN122802123A_ABST
Patent Text Reader

Abstract

The application discloses a method and system for improving data transmission efficiency, and belongs to the technical field of data transmission. The method is applied to a sender in communication connection with a receiver, and comprises the following steps: the sender packages data and initializes a data frame number register; after the first frame of data is sent to establish the connection, the sender continuously sends data frames according to the register; after all the data is sent, an end frame is sent; the receiver feeds back missing data frame information; and the sender updates the register and selectively retransmits the missing frame according to the information. The method changes the frame-by-frame response into a unified response after batch sending and selectively retransmits, thereby reducing the interactive delay; the register and end frame mechanism are used to realize accurate retransmission, thereby avoiding bandwidth waste; and breakpoint continuous transmission can be realized, so that the transmission can be continued from the breakpoint after the connection is restored, and therefore the efficiency and reliability of large data transmission in an unstable network environment are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data transmission technology, and specifically to methods and systems for improving data transmission efficiency. Background Technology

[0002] In embedded device program upgrades or feature loading scenarios, target program data is typically transmitted to the device via interfaces such as serial ports or Ethernet. Because the target program data is large, a single data packet cannot complete the transmission; therefore, data must be segmented. To ensure data transmission reliability and avoid issues such as packet loss or packet concatenation, existing technologies, in addition to relying on underlying hardware communication safeguards, also introduce fault-tolerant mechanisms at the application layer, such as data frame verification and timeout retransmission, to improve transmission reliability.

[0003] However, while existing technologies improve transmission reliability, they also introduce significant efficiency issues. Especially in scenarios with unstable communication environments and high packet loss rates, frequent data frame-level retransmission mechanisms result in substantial time consumption during response waiting and timeout retransmissions, significantly reducing transmission efficiency and extending overall transmission time. Furthermore, if a physical layer connection is interrupted during transmission, existing technologies often require data transmission to start from the beginning upon re-establishment, making it impossible to resume interrupted transmissions, further impacting the practicality and efficiency of large-scale data transmission.

[0004] Therefore, it is necessary to propose a more efficient and reliable data transmission method to address the problems of low transmission efficiency and poor interruption recovery capability mentioned above. Summary of the Invention

[0005] This invention provides a method for improving data transmission efficiency, which solves the technical problems of low transmission efficiency and inability to resume transmission after disconnection caused by frame-by-frame response in the prior art.

[0006] This invention is achieved through the following technical solution:

[0007] In a first aspect, this application provides a method for improving data transmission efficiency, applied to a sender communicating with a receiver, the method comprising:

[0008] The data to be transmitted is divided into packets to form an ordered set of data frames, and the data frame number register is initialized to record the sequence of data frames to be sent.

[0009] Sending a first frame of data to the receiver to initiate transmission, the first frame of data containing metadata of the data to be transmitted;

[0010] After receiving a correct response to the first frame from the receiver, data frames are continuously sent to the receiver according to the sequence in the data frame number register;

[0011] After completing the initial transmission of all data frames, send an end frame to the receiver;

[0012] Receive and parse the response returned by the receiver in response to the end frame, and obtain the missing data frame information contained therein;

[0013] Update the data frame number register based on the missing data frame information, and selectively retransmit the missing data frame based on the updated content.

[0014] A further optimization involves adding the following after sending the first frame of data:

[0015] Obtain the response within the preset waiting time and determine whether it is a correct response;

[0016] If no response is received or an error response is received within the preset waiting time, the first frame of data will be resent.

[0017] If the first frame of data is retransmitted a preset threshold and no correct response is received, the transmission is deemed to have failed.

[0018] A further optimization is to insert a configurable inter-frame delay after each frame is sent before sending the next data frame.

[0019] A further optimization is to resend the end frame after sending it. If no response is received within a preset time, the end frame will be resent until a response is received or the maximum number of resends is reached.

[0020] A further optimization scheme involves repeating the process of sending the end frame, receiving the response, and selectively retransmitting after selective retransmission until all data is successfully received or the maximum number of repetitions is reached.

[0021] A further optimization is that the data frame number register supports dynamic updates, enabling transmission to continue from the point of interruption after the physical connection is restored, based on the latest missing data frame information.

[0022] A further optimization is that the waiting time, inter-frame delay, and retry threshold in the method are all configurable parameters.

[0023] Secondly, this application provides a system for improving data transmission efficiency, including a transmitting device and a receiving device connected via serial port or Ethernet communication:

[0024] The transmitting device includes:

[0025] The data processing module is used for data packetization and maintaining the data frame number register;

[0026] The transmitting module is communicatively connected to the receiving device and is used to transmit the first frame of data, data frames, and the end frame.

[0027] The receiving and parsing module is communicatively connected to the receiving device and is used to receive and parse response information;

[0028] The retransmission control module is connected to the data processing module, the sending module, and the receiving and parsing module, and is used to control selective retransmission.

[0029] The receiving device includes:

[0030] The receiving and processing module is communicatively connected to the sending device and is used to receive and verify data frames;

[0031] The recording module, connected to the receiving and processing module, is used to maintain records of missing data frames;

[0032] The response module is communicatively connected to both the recording module and the sending device, and is used to generate and provide feedback responses.

[0033] A further optimization is that the recording module maintains the recording state during physical connection interruptions and supports breakpoint resume functionality; the communication connection is a point-to-point serial communication or Ethernet connection.

[0034] Thirdly, this application provides a computer-readable storage medium storing a data transmission efficiency improvement program, wherein when the data transmission efficiency improvement program is executed by a processor, it implements the steps of the data transmission efficiency improvement method as described above.

[0035] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0036] By reducing the number of response interactions, the cumulative latency caused by waiting for a single data frame response is effectively reduced, which can significantly shorten the total transmission time, especially in unstable network environments with high packet loss rates.

[0037] By using a data frame number register to record the transmission sequence and combining it with the end frame to trigger the receiver to feed back missing frame information, accurate retransmission of only lost data frames is achieved, avoiding repeated transmission of successfully received data and further optimizing bandwidth utilization.

[0038] This mechanism enables breakpoint resume transmission. When the physical connection is restored after an interruption, the sender can continue transmission from the point of interruption based on the updated missing frame information in the register, without having to start from the beginning, thus significantly improving the reliability and efficiency of large data transmission. Attached Figure Description

[0039] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be considered as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort. In the drawings:

[0040] Figure 1 A flowchart illustrating the data transmission efficiency improvement method provided in this application embodiment;

[0041] Figure 2 This is a flowchart of the receiver software execution provided in an embodiment of this application;

[0042] Figure 3 This is a flowchart of the sending software execution provided in an embodiment of this application;

[0043] Figure 4 This is a block diagram of a data transmission efficiency improvement system provided in an embodiment of this application. Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.

[0045] In the first aspect, such as Figure 1 As shown, this application provides a method for improving data transmission efficiency, applied to a sender communicating with a receiver. The method includes the following steps:

[0046] Step S1: The data to be transmitted is packetized to form an ordered set of data frames, and the data frame number register is initialized to record the sequence of data frames to be sent;

[0047] Step S2: Send the first frame of data to the receiver to initiate transmission. The first frame of data contains metadata of the data to be transmitted.

[0048] Step S3: After receiving a correct response to the first frame from the receiver, continuously send data frames to the receiver according to the sequence in the data frame number register;

[0049] Step S4: After completing the initial transmission of all data frames, send an end frame to the receiver;

[0050] Step S5: Receive and parse the response returned by the receiver in response to the end frame, and obtain the missing data frame information contained therein;

[0051] Step S6: Update the data frame number register according to the missing data frame information, and selectively retransmit the missing data frame based on the updated content.

[0052] The technical solution provided in this embodiment optimizes the response mechanism, transforming the traditional frame-by-frame response into a unified response after batch transmission. This effectively reduces the number of interactions during transmission and significantly reduces the cumulative delay caused by waiting for a single data frame response, thereby greatly shortening the total transmission time in unstable network environments with high packet loss rates.

[0053] By introducing a data frame number register to record the transmission sequence and accurately locating missing data frames based on the receiver's response to the end frame, selective retransmission of only lost data packets is achieved, avoiding repeated transmission of successfully received data or non-missing data, and optimizing bandwidth utilization.

[0054] This batch transmission and selective retransmission mechanism enables breakpoint resumption. When the physical connection is interrupted and restored, the sender can continue transmission from the point of interruption based on the updated register state, without having to start from the beginning, greatly improving the reliability and operational efficiency of large-capacity data transmission. By reducing the number of response interactions and supporting breakpoint resumption, transmission efficiency is improved; parameters such as waiting time and inter-frame delay can be dynamically configured to adapt to different scenarios.

[0055] In this application, a response refers to any information replied by the receiver to a data frame (such as the first frame or the end frame) sent by the sender, which may include an acknowledgment signal, a list of missing data, etc.

[0056] The definitions of the English parameters in this application are as follows:

[0057] A: First frame response wait time (milliseconds), used to control the timeout duration for the sender to wait for the receiver's handshake response;

[0058] B: Inter-frame transmission delay (microseconds), used to adjust the transmission interval between consecutive data frames to achieve flow control;

[0059] C: End frame response wait time (in seconds), sets the maximum waiting time for the receiver to process integrity verification and generate the missing list;

[0060] D: Number of retransmissions of the end frame, which limits the maximum number of retries after the transmission of the end frame fails;

[0061] E: The maximum number of retransmissions in the overall process, controlling the total number of "response-retransmission" loops to prevent infinite retransmissions.

[0062] In one embodiment, step S1: The data to be transmitted is packetized to form an ordered set of data frames, and the data frame number register is initialized to record the sequence of data frames to be sent. This specifically includes the following steps:

[0063] Step S11: The sender reads the target file from the storage medium to obtain its starting address and total length in order to determine the range of the data to be transmitted;

[0064] Step S12: Based on the total length of the target file, the sender divides the total data of the target file into several consecutive data packets according to the preset single frame data length, thus completing the data packetization.

[0065] Step S13: For all data packets generated by the packet splitting, the sender initializes the data frame number register and stores the sequence numbers of all data frames generated for these data packets into the register in sequence to form a complete initial transmission sequence;

[0066] Step S14: At the same time, in order to prepare for receiving the initial transmission sequence formed by the sender, the receiver initializes and resets the registers and buffers related to data reception. Specifically, this includes clearing historical state parameters such as target file length, single frame data length, total number of frames, check value, first frame valid flag, and current frame sequence number, in order to prepare for the upcoming data reception.

[0067] The initialization collaborative design provided in this embodiment ensures that both communicating parties are in a consistent ready state before transmission starts, laying a solid foundation for the reliable execution of subsequent processes.

[0068] In one embodiment, step S2: Sending a first frame of data to the receiver to initiate transmission, the first frame of data containing metadata of the data to be transmitted, specifically including the following steps jointly performed by the sender and the receiver:

[0069] Step S21: The sender assembles a first frame containing the target file metadata, and sets its frame sequence number to a specific identifier; specifically, it is set to all zeros; this frame metadata includes the target file length, single frame data length, total number of target file frames, and target file checksum, and sends this frame to the receiver;

[0070] Step S22: While sending the first frame, the sender starts a timer and sets a configurable duration A to wait for the receiver's response;

[0071] Step S23: The sender listens and determines whether it has received the first frame response information from the receiver within the duration A;

[0072] Step S24: The sender performs the following operation based on the judgment result: if a correct response is received, the subsequent process continues; if a timeout occurs or an error response is received, the first frame is sent again until success is achieved or the preset number of retries is exceeded; specifically, the preset threshold for the number of retries is 3 times.

[0073] Step S25: Simultaneously, the receiver receives the first frame of data while waiting for the task, such as... Figure 2 As shown;

[0074] Step S26: The receiver verifies the received first frame of data to determine whether it meets the requirements;

[0075] Step S27: The receiver sends a response to the sender: if the first frame verification fails, a response containing an error flag is sent; if the first frame verification passes, a correct response is sent.

[0076] Step S28: If the first frame verification passes, after sending a correct response, the receiver initializes its own receiving environment, including initializing the missing data frame register into a complete sequence to be received, and indicating that all data frames corresponding to the total number of frames defined by the first frame metadata are in a state of waiting to be received.

[0077] The handshake verification mechanism provided in this embodiment jointly completes the reliable establishment of the transmission connection, providing a key prerequisite for the subsequent orderly data transmission process.

[0078] In one embodiment, such as Figure 3 As shown, step S3: After receiving a correct response to the first frame from the receiver, continuously send data frames to the receiver according to the sequence in the data frame number register, specifically including the following steps:

[0079] Step S31: The sender reads the contents of the corresponding sequence number of the data frame from the storage medium in sequence according to the current sequence in the data frame number register. More specifically, the data frame numbering follows a specific rule, that is, the highest bit of the first data frame in the sequence (such as DATA(1)) is 0, and it is denoted as DATA(0_1); the highest bit of the subsequent data frames (such as DATA(2) to DATA(N), where N is the total number of frames) is 1 and numbered in sequence. For example, when the data frame number register is initialized, the highest bit of the first frame DATA(0_1) is set to 0, and the highest bit of the subsequent frames such as DATA(1_N) is set to 1, indicating that the frame is numbered in sequence from the previous frame with the highest bit of 0 to N for transmission, so as to ensure the continuity and traceability of the sequence.

[0080] Step S32: The sender sends the read data frame to the receiver, and inserts a configurable small delay B after each frame is sent, and then continues to send the next frame, thereby controlling the sending rate;

[0081] Step S33: in the meantime, on the premise that the first frame has been verified to be valid, the receiver checks each received data frame;

[0082] Step S34: for a data frame that is correctly checked, the receiver stores its data in a buffer and executes a missing data register updating algorithm, dynamically adjusts the register state according to the logical relationship between the successfully received frame sequence number and the missing sequence interval, accurately removes the missing identifier of the corresponding data frame, and ensures that the register reflects the latest receiving state in real time.

[0083] Specifically, description is given through the following two typical scenarios:

[0084] Scenario 1: when the initial state of the missing data frame register is DATA(0_0), DATA(1_N) (that is, frames 0 to N are in a missing state), the updating logic is as follows:

[0085] if frame m is successfully received and 0=m<N-1, the register is updated to DATA(0_m+1), DATA(1_N).

[0086] if frame m is successfully received and 0+1=m<N-1, the register is updated to DATA(1_0), DATA(0_m+1), DATA(1_N).

[0087] if frame m is successfully received and 0+1<m<N-1, the register is updated to DATA(0_1), DATA(1_m-1), DATA(0_m+1), DATA(1_N).

[0088] if frame m is successfully received and 0+1<m=N-1, the register is updated to DATA(0_1), DATA(1_m-1), DATA(1_N).

[0089] if frame m is successfully received and 0+1<m=N, the register is updated to DATA(0_1), DATA(1_m-1).

[0090] Scenario 2: when the initial state of the missing data frame register is DATA(1_a), DATA(0_b), DATA(1_c), DATA(1_d), DATA(1_N) (where a<b<c<d<N, that is, frame a, b~c, d, N are in a missing state), the updating logic is as follows:

[0091] if frame m is successfully received and m<a, the register remains unchanged.

[0092] if frame m is successfully received and m=a, the register is updated to DATA(0_b), DATA(1_c), DATA(1_d), DATA(1_N).

[0093] If frame m is successfully received and a<m<b, the register remains unchanged.

[0094] If frame m is successfully received and m=b<c-1, update the register to DATA(1_a), DATA(0_b+1), DATA(1_c), DATA(1_d), DATA(1_N).

[0095] If frame m is successfully received and m=b=c-1, update the register to DATA(1_a), DATA(1_c), DATA(1_d), DATA(1_N).

[0096] If frame m is successfully received and b+1=m<c, update the register to DATA(1_a), DATA(0_b+1), DATA(1_c), DATA(1_d), DATA(1_N).

[0097] If frame m is successfully received and b+1<m<c-1, update the register to DATA(1_a), DATA(0_b+1), DATA(1_m-1), DATA(0_m+1), DATA(1_c), DATA(1_d), DATA(1_N).

[0098] If frame m is successfully received and b+1<m=c-1, update the register to DATA(1_a), DATA(0_b+1), DATA(1_m-1), DATA(1_c), DATA(1_d), DATA(1_N).

[0099] If frame m is successfully received and b+1<m=c, update the register to DATA(1_a), DATA(0_b+1), DATA(1_m-1), DATA(1_d), DATA(1_N).

[0100] If frame m is successfully received and c<m<d, the register remains unchanged.

[0101] If frame m is successfully received and m=d, update the register to DATA(1_a), DATA(0_b), DATA(1_c), DATA(1_N).

[0102] If frame m is successfully received and d<m<N, the register remains unchanged.

[0103] If frame m is successfully received and m=N, update the register to DATA(1_a), DATA(0_b), DATA(1_c), DATA(1_d).

[0104] Using the algorithm described above, the system can accurately remove missing flags from corresponding data frames, ensuring that the registers reflect the latest reception status in real time.

[0105] The collaborative process in this phase enables efficient and continuous data transmission and accurate real-time maintenance of the receiver's status, providing precise data basis for possible subsequent retransmissions.

[0106] In one embodiment, step S4: After the initial transmission of all data frames is completed, an end frame is sent to the receiver, specifically including the following steps:

[0107] Step S41: After the initial transmission of all data frames is completed, the sender generates an end frame with a specific identifier and sends it to the receiver to announce the end of this round of transmission; specifically, the frame sequence number of the end frame is set to all F;

[0108] Step S42: At the same time, the receiver receives the end frame while waiting for the task;

[0109] Step S43: The receiver determines whether the first frame of the current session is valid;

[0110] Step S44: If the first frame is valid, the final evaluation of data reception integrity is triggered; if the first frame is invalid, the system returns to the waiting state and ignores the current end frame.

[0111] This interactive design allows the sender to effectively announce the end of bulk transmission and ensures that the receiver initiates integrity verification only within a valid session, guaranteeing the accuracy of subsequent processes.

[0112] In one embodiment, step S5: receiving and parsing the receiver's response to the end frame, and obtaining the missing data frame information contained therein, specifically includes the following steps jointly performed by the sender and receiver:

[0113] Step S51: After sending the end frame, the sender starts a timer and waits for the receiver to send back a response to the end frame within a configurable duration C.

[0114] Step S52: If no response is received within duration C, the end frame is retransmitted. This retransmission process continues until a response is successfully received or the number of retransmissions exceeds the preset configurable number D.

[0115] Step S53: The sender parses the received response and extracts the list of missing data frame sequence numbers contained therein;

[0116] Step S54: At the same time, after triggering the integrity assessment, the receiver immediately checks the current state of its missing data register;

[0117] Step S55: If no data is missing, send a "data reception successful" response to the sender; if there are missing data frames, send a "data reception failed" response to the sender, which contains a list of missing data frames precisely generated based on the missing data register state.

[0118] The aforementioned request-response pattern, combined with a configurable timeout retry strategy, ensures reliable synchronization of transmission status information, providing decisive input for the sender's next decision.

[0119] In one embodiment, step S6: updating the data frame number register according to the missing data frame information, and selectively retransmitting the missing data frame based on the updated content, specifically includes the following steps jointly executed by the sender and receiver:

[0120] Step S61: The sender updates the data frame number register with the parsed list of missing data frame sequence numbers, so that the register only retains the sequence numbers of the frames that need to be retransmitted;

[0121] Step S62: Based on the updated data frame number register content, the sender re-executes the transmission process only for the missing data frame sequence;

[0122] Step S63: Repeat the entire process of sending the end frame - obtaining the response - retransmitting the missing frame until all data is successfully received or the overall process exceeds the maximum number of retries E;

[0123] Step S64: After the transmission connection is unexpectedly interrupted and restored, the sender can continue the transmission from the point of interruption without starting from the beginning by utilizing the frame state information maintained by both parties; during the interruption, the receiver's missing data register will continuously record the sequence number of the lost frame. After the connection is restored, the sender will directly retransmit the missing frame based on the record, ensuring that the transmission process is not affected by the interruption.

[0124] Step S65: During the retransmission phase, the receiver continuously receives data frames and dynamically updates the state of the missing data register.

[0125] Step S66: When the missing data register shows that all data has been successfully received, the receiver sends a final success response to the sender, completing the transmission process.

[0126] The selective retransmission and breakpoint resumption mechanism constructed in this way significantly improves the efficiency and robustness of data transmission, and is especially suitable for large-capacity data transmission scenarios in unstable network environments.

[0127] Secondly, such as Figure 4 As shown, this application provides a data transmission efficiency improvement system, the system including a sending device and a receiving device connected in communication:

[0128] The transmitting device includes:

[0129] The data processing module is used to read data, divide it into packets, and maintain the data frame number register.

[0130] The sending module is communicatively connected to the receiving device and is used to send the first frame, data frame and end frame to the receiving device.

[0131] The receiving and parsing module is communicatively connected to the receiving device and is used to receive the response from the receiving device and parse out the missing data frame information.

[0132] The retransmission control module is connected to the data processing module, the sending module, and the receiving and parsing module respectively, and is used to update the registers and control selective retransmission based on the missing data frame information.

[0133] The receiving device includes:

[0134] The receiving and processing module is communicatively connected to the sending device and is used to receive data frames and perform verification.

[0135] A recording module, connected to the receiving and processing module, is used to maintain records of missing data;

[0136] The response module is connected to the receiving processing module and the recording module respectively, and is communicatively connected to the sending device, for generating and feeding back a response containing missing data frame identification information.

[0137] In one embodiment, the recording module maintains the recording state during a physical connection interruption, enabling resume transmission after the connection is restored; the system is suitable for point-to-point serial communication or Ethernet communication scenarios.

[0138] The functions of each module in the above-mentioned data transmission efficiency improvement system correspond to the steps in the above-mentioned data transmission efficiency improvement method embodiment, and their functions and implementation processes will not be described in detail here.

[0139] Thirdly, embodiments of this application provide a data transmission efficiency improvement device, which can be a personal computer (PC), laptop computer, server, or other device with data processing capabilities.

[0140] In this embodiment, the data transmission efficiency improvement device may include a processor, a memory, a communication interface, and a communication bus.

[0141] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.

[0142] Communication interfaces include input / output (I / O) interfaces, physical interfaces, and logical interfaces used for interconnecting internal devices to improve data transmission efficiency, as well as interfaces used for interconnecting the device with other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.

[0143] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0144] The processor can be a general-purpose processor, which can call a data transfer efficiency improvement program stored in memory and execute the data transfer efficiency improvement method provided in the embodiments of this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the data transfer efficiency improvement program is called can be referred to in the various embodiments of the data transfer efficiency improvement method of this application, and will not be repeated here.

[0145] Fourthly, embodiments of this application also provide a readable storage medium.

[0146] The present application has a data transmission efficiency improvement program stored on a readable storage medium, wherein when the data transmission efficiency improvement program is executed by a processor, it implements the steps of the data transmission efficiency improvement method described above.

[0147] The method implemented when the data transmission efficiency improvement program is executed can be referred to in various embodiments of the data transmission efficiency improvement method of this application, and will not be repeated here.

[0148] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for improving data transmission efficiency, characterized in that, The method, applied to a sender communicating with a receiver, includes: The data to be transmitted is divided into packets to form an ordered set of data frames, and the data frame number register is initialized to record the sequence of data frames to be sent. Sending a first frame of data to the receiver to initiate transmission, the first frame of data containing metadata of the data to be transmitted; After receiving a correct response to the first frame from the receiver, data frames are continuously sent to the receiver according to the sequence in the data frame number register; After completing the initial transmission of all data frames, send an end frame to the receiver; Receive and parse the response returned by the receiver in response to the end frame, and obtain the missing data frame information contained therein; Update the data frame number register based on the missing data frame information, and selectively retransmit the missing data frame based on the updated content.

2. The method for improving data transmission efficiency according to claim 1, characterized in that, After sending the first frame of data, it also includes: Obtain the response within the preset waiting time and determine whether it is a correct response; If no response is received or an error response is received within the preset waiting time, the first frame of data will be resent. If the first frame of data is retransmitted a preset threshold and no correct response is received, the transmission is deemed to have failed.

3. The method for improving data transmission efficiency according to claim 1, characterized in that, During the continuous transmission of data frames, a configurable inter-frame delay is inserted after each frame is transmitted before the next data frame is transmitted.

4. The method for improving data transmission efficiency according to claim 1, characterized in that, If no response is received within a preset time after sending the end frame, the end frame will be resent until a response is received or the maximum number of resentments is reached.

5. The method for improving data transmission efficiency according to claim 1, characterized in that, After selective retransmission, the process of sending the end frame, receiving the response, and selective retransmission is repeated until all data is successfully received or the maximum number of repetitions is reached.

6. The method for improving data transmission efficiency according to claim 1, characterized in that, The data frame number register supports dynamic updates, enabling transmission to continue from the point of interruption after the physical connection is restored, based on the latest missing data frame information.

7. The method for improving data transmission efficiency according to claim 2, characterized in that, The waiting time, inter-frame delay, and retry threshold in the method are all configurable parameters.

8. A data transmission efficiency improvement system, characterized in that, This includes sending and receiving devices connected via serial port or Ethernet communication: The transmitting device includes: The data processing module is used for data packetization and maintaining the data frame number register; The transmitting module is communicatively connected to the receiving device and is used to transmit the first frame of data, data frames, and the end frame. The receiving and parsing module is communicatively connected to the receiving device and is used to receive and parse response information; The retransmission control module is connected to the data processing module, the sending module, and the receiving and parsing module, and is used to control selective retransmission. The receiving device includes: The receiving and processing module is communicatively connected to the sending device and is used to receive and verify data frames; The recording module, connected to the receiving and processing module, is used to maintain records of missing data frames; The response module is communicatively connected to both the recording module and the sending device, and is used to generate and provide feedback responses.

9. The data transmission efficiency improvement system according to claim 8, characterized in that, The recording module maintains the recording state during physical connection interruption and supports breakpoint resume function; the communication connection is point-to-point serial communication or Ethernet connection.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a data transmission efficiency improvement program, wherein when the data transmission efficiency improvement program is executed by a processor, it implements the steps of the data transmission efficiency improvement method as described in any one of claims 1 to 7.