A data correction transmission method and apparatus

By generating multiple copies of data at the sending end and performing consistency comparison and compensation processing at the receiving end, the problem of bit errors and packet loss caused by interference in real-time data transmission is solved, realizing low-latency and high-reliability data transmission, which is suitable for scenarios such as industrial control, stage lighting control and vehicle communication.

CN122247564APending Publication Date: 2026-06-19SHENZHEN YIDIANDA MECHANICAL & ELECTRICAL TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN YIDIANDA MECHANICAL & ELECTRICAL TECHNOLOGY CO LTD
Filing Date
2026-05-01
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

In real-time data transmission scenarios such as industrial control, stage lighting control, vehicle communication, and building intelligent control, transmission links are easily affected by factors such as electromagnetic interference, signal attenuation, and line jitter, leading to data errors, packet loss, timing disorder, or even control interruption. Traditional error correction methods suffer from high transmission latency, high system cost, and poor real-time performance.

Method used

The data correction transmission method is adopted, in which multiple replica data units are generated by the sending end and sent at double the rate, and the receiving end performs consistency comparison and compensation processing to ensure that the transmission is completed within a single input data unit cycle. In case of correction failure, historical cached data or preset security data are used to ensure the continuity of output.

Benefits of technology

It achieves low-latency, high-reliability data transmission, reduces hardware costs, is compatible with multiple transmission interfaces, is suitable for real-time control scenarios, and improves the system's anti-interference capability and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122247564A_ABST
    Figure CN122247564A_ABST
Patent Text Reader

Abstract

This invention discloses a data correction and transmission method and apparatus. The method includes the following steps: At the transmitting end: receiving an input data unit to be transmitted at the input data unit rate, extracting valid input data segments; generating M identical copy data units based on the valid input data segments, where M is a configuration parameter greater than or equal to 2; transmitting the M copy data units at a rate K times the input data unit rate, where K is a configuration parameter greater than or equal to M, ensuring that the transmission of all M copy data units is completed within one input data unit cycle; At the receiving end: receiving copy data units at the same rate K times, extracting valid copy data segments, dividing the M valid copy data segments belonging to the same input data unit into the same copy data group; correcting and compensating the valid copy data segments within the copy data group according to preset rules to obtain valid output data segments; organizing the valid output data segments into output data units according to a preset format, and outputting them at the input data unit rate, maintaining timing consistency with the original input. This invention overcomes the shortcomings of existing technologies such as high transmission delay, high system cost, and poor real-time performance, meeting the requirements for highly reliable and continuous data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of data transmission and anti-interference communication technology, and specifically relates to a data correction and transmission method and apparatus. Background Technology

[0002] In real-time data transmission scenarios such as industrial control, stage lighting control, vehicle communication, and building intelligent control, transmission links are susceptible to electromagnetic interference, signal attenuation, and line jitter, leading to data errors, packet loss, timing disorders, and even control interruptions. Traditional error correction methods typically rely on retransmission mechanisms and multi-link hardware redundancy, which suffer from high transmission latency, high system costs, and poor real-time performance, making it difficult to meet the requirements for highly reliable and continuous data transmission. Summary of the Invention

[0003] The purpose of this invention is to overcome the above-mentioned shortcomings of the prior art and provide a data correction and transmission method and apparatus to meet the requirements of highly reliable and continuous uninterrupted data transmission.

[0004] The technical solution adopted to achieve the purpose of this invention is as follows: The present invention provides a data correction and transmission method, characterized by comprising the following steps: Sender: Receive the input data unit to be transmitted at the input data unit rate and extract the valid input data segment; Based on the valid input data segment, M identical copy data units are generated, where M is a configuration parameter greater than or equal to 2; The M replica data units are transmitted at a rate of K times the input data unit rate, where K is a configuration parameter greater than or equal to M, to ensure that the transmission of all M replica data units is completed within one input data unit cycle; Receiver: Receive the replica data unit at the same K times rate, extract the valid replica data segment, and divide the M valid replica data segments belonging to the same input data unit into the same replica data group; According to preset rules, the valid replica data segments within the replica data group are corrected and compensated to obtain valid output data segments. The valid output data segments are organized into output data units according to a preset format and output at the rate of the input data units, keeping the timing consistent with the original input.

