CN112564854A - Data transmission method, device, equipment and storage medium - Google Patents

Data transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN112564854A
CN112564854A CN201910918153.7A CN201910918153A CN112564854A CN 112564854 A CN112564854 A CN 112564854A CN 201910918153 A CN201910918153 A CN 201910918153A CN 112564854 A CN112564854 A CN 112564854A
Authority
CN
China
Prior art keywords
data
error correction
sent
frequency division
division multiplexing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910918153.7A
Other languages
Chinese (zh)
Other versions
CN112564854B (en
Inventor
汤渊清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201910918153.7A priority Critical patent/CN112564854B/en
Publication of CN112564854A publication Critical patent/CN112564854A/en
Application granted granted Critical
Publication of CN112564854B publication Critical patent/CN112564854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/26Systems using multi-frequency codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The embodiment of the invention discloses a data transmission method, a device, equipment and a storage medium; the method is applied to an industrial bus based on an orthogonal frequency division multiplexing technology, and comprises the following steps: acquiring data to be transmitted and a corresponding signal-to-noise ratio through the industrial bus based on the orthogonal frequency division multiplexing technology; performing error correction coding on the data to be sent according to the signal-to-noise ratio and an error correction coding rule to obtain error correction coded data corresponding to the data to be sent; and sending the error correction coded data to receiving equipment corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology. According to the technical scheme provided by the embodiment of the invention, the data to be transmitted in the industrial bus based on the orthogonal frequency division multiplexing technology is subjected to error correction coding, so that the accuracy of data transmission is improved, the interference resistance capability of the data during transmission in a channel is enhanced, and the reliability of industrial bus transmission is improved.

Description

Data transmission method, device, equipment and storage medium
Technical Field
Embodiments of the present invention relate to communications technologies, and in particular, to a data transmission method, an apparatus, a device, and a storage medium.
Background
The industrial bus is an industrial data bus which is rapidly developed in recent years, and mainly solves the problems of digital communication among field devices such as intelligent instruments, controllers and execution mechanisms in an industrial field and information transmission between the field control devices and a high-level control system. Industrial buses have received a great deal of attention from many standards bodies and computer manufacturers because of a number of outstanding advantages, such as simplicity, reliability, economy, and practicality.
Existing industrial buses are mainly divided into two categories: one is that the CAN bus usually adopts error detection modes such as bit error detection, filling error detection, CRC error detection, format error detection and response error detection to detect code error; the other is an Ethernet bus, and the 5 level 4D-PAM code of 1000Base-T comprises a code error detection function.
In the process of implementing the invention, the inventor finds that the prior art has the following defects: the CAN bus CAN not automatically correct transmission error codes, once the transmission error codes exist in transmission data, only retransmission of the transmission data CAN be carried out, and 4D-PAM coding in the Ethernet bus only mashups an auxiliary performance in multi-level modulation, has limited error detection capability and CAN not automatically correct the transmission error codes.
Disclosure of Invention
The embodiment of the invention provides a data transmission method, a data transmission device, data transmission equipment and a storage medium, and aims to improve the accuracy and reliability of data transmission.
In a first aspect, an embodiment of the present invention provides a data transmission method, which is applied to an industrial bus based on an orthogonal frequency division multiplexing technology, and includes:
acquiring data to be transmitted through the industrial bus based on the orthogonal frequency division multiplexing technology;
acquiring the signal-to-noise ratio of the industrial bus based on the orthogonal frequency division multiplexing technology;
performing error correction coding on the data to be sent according to the signal-to-noise ratio and an error correction coding rule to obtain error correction coded data corresponding to the data to be sent;
and sending the error correction coded data to receiving equipment corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
In a second aspect, an embodiment of the present invention provides a data transmission apparatus, including:
a data to be sent acquisition module, configured to acquire data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology;
the signal-to-noise ratio acquisition module is used for acquiring the signal-to-noise ratio of the industrial bus based on the orthogonal frequency division multiplexing technology;
the error correction coding data acquisition module is used for carrying out error correction coding on the data to be sent according to the signal-to-noise ratio and the error correction coding rule to obtain error correction coding data corresponding to the data to be sent;
and the data sending module is used for sending the error correction coded data to receiving equipment corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission method according to any embodiment of the present invention.
In a fourth aspect, the embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor implement the data transmission method according to any embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, the data to be transmitted in the industrial bus based on the orthogonal frequency division multiplexing technology is subjected to error correction coding, so that the error correction processing of the bus transmission data is realized, the accuracy of data transmission is improved, the capability of resisting various interferences when the data is transmitted in a channel is enhanced, and the reliability of the industrial bus transmission is improved.
Drawings
Fig. 1A is a flowchart of a data transmission method according to an embodiment of the present invention;
FIG. 1B is a flowchart of error correction coding according to an embodiment of the present invention;
fig. 1C is a flowchart of a concatenated code encoding according to an embodiment of the present invention;
fig. 2A is a flowchart of a data transmission method according to a second embodiment of the present invention;
fig. 2B is a flowchart of an interleaving process according to an embodiment of the present invention;
fig. 2C is a data transmission flow chart of the bus transmission physical layer according to the second embodiment of the present invention;
FIG. 2D is a flow chart of return-to-zero convolutional encoding provided in a first embodiment of the present invention;
FIG. 2E is a flow chart of bit erasure provided in a first embodiment of the present invention;
FIG. 2F is a flow chart of bit erasure provided in accordance with a first embodiment of the present invention;
fig. 3 is a block diagram of a data transmission apparatus according to a third embodiment of the present invention;
fig. 4 is a block diagram of a device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1A is a flowchart of a data transmission method according to an embodiment of the present invention, where this embodiment is applicable to a case of data transmission through an industrial bus of an orthogonal frequency division multiplexing technology, and the method may be executed by a data transmission apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a device attached to the industrial bus of the orthogonal frequency division multiplexing technology, and the method specifically includes the following steps:
s110, acquiring data to be transmitted through the industrial bus based on the orthogonal frequency division multiplexing technology.
The technical scheme of the embodiment of the invention is mainly applied to an industrial bus of an Orthogonal Frequency Division Multiplexing (OFDM) system, and realizes data transmission among a plurality of node devices hung on the industrial bus of the OFDM system. The OFDM divides a channel into a plurality of orthogonal sub-channels, converts a high-speed data signal into parallel low-speed sub-data streams, modulates the parallel low-speed sub-data streams to each sub-channel for transmission, and separates the orthogonal signals by a receiving end by adopting a correlation technique, so that the mutual interference among the sub-channels is reduced; meanwhile, the signal bandwidth on each sub-channel is far smaller than the actual bandwidth of the channel and is similar to flat fading, so that intersymbol interference can be eliminated; in addition, because the bandwidth of each sub-channel only occupies a small part of the bandwidth of the original channel, the channel equalization is easier to realize.
And S120, acquiring the signal-to-noise ratio of the industrial bus based on the orthogonal frequency division multiplexing technology.
The SIGNAL-to-NOISE RATIO (SNR), is the RATIO of SIGNAL to NOISE in industrial bus communications. Differences in the communication medium (e.g., twisted pair) and the communication distance (i.e., the distance between node devices) cause the received signal to be attenuated to different degrees, and thus, the signal-to-noise ratio can vary greatly. In particular, in the embodiment of the present invention, the acquisition manner of the signal-to-noise ratio is not particularly limited.
S130, error correction coding is carried out on the data to be sent according to the signal-to-noise ratio and the error correction coding rule, and error correction coding data corresponding to the data to be sent are obtained.
The error correction coding is a channel coding which can be found and corrected at the receiving end after errors occur in the data transmission process, in order to make the code have the capability of error detection and correction, redundant code elements are needed to be added to the original code word to enlarge the difference between code words, namely, the original code word is changed into a code word with certain redundancy according to a certain rule, and a certain relation is established between each code word. The redundant part of the error correction coding allows the receiving end to detect a plurality of errors which may occur anywhere in the information and to correct these errors to avoid retransmission, satisfying the application scenario that retransmission overhead is huge or retransmission cannot be performed in the industrial bus. As shown in FIG. 1B, n-bit data (X)1To Xn) Error correction coding the data to output m bits (Y)1To Ym) The code rate is n/m.
Optionally, in this embodiment of the present invention, the performing error correction coding on the data to be sent according to the signal-to-noise ratio and the error correction coding rule to obtain error correction coded data corresponding to the data to be sent includes: if the signal-to-noise ratio is smaller than or equal to a first preset threshold value, performing first error correction coding on the data to be sent according to a first error correction coding rule to obtain first error correction coded data corresponding to the data to be sent; if the signal-to-noise ratio is greater than a first preset threshold value, performing second error correction coding on the data to be sent according to a second error correction coding rule to obtain second error correction coded data corresponding to the data to be sent; wherein the code rate of the second error correction coding rule is greater than the first error correction coding rule. When the signal-to-noise ratio is high, the transmission environment is good, data transmission errors are not easy to occur, and error correction codes with high code rates can be selected to improve the data transmission rate; when the signal-to-noise ratio is low, the transmission environment is poor, and data transmission errors are easy to occur, and at the moment, error correction codes with low code rates can be selected to improve the error correction capability and ensure the accuracy of data transmission. In particular, the first preset threshold is a critical value of the signal-to-noise ratio, and can be set as needed, for example, for an application scenario with a high requirement on the data transmission rate, the first preset threshold can be set as a lower value to ensure a faster transmission rate; for an application scenario with a high requirement on data transmission accuracy, the first preset threshold may be set to a high value to ensure the accuracy of data transmission.
Optionally, in this embodiment of the present invention, the performing error correction coding on the data to be sent according to the signal-to-noise ratio and the error correction coding rule to obtain error correction coded data corresponding to the data to be sent specifically includes: and performing cascade code coding on the data to be sent according to the signal-to-noise ratio and the error correction coding rule to obtain error correction coded data corresponding to the data to be sent. The cascade code coding is to regard the coding of each level as a whole coding for the system needing to carry out multiple codingA process; in which block codes and convolutional codes are combined into concatenated code codes, n bits of data (X) as shown in fig. 1C1To Xn) Outputting m-bit data (Y) through the action of block code and convolution code1To Ym) The code rate is n/m; the convolutional code with limited length is responsible for decoding work, the block code with larger group length erases errors existing in the decoding process, and the error correction of the cascade code encoding can ensure extremely low data transmission error rate and meet the high reliability requirement of an industrial bus of an OFDM system.
Specifically, the performing, according to the signal-to-noise ratio and the error correction coding rule, the concatenated code coding on the data to be transmitted to obtain the error correction coded data corresponding to the data to be transmitted includes: coding the data to be sent by using an RS code as an outer code through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain RS error correction coded data; coding the RS error correction coded data by taking a convolutional code as an inner code through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain the convolutional error correction coded data; and performing data deletion operation on the convolution error correction coded data according to a data deletion rule corresponding to a target code rate through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain the error correction coded data corresponding to the data to be sent. RS coding (Reed-solomon codes) is a forward error correction channel coding that is effective for the polynomial generated by the corrected sampled data and that can be recovered when the receiving end correctly receives enough points; the convolutional code is a coded sequence which is obtained by continuously outputting according to a continuously input information sequence, and takes a convolutional code (n, k, m) as an example, where k is the number of bits input to the convolutional encoder each time, n is an n-tuple codeword output by the convolutional code corresponding to each k-tuple codeword, and m is the encoding storage degree, that is, the number of series of k-tuples of the convolutional encoder. The convolutional code is used as an inner code, the RS code is used as an outer code, the convolutional code can be used for carrying out optimal Viterbi decoding, the characteristic of soft decision decoding is fully utilized, and meanwhile, the characteristic that the RS code has better burst error correction is utilized, the transmission reliability of the industrial bus is improved, and the capability of resisting interference when data is transmitted in a channel is enhanced. The code rate, that is, the bit rate, refers to the number of bits transmitted per second, and the higher the bit rate is, the more data is transmitted per second; for example, when the current code rate is 1/2 for the rolling machine coding and the target code rate is 2/3 or 3/4, the error correction coded data can be obtained according to the data deleting rule corresponding to the target code rate.
S140, the error correction coded data is sent to the receiving device corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
In the embodiment of the present invention, optionally, the type of the node device is not specifically limited, that is, the node device is connected to an industrial bus based on an orthogonal frequency division multiplexing technology and is configured to receive the data to be sent.
According to the technical scheme provided by the embodiment of the invention, the data to be transmitted in the industrial bus based on the orthogonal frequency division multiplexing technology is subjected to error correction coding, so that the error correction processing of the bus transmission data is realized, the accuracy of data transmission is improved, the capability of resisting various interferences when the data is transmitted in a channel is enhanced, and the reliability of the industrial bus transmission is improved.
Example two
Fig. 2A is a flowchart of a data transmission method in a second embodiment of the present invention, which is embodied based on the above embodiment, and in this embodiment, before the sending the error correction coded data to the receiving device corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology, the method further includes: and interleaving the error correction coded data according to an interleaving rule through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain error correction interleaved data corresponding to the data to be sent. Correspondingly, the method of the embodiment specifically includes the following steps:
s210, acquiring data to be transmitted through the industrial bus based on the orthogonal frequency division multiplexing technology.
S220, acquiring the signal-to-noise ratio of the industrial bus based on the orthogonal frequency division multiplexing technology.
And S230, carrying out error correction coding on the data to be sent according to the signal-to-noise ratio and the error correction coding rule to obtain error correction coded data corresponding to the data to be sent.
S240, interleaving the error correction coded data according to an interleaving rule through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain error correction interleaved data corresponding to the data to be sent.
On the communication channel of the industrial bus, bit errors usually occur in a string because a deep fading valley point with a long duration affects a string of bits in succession, however, channel coding is only effective when correcting a single error and a string of errors with a not long duration, so that it is necessary to disperse successive bits in transmission data, i.e. successive bits in transmission data are transmitted in a non-successive manner, and interleaving is the process of dispersing the successive bits, so that even if a string of errors occurs during transmission, when a receiving end recovers to a string of successive bits, the errors become single or short errors, and the error correction function of the channel coding is used to correct the errors to recover the original data. The interleaving technique can be used for improving the performance of forward error correction codes and burst error correction, and the interleaving technique can be used for uniformly distributing errors and improving the performance of burst error correction. As shown in fig. 2B, the L-bit data is written in rows and read out in N columns.
And S250, sending the error correction interleaving coded data to receiving equipment corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
According to the technical scheme provided by the embodiment of the invention, after the data to be sent in the industrial bus based on the orthogonal frequency division multiplexing technology is subjected to error correction coding, the error correction coding data is subjected to interleaving processing, so that error correction interleaved data is obtained, and transmission errors occurring in a string are converted into single or length-angle transmission errors, so that the error data are uniformly distributed, and the burst error correction performance is greatly improved.
Specific application scenario one
The invention provides a data transmission method on the basis of the embodiment; in this application scenario, the error correction coding uses a concatenated code coding in which an inner code is a convolutional code and an outer code is an RS code, and interleaving uses a bit interleaving technique and a carrier interleaving technique, as shown in fig. 2C, error correction coding and interleaving coding are performed on Mac (Media Access Control) layer transmission data after scrambling, and QAM (Quadrature Amplitude Modulation) Modulation is performed after redundancy and data interleaving are added.
Specifically, the RS code adopts shortened codes of original RS (255,247), RS (255,239) and RS (255,233) system codes, wherein the original RS code length is 255 bytes; the check byte is a cyclic code based on a finite field GF (256), the length N of the cyclic code is respectively 8 bytes, 16 bytes and 32 bytes, and the generator polynomial of the field is p (x) x8+x4+x3+x2+1. When the RS code generator polynomial is
Figure BDA0002216804070000091
The input information sequence polynomial is
Figure BDA0002216804070000092
Wherein L is the length of check bit, K is the length of information bit, that is, the number of code elements in the information segment of RS code is the system code output polynomial
Figure BDA0002216804070000093
Wherein
Figure BDA0002216804070000094
And the polynomials g (x) generated by RS (255,247), RS (255,239) and RS (255,233) are g0(x)、g1(x) And g2(x) The values are shown in tables 1, 2 and 3, respectively.
TABLE 1
i gi i gi i gi
0 37 3 172 6 44
1 224 4 71 7 227
2 8 5 178 8 1
TABLE 2
i gi i gi i gi
0 79 6 56 12 31
1 44 7 17 13 103
2 81 8 232 14 52
3 100 9 187 15 118
4 49 10 126 16 1
5 183 11 104
TABLE 3
Figure BDA0002216804070000101
Figure BDA0002216804070000111
As shown in fig. 2D, the convolutional encoder uses a return-to-zero convolutional encoder with a constraint length of 7 bytes and a code rate of 1/2, and generates an output sequence with G1-1718And G2 ═ 1338(ii) a Wherein G1-1718171 indicating that the output sequence is in 8-ary; 133G 2 ═ G28Indicating that the output sequence is 133 in 8.
The initial value of the shift register of the encoder is set to 0, the coded bit stream is output in the order AB, and by deleting the coded bits, the convolutional coding with the code rate of 2/3 (as shown in fig. 2E) and the convolutional coding with the code rate of 3/4 (as shown in fig. 2F) can be obtained. Specifically, the convolutional code rates corresponding to convolutional code mode 1, convolutional code mode 2, and convolutional code mode 3 are 1/2, 2/3, and 3/4, respectively.
To the codedInterleaving the bit stream with an interleaving block length of NCBIBGrouping is performed and all coded data bit interleaving is performed within a resource block of one OFDM symbol. The interleaving is divided into two permutations, the first permutation ensuring that adjacent coded bits are mapped to non-adjacent subcarriers, the second permutation ensuring that adjacent coded bits are alternately mapped to more significant bits and less significant bits of the constellation.
Specifically, through the industrial bus based on the orthogonal frequency division multiplexing technology, the formula i ═ N (N) is usedCBIB/NCOL)(kmodNCOL)+floor(k/NCOL),k=0,1,...NCBIBPerforming a first interleaving process on the error correction coded data to obtain first error correction interleaved data corresponding to the data to be transmitted, where N isCBIBFor the length of the interleaved block, NCOLThe number of interleaving lines is, k is the code bit serial number before the first interleaving processing, i is the code bit serial number after the first interleaving processing, and mod represents the remainder;
using the formula j ═ s flow (i/s) + (i + N) through the industrial bus based on orthogonal frequency division multiplexingCBIB-floor(i*NCOL/NCBIB))mods,i=0,1,...NCBIB,s=max(NBPSAnd/2, 1) carrying out second interleaving processing on the error correction coded data to obtain error correction interleaved data corresponding to the data to be transmitted, wherein N isBPSIs the number of bits included in one subcarrier, and j is the coded bit sequence number after the second interleaving process.
According to the technical scheme provided by the embodiment of the invention, the error correction coding is carried out on the data to be transmitted in the industrial bus based on the orthogonal frequency division multiplexing technology, and the error correction coding data is interleaved, so that the error correction interleaved data is obtained, the error correction processing on the bus transmission data is realized, the data transmission accuracy is improved, the capability of resisting various interferences when the data is transmitted in a channel is enhanced, the reliability of industrial bus transmission is improved, meanwhile, the error data is uniformly distributed, and the burst error correction performance is greatly improved.
EXAMPLE III
Fig. 3 is a block diagram of a data transmission device according to a third embodiment of the present invention, where the data transmission device specifically includes: a to-be-transmitted data acquisition module 310, a signal-to-noise ratio acquisition module 320, an error correction coded data acquisition module 330, and a data transmission module 340.
A to-be-transmitted data obtaining module 310, configured to obtain data to be transmitted through the industrial bus based on the orthogonal frequency division multiplexing technology;
a signal-to-noise ratio obtaining module 320, configured to obtain a signal-to-noise ratio of the industrial bus based on the orthogonal frequency division multiplexing technology;
an error correction coding data obtaining module 330, configured to perform error correction coding on the data to be sent according to the signal-to-noise ratio and the error correction coding rule, to obtain error correction coding data corresponding to the data to be sent;
a data sending module 340, configured to send the error correction coded data to a receiving device corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
According to the technical scheme provided by the embodiment of the invention, the data to be transmitted in the industrial bus based on the orthogonal frequency division multiplexing technology is subjected to error correction coding, so that the error correction processing of the bus transmission data is realized, the accuracy of data transmission is improved, the capability of resisting various interferences when the data is transmitted in a channel is enhanced, and the reliability of the industrial bus transmission is improved.
Optionally, on the basis of the foregoing technical solution, the error correction coded data obtaining module 330 specifically includes:
a first error correction coding data obtaining unit, configured to perform, if the signal-to-noise ratio is less than or equal to a first preset threshold, first error correction coding on the data to be sent according to a first error correction coding rule, to obtain first error correction coding data corresponding to the data to be sent;
a second error correction coding data obtaining unit, configured to perform, if the signal-to-noise ratio is greater than a first preset threshold, second error correction coding on the data to be sent according to a second error correction coding rule, to obtain second error correction coding data corresponding to the data to be sent;
wherein the code rate of the second error correction coding rule is greater than the first error correction coding rule.
Optionally, on the basis of the above technical solution, the error correction coding data obtaining module 330 is specifically configured to perform concatenated code coding on the data to be sent according to a signal-to-noise ratio and an error correction coding rule, so as to obtain error correction coding data corresponding to the data to be sent.
Optionally, on the basis of the foregoing technical solution, the error correction coded data obtaining module 330 specifically includes:
an RS error correction coded data obtaining unit, configured to encode the data to be sent by using an RS code as an outer code through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain RS error correction coded data;
a convolutional error correction coded data acquisition unit, configured to encode the RS error correction coded data by using a convolutional code as an inner code through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain convolutional error correction coded data;
and the error correction coded data acquisition unit is used for carrying out data deletion operation on the convolution error correction coded data through the industrial bus based on the orthogonal frequency division multiplexing technology according to a data deletion rule corresponding to a target code rate to obtain the error correction coded data corresponding to the data to be transmitted.
Optionally, on the basis of the above technical solution, the data transmission apparatus further includes:
and the error correction interleaved data acquisition module is used for interleaving the error correction coded data through the industrial bus based on the orthogonal frequency division multiplexing technology according to an interleaving rule to obtain error correction interleaved data corresponding to the data to be sent.
Optionally, on the basis of the above technical solution, the data sending module 340 is further configured to send the error correction interleaving encoded data to a receiving device corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
Optionally, on the basis of the above technical solution, the error correction interleaved data obtaining module further includes:
a first interleaving unit for using the formula i ═ N (N) through the industrial bus based on the OFDM technologyCBIB/NCOL)(kmodNCOL)+floor(k/NCOL),k=0,1,...NCBIBPerforming a first interleaving process on the error correction coded data to obtain first error correction interleaved data corresponding to the data to be transmitted, where N isCBIBFor the length of the interleaved block, NCOLThe number of interleaving lines is, k is the code bit serial number before the first interleaving processing, and i is the code bit serial number after the first interleaving processing;
a second interleaving unit for interleaving the data on the industrial bus by using the formula j ═ s floor (i/s) + (i + N)CBIB-floor(i*NCOL/NCBIB))mods,i=0,1,...NCBIB,s=max(NBPSAnd/2, 1) carrying out second interleaving processing on the error correction coded data to obtain error correction interleaved data corresponding to the data to be transmitted, wherein N isBPSIs the number of bits included in one subcarrier, and j is the coded bit sequence number after the second interleaving process.
The device can execute the data transmission method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 4 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 4, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing a data transmission method provided by an embodiment of the present invention, by executing programs stored in the system memory 28. Namely: acquiring data to be transmitted through the industrial bus based on the orthogonal frequency division multiplexing technology; acquiring the signal-to-noise ratio of the industrial bus based on the orthogonal frequency division multiplexing technology; performing error correction coding on the data to be sent according to the signal-to-noise ratio and an error correction coding rule to obtain error correction coded data corresponding to the data to be sent; and sending the error correction coded data to receiving equipment corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
EXAMPLE five
Fifth, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data transmission method according to any embodiment of the present invention; the method comprises the following steps:
acquiring data to be transmitted through the industrial bus based on the orthogonal frequency division multiplexing technology;
acquiring the signal-to-noise ratio of the industrial bus based on the orthogonal frequency division multiplexing technology;
performing error correction coding on the data to be sent according to the signal-to-noise ratio and an error correction coding rule to obtain error correction coded data corresponding to the data to be sent;
and sending the error correction coded data to receiving equipment corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A data transmission method is applied to an industrial bus based on an orthogonal frequency division multiplexing technology, and comprises the following steps:
acquiring data to be transmitted through the industrial bus based on the orthogonal frequency division multiplexing technology;
acquiring the signal-to-noise ratio of the industrial bus based on the orthogonal frequency division multiplexing technology;
performing error correction coding on the data to be sent according to the signal-to-noise ratio and an error correction coding rule to obtain error correction coded data corresponding to the data to be sent;
and sending the error correction coded data to receiving equipment corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
2. The method of claim 1, wherein the error correction coding the data to be transmitted according to the snr and the error correction coding rule to obtain the error correction coded data corresponding to the data to be transmitted comprises: if the signal-to-noise ratio is smaller than or equal to a first preset threshold value, performing first error correction coding on the data to be sent according to a first error correction coding rule to obtain first error correction coded data corresponding to the data to be sent;
if the signal-to-noise ratio is greater than a first preset threshold value, performing second error correction coding on the data to be sent according to a second error correction coding rule to obtain second error correction coded data corresponding to the data to be sent;
wherein the code rate of the second error correction coding rule is greater than the first error correction coding rule.
3. The method according to claim 1, wherein the error correction coding the data to be transmitted according to the signal-to-noise ratio and the error correction coding rule to obtain error correction coded data corresponding to the data to be transmitted specifically comprises:
and performing cascade code coding on the data to be sent according to the signal-to-noise ratio and the error correction coding rule to obtain error correction coded data corresponding to the data to be sent.
4. The method of claim 3, wherein the performing concatenated code coding on the data to be transmitted according to the snr and the ecc coding rule to obtain ecc coded data corresponding to the data to be transmitted comprises:
coding the data to be sent by using an RS code as an outer code through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain RS error correction coded data;
coding the RS error correction coded data by taking a convolutional code as an inner code through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain the convolutional error correction coded data;
and performing data deletion operation on the convolution error correction coded data according to a data deletion rule corresponding to a target code rate through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain the error correction coded data corresponding to the data to be sent.
5. The method according to any one of claims 1-4, wherein before said transmitting the error correction coded data to the receiving device corresponding to the data to be transmitted via the industrial bus based on orthogonal frequency division multiplexing, further comprising:
interleaving the error correction coded data according to an interleaving rule through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain error correction interleaved data corresponding to the data to be sent;
correspondingly, the sending the error correction coded data to the receiving device corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology includes:
and transmitting the error correction interleaving encoding data to receiving equipment corresponding to the data to be transmitted through the industrial bus based on the orthogonal frequency division multiplexing technology.
6. The method according to claim 4, wherein the interleaving the error correction coded data according to the interleaving rule through the industrial bus based on the orthogonal frequency division multiplexing technology to obtain the error correction interleaved data corresponding to the data to be transmitted comprises:
using the formula i ═ N (N) through the industrial bus based on OFDM technologyCBIB/NCOL)(k mod NCOL)+floor(k/NCOL),k=0,1,...NCBIBPerforming a first interleaving process on the error correction coded data to obtain first error correction interleaved data corresponding to the data to be transmitted, where N isCBIBFor the length of the interleaved block, NCOLThe number of interleaving lines is, k is the code bit serial number before the first interleaving processing, and i is the code bit serial number after the first interleaving processing;
using the formula j ═ s flow (i/s) + (i + N) through the industrial bus based on orthogonal frequency division multiplexingCBIB-floor(i*NCOL/NCBIB))mods,i=0,1,...NCBIB,s=max(NBPSAnd/2, 1) carrying out second interleaving processing on the error correction coded data to obtain error correction interleaved data corresponding to the data to be transmitted, wherein N isBPSIs the number of bits included in one subcarrier, and j is the coded bit sequence number after the second interleaving process.
7. A data transmission apparatus, comprising:
a data to be sent acquisition module, configured to acquire data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology;
the signal-to-noise ratio acquisition module is used for acquiring the signal-to-noise ratio of the industrial bus based on the orthogonal frequency division multiplexing technology;
the error correction coding data acquisition module is used for carrying out error correction coding on the data to be sent according to the signal-to-noise ratio and the error correction coding rule to obtain error correction coding data corresponding to the data to be sent;
and the data sending module is used for sending the error correction coded data to receiving equipment corresponding to the data to be sent through the industrial bus based on the orthogonal frequency division multiplexing technology.
8. The apparatus according to claim 7, wherein the error correction coded data obtaining module is specifically configured to perform concatenated code coding on the data to be transmitted according to an error correction coding rule, so as to obtain the error correction coded data corresponding to the data to be transmitted.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a data transmission method as claimed in any one of claims 1-6.
10. A storage medium containing computer-executable instructions for performing the data transmission method of any one of claims 1-6 when executed by a computer processor.
CN201910918153.7A 2019-09-26 2019-09-26 Data transmission method, device, equipment and storage medium Active CN112564854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910918153.7A CN112564854B (en) 2019-09-26 2019-09-26 Data transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910918153.7A CN112564854B (en) 2019-09-26 2019-09-26 Data transmission method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112564854A true CN112564854A (en) 2021-03-26
CN112564854B CN112564854B (en) 2022-09-20

