CN112578692B - Industrial bus communication method and device, computer equipment and storage medium - Google Patents

Industrial bus communication method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112578692B
CN112578692B CN201910925678.3A CN201910925678A CN112578692B CN 112578692 B CN112578692 B CN 112578692B CN 201910925678 A CN201910925678 A CN 201910925678A CN 112578692 B CN112578692 B CN 112578692B
Authority
CN
China
Prior art keywords
signal
ofdm symbol
resource
data
transmitted
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.)
Active
Application number
CN201910925678.3A
Other languages
Chinese (zh)
Other versions
CN112578692A (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 CN201910925678.3A priority Critical patent/CN112578692B/en
Publication of CN112578692A publication Critical patent/CN112578692A/en
Application granted granted Critical
Publication of CN112578692B publication Critical patent/CN112578692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/542Systems for transmission via power distribution lines the information being in digital form
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/26Systems using multi-frequency codes
    • H04L27/2601Multicarrier modulation systems
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21063Bus, I-O connected to a bus

Abstract

The embodiment of the invention discloses an industrial bus communication method, an industrial bus communication device, computer equipment and a storage medium. The method comprises the following steps: acquiring communication mode information; acquiring signal frame resource allocation information matched with the communication mode information; determining a target OFDM symbol resource to be used matched with local equipment in the signal frame resource allocation information according to the signal frame resource allocation information and the current system time; generating an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, the type of a signal transmitted by each subcarrier and a data signal to be transmitted; and transmitting the OFDM symbols to the high-speed industrial control bus within a time period matched with the target OFDM symbol resources in the signal frame. The embodiment of the invention can reduce the system complexity of the high-speed industrial control bus and improve the applicability of the high-speed industrial control bus.

Description

Industrial bus communication method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of industry, in particular to an industrial bus communication method, an industrial bus communication device, computer equipment and a storage medium.
Background
In the industrial field, a plurality of industrial devices (e.g., measurement instruments) are usually attached to a high-speed industrial control bus, and each industrial device can communicate via the high-speed industrial control bus, for example, transmit control signals for controlling the industrial devices to perform industrial production activities.
The existing industrial control bus is mainly divided into two types, one is a field industrial control bus represented by a Controller Area Network (CAN) bus, and the main characteristic is that a bus type topological structure is adopted, but the topological structure adopts a bus mode for connection among nodes, so that the impedance of the nodes is not easy to be completely matched, echo multipath CAN be introduced in communication, the high-speed data communication CAN be seriously affected, the data transmission rate is low, and when a transmission medium is a twisted pair, the communication distance of the CAN bus is 40 meters, and the highest communication rate is about 1 Mbps. Another field bus is a real-time industrial ethernet, the bus system adopts an ethernet transmission technology in a physical layer, the data transmission rate is high, a Carrier Sense Multiple Access/Collision detection method (CSMA/CD) is adopted in a communication mechanism, data congestion is caused when a single network node is Multiple, and the number of user nodes in the single network is limited. In order to reduce data congestion, switches are required to be introduced for bridging, which results in a complex network topology and increases system installation cost.
The two high-speed industrial control buses cannot meet the requirement of long-distance, high-speed and reliable communication, and the system complexity is high.
Disclosure of Invention
The embodiment of the invention provides an industrial bus communication method, an industrial bus communication device, computer equipment and a storage medium, which can reduce the system complexity of a high-speed industrial control bus and improve the applicability of the high-speed industrial control bus.
In a first aspect, an embodiment of the present invention provides an industrial bus communication method, which is applied to a device connected to a high-speed industrial control bus, and includes:
acquiring communication mode information, wherein the communication mode information is determined according to a communication distance in the high-speed industrial control bus and a corresponding relation between a preset communication distance and the communication mode information, and the length of an OFDM symbol in a signal frame corresponding to each piece of communication mode information is different;
acquiring signal frame resource allocation information matched with the communication mode information, wherein the signal frame resource allocation information comprises: at least one OFDM symbol resource; the OFDM symbol resource is used for designating a plurality of subcarriers which can be used by equipment within a set time period, and the type of a signal transmitted by each subcarrier is a data signal or a pilot signal;
determining a target OFDM symbol resource to be used matched with local equipment in the signal frame resource allocation information according to the signal frame resource allocation information and the current system time;
generating an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, the type of a signal transmitted by each subcarrier and a data signal to be transmitted;
and transmitting the OFDM symbols to the high-speed industrial control bus within a time period matched with the target OFDM symbol resources in the signal frame.
In a second aspect, an embodiment of the present invention provides an industrial bus communication apparatus configured in a device connected to a high-speed industrial control bus, including:
a communication mode information obtaining module, configured to obtain communication mode information, where the communication mode information is determined according to a communication distance in the high-speed industrial control bus and a correspondence between a pre-configured communication distance and communication mode information, and lengths of OFDM symbols in signal frames corresponding to each piece of communication mode information are different;
a signal frame resource allocation information obtaining module, configured to obtain signal frame resource allocation information matched with the communication mode information, where the signal frame resource allocation information includes: at least one OFDM symbol resource; the OFDM symbol resource is used for designating a plurality of subcarriers which can be used by equipment within a set time period, and the type of a signal transmitted by each subcarrier is a data signal or a pilot signal;
a target OFDM symbol resource determining module, configured to determine, according to the signal frame resource allocation information and the current system time, a target OFDM symbol resource to be used that is matched with a local device in the signal frame resource allocation information;
an OFDM symbol generation module to be transmitted, configured to generate an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, a type of a signal transmitted by each subcarrier, and a data signal to be transmitted;
and the OFDM symbol sending module is used for sending the OFDM symbols to the high-speed industrial control bus in a time period matched with the target OFDM symbol resources in the signal frame.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the industrial bus communication method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the industrial bus communication method according to any one of the embodiments of the present invention.
The embodiment of the invention determines the matched signal frame resource allocation information according to the communication mode information by configuring the corresponding relation between the communication distance and the communication mode information in advance and determining the matched communication mode information when the communication distance is determined, correspondingly generates the OFDM symbol matched with the communication mode information, and sends the generated OFDM symbol to the high-speed industrial control bus within the matched time period in the signal frame to complete the communication, thereby solving the problems that the communication mechanism of the high-speed industrial control bus in the prior art cannot be compatible with the communication requirements of different distances and the system complexity is high, automatically determining the matched signal frame resource allocation information according to the application scenes of different communication distances, determining the matched transmission data structure, generating the matched OFDM symbol to adapt to the communication requirements of the current application scenes and reducing the system complexity of the high-speed industrial control bus, thereby improving the applicability of the high-speed industrial control bus.
Drawings
FIG. 1a is a schematic diagram of a high-speed industrial control bus system according to a first embodiment of the present invention;
FIG. 1b is a flowchart of an industrial bus communication method according to a first embodiment of the present invention;
FIG. 2a is a flowchart of an industrial bus communication method according to a second embodiment of the present invention;
fig. 2b is a flowchart of an OFDM symbol generation method according to a second embodiment of the present invention;
FIG. 3a is a flowchart of an industrial bus communication method according to a third embodiment of the present invention;
fig. 3b is a schematic structural diagram of a signal frame according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an industrial bus communication device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in the fifth 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.
For the convenience of understanding, first, the Orthogonal Frequency Division Multiplexing (OFDM) adopted in the embodiment of the present invention is briefly described.
The basic idea of the OFDM modulation technique is: dividing the whole transmission bandwidth B into N orthogonal subcarriers with the bandwidth delta f, converting the serial high-speed data symbols into N paths of parallel low-speed sub-data symbol streams, and modulating each sub-data symbol stream to each subcarrier for transmission. A carrier is a periodic, oscillating signal transmitted over a channel and used to modulate a transmitted signal. Because the sub-carriers are orthogonal to each other in the frequency domain, signals transmitted by the sub-carriers can be distinguished at a receiving end by using coherent demodulation, so that mutual interference among the sub-carriers is reduced. Moreover, since the bandwidth of the signal transmitted on each subcarrier is smaller than the coherent bandwidth of the system, each subcarrier can be regarded as a flat fading channel, and intersymbol interference is avoided. The OFDM technique is generated to improve the spectrum utilization of the carrier, or to improve the modulation of multiple carriers, and because the subcarriers are orthogonal to each other, the spectrum after spread spectrum modulation can be overlapped with each other, thereby saving bandwidth resources.
As shown in fig. 1a, a communication system of a high-speed industrial control bus according to an embodiment of the present invention includes:
the control node is used for dividing the distributed fixed time slot into fixed sub-channels respectively corresponding to the business interfaces according to the business interfaces included in the control node, and sending a synchronization signal (such as a pilot signal) and a control signal matched with the corresponding business interfaces on the divided sub-channels, or sending a data signal matched with the corresponding business interfaces on the divided sub-channels, or receiving the data signal sent by the terminal node on the divided sub-channels;
and the terminal node is used for dividing the distributed fixed time slot into fixed sub-channels respectively corresponding to the service interfaces according to the service interfaces included in the terminal node, and receiving the synchronous signals and the control signals sent by the control node on the divided sub-channels, or sending data signals matched with the corresponding service interfaces on the divided sub-channels, or receiving data signals sent by other terminal nodes or the control node on the divided sub-channels.
Wherein the control node is specifically configured to: and generating signal frame resource allocation information and sending the signal frame resource allocation information to at least one terminal node, wherein the signal frame resource allocation is used for appointing fixed time slots used by each terminal node and each control node.
Specifically, in the signal frame resource allocation information, one fixed slot corresponds to one OFDM symbol resource.
Example one
Fig. 1b is a flowchart of an industrial bus communication method in an embodiment of the present invention, where this embodiment is applicable to a case where a device connected to a high-speed industrial control bus transmits data to the high-speed industrial control bus, and the method may be executed by an industrial bus communication apparatus provided in an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated into a computer device. As shown in fig. 1b, the method of this embodiment specifically includes:
and S110, acquiring communication mode information, wherein the communication mode information is determined according to the communication distance in the high-speed industrial control bus and the corresponding relation between the communication distance and the communication mode information, and the lengths of the OFDM symbols in the signal frames corresponding to the communication mode information are different.
In the embodiment of the invention, the high-speed industrial control bus can adopt a bus type or ring bus type topological structure, and the system based on the high-speed industrial control bus uses the OFDM modulation technology in a physical layer.
In particular, the communication mode information is used to determine a frame structure of a signal frame transmitted on the high speed industrial control bus. Typically, the length of the signal frame matches the length of the communication distance. The length of the signal frame refers to the duration of the signal frame. The long frame structure is suitable for application scenes with long communication distance, and the short frame structure is suitable for application scenes with short communication distance. The signal frame is typically composed of a plurality of OFDM symbols. Illustratively, the signal frame includes 128 OFDM symbols, and the greater the number of OFDM symbols included in the signal frame, the greater the amount of data transmitted. The OFDM symbols included in one signal frame are identical to each other, and the OFDM symbols included in different signal frames may be different. The length of the signal frame is determined by the length of each OFDM symbol, that is, the length of any one OFDM symbol included in the signal frame.
The communication distance is a distance that the transmission data passes from the device that transmits data to the high-speed industrial control bus to the device that receives the data.
Different communication mode information is determined according to different communication distances, and the different communication mode information corresponds to different frame structures of the signal frames, so that the signal frames with different lengths correspond to the communication requirements of different communication distances.
It should be noted that the signal frame describes a structure of data transmitted on the channel in the form of a data stream, and the data is transmitted in units of the signal frame. In the synchronous communication process of the high-speed industrial control bus, two signal frames are separated according to time. Specifically, the signal frame may be divided into a frame header and a frame body, where the frame header is used to identify the signal frame, and specifically includes information different from other signal frames, such as synchronization information, address information, error control information, and the like. The frame body typically includes data to be transmitted, such as pilot signals and/or data signals.
Optionally, the sampling rate corresponding to each piece of communication mode information is the same, the signal frame resource allocation information corresponding to each piece of communication mode information includes 128 OFDM symbol resources, and a period of a signal frame corresponding to each piece of communication mode information is greater than or equal to 500us and less than or equal to 4 ms.
The embodiment of the invention is configured with a plurality of communication mode information (such as a communication mode 0, a communication mode 1, a communication mode 2 or a communication mode 3), namely, one communication mode information corresponds to one working mode so as to be suitable for communication requirements of different scenes, and in order to realize simplicity, the various communication modes adopt uniform sampling rates.
In the embodiment of the invention, 128 OFDM symbols are used as a signal frame, and the frame period of the signal frame corresponding to various communication mode information is more than or equal to 500us and less than or equal to 4 ms.
It can be understood that the communication mode corresponding to the short frame structure, the corresponding OFDM symbol and Cyclic Prefix (CP) length are short, the transmission time is short, and the method is suitable for application scenarios with short distance, fast communication response time, and high real-time performance. The communication mode corresponding to the short frame structure, the corresponding OFDM symbol and CP length are long, and the method is suitable for application scenes which are long in distance and have slightly low requirements on communication response time and real-time performance.
The specific parameter configuration is shown in the following table:
table 1 communication mode parameter configuration
Figure BDA0002218882400000071
S120, acquiring signal frame resource allocation information matched with the communication mode information, where the signal frame resource allocation information includes: at least one OFDM symbol resource; the OFDM symbol resource is used for designating a plurality of subcarriers which can be used by equipment in a set time period, and the type of a signal transmitted by each subcarrier is a data signal or a pilot signal.
The data transmission from the device to the high-speed industrial control bus is a continuous process, and in order to enable each device on the high-speed industrial control bus to transmit data to the high-speed industrial control bus, which devices can perform data transmission in which time slices can be specified in advance.
The signal frame resource allocation information is used for allocating time-frequency domain resources in a signal frame for equipment hung on the high-speed industrial control bus. Specifically, the time-frequency domain resources include time-domain resource allocation and frequency-domain resource allocation, illustratively, the time-domain resources include time slices, and the frequency-domain resources include carriers. Generally, under the OFDM communication scheme, the smallest unit of allocable resources is an OFDM symbol resource, which specifies a time slice unit, and a plurality of subcarriers. Generally, a device modulates carriers under a plurality of frequencies matched with OFDM symbol resources according to a data signal, and the device transmits a modulated communication signal to a high-speed industrial control bus within a time period (i.e., a time slice unit) corresponding to the allocated OFDM symbol resources, so as to realize transmission of the data signal.
The set time period may refer to a time period matched with a time slice unit corresponding to the OFDM symbol resource. In general, in the current signal frame, the time duration of the time slice unit corresponding to each OFDM symbol resource is the same.
The type of subcarrier transmission signal is specified for determining the type of signal modulating the subcarrier and for determining the type of signal transmitted over the subcarrier. In general, the types of signals may include data signals, which may refer to effective signals to be transmitted, or pilot signals, which may refer to known signals used for channel estimation and synchronization. The pilot signal is in particular a pseudo-random sequence.
The type of the subcarrier sending signal is that the data signal is actually used for modulating a subcarrier used for transmitting effective data by the data signal.
The type of the sub-carrier sending signal is that the pilot signal actually modulates the sub-carrier with the pilot signal, and the sub-carrier is used for transmitting the pilot signal.
Optionally, the frame header of the signal frame includes two continuous synchronous OFDM symbol resources, where the synchronous OFDM symbol resources are used to carry pilot signals, the pilot signals to be loaded corresponding to the two synchronous OFDM symbol resources are the same, and the pilot signals are used to implement time synchronization.
The header of the signal frame is generally used to identify the signal frame, for example, to distinguish the signal frame from other signals, such as to determine the start time and the end time of the current signal frame. The synchronization OFDM symbol resource is used to specify an OFDM symbol resource for time synchronization, that is, a subcarrier carrying a pilot signal, and a time period for transmitting the pilot signal.
The pilot signal is used for determining the starting time of a signal frame and realizing time synchronization of other equipment on the high-speed industrial control bus. Optionally, the pilot signal is a pseudo random sequence. A pseudo-random signal is a regularly variable signal, which has an autocorrelation and whose start can be determined by a convolution algorithm.
The multiple sub-carriers defined in each OFDM symbol resource are divided into an upper half sub-band and a lower half sub-band, and the frequency of each sub-carrier associated with the upper half sub-band is higher than that of each sub-carrier associated with the lower half sub-band. For example, the upper half sub-band may have a frequency range of 16.896MHz-32.256MHz and the lower half sub-band may have a frequency range of 1.536MHz-16.895 MHz.
Illustratively, the synchronous OFDM symbol resource includes two consecutive OFDM symbol resources, and the lower half subbands in the two OFDM symbol resources both carry pilot signals.
S130, according to the signal frame resource allocation information and the current system time, a target OFDM symbol resource to be used, which is matched with the local equipment, is determined in the signal frame resource allocation information.
According to the resource allocation information of the signal frame and the current system time, the local device can determine the OFDM symbols required to be generated by the local device in the transmission process of the current signal frame.
The target OFDM symbol resource to be used is used for appointing the OFDM symbol resource which can be used by the local equipment in the transmission process of the current signal frame so as to generate at least one OFDM symbol forming the current signal frame. The local device may be a control node or a terminal node.
S140, generating an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, a type of a signal transmitted by each subcarrier, and a data signal to be transmitted.
And determining the type of the signal carried by the subcarrier according to the type of the signal transmitted by the subcarrier, modulating the subcarrier according to the corresponding signal, completing the modulation of all subcarriers, and superposing to form an OFDM symbol to be transmitted.
The OFDM symbol may be a frequency domain sequence, and the frequency domain sequence is composed of points having different components and the frequency points containing energy. The OFDM symbols comprise data signals to be transmitted, the local device transmits the OFDM symbols to other devices, and the other devices receive and analyze the OFDM symbols to extract the data signals, so that the transmission process of the data signals is realized.
And S150, in the time period matched with the target OFDM symbol resource in the signal frame, sending the OFDM symbol to the high-speed industrial control bus.
The time period of the target OFDM symbol resource matching is used for local equipment to transmit OFDM symbols.
The embodiment of the invention determines the matched signal frame resource allocation information according to the communication mode information by configuring the corresponding relation between the communication distance and the communication mode information in advance and determining the matched communication mode information when the communication distance is determined, correspondingly generates the OFDM symbol matched with the communication mode information, and sends the generated OFDM symbol to the high-speed industrial control bus within the matched time period in the signal frame to complete the communication, thereby solving the problems that the communication mechanism of the high-speed industrial control bus in the prior art cannot be compatible with the communication requirements of different distances and the system complexity is high, automatically determining the matched signal frame resource allocation information according to the application scenes of different communication distances, determining the matched transmission data structure, generating the matched OFDM symbol to adapt to the communication requirements of the current application scenes and reducing the system complexity of the high-speed industrial control bus, thereby improving the applicability of the high-speed industrial control bus.
Example two
Fig. 2a is a flowchart of an industrial bus communication method according to a second embodiment of the present invention, which is embodied on the basis of the above embodiments, and the embodiment is embodied by generating an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, a type of a signal transmitted by each subcarrier, and a data signal to be transmitted, and is embodied by: respectively acquiring target signals matched with the types of the transmitted signals, and coding; the target signal comprises a data signal and/or a pilot signal; respectively modulating matched subcarriers based on each coded target signal; and when the modulation of a plurality of subcarriers defined in the target OFDM symbol resource is completed, forming an OFDM symbol to be transmitted. As shown in fig. 2a, the method of this embodiment specifically includes:
s210, communication mode information is obtained, wherein the communication mode information is determined according to a communication distance in the high-speed industrial control bus and a correspondence between a preset communication distance and the communication mode information, and the lengths of OFDM symbols in signal frames corresponding to the communication mode information are different.
The communication mode information, the high-speed industrial control bus, the communication distance, the OFDM symbol, the signal frame resource allocation information, the OFDM symbol resource, the data signal, the pilot signal, the subcarrier, the target OFDM symbol resource, and the like in the embodiments of the present invention may all refer to the description of the above embodiments.
S220, acquiring signal frame resource allocation information matched with the communication mode information, where the signal frame resource allocation information includes: at least one OFDM symbol resource; the OFDM symbol resource is used for designating a plurality of subcarriers which can be used by equipment in a set time period, and the type of a signal transmitted by each subcarrier is a data signal or a pilot signal.
And S230, determining a target OFDM symbol resource to be used matched with the local equipment in the signal frame resource allocation information according to the signal frame resource allocation information and the current system time.
S240, respectively acquiring target signals matched with the types of the transmitted signals, and coding; the target signal includes a data signal or a pilot signal.
The target signal is actually a data signal or a pilot signal to be loaded on the subcarrier.
Optionally, target signals matched with the types of the transmission signals are respectively obtained and encoded; before the target signal includes a data signal and/or a pilot signal, the method further includes: acquiring the signal-to-noise ratio of the high-speed industrial control bus; acquiring a coding mode matched with the signal-to-noise ratio according to the mapping relation between the signal-to-noise ratio and the coding mode; and/or acquiring a modulation mode matched with the signal-to-noise ratio according to the mapping relation between the signal-to-noise ratio and the modulation mode; the modulation mode types include: QAM or BPSK; the modulation parameters include: modulation order used by QAM.
Generally, the signal-to-noise ratio of the high-speed industrial control bus affects the data transmission effect, and a matched coding mode and/or modulation mode can be selected according to the signal-to-noise ratio to adapt to the current application scene, so that the data transmission effect is improved to the maximum extent.
Specifically, the snr can be calculated by transmitting a pilot signal from one node on the channels of two nodes, acquiring the reception condition of the pilot signal from the other node, and calculating the snr of the channel between the two nodes.
And counting the signal-to-noise ratio of the acquired channel between each node and each node, dividing the value of the signal-to-noise ratio into intervals with set number, and taking the interval with the most dense distributed nodes as the signal-to-noise ratio of the whole high-speed industrial control bus. For example, in a system including a high-speed industrial control bus with 100 nodes, the signal-to-noise ratio of the channel corresponding to 99 nodes is acquired to fall within the [20dB,30dB ] signal-to-noise ratio interval, the signal-to-noise ratio of the channel corresponding to only 1 node falls within the [10dB, 20dB ] signal-to-noise ratio interval, and obviously, the nodes distributed within the [20dB,30dB ] signal-to-noise ratio interval are the most, so the [20dB,30dB ] signal-to-noise ratio interval is taken as the signal-to-noise ratio of the whole high-speed industrial control bus.
The signal-to-noise ratio is different, the corresponding coding modes are different, and the corresponding modulation modes are different. Specifically, the snr can be divided into a plurality of intervals, each snr interval corresponds to a class of snrs and corresponds to a coding scheme or a modulation scheme, for example, if the snr is lower than 20dB, the snr is defined as a low snr and corresponds to a coding scheme or a modulation scheme. For example, a coding mode corresponding to the concatenation of RS code and convolutional code and a high-order modulation mode; if the SNR is higher than 20dB, the SNR is defined as high SNR, and corresponds to another coding mode or modulation mode, for example, RS coding mode and low order modulation mode.
Among them, BPSK is Binary Phase Shift Keying (Binary Phase Shift Keying) and QAM is Quadrature Amplitude Modulation (Quadrature Amplitude Modulation).
Optionally, the modulation order used by the QAM includes: 256. 64 or 16; when the signal-to-noise ratio is higher than a first signal-to-noise ratio threshold value, selecting a modulation mode of 256 QMA; and when the signal-to-noise ratio is lower than the first signal-to-noise ratio threshold value, selecting a modulation mode of 16 QMA.
Specifically, when the snr is low, a low-order modulation scheme, for example, 16QAM, is selected to ensure that the snr is within a set range and obtain a low demodulation threshold, and when the channel quality is good and the snr is high, a high-order modulation scheme, for example, 256QAM, is selected to obtain the maximum spectral efficiency.
By selecting the coding mode and the modulation mode matched with the signal-to-noise ratio to generate the OFDM symbols and transmitting the OFDM symbols, the coding modulation mode can be flexibly adjusted according to a data transmission scene, and the adaptability of a high-speed industrial control bus system is improved.
Optionally, the obtaining, according to the mapping relationship between the signal-to-noise ratio and the coding mode, the coding mode matched with the signal-to-noise ratio includes: if the signal-to-noise ratio is smaller than or equal to a preset threshold value, determining that the coding mode matched with the signal-to-noise ratio is an error correction coding mode; the error correction coding mode types comprise: at least one of an RS code, a convolutional code, and a Turbo code; the encoding parameters include: the number of code bits of the RS code and the convolution rate of the convolutional code.
Generally, if the snr is higher than a predetermined threshold, the signal may be encoded by a normal encoding method. If the signal-to-noise ratio is less than or equal to the preset threshold value, the interference of the noise on the transmission of the effective signal is large, and at the moment, the effective signal can be encoded by adopting error correction coding, so that the error correction is realized, and the transmission reliability of the effective signal is improved.
Specifically, the error correction coding is a channel coding which can be found and corrected at a receiving end after an error occurs in the data transmission process, and in order to make the code have the capability of error detection and error correction, redundant code elements need to be added to an original code word to enlarge the difference between code words, that is, 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.
Wherein, the RS code (Reed-solomon codes) is a forward error correction channel code, which is effective to the polynomial generated by the corrected sampling data, and the original polynomial 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.
Specifically, the RS code is used as an outer code, and data to be transmitted is encoded to obtain RS error correction encoded data; coding the RS error correction coded data by taking the convolutional code as an inner code to obtain convolutional error correction coded data; and carrying out data deletion operation on the convolution error correction coded data according to the data deletion rule corresponding to the target code rate to obtain the error correction coded data corresponding to the data to be sent.
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 convolutional coding and the target code rate is 2/3 or 3/4, the error correction coded data can be obtained according to the data erasure rule corresponding to the target code rate.
Optionally, the coding bit number of the RS code includes: (239, 207) or (119, 103); the convolution rate of the convolutional code comprises: 1/2 or 3/4.
Specifically, when the number of the encoding bits of the RS code is (239, 207), the error correction capability is 16, that is, 16 bytes can be corrected, and when the number of the encoding bits of the RS code is (119,103), the error correction capability is 8, that is, 8 bytes can be corrected.
Optionally, an encoding form of RS code and convolutional code concatenation is adopted, and encoding parameters are adjusted according to the signal-to-noise ratio. When the signal-to-noise ratio is higher than a second signal-to-noise ratio threshold value, selecting a coding mode of the RS code and the convolutional code cascade, wherein RS coding parameters are (119,103), and the convolutional rate is 3/4; and when the signal-to-noise ratio is lower than a second signal-to-noise ratio threshold value, selecting a coding mode of the RS code and the convolutional code cascade, wherein RS coding parameters are (239, 207), and the convolutional rate is 1/2.
The error correction coding is carried out on the signals to be loaded in the high-speed industrial control bus, so that the error correction processing of bus transmission data is realized, the accuracy of data transmission is improved, the capability of resisting various interferences when the data are transmitted in a channel is enhanced, and the reliability of industrial bus transmission is improved.
In addition, on the channel of the high-speed industrial control bus, because a deep fading valley point with a long duration can affect a continuous string of bits, bit errors usually occur in a string, however, the channel coding is only effective when correcting a single error and a not too long error string, so that the continuous bits in the transmission data need to be dispersed, namely the continuous bits in the transmission data are transmitted in a non-continuous mode, and the interleaving technology is the process of dispersing the continuous bits, so that even if the string errors occur in the transmission process, when a receiving end recovers to a continuous bit string, the continuous bits become single or short errors, and the error correction function of the channel coding is used for correcting 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.
Optionally, after obtaining the error correction coded data corresponding to the data to be transmitted, the method further includes: and carrying out interleaving processing on the error correction coded data according to the interleaving rule to obtain error correction interleaved data corresponding to the data to be transmitted.
After the error correction coding processing is carried out on the signal to be loaded, the interleaving processing is continuously carried out on the error correction coding data, so that error correction interleaving data are obtained, transmission errors occurring in a string are converted into single or length-angle transmission errors, the error data are uniformly distributed, and the burst error correction performance is greatly improved.
In a specific example, 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 the interleaving uses a bit interleaving technique and a carrier interleaving technique, as shown in fig. 2b, the error correction coding and the interleaving coding are performed on Media Access Control (Mac) layer transmission data after scrambling, and QAM (Quadrature Amplitude Modulation) Modulation is performed after adding redundancy and data interleaving.
Specifically, to avoid the occurrence of consecutive 0, 1, each transport block (each transport block including multiple data to be transmitted) is scrambled prior to encoding. The scrambling sequence may be any random code sequence, where the selected scrambling sequence is an m-sequence of length 11, and the resulting polynomial is 11111111111, with an initial phase. The scrambling sequence generator is reinitialized starting with each code block.
The RS code adopts shortened codes of original RS (255,247), RS (255,239) and RS (255,233) system codes, wherein the length of the original RS code 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. Mapping each byte into 8-bit stream according to the principle that high-bit bits are sent preferentially for RS-encoded transmission data, sending the 8-bit stream into a convolutional code encoder, wherein the convolutional code encoder uses a return-to-zero convolutional encoder with constraint length of 7 and code rate of 1/2 to generate a polynomial G1-1718And G2 ═ 1338
And in a burst interference scene, errors are uniformly distributed through an interleaving technology, and the burst error correction performance is improved. In order to further improve the performance of the forward error correction code, a bit interleaving technique and a carrier interleaving technique are used simultaneously. Converting the bit stream by NCBIBThe grouping for the interleaving blocks is done such that all the encoded data bit interleaving is done within the 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. The constellation mapping means that the modulation mapper takes the bit stream after interleaving as input to generate a complex modulation output symbol. The modulation mapping scheme is a constellation mapping mode such as BPSK, 16QAM, 64QAM and the like. The binary number obtains constellation points according to the modulation mode, and then normalization is carried out to obtain correct complex modulation symbols.
The specific interleaving rule is as follows:
using the formula i ═ (N)CBIB/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)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.
By carrying out error correction coding on data to be sent and carrying out interleaving processing on the error correction coded data, error correction interleaved data are further obtained, error correction processing on bus transmission data is achieved, accuracy of data transmission is improved, capability of resisting various interferences when the data are transmitted in a channel is enhanced, reliability of industrial bus transmission is improved, meanwhile, error data are uniformly distributed, and performance of burst error correction is greatly improved.
And S250, respectively modulating the matched subcarriers based on each coded target signal.
S260, when the modulation of the multiple subcarriers defined in the target OFDM symbol resource is completed, forming an OFDM symbol to be transmitted.
S270, in the time period matched with the target OFDM symbol resource in the signal frame, the OFDM symbol is sent to the high-speed industrial control bus.
According to the embodiment of the invention, the target signals to be loaded are respectively obtained, the target signals are coded, the matched subcarriers are respectively modulated according to the coded target signals and are superposed to form the OFDM symbols, the OFDM symbols are adopted to carry the data signals and/or the pilot signals to be transmitted on the high-speed industrial control bus, and the anti-interference capability and the real-time performance of data transmission of the conventional high-speed industrial control bus system are improved.
EXAMPLE III
Fig. 3a is a flowchart of an industrial bus communication method according to a third embodiment of the present invention, which is embodied on the basis of the above embodiments: a plurality of subcarriers defined in each OFDM symbol resource are divided into an upper half subband and a lower half subband, and the frequency of each subcarrier associated with the upper half subband is higher than that of each subcarrier associated with the lower half subband; the signal frame resource allocation information comprises at least one time domain packet; each of the time domain packets includes at least one half subband resource of at least one OFDM symbol resource; the half subband resource comprises an upper half subband or a lower half subband; one of the semi-subband resources corresponds to one device; relative time domain positions of half subband resources in OFDM symbol resources corresponding to the same equipment in different time domain groups are the same; the type of the transmission signal of each subcarrier associated with each semi-subband resource is a data signal, the type of the transmission signal of each subcarrier associated with each semi-subband resource is a pilot signal, or the type of the transmission signal of each subcarrier associated with each semi-subband resource comprises a data signal and a pilot signal. As shown in fig. 3a, the method of this embodiment specifically includes:
s310, communication mode information is obtained, wherein the communication mode information is determined according to a communication distance in the high-speed industrial control bus and a corresponding relation between a preset communication distance and the communication mode information, and the lengths of OFDM symbols in signal frames corresponding to the communication mode information are different; the frame header of the signal frame comprises two continuous synchronous OFDM symbol resources, the synchronous OFDM symbol resources are used for bearing pilot signals, the pilot signals to be loaded corresponding to the two synchronous OFDM symbol resources are the same, and the pilot signals are used for realizing time synchronization.
S320, acquiring signal frame resource allocation information matched with the communication mode information, where the signal frame resource allocation information includes: at least one OFDM symbol resource; the OFDM symbol resource is used for designating a plurality of subcarriers which can be used by equipment in a set time period, and the type of a signal sent by each subcarrier is a data signal or a pilot signal; a plurality of subcarriers defined in each OFDM symbol resource are divided into an upper half subband and a lower half subband, and the frequency of each subcarrier associated with the upper half subband is higher than that of each subcarrier associated with the lower half subband; the signal frame resource allocation information comprises at least one time domain packet; each of the time domain packets includes at least one half subband resource of at least one OFDM symbol resource; the half subband resource comprises an upper half subband or a lower half subband; one of the semi-subband resources corresponds to one device; relative time domain positions of half subband resources in OFDM symbol resources corresponding to the same equipment in different time domain groups are the same; the type of the transmission signal of each subcarrier associated with each semi-subband resource is a data signal, the type of the transmission signal of each subcarrier associated with each semi-subband resource is a pilot signal, or the type of the transmission signal of each subcarrier associated with each semi-subband resource comprises a data signal and a pilot signal.
The time domain grouping may refer to a more specific allocation manner on the basis of the signal frame. Usually, the time domain packet further subdivides the time domain resources corresponding to the frame body of the signal frame. In a specific example, the signal frame has a structure as shown in fig. 3b, where the signal frame includes a plurality of time domain packets, each time domain packet includes the same number of OFDM symbol resources, and each time domain packet includes a plurality of OFDM symbol resources. Each OFDM symbol resource includes an upper half subband and/or a lower half subband. Optionally, the number of OFDM symbol resources included in one time domain packet is equal to the number of devices on-line. In fact, it is a continuous process that the devices send data to the high-speed industrial control bus, and in order to enable each device on the high-speed industrial control bus to transmit data to the high-speed industrial control bus, the time domain packet may be configured in advance to specify which devices can perform data transmission under which time slices in the time domain packet, so that each subsequent device performs data transmission according to the transmission mode specified by the same time domain packet.
The relative time domain positions of the OFDM symbol resources corresponding to the same equipment in different time domain groups are the same, so that the shortest period of sending data to the high-speed industrial control bus by each equipment can be ensured, and the highest real-time performance of data transmission by each equipment is also ensured.
One signal frame includes two time domain packets, one time domain packet including three OFDM symbol resources, for specifying the device 201, the device 202, and the device 203, respectively. The relative time domain positions of the device 201 in the time domain packet are all the first time domain positions in the time domain packet, the relative time domain positions of the device 202 in the time domain packet are all the second time domain positions in the time domain packet, and the relative time domain positions of the device 203 in the time domain packet are all the third time domain positions in the time domain packet. The relative time domain positions of the same equipment in different time domain groups are the same, so that the period of data transmission of each equipment is the same and the minimum, the shortest off-line time of each equipment is realized and is equal to the time length of one time domain group, and the real-time performance of each equipment in the high-speed industrial control bus is improved.
The embodiment of the invention adopts OFDM technology to carry out communication, carries out accurate synchronization of all nodes on a high-speed industrial control bus through pilot signals, and can allocate the signal frame resource allocation information in time domain and frequency domain at will, thus flexibly scheduling the resource of each node, allocating a certain time-frequency resource block to each node, and effectively avoiding data congestion and enabling the nodes to transmit in real time at high speed.
In this embodiment, the minimum unit of the allocation information configuration of the signal frame resource is a half subband of 1 OFDM symbol resource, such as an upper half subband or a lower half subband of 1 OFDM symbol resource.
As can be seen from the foregoing, each device on the high-speed industrial control bus needs to distinguish and confirm the start of a signal frame through pilot information, and therefore, except for sending a pilot signal at the start part of each signal frame, after distributable time-frequency domain resources are allocated to a control node or each terminal node, the pilot signal is inserted in the allocated frequency domain resources according to a specific form, so that a receiving end can decode corresponding information quickly and accurately.
Optionally, the allocated frequency domain resource includes two data structure modes, and the two data structure modes are different in the position where the pilot signal is inserted and the data carrying structure, where:
the first data structure mode transmits both data signals and pilot signals in each OFDM half subband, wherein the ratio of the number of subcarriers occupied by the pilot signals to the number of subcarriers occupied by the data is 1: 8;
the second data structure pattern transmits pilot signals in the first OFDM half-subband in a time domain packet and data in the remaining OFDM half-subbands in the time domain packet.
The first data structure mode is generally used for transmitting periodic cycle data, and the data transmission mode using the first data structure mode can support 8 devices at intervals in a high-speed industrial control bus system; meanwhile, the mode of evenly distributing the multi-device cross interval resources is supported by using the first data structure mode.
The second data structure mode may be used for transmitting periodic cyclic fixed rate data as well as variable rate data.
By configuring multiple data structure modes and selecting the data structure mode suitable for the current data transmission requirement from the multiple data structure modes for data transmission, the flexibility of time and frequency domain resource scheduling is improved, and high-speed real-time transmission is realized.
S330, according to the signal frame resource allocation information and the current system time, a target OFDM symbol resource to be used, which is matched with the local equipment, is determined in the signal frame resource allocation information.
S340, generating an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, a type of a signal transmitted by each subcarrier, and a data signal to be transmitted.
And S350, in the time period matched with the target OFDM symbol resource in the signal frame, sending the OFDM symbol to the high-speed industrial control bus.
The embodiment of the invention increases the number of distributable frequency domain resources, increases the flexibility of scheduling time-frequency domain resources and realizes high-speed real-time transmission by configuring the minimum unit of resource allocation as a half sub-band in one OFDM symbol resource.
Example four
Fig. 4 is a schematic diagram of an industrial bus communication device according to a fourth embodiment of the present invention. The third embodiment is a corresponding apparatus for implementing the industrial bus communication method provided by the above embodiments of the present invention, and the apparatus is configured in a device hung on a high-speed industrial control bus, and meanwhile, the apparatus can be implemented in a software and/or hardware manner, and can be generally integrated with a computer device and the like.
Accordingly, the apparatus of the present embodiment may include:
a communication mode information obtaining module 410, configured to obtain communication mode information, where the communication mode information is determined according to a communication distance in the high-speed industrial control bus and a correspondence between a preconfigured communication distance and communication mode information, and lengths of OFDM symbols in signal frames corresponding to each piece of communication mode information are different;
a signal frame resource allocation information obtaining module 420, configured to obtain signal frame resource allocation information matched with the communication mode information, where the signal frame resource allocation information includes: at least one OFDM symbol resource; the OFDM symbol resource is used for designating a plurality of subcarriers which can be used by equipment within a set time period, and the type of a signal transmitted by each subcarrier is a data signal or a pilot signal;
a target OFDM symbol resource determining module 430, configured to determine, according to the signal frame resource allocation information and the current system time, a target OFDM symbol resource to be used, which is matched with a local device, in the signal frame resource allocation information;
an OFDM symbol generation module 440 configured to generate an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, a type of a signal transmitted by each subcarrier, and a data signal to be transmitted;
an OFDM symbol sending module 450, configured to send the OFDM symbol to the high-speed industrial control bus within a time period in the signal frame that matches the target OFDM symbol resource.
The embodiment of the invention determines the matched signal frame resource allocation information according to the communication mode information by configuring the corresponding relation between the communication distance and the communication mode information in advance and determining the matched communication mode information when the communication distance is determined, correspondingly generates the OFDM symbol matched with the communication mode information, and sends the generated OFDM symbol to the high-speed industrial control bus within the matched time period in the signal frame to complete the communication, thereby solving the problems that the communication mechanism of the high-speed industrial control bus in the prior art cannot be compatible with the communication requirements of different distances and the system complexity is high, automatically determining the matched signal frame resource allocation information according to the application scenes of different communication distances, determining the matched transmission data structure, generating the matched OFDM symbol to adapt to the communication requirements of the current application scenes and reducing the system complexity of the high-speed industrial control bus, thereby improving the applicability of the high-speed industrial control bus.
Furthermore, the sampling rate corresponding to each piece of communication mode information is the same, the signal frame resource allocation information corresponding to each piece of communication mode information includes 128 OFDM symbol resources, and the cycle of the signal frame corresponding to each piece of communication mode information ranges from 500us to 4 ms.
Further, the frame header of the signal frame includes two continuous synchronous OFDM symbol resources, the synchronous OFDM symbol resources are used to carry pilot signals, the pilot signals to be loaded corresponding to the two synchronous OFDM symbol resources are the same, and the pilot signals are used to implement time synchronization.
Further, the module 440 for generating OFDM symbols to be transmitted includes: the signal coding modulation unit is used for respectively acquiring target signals matched with the types of the transmitted signals and coding the target signals; the target signal comprises a data signal or a pilot signal; respectively modulating matched subcarriers based on each coded target signal; and when the modulation of a plurality of subcarriers defined in the target OFDM symbol resource is completed, forming an OFDM symbol to be transmitted.
Further, the module 440 for generating OFDM symbols to be transmitted further includes: the signal-to-noise ratio acquisition unit is used for respectively acquiring target signals matched with the types of the transmitted signals and coding the target signals; before the target signal comprises a data signal and/or a pilot signal, acquiring the signal-to-noise ratio of the high-speed industrial control bus; acquiring a coding mode matched with the signal-to-noise ratio according to the mapping relation between the signal-to-noise ratio and the coding mode; and/or acquiring a modulation mode matched with the signal-to-noise ratio according to the mapping relation between the signal-to-noise ratio and the modulation mode; the modulation mode types include: QAM or BPSK; the modulation parameters include: modulation order used by QAM.
Further, the signal-to-noise ratio obtaining unit includes: the error correction coding unit is used for determining that a coding mode matched with the signal-to-noise ratio is an error correction coding mode if the signal-to-noise ratio is less than or equal to a preset threshold value; the error correction coding mode types comprise: at least one of an RS code, a convolutional code, and a Turbo code; the encoding parameters include: the number of code bits of the RS code and the convolution rate of the convolutional code.
Furthermore, a plurality of subcarriers defined in each OFDM symbol resource are divided into an upper half subband and a lower half subband, and the frequency of each subcarrier associated with the upper half subband is higher than the frequency of each subcarrier associated with the lower half subband; the signal frame resource allocation information comprises at least one time domain packet; each of the time domain packets includes at least one half subband resource of at least one OFDM symbol resource; the half subband resource comprises an upper half subband or a lower half subband; one of the semi-subband resources corresponds to one device; relative time domain positions of half subband resources in OFDM symbol resources corresponding to the same equipment in different time domain groups are the same; the type of the transmission signal of each subcarrier associated with each semi-subband resource is a data signal, the type of the transmission signal of each subcarrier associated with each semi-subband resource is a pilot signal, or the type of the transmission signal of each subcarrier associated with each semi-subband resource comprises a data signal and a pilot signal.
The industrial bus communication device can execute the industrial bus communication method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executed industrial bus communication method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer 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. The computer device 12 may be a device that is attached to a high-speed industrial control bus.
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, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer 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. Computer 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. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, 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 Compact disk Read-Only Memory (CD-ROM), Digital Video disk (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.
Computer 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 computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN)) via Network adapter 20. As shown, Network adapter 20 communicates with other modules of computer device 12 via bus 18. it should be understood that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with computer device 12, including without limitation, microcode, device drivers, Redundant processing units, external disk drive Arrays, (Redundant Arrays of Inesponsive Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing an industrial bus communication method provided by any embodiment of the present invention.
EXAMPLE six
A sixth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the industrial bus communication method provided in all the embodiments of the present invention:
that is, the program when executed by the processor implements: acquiring communication mode information, wherein the communication mode information is determined according to a communication distance in the high-speed industrial control bus and a corresponding relation between a preset communication distance and the communication mode information, and the length of an OFDM symbol in a signal frame corresponding to each piece of communication mode information is different; acquiring signal frame resource allocation information matched with the communication mode information, wherein the signal frame resource allocation information comprises: at least one OFDM symbol resource; the OFDM symbol resource is used for designating a plurality of subcarriers which can be used by equipment in a set time period, and the type of a signal sent by each subcarrier is a data signal or a pilot signal; determining a target OFDM symbol resource to be used matched with local equipment in the signal frame resource allocation information according to the signal frame resource allocation information and the current system time; generating an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, the type of a signal transmitted by each subcarrier and a data signal to be transmitted; and transmitting the OFDM symbols to the high-speed industrial control bus within a time period matched with the target OFDM symbol resources in the signal frame.
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 RAM, a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable 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 any of a variety of 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, Radio Frequency (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 LAN or a 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. An industrial bus communication method is applied to equipment hung on a high-speed industrial control bus, and comprises the following steps:
acquiring communication mode information, wherein the communication mode information is determined according to a communication distance in the high-speed industrial control bus and a corresponding relation between a preset communication distance and the communication mode information, and the length of an OFDM symbol in a signal frame corresponding to each piece of communication mode information is different; the communication distance refers to the distance from the device which transmits data to the high-speed industrial control bus to the device which receives the data;
acquiring signal frame resource allocation information matched with the communication mode information, wherein the signal frame resource allocation information comprises: at least one OFDM symbol resource; the OFDM symbol resource is used for designating a plurality of subcarriers which can be used by equipment in a set time period, and the type of a signal sent by each subcarrier is a data signal or a pilot signal;
determining a target OFDM symbol resource to be used matched with local equipment in the signal frame resource allocation information according to the signal frame resource allocation information and the current system time;
generating an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, the type of a signal transmitted by each subcarrier and a data signal to be transmitted;
transmitting the OFDM symbols to the high-speed industrial control bus within a time period matched with the target OFDM symbol resources in the signal frame;
the signal frame comprises a plurality of time domain groups, each time domain group comprises the same number of OFDM symbol resources, and each time domain group comprises a plurality of OFDM symbol resources.
2. The method of claim 1, wherein the sampling rate corresponding to each of the communication mode information is the same, wherein the signal frame resource allocation information corresponding to each of the communication mode information comprises 128 OFDM symbol resources, and wherein a period of a signal frame corresponding to each of the communication mode information is greater than or equal to 500us and less than or equal to 4 ms.
3. The method according to claim 1, wherein the frame header of the signal frame comprises two consecutive synchronous OFDM symbol resources, the synchronous OFDM symbol resources are used for carrying pilot signals, the pilot signals to be loaded corresponding to the two synchronous OFDM symbol resources are the same, and the pilot signals are used for achieving time synchronization.
4. The method of claim 1, wherein generating an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, a type of a signal to be transmitted by each of the subcarriers, and a data signal to be transmitted comprises:
respectively acquiring target signals matched with the types of the transmitted signals, and coding; the target signal comprises a data signal or a pilot signal;
respectively modulating matched subcarriers based on each coded target signal;
and when the modulation of a plurality of subcarriers defined in the target OFDM symbol resource is completed, forming an OFDM symbol to be transmitted.
5. The method of claim 4, wherein the target signals matching with the type of the transmitted signals are respectively obtained and encoded; before the target signal includes a data signal and/or a pilot signal, the method further includes:
acquiring the signal-to-noise ratio of the high-speed industrial control bus;
acquiring a coding mode matched with the signal-to-noise ratio according to the mapping relation between the signal-to-noise ratio and the coding mode; and/or
Acquiring a modulation mode matched with the signal-to-noise ratio according to the mapping relation between the signal-to-noise ratio and the modulation mode;
the modulation mode types include: QAM or BPSK; the modulation parameters include: modulation order used by QAM.
6. The method according to claim 5, wherein the obtaining the coding scheme matched with the signal-to-noise ratio according to the mapping relationship between the signal-to-noise ratio and the coding scheme comprises:
if the signal-to-noise ratio is smaller than or equal to a preset threshold value, determining that the coding mode matched with the signal-to-noise ratio is an error correction coding mode; the error correction coding mode types comprise: at least one of an RS code, a convolutional code, and a Turbo code; the encoding parameters include: the number of code bits of the RS code and the convolution rate of the convolutional code.
7. The method of claim 3, wherein the plurality of sub-carriers defined in each of the OFDM symbol resources are divided into upper half sub-bands and lower half sub-bands, and wherein the frequency of each sub-carrier associated with the upper half sub-bands is higher than the frequency of each sub-carrier associated with the lower half sub-bands; the signal frame resource allocation information comprises at least one time domain packet; each of the time domain packets includes at least one half subband resource of at least one OFDM symbol resource; the half subband resource comprises an upper half subband or a lower half subband; one of the semi-subband resources corresponds to one device; relative time domain positions of half subband resources in OFDM symbol resources corresponding to the same equipment in different time domain groups are the same;
the type of the transmission signal of each subcarrier associated with each semi-subband resource is a data signal, the type of the transmission signal of each subcarrier associated with each semi-subband resource is a pilot signal, or the type of the transmission signal of each subcarrier associated with each semi-subband resource comprises a data signal and a pilot signal.
8. An industrial bus communication device, which is disposed in a device connected to a high-speed industrial control bus, includes:
a communication mode information obtaining module, configured to obtain communication mode information, where the communication mode information is determined according to a communication distance in the high-speed industrial control bus and a correspondence between a pre-configured communication distance and communication mode information, and lengths of OFDM symbols in signal frames corresponding to each piece of communication mode information are different; the communication distance refers to the distance from the device which transmits data to the high-speed industrial control bus to the device which receives the data;
a signal frame resource allocation information obtaining module, configured to obtain signal frame resource allocation information matched with the communication mode information, where the signal frame resource allocation information includes: at least one OFDM symbol resource; the OFDM symbol resource is used for designating a plurality of subcarriers which can be used by equipment within a set time period, and the type of a signal transmitted by each subcarrier is a data signal or a pilot signal;
a target OFDM symbol resource determining module, configured to determine, according to the signal frame resource allocation information and the current system time, a target OFDM symbol resource to be used that is matched with a local device in the signal frame resource allocation information;
an OFDM symbol generation module to be transmitted, configured to generate an OFDM symbol to be transmitted according to a plurality of subcarriers defined in the target OFDM symbol resource, a type of a signal transmitted by each subcarrier, and a data signal to be transmitted;
an OFDM symbol sending module, configured to send the OFDM symbol to the high-speed industrial control bus within a time period in the signal frame that matches the target OFDM symbol resource;
the signal frame comprises a plurality of time domain groups, each time domain group comprises the same number of OFDM symbol resources, and each time domain group comprises a plurality of OFDM symbol resources.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the industrial bus communication method as claimed in any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out an industrial bus communication method according to any one of claims 1 to 7.
CN201910925678.3A 2019-09-27 2019-09-27 Industrial bus communication method and device, computer equipment and storage medium Active CN112578692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910925678.3A CN112578692B (en) 2019-09-27 2019-09-27 Industrial bus communication method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910925678.3A CN112578692B (en) 2019-09-27 2019-09-27 Industrial bus communication method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112578692A CN112578692A (en) 2021-03-30
CN112578692B true CN112578692B (en) 2022-04-15

Family

ID=75110557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910925678.3A Active CN112578692B (en) 2019-09-27 2019-09-27 Industrial bus communication method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112578692B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117492405B (en) * 2024-01-02 2024-03-08 东方电气风电股份有限公司 Verification method for wind turbine generator control system based on field bus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104105138A (en) * 2013-04-03 2014-10-15 中兴通讯股份有限公司 Method and device for data channel transmission and reception
CN104756025A (en) * 2012-10-30 2015-07-01 株式会社牧野铣床制作所 Workpiece-attachment-information reporting device
CN105103062A (en) * 2013-03-29 2015-11-25 三菱电机株式会社 Sequencer system and address setting method
CN105553572A (en) * 2015-12-14 2016-05-04 中国海洋大学 Underwater communication system
CN109952737A (en) * 2016-11-08 2019-06-28 高通股份有限公司 The unified synchronization channel design used under different communication modes
CN110166400A (en) * 2019-07-05 2019-08-23 北京神经元网络技术有限公司 Synchronous method, device, the network equipment and the storage medium of high-speed industrial communication system
CN110247834A (en) * 2019-07-05 2019-09-17 北京神经元网络技术有限公司 The method of node device, high-speed industrial communication system and communication

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6914949B2 (en) * 2000-10-13 2005-07-05 Time Domain Corporation Method and system for reducing potential interference in an impulse radio
US8583132B2 (en) * 2006-05-18 2013-11-12 Qualcomm Incorporated Efficient channel structure for a wireless communication system
CN101193094B (en) * 2006-11-20 2011-10-19 电信科学技术研究院 A method and system for sending broadcast/multicast service
US8045636B1 (en) * 2007-03-27 2011-10-25 Marvell International Ltd. Maximum-likelihood frame synchronization algorithms for OFDM systems
US8477690B2 (en) * 2009-11-06 2013-07-02 Intel Corporation Location determination in wireless communication systems
US20130260732A1 (en) * 2012-04-03 2013-10-03 Samsung Electronics Co. Ltd. Techniques for power saving for multimode wireless device using wireless communication network deployment information
CN103714821A (en) * 2012-09-28 2014-04-09 杜比实验室特许公司 Mixed domain data packet loss concealment based on position
US20140218107A1 (en) * 2013-02-04 2014-08-07 Qualcomm Incorporated Method and apparatus for applying predistortion to an input signal for a nonlinear power amplifier
US9419750B2 (en) * 2013-06-05 2016-08-16 Texas Instruments Incorporated NLOS wireless backhaul uplink communication

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104756025A (en) * 2012-10-30 2015-07-01 株式会社牧野铣床制作所 Workpiece-attachment-information reporting device
CN105103062A (en) * 2013-03-29 2015-11-25 三菱电机株式会社 Sequencer system and address setting method
CN104105138A (en) * 2013-04-03 2014-10-15 中兴通讯股份有限公司 Method and device for data channel transmission and reception
CN105553572A (en) * 2015-12-14 2016-05-04 中国海洋大学 Underwater communication system
CN109952737A (en) * 2016-11-08 2019-06-28 高通股份有限公司 The unified synchronization channel design used under different communication modes
CN110166400A (en) * 2019-07-05 2019-08-23 北京神经元网络技术有限公司 Synchronous method, device, the network equipment and the storage medium of high-speed industrial communication system
CN110247834A (en) * 2019-07-05 2019-09-17 北京神经元网络技术有限公司 The method of node device, high-speed industrial communication system and communication

Also Published As

Publication number Publication date
CN112578692A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
JP5639267B2 (en) Link adaptation in multi-carrier communication systems
CN107181660B (en) Method and apparatus for detecting delimiters for low overhead communication in a network
CN110166400B (en) Synchronization method, device, network equipment and storage medium of high-speed industrial communication system
US8675754B1 (en) Hybrid modulation schemes used in data communication
KR101409576B1 (en) Method and apparatus for coding and interleaving for very high throughput wireless communications
TW201731270A (en) Communication of user specific control information in a wireless network
US9900126B2 (en) Optimized code table signaling for authentication to a network and information system
JP5409663B2 (en) Encoded bit padding
CN102356583B (en) Techniques and device for encoding plcp headers
US20200252121A1 (en) Techniques for expanding communication range between wireless devices
CN106664275B (en) Physical layer frame format for WLAN
CN103475449A (en) Soft repetition code combiner using channel state information
WO2008079561A1 (en) Selecting carriers for modulating signals in a communication network
US9660759B2 (en) Adaptive cyclic channel coding for orthogonal frequency division multiplexed (OFDM) systems
CN110336765B (en) Synchronization method, device, network equipment and storage medium of high-speed industrial communication system
CN112578692B (en) Industrial bus communication method and device, computer equipment and storage medium
US20050135517A1 (en) Increasing effective number of data tones in a multi-antenna multi-tone communication system
US9264075B2 (en) Dynamic buffer partitioning
US8654874B1 (en) Method and apparatus for detecting impulse noise
US9276607B2 (en) Padding after channel encoding repetition and interleaving
CN114513287A (en) Frame structure and communication method of data chain system suitable for DSP processing platform
KR101465794B1 (en) Method of transmitting data using repetition coding
US20170026968A1 (en) Multiple Carrier Transmission on a Communication Channel
JP2008187605A (en) Communication apparatus
WO2017024456A1 (en) Code modulation and demodulation 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