[0005] The correction process includes: Perform bit-by-bit or byte-by-byte data consistency comparisons on the valid replica data segments within the same replica data group. If most of them match, the correction is successful, and the consistent valid replica data segments are taken as the valid output data segments.

[0006] The compensation process includes: Based on the premise of fixed packet length and continuous packet transmission, the valid output data segment is cached when the correction is successful; if the correction fails, if the premise is met, the historical cached data at the corresponding position is used as the valid output data segment, or the preset security data is used as the valid output data segment; if the premise is not met, the preset security data is used as the valid output data segment.

[0007] The compensation process includes: a configuration parameter M of 2, K equal to M, and dual-copy, double-rate transmission; if the correction fails, if the fixed packet length and continuous packet transmission conditions are met, the historical cached data at the corresponding position is used as the valid output data segment; if the conditions are not met, the preset security data is used as the valid output data segment.

[0008] The compensation process includes: setting M to 3, K equal to M, and using three copies and three times the transmission rate; when the correction fails, the preset security data is directly used as the valid output data segment.

[0009] The method of this invention is compatible with synchronous serial, asynchronous serial and parallel transmission interfaces.

[0010] The data correction and transmission device provided by the present invention includes a first transceiver section of a transmitting end and a second transceiver section of a receiving end connected to the first transceiver section via a transmission link; The first transceiver unit internally includes a data receiving unit, a valid segment extraction unit, a replica generation unit, a speed-multiplied transmission unit, and a timing control unit. The data receiving unit receives input data units at the input data unit rate. The valid segment extraction unit extracts valid input data segments from the input data units. The replica generation unit copies the valid input data segments to generate M replica data units. The speed-multiplied transmission unit transmits the replica data units at K times the input data unit rate. The timing control unit controls the transmission of all M replica data units within one input data unit cycle. M is a configuration parameter greater than or equal to 2, and K is a configuration parameter greater than or equal to M. The second transceiver section internally includes a double-speed receiving unit, a data packet unit, a correction unit, a compensation unit, a buffer unit, and an output unit. The double-speed receiving unit is used to receive replica data units at K times the data rate and extract valid replica data segments. The data packet unit is used to divide M valid replica data segments belonging to the same input data unit into the same replica data group. The correction unit is used to perform consistency comparison and correction on the valid replica data segments within the replica data group. The compensation unit is used to perform data compensation when correction fails. The buffer unit is used to store historical valid output data segments. The output unit is used to organize the corrected and compensated valid data into output data units and output them at the input data unit rate. The transmission link is configured to transmit data as a single transmission link.

[0011] The cache unit is used to store and update the most recent valid output data segment. When the correction fails and the conditions of fixed packet length and continuous packet transmission are met, the historical cached data at the corresponding position is output as the valid output data segment. When the conditions are not met, the preset security data is used as the valid output data segment.

[0012] The first transceiver section and the second transceiver section are configured to support synchronous serial, asynchronous serial, and parallel transmission formats. Beneficial effects

[0013] The present invention has the following advantages: 1. Single link achieves multiple replica redundancy without the need for additional hardware redundancy, resulting in low cost, simple cabling, and easy deployment and maintenance.

[0014] 2. The copy transmission is completed within a single input data unit cycle at a rate of K≥M times, with extremely low latency and strong real-time performance.

[0015] 3. The consistency comparison and correction of multiple valid replica data segments can effectively resist random bit errors and sudden interference, resulting in high transmission reliability.

[0016] 4. Historical data caching compensation combined with preset security data ensures continuous and stable output under abnormal scenarios. Preset security data is used as the effective output data segment to improve system security.

[0017] 5. It has a simple structure and clear timing logic, and can be implemented on general-purpose devices such as FPGA, MCU, and ASIC.

[0018] 6. It is highly versatile and compatible with mainstream transmission interfaces such as synchronous serial, asynchronous serial, and parallel transmission, without relying on any specific protocol.

[0019] 7. No need for retransmission, handshake, or complex algorithms; low hardware overhead, high operating efficiency, and stable and reliable operation.

[0020] The technical solution of the present invention will be further described below with reference to the accompanying drawings. Attached Figure Description

[0021] Figure 1 This is a structural block diagram of the device of the present invention.

[0022] Figure 2 This is a schematic diagram of the workflow of the sending end of the present invention.

[0023] Figure 3 This is a schematic diagram of the receiving end correction and compensation process of the present invention.

[0024] Figure 4 This is a schematic diagram showing the relationship between the data unit rate and the replica transmission timing of the present invention.

[0025] Figure 5 This is a schematic diagram of dual-copy correction and historical compensation in an embodiment of the present invention. Detailed Implementation

[0026] See Figure 1 The data correction and transmission device provided by the present invention is characterized in that it includes a first transceiver section of a transmitting end and a second transceiver section of a receiving end connected to the first transceiver section via a transmission link; The first transceiver unit internally includes a data receiving unit, a valid segment extraction unit, a replica generation unit, a speed-multiplied transmission unit, and a timing control unit. The data receiving unit receives input data units at the input data unit rate. The valid segment extraction unit extracts valid input data segments from the input data units. The replica generation unit copies the valid input data segments to generate M replica data units. The speed-multiplied transmission unit transmits the replica data units at K times the input data unit rate. The timing control unit controls the transmission of all M replica data units within one input data unit cycle. M is a configuration parameter greater than or equal to 2, and K is a configuration parameter greater than or equal to M. The second transceiver section internally includes a double-speed receiving unit, a data packet unit, a correction unit, a compensation unit, a buffer unit, and an output unit. The double-speed receiving unit is used to receive replica data units at K times the data rate and extract valid replica data segments. The data packet unit is used to divide M valid replica data segments belonging to the same input data unit into the same replica data group. The correction unit is used to perform consistency comparison and correction on the valid replica data segments within the replica data group. The compensation unit is used to perform data compensation when correction fails. The buffer unit is used to store historical valid output data segments. The output unit is used to organize the corrected and compensated valid data into output data units and output them at the input data unit rate. The transmission link is configured to transmit data via a single transmission link, requiring no additional redundant lines and no retransmissions.

[0027] The cache unit is used to store and update the most recent valid output data segment. When the correction fails and the conditions of fixed packet length and continuous packet transmission are met, the historical cached data at the corresponding position is output as the valid output data segment. When the conditions are not met, the preset security data is used as the valid output data segment.

[0028] The first transceiver section and the second transceiver section are configured to support synchronous serial, asynchronous serial, and parallel transmission formats.

[0029] The device of the present invention is applicable to various real-time control communication transmission scenarios.

[0030] Each functional unit in the device of the present invention is implemented by software.

[0031] The data correction and transmission method provided by this invention includes the following steps: Sender (see Figure 2 ): Receive the input data unit to be transmitted at the input data unit rate and extract the valid input data segment; Based on the valid input data segment, M identical copy data units are generated, where M is a configuration parameter greater than or equal to 2; The M replica data units are transmitted at a rate of K times the input data unit rate, where K is a configuration parameter greater than or equal to M, to ensure that the transmission of all M replica data units is completed within one input data unit cycle; Receiver (see) Figure 3 ): Receive the replica data unit at the same K times rate, extract the valid replica data segment, and divide the M valid replica data segments belonging to the same input data unit into the same replica data group; According to preset rules, the valid replica data segments within the replica data group are corrected and compensated to obtain valid output data segments. The valid output data segments are organized into output data units according to a preset format and output at the rate of the input data units, keeping the timing consistent with the original input.

[0032] The correction process includes: Perform bit-by-bit or byte-by-byte data consistency comparisons on the valid replica data segments within the same replica data group. If most of them match, the correction is successful, and the consistent valid replica data segments are taken as the valid output data segments.

[0033] The compensation process includes: Based on the premise of fixed packet length and continuous packet transmission, the valid output data segment is cached when the correction is successful; if the correction fails, if the premise is met, the historical cached data at the corresponding position is used as the valid output data segment, or the preset security data is used as the valid output data segment; if the premise is not met, the preset security data is used as the valid output data segment.