Family

ID=75029915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910918153.7A Active CN112564854B (en) 2019-09-26 2019-09-26 Data transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112564854B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030833A (en) * 2006-03-01 2007-09-05 株式会社Ntt都科摩 Adaptable space-time coding and modulation method and transmitter
CN101433045A (en) * 2006-04-25 2009-05-13 微软公司 Variable OFDM subchannel coding and modulation
CN103873071A (en) * 2012-12-10 2014-06-18 华为技术有限公司 Method and device for forward error correction encoding, method and device for forward error correction decoding, and communication device and system
CN110247737A (en) * 2019-07-05 2019-09-17 北京神经元网络技术有限公司 The method and apparatus of error correction applied to high-speed industrial communication system
CN110336642A (en) * 2019-07-05 2019-10-15 北京神经元网络技术有限公司 It is a kind of for the code-change modulator approach of the high-speed industrial communication system based on OFDM system, terminal, electronic equipment and the system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030833A (en) * 2006-03-01 2007-09-05 株式会社Ntt都科摩 Adaptable space-time coding and modulation method and transmitter
CN101433045A (en) * 2006-04-25 2009-05-13 微软公司 Variable OFDM subchannel coding and modulation
CN103873071A (en) * 2012-12-10 2014-06-18 华为技术有限公司 Method and device for forward error correction encoding, method and device for forward error correction decoding, and communication device and system
CN110247737A (en) * 2019-07-05 2019-09-17 北京神经元网络技术有限公司 The method and apparatus of error correction applied to high-speed industrial communication system
CN110336642A (en) * 2019-07-05 2019-10-15 北京神经元网络技术有限公司 It is a kind of for the code-change modulator approach of the high-speed industrial communication system based on OFDM system, terminal, electronic equipment and the system