[0034] The compensation process includes: a configuration parameter M of 2, K equal to M, and dual-copy, double-rate transmission; if the correction fails, if the fixed packet length and continuous packet transmission conditions are met, the historical cached data at the corresponding position is used as the valid output data segment; if the conditions are not met, the preset security data is used as the valid output data segment.

[0035] The compensation process includes: setting M to 3, K equal to M, and using three copies and three times the transmission rate; when the correction fails, the preset security data is directly used as the valid output data segment.

[0036] The method of this invention is compatible with synchronous serial, asynchronous serial and parallel transmission interfaces.

[0037] Example 1: Using dual-copy correction and historical data compensation (see...) Figure 5 ) This embodiment is applicable to various serial and parallel transmission interfaces, and is especially suitable for transmission scenarios with continuous fixed packet length, strong real-time requirements, and low cost. The number of replicas is set to M=2, and the rate multiplier K=2, employing dual-replica, double-rate transmission.

[0038] See Figure 2 The sending end receives input data units at the input data unit rate and extracts valid input data segments; it copies the valid input data segments into two copies to form a double-copy data unit and sends it at twice the rate to ensure that the transmission is completed within a single input data unit cycle.

[0039] See Figure 3 The receiving end receives the replica data unit at twice the data rate, extracts the valid replica data segment, and divides two valid replica data segments belonging to the same input data unit into the same replica data group according to the timing sequence, performing bit-by-bit / byte-by-byte comparison: If the valid replica data segments are consistent, the consistent data segment is used as the valid output data segment; If the valid replica data segments are inconsistent, the correction is deemed to have failed. When the conditions of fixed packet length and continuous packet transmission are met, historical data compensation is enabled, and the historical cache data at the corresponding position of the output cache is used as the valid output data segment; If the prerequisites are not met, the preset security data is used as the valid output data segment.

[0040] This embodiment has a simple structure and low resource consumption, making it the optimal solution for scenarios with continuous fixed packet lengths.

[0041] Example 2: Using triple-copy correction and secure data This embodiment sets the number of replicas M=3 and the rate multiplier K=3, adopting three replicas and three times the rate for transmission, which is suitable for transmission scenarios that do not allow the use of historical data and require high security.

[0042] The sending end generates three copies of the data unit and sends them at three times the rate.

[0043] The receiving end performs a consistency comparison on the three valid replica data segments. If the comparison is consistent or the majority of the data segments are consistent, the correction is successful and the consistent replica data segment is taken as the valid output data segment. If the comparison is inconsistent, the correction fails and the preset security data is directly used as the valid output data segment.

[0044] This embodiment has stronger anti-interference capabilities and higher security, making it suitable for high-reliability transmission scenarios.

[0045] Example 3: Historical Data Caching and Update Mechanism The receiving end is equipped with a dedicated data buffer unit to store historical valid output data segments.

[0046] Each time a calibration is successful and a valid output data segment is obtained, it is immediately written to the cache and the old data is overwritten, so that the cache always keeps the latest reliable and valid output data segment.

[0047] When replica data group correction fails: Under the premise of fixed packet length and continuous packet transmission, the historical cache data at the corresponding position in the cache is directly read as the current valid output data segment; If the prerequisites are not met, the preset security data will be used as the valid output data segment.

[0048] Caching, updating, and reading are all completed within a single input data unit cycle, without introducing additional latency and ensuring system real-time performance. This embodiment fully discloses the implementation method of historical data compensation, which can be implemented by those skilled in the art without creative effort.

[0049] Example 4: Implementation of packet grouping Example 4-1: Packet Grouping Implementation Based on Packet Signals See Figure 4This embodiment can identify packet boundaries based on packet segmentation signals. The sending and receiving ends pre-agree on the data packet structure and timing relationship. The second transceiver section of the receiving end autonomously determines the packet boundaries and completes grouping based on the internal timing, reception count, and rate matching relationship, without relying on externally input packet segmentation signals. In scenarios with packet segmentation signals, the signals can be combined for assisted positioning; when there are no external signals, accurate grouping can be achieved solely by relying on internal timing and counting.

[0050] Option ①: Packet-based signal with no time interval (K ≥ M) The transmitting end continuously and compactly transmits M replica data units of the same input data unit within one input data unit cycle at a rate of K times the input data unit rate, without inserting time intervals. At this time, the rate only needs to satisfy K ≥ M.

[0051] The receiving end uses internal timing and counting as a basis. After receiving M consecutive replica data units, it extracts the valid replica data segments and divides them into the same replica data group to achieve accurate grouping.

[0052] Option ② includes packet segmentation signals and an insertion time interval (K > M required). After the sending end has sent M copy data units of the same input data unit, a time interval is inserted.

[0053] The system satisfies the constraint that the time to send M replica data units plus the interval time is less than the input data unit period, therefore the rate must satisfy K>M.

[0054] The receiving end uses time intervals to help determine the boundaries, extracts valid replica data segments for every M replica data units, and divides them into the same replica data group.

[0055] Example 4-2: Packet grouping based on time interval when there is no packet segmentation signal (K > M required) This embodiment does not have packet segmentation signals; it distinguishes groups solely based on timing intervals.

[0056] After the sender has sent M replica data units, a time interval is inserted, satisfying the condition: the time to send M replica data units + the time interval < the period of the input data unit. Therefore, K > M must be satisfied.

[0057] The second transceiver section of the receiver automatically determines the packet boundary by detecting the internal timing interval and combining the reception count. It extracts the valid replica data segment from the M consecutive replica data units before the interval and divides them into the same replica data group, thereby achieving stable packetization under the condition of no external packetization signal.

[0058] This embodiment fully discloses the specific implementation method of data packet grouping, which can be implemented by those skilled in the art without creative effort.

[0059] Explanation of Correction and Compensation Mechanism The correction and compensation process consists of two parts: correction processing and compensation processing.

[0060] The correction process includes: performing bit-by-bit / byte-by-byte consistency comparison, verification decision and data recovery on multiple valid replica data segments corresponding to the same input data unit; identifying and eliminating erroneous data by comparing redundant data; and successfully correcting when most are consistent, taking the consistent replica data segment as the valid output data segment.

[0061] The compensation process includes: using fixed packet length and continuous packet transmission as the enabling conditions, caching the valid output data segment when the correction is successful; when the correction fails, if the conditions are met, using the historical cached data at the corresponding position as the valid output data segment, or using the preset security data as the valid output data segment; if the conditions are not met, using the preset security data as the valid output data segment.

[0062] This invention achieves highly reliable continuous transmission without increasing hardware links or introducing retransmission delay through the coordinated use of double-speed transmission, periodic alignment, conditional historical data compensation, and grouping mechanisms. The overall technical solution is not a simple superposition of common knowledge and is non-obvious.

[0063] Explanation of the compensation mechanism Historical data compensation is based on fixed packet length and continuous packet sending.

[0064] After each successful calibration and output of a valid output data segment, the system writes the valid output data segment into a dedicated cache unit for storage and updates it in real time, so that the cache always retains the most recent reliable and valid output data segment.

[0065] When replica data set correction fails, valid replica data segments are inconsistent, or a valid output data segment cannot be determined: If the conditions of fixed packet length and continuous packet transmission are met, then the historical cached data at the corresponding position in the cache is used as the valid output data segment; If the prerequisites are not met, the preset security data will be used as the valid output data segment.

[0066] Ensure uninterrupted, consistent, and stable output for real-time control scenarios with high continuity requirements.

[0067] Terminology Definition 1. Input data unit: The smallest transmission unit of the system, containing at least one valid input data segment.

[0068] 2. Historical data compensation: Based on fixed packet length and continuous packet transmission, when correction fails, the historical cache data at the corresponding position of the most recent cache is used as the valid output data segment.

[0069] 3. Preset security data: Default data pre-configured to ensure the safe and stable operation of the system. It can be set to a safe default value, a hold value, or a zero value according to the application scenario. When the correction fails and the historical data compensation conditions are not met, the preset security data is used as the valid output data segment.

[0070] 4. Preset rules: including but not limited to data consistency comparison rules, correction decision rules, and compensation selection rules, which can be pre-configured according to transmission scenarios and reliability requirements.

[0071] 5. Preset formats: including but not limited to data unit frame format, field length, check bit format, and timing alignment format, which can be pre-configured according to interface protocol and transmission requirements.

Claims

1. A data correction and transmission method, characterized in that, Includes the following steps: Sender: Receive the input data unit to be transmitted at the input data unit rate and extract the valid input data segment; Based on the valid input data segment, M identical copy data units are generated, where M is a configuration parameter greater than or equal to 2; The M replica data units are transmitted at a rate of K times the input data unit rate, where K is a configuration parameter greater than or equal to M, to ensure that the transmission of all M replica data units is completed within one input data unit cycle; Receiver: Receive the replica data unit at the same K times rate, extract the valid replica data segment, and divide the M valid replica data segments belonging to the same input data unit into the same replica data group; According to preset rules, the valid replica data segments within the replica data group are corrected and compensated to obtain valid output data segments. The valid output data segments are organized into output data units according to a preset format and output at the rate of the input data units, keeping the timing consistent with the original input.

2. The data correction and transmission method according to claim 1, characterized in that, The correction process includes: Perform bit-by-bit or byte-by-byte data consistency comparisons on the valid replica data segments within the same replica data group. If most of them match, the correction is successful, and the consistent valid replica data segments are taken as the valid output data segments.

3. The data correction and transmission method according to claim 2, characterized in that, The compensation process includes: Based on the premise of fixed packet length and continuous packet transmission, the valid output data segment is cached when the correction is successful; if the correction fails, if the premise is met, the historical cached data at the corresponding position is used as the valid output data segment, or the preset security data is used as the valid output data segment; if the premise is not met, the preset security data is used as the valid output data segment.

4. The data correction and transmission method according to claim 2, characterized in that, The compensation process includes: a configuration parameter where M is 2, K is equal to M, and dual-copy, double-rate transmission is used; if the correction fails, if the conditions of fixed packet length and continuous packet transmission are met, the historical cached data at the corresponding position is used as the valid output data segment; if the conditions are not met, the preset security data is used as the valid output data segment.

5. The data correction and transmission method according to claim 2, characterized in that, The compensation process includes: setting M to 3 as the configuration parameter, K equal to M, and using three copies and three times the transmission rate; when the correction fails, the preset security data is directly used as the valid output data segment.

6. The data correction and transmission method according to claim 1, characterized in that, It is compatible with synchronous serial, asynchronous serial and parallel transmission interfaces.

7. A data correction and transmission device, characterized in that, It includes a first transceiver section of a transmitting end and a second transceiver section of a receiving end connected to the first transceiver section via a transmission link; The first transceiver section includes a data receiving unit, a valid segment extraction unit, a copy generation unit, a speed-multiplied transmission unit, and a timing control unit; the data receiving unit is used to receive input data units at the input data unit rate; the valid segment extraction unit is used to extract valid input data segments from the input data units; The copy generation unit is used to copy the valid input data segment to generate M copy data units; the speed-up transmission unit is used to transmit the copy data units at a rate K times that of the input data units. The timing control unit is used to control the transmission of all M replica data units within one input data unit cycle; M is a configuration parameter greater than or equal to 2, and K is a configuration parameter greater than or equal to M; The second transceiver section internally includes a double-speed receiving unit, a data packet unit, a correction unit, a compensation unit, a buffer unit, and an output unit. The double-speed receiving unit is used to receive replica data units at K times the data rate and extract valid replica data segments. The data packet unit is used to divide M valid replica data segments belonging to the same input data unit into the same replica data group. The correction unit is used to perform consistency comparison and correction on the valid replica data segments within the replica data group. The compensation unit is used to perform data compensation when correction fails. The buffer unit is used to store historical valid output data segments. The output unit is used to organize the corrected and compensated valid data into output data units and output them at the input data unit rate. The transmission link is configured to transmit data as a single transmission link.

8. The apparatus according to claim 7, characterized in that, The cache unit is used to store and update the most recent valid output data segment. When the correction fails and the conditions of fixed packet length and continuous packet transmission are met, the historical cached data at the corresponding position is output as the valid output data segment. When the conditions are not met, the preset security data is used as the valid output data segment.

9. The apparatus according to claim 7, characterized in that, The first transceiver section and the second transceiver section are configured to support synchronous serial, asynchronous serial, and parallel transmission formats.