Also Published As

Publication number Publication date
CN112564854B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
US10461781B2 (en) Apparatus and method for communicating data over a communication channel
US11165537B2 (en) Method for encoding information bit sequence in communication network
JP5981351B2 (en) Application Hierarchy Forward Error Correction Framework for Waigig
US7296211B2 (en) System and method for transferring data on a data link
JP4836962B2 (en) Multilevel low density parity check coded modulation
CN101453221B (en) Mapper based on bit weaving code modulation system and mapping process thereof
WO2018064587A1 (en) Transport block segmentation for multi-level codes
JP2008219892A (en) Method and apparatus of encoding and decoding data
US7836383B2 (en) Low density parity check (LDPC) code decoder
JP2008295057A5 (en)
CN109194443B (en) APSK constellation mapping-based code modulation method, readable storage medium and terminal
US9853769B1 (en) High-speed Ethernet coding
CA2562030A1 (en) Protecting sub-packets in a wireless network
US9553613B2 (en) Transmitter and puncturing method thereof
EP3737013B1 (en) Encoding method, decoding method and device
CN112564854B (en) Data transmission method, device, equipment and storage medium
CN108900463B (en) APSK constellation mapping-based coding modulation system
TWI404368B (en) Digital communication device and decoding method
US8286051B2 (en) Method and apparatus for burst error detection and digital communication device
CN111371465A (en) Bit interleaving method, system and medium for LDPC codeword
CN116743189A (en) Tail-biting convolutional code coding method and decoding method adopting hash function
CN112578692B (en) Industrial bus communication method and device, computer equipment and storage medium
WO2023071309A1 (en) Data transmission method, apparatus and system, and device and readable storage medium
WO2013157675A1 (en) Interleaving method for error correction code, and system for transmitting and receiving information using same
WO2023216850A1 (en) Coding method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant