CN112737730B - Current loop communication data sending and receiving method and system - Google Patents

Current loop communication data sending and receiving method and system Download PDF

Info

Publication number
CN112737730B
CN112737730B CN202011529424.9A CN202011529424A CN112737730B CN 112737730 B CN112737730 B CN 112737730B CN 202011529424 A CN202011529424 A CN 202011529424A CN 112737730 B CN112737730 B CN 112737730B
Authority
CN
China
Prior art keywords
data
phase
locked
communication
signal
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
CN202011529424.9A
Other languages
Chinese (zh)
Other versions
CN112737730A (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.)
Qingdao Dingxin Communication Fire Safety Co ltd
Original Assignee
Qingdao Dingxin Communication Fire Safety 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 Qingdao Dingxin Communication Fire Safety Co ltd filed Critical Qingdao Dingxin Communication Fire Safety Co ltd
Priority to CN202011529424.9A priority Critical patent/CN112737730B/en
Publication of CN112737730A publication Critical patent/CN112737730A/en
Application granted granted Critical
Publication of CN112737730B publication Critical patent/CN112737730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0059Convolutional codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0064Concatenated codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0071Use of interleaving
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0048Allocation of pilot signals, i.e. of signals known to the receiver

Abstract

The application discloses electric current loop communication data sending and receiving method and system, which are applied to a monitoring end and comprise: grouping communication data to obtain a plurality of grouped data; carrying out convolution, interleaving and spread spectrum coding on each grouped data in sequence to obtain a plurality of frame loads; sequentially adding training symbols and lead codes before each frame load to obtain a plurality of communication frames; sending a communication frame to a controller end; the method and the device have the advantages that the grouping, convolution, interweaving and spread spectrum are carried out on the communication data of the return codes, the anti-interference performance of the communication frame is enhanced, the communication reliability is improved, the training symbols and the lead codes are added, the operational amplifier circuit is excited by the training symbols to enter the working state, the influence of delay in starting of the operational amplifier circuit is avoided, the lead codes are used for eliminating direct current signals in the communication frame to reduce interference signals, the communication frame format is redesigned, new communication messages are obtained, and the communication success rate can be improved during long-distance communication.

Description

Current loop communication data sending and receiving method and system
Technical Field
The invention relates to the field of communication, in particular to a method and a system for sending and receiving current loop communication data.
Background
At present, two buses are mostly adopted in an automatic fire-fighting fire alarm system to realize communication and power supply between a fire alarm controller and a field monitoring unit. The second fire-fighting bus is an asymmetric communication bus, and the downlink code sending of the controller needs to be carried out both in communication and power supply, so that a voltage modulation mode is adopted; in order to reduce the voltage loss as much as possible, the uplink code return of the monitoring unit still adopts a current loop mode of power supply at the controller end, and in order to reduce the power consumption of the system, the code return current is not too large, usually dozens of microamperes.
The communication mode of the current loop has the following problems: firstly, as the transmission distance increases, the attenuation of a return code current signal is serious, so that the controller end cannot decode correctly, and the error rate is high; secondly, in practical engineering application, in order to consider the convenience of construction of different control systems and save cost, multiple lines are often laid together, even parallel lines coexist, and the current loop communication is easily interfered by other surrounding lines; third, the existing current loop communication data is usually transmitted by using original codes, and the data cannot be self-repaired after being interfered, so that the controller cannot correctly receive a return code message, and the monitoring unit is continuously required to retransmit, thereby causing network communication efficiency to be reduced, and even communication cannot be performed.
Therefore, a current loop communication method and system capable of ensuring the success rate of communication and realizing long-distance transmission need to be researched.
Disclosure of Invention
In view of this, the present invention provides a method and a system for sending and receiving current loop communication data, which can ensure the success rate of communication and implement long-distance transmission. The specific scheme is as follows:
a method for sending current loop communication data is applied to a monitoring end and comprises the following steps:
grouping communication data to obtain a plurality of grouped data;
carrying out convolution, interleaving and spread spectrum coding on each packet data in sequence respectively to obtain a plurality of frame loads;
sequentially adding a training symbol and a lead code before each frame load to obtain a plurality of communication frames;
sending a communication frame to a controller end;
the training symbol is a multi-bit code for exciting the operational amplifier circuit to enter a working state, and the lead code is a sequence one bit more than the m sequence.
Optionally, the process of performing convolution, interleaving, and spread spectrum coding on each packet data in sequence to obtain multiple frame loads includes:
performing convolution on each grouped data by adopting a convolution code of (2, 1, 7) to obtain a plurality of convolution data;
interweaving each convolution data by adopting a 4 x N interweaving matrix to obtain a plurality of interweaving data;
carrying out spread spectrum coding on each interweaved data by adopting a Manchester coding mode to obtain a plurality of frame loads;
wherein, N is a variable step length, and the value is (byte number of convolution data 8+ 6)/2.
Optionally, the training symbol is manchester encoding with a length of 8 bits.
Optionally, the preamble is a 16-bit or 32-bit sequence with one more bit than the m-sequence.
The invention also discloses a current loop communication data receiving method, which is applied to a controller end and comprises the following steps:
receiving a current communication frame in a current signal form sent by a monitoring end;
converting the current communication frame in the form of a current signal into a voltage communication frame in the form of a voltage signal;
sampling the voltage communication frame in an oversampling mode to obtain a plurality of oversampling data;
performing moving average on the over-sampled data to obtain a plurality of average data of each signal in the voltage communication frame;
determining a plurality of phase-locked signals using the phase-lock window;
calculating a plurality of phase-locked data corresponding to each phase-locked signal;
obtaining an optimal phase point by using average data of a position corresponding to the phase-locked data with the largest numerical value in each phase-locked signal;
locking the lead code in the voltage communication frame by using the optimal phase point;
determining a frame load in the voltage communication frame by using the lead code;
decoding the frame load to obtain grouped data;
the phase-locking window is a preset window comprising multi-bit signals, and the phase-locking data is the sum of absolute values of differences of average data of every two adjacent phase-locking signals in the same corresponding position in the phase-locking window.
Optionally, the process of obtaining the optimal phase point by using the average data of the position corresponding to the phase-locked data with the largest value in each phase-locked signal includes:
obtaining the optimal phase point of the first phase-locked signal by using the average data of the position corresponding to the phase-locked data with the largest value in the first phase-locked signal;
determining the assumed optimal phase point of the second phase-locked signal by the same step length by taking the optimal phase point of the first phase-locked signal as a reference;
obtaining a theoretical optimal phase point of the second phase-locked signal by using average data of a position corresponding to phase-locked data with the largest value in the second phase-locked signal;
approaching a bit average data from the assumed optimal phase point to the theoretical optimal phase point, and taking the bit average data as an actual optimal phase point of the second phase-locked signal;
wherein the second phase-locked signal is a next signal of the first phase-locked signal.
The invention also discloses a current loop communication data sending system, which is applied to a monitoring end and comprises:
the communication data grouping module is used for grouping the communication data to obtain a plurality of grouped data;
the frame load generating module is used for respectively and sequentially carrying out convolution, interleaving and spread spectrum coding on each grouped data to obtain a plurality of frame loads;
the communication frame generation module is used for sequentially adding a training symbol and a lead code before each frame load to obtain a plurality of communication frames;
the communication frame sending module is used for sending the communication frame to the controller end;
the training symbol is a multi-bit code for exciting the operational amplifier circuit to enter a working state, and the lead code is a sequence one bit more than the m sequence.
Optionally, the frame load generating module includes:
a convolution unit, which is used for performing convolution on each grouped data by adopting a convolution code of (2, 1, 7) to obtain a plurality of convolution data;
the interleaving unit is used for interleaving each convolution data by adopting a 4 x N interleaving matrix to obtain a plurality of interleaving data;
the spread spectrum unit is used for carrying out spread spectrum coding on each interweaved data by adopting a Manchester coding mode to obtain a plurality of frame loads;
wherein, N is variable step length, and the value is (byte number of convolution data 8+ 6)/2.
The invention also discloses a current loop communication data receiving system, which is applied to a controller end and comprises:
the current communication frame receiving module is used for receiving a current communication frame in a current signal form sent by the monitoring end;
the voltage communication frame conversion module is used for converting the current communication frame in the current signal form into a voltage communication frame in the voltage signal form;
the voltage communication module is used for receiving a voltage communication frame and outputting a plurality of voltage communication frames;
the moving average module is used for carrying out moving average on the over-sampling data to obtain a plurality of average data of each signal in the voltage communication frame;
a phase-locking module for determining a plurality of phase-locked signals using a phase-locking window;
the phase-locked data calculation module is used for calculating a plurality of phase-locked data corresponding to each phase-locked signal;
the optimal phase point calculation module is used for obtaining an optimal phase point by utilizing average data of a position corresponding to phase-locking data with the maximum value in each phase-locking signal;
the lead code locking module is used for locking the lead code in the voltage communication frame by utilizing the optimal phase point;
the frame load locking module is used for determining the frame load in the voltage communication frame by using the lead code;
a decoding module, configured to decode the frame payload to obtain packet data;
the phase-locked window is a preset window comprising multi-bit signals, and the phase-locked data is the sum of absolute values of differences of average data of every two adjacent phase-locked signals in the same corresponding position in the phase-locked window.
Optionally, the optimal phase point calculating module includes:
the first optimal phase point calculating unit is used for obtaining the optimal phase point of the first phase-locked signal by utilizing the average data of the position corresponding to the phase-locked data with the maximum value in the first phase-locked signal;
the assumed optimal phase point setting unit is used for determining the assumed optimal phase point of the second phase-locked signal by the same step length by taking the optimal phase point of the first phase-locked signal as a reference;
a theoretical optimal phase point calculation unit, configured to obtain a theoretical optimal phase point of the second phase-locked signal by using average data of a position corresponding to phase-locked data with a largest value in the second phase-locked signal;
an actual optimal phase point setting unit, configured to approach a bit average data from the assumed optimal phase point to the theoretical optimal phase point, and use the bit average data as an actual optimal phase point of the second phase-locked signal;
wherein the second phase-locked signal is a next signal of the first phase-locked signal.
In the invention, a current loop communication data sending method is applied to a monitoring end and comprises the following steps: grouping communication data to obtain a plurality of grouped data; carrying out convolution, interleaving and spread spectrum coding on each packet data in sequence respectively to obtain a plurality of frame loads; sequentially adding a training symbol and a lead code before each frame load to obtain a plurality of communication frames; sending a communication frame to a controller end; the training symbol is a multi-bit code for exciting the operational amplifier circuit to enter a working state, and the lead code is a sequence one bit more than the m sequence.
The invention carries out grouping, convolution, interweaving and spread spectrum on the communication data of the return code, enhances the anti-interference performance of the communication frame, improves the communication reliability, adds a training symbol and a lead code, and excites the operational amplifier circuit to enter a working state by the training symbol, thereby avoiding the influence of the start delay of the operational amplifier circuit, eliminating the direct current signal in the communication frame by utilizing the lead code, reducing the interference signal, realizing the redesign of the communication frame format, obtaining a new communication message, and ensuring that the communication success rate can be improved in the long-distance communication.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for sending current loop communication data according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a communication data processing procedure according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for receiving current loop communication data according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an oversampling circuit according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating an offset correction of a first phase-locked signal according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating an offset correction of a second phase-locked signal according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating an offset correction of a third phase-locked signal according to an embodiment of the disclosure;
fig. 8 is a schematic structural diagram of a current loop communication data sending system according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a current loop communication data receiving system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a method for sending current loop communication data, which is applied to a monitoring end and is shown in figure 1, and comprises the following steps:
s11: and grouping the communication data to obtain a plurality of grouped data.
Specifically, in the field of field control, an asymmetric communication mode is usually adopted, and a voltage modulation mode is usually adopted because the controller sends data to the monitoring unit for communication and supplies power to the monitoring unit; when the monitoring unit sends data to the controller, a current loop mode of supplying power to the controller end is generally adopted in order to reduce power consumption. In order to prevent the monitor terminal voltage from dropping too fast due to too long code returning time once, and thus normal operation is affected, the code returning data are grouped according to a limited time, and communication data are respectively sent to meet the requirement of the power supply voltage, and the communication data are divided into a plurality of groups of grouped data as shown in fig. 2.
S12: and carrying out convolution, interleaving and spread spectrum coding on each grouped data in sequence to obtain a plurality of frame loads.
Specifically, in order to enhance the anti-interference performance of the communication data and improve the communication reliability, referring to fig. 2, each packet data is respectively and sequentially subjected to convolution, interleaving and spread spectrum coding, and the specific process may include steps S121 to S123; wherein the content of the first and second substances,
s121: performing convolution on each grouped data by adopting a convolution code of (2, 1, 7) to obtain a plurality of convolution data;
s122: interweaving each convolution data by adopting a 4 × N interweaving matrix to obtain a plurality of interweaving data;
s123: and carrying out spread spectrum coding on each interleaved data by adopting a Manchester coding mode to obtain a plurality of frame loads.
Wherein, N is variable step length, and the value is (byte number of convolution data 8+ 6)/2.
It should be noted that the convolutional code, the variable step length, and the manchester encoding mode may also be changed according to the actual application requirements, for example, the manchester encoding mode may be second-order spreading or fourth-order spreading, and if the variable step length may not be (number of bytes of convolutional data + 8+ 6)/2, the convolutional code may also be set according to the requirements.
S13: and sequentially adding training symbols and lead codes before the load of each frame to obtain a plurality of communication frames.
Specifically, as shown in fig. 2, when a communication frame passes through the operational amplifier circuit, an important frame load portion can be effectively amplified, so that data loss caused by partial amplification is avoided, a training symbol is added before the frame load, the training symbol serves as the beginning of the communication frame, and after the training symbol signal passes through the operational amplifier circuit, the operational amplifier circuit can be excited to enter a working state, so that a subsequent preamble and a frame load of the communication frame avoid the start delay of the operational amplifier circuit, and the important portion of the communication frame can be ensured to be amplified by the signal.
Specifically, as shown in fig. 2, a preamble is inserted between the training symbol and the frame load, and the preamble uses a sequence one bit more than the m-sequence, that is, one bit is added to the preamble based on the m-sequence generated by corresponding to the primitive polynomial, so that the numbers of '1' and '0' in the preamble are the same, thereby eliminating the dc signal and reducing the interference.
S14: and sending the communication frame to the controller.
Specifically, after a brand-new communication frame is obtained, all the communication frames can be sent to the controller end according to a preset first sampling rate, and then code returning operation is carried out.
Therefore, the embodiment of the invention performs grouping, convolution, interleaving and spread spectrum on the communication data of the return code, enhances the anti-interference performance of the communication frame, improves the communication reliability, adds the training symbol and the lead code, and excites the operational amplifier circuit to enter the working state by the training symbol, thereby avoiding the influence of the start delay of the operational amplifier circuit, eliminating the direct current signal in the communication frame by using the lead code, reducing the interference signal, realizing the redesign of the communication frame format, obtaining a new communication message, and ensuring that the communication success rate can be improved during long-distance communication.
The training symbol may be manchester code with a length of 8 bits, for example, 0b01010101; the preamble may be embodied as a 16-bit or 32-bit sequence having one more bit than the m-sequence.
Correspondingly, the embodiment of the present invention further discloses a method for receiving current loop communication data, which is shown in fig. 3 and applied to a controller terminal, and the method includes:
s201: receiving a current communication frame in a current signal form sent by a monitoring end;
s202: the current communication frame in the form of a current signal is converted into a voltage communication frame in the form of a voltage signal.
Specifically, in the foregoing embodiment, the communication frame sent by the monitoring end is in the form of a current signal, which is referred to herein as a current communication frame in the form of a current signal.
S203: and sampling the voltage communication frame in an oversampling mode to obtain a plurality of oversampling data.
Specifically, oversampling may be implemented by sampling the communication frame at a second sampling rate higher than the first sampling rate used when the monitoring end sends the communication frame, for example, as shown in fig. 4, the second sampling rate may be 5 times the first sampling rate, each complete signal corresponds to 5 pieces of oversampled data Sij, i represents the ith signal, j represents a sampling point, and j = {1,2,3,4,5} if each signal has 5 pieces of oversampled data.
It is understood that a plurality of signals may be included in one communication frame.
S204: and performing moving average on the over-sampled data to obtain a plurality of average data of each signal in the voltage communication frame.
Specifically, in order to eliminate the interference of the high-frequency signal, implement the function of low-pass filtering, solve the square wave or aliasing effect, and perform moving average on the oversampled data, during the moving average, a multiple of the second sampling rate higher than the first sampling rate may be adopted for grouping, for example, based on the above example that the second sampling rate is 5 times the first sampling rate, the sampled data Sij is subjected to moving average, and each 5 data is 1 group.
The moving average method may be a K-means algorithm, an exponential weighted average algorithm, or other averaging algorithms, and may be changed according to the actual application.
Specifically, a K-means moving average algorithm is taken as an example for description; wherein, the average data of the signal i can be represented by Aij, such as Ai1, ai2, ai3, ai4, and Ai5; the relationship between Aij of signal i and sampling point Sij can be expressed as:
Ai1=(Si1+Si2+Si3+Si4+Si5)/5;
Ai2=(Si2+Si3+Si4+Si5+Si6)/5;
Ai3=(Si3+Si4+Si5+Si6+Si7)/5;
Ai4=(Si4+Si5+Si6+Si7+Si8)/5;
Ai5=(Si5+Si6+Si7+Si8+Si9)/5。
wherein, since the signal i has only 5 sampling points, the sampling points Si6, si7, si8 and Si9 can be complemented by 0.
S205: determining a plurality of phase-locked signals using a phase-lock window;
s206: calculating a plurality of phase-locking data corresponding to each phase-locking signal;
s207: and obtaining the optimal phase point by using the average data of the position corresponding to the phase-locked data with the maximum value in each phase-locked signal.
Specifically, since communication data is interfered, a signal may be distorted, which causes "0" to be "1" and "1" to be "0", and a single signal is difficult to be accurately restored, in order to avoid this problem, a phase-locking process is adopted, and for this purpose, a phase-locking window is preset, and the phase-locking window may be set based on the number of sampling points of each signal, for example, to be an integer multiple, for example, one signal includes 5 sampling points, and the phase-locking window may be set to include 15 continuous signals.
Specifically, the phase-locked data of a signal i can be expressed as:
Figure BDA0002851640540000091
Figure BDA0002851640540000092
Figure BDA0002851640540000093
Figure BDA0002851640540000094
Figure BDA0002851640540000095
wherein, LP i1 、LP i2 、LP i3 、LP i4 And LP i5 I, each phase-locked data being the sum of the absolute values of the differences between the average data of two adjacent phase-locked signals and the same corresponding position within a phase-locked window, e.g. LP 11 =|A 21 -A 11 |+|A 31 -A 21 |...+|A 16 -A 15 L, wherein A 21 And A 11 The corresponding average data, | A, of two adjacent signals 1 and 2 at the same sampling point as 1 is obtained 21 -A 11 I is the absolute value of the difference between the average data of the same corresponding positions of the signal 1 and the signal 2.
Specifically, the phase-locked data of the maximum value is selected from the 5 pieces of phase-locked data based on the above example, and the average data of the corresponding first signal i in the phase-locked data is the position of the peak or the trough of the ith signal, that is, the optimal phase point, for example, the phase-locked data LP i3 Maximum value, then A i3 The optimum phase point is obtained.
The expression of each phase-locked data is a calculation formula of the phase-locked data.
S208: locking the lead code in the voltage communication frame by using the optimal phase point;
s209: determining a frame load in the voltage communication frame by using the lead code;
s210: the frame payload is decoded to obtain packet data.
Specifically, after the optimal phase point is obtained, the communication frame can be decoded, all the communication frames can be decoded to obtain all the grouped data, and finally the grouped data is spliced to obtain the initial readable communication data.
Therefore, the embodiment of the invention corresponds to the embodiment, oversampling is performed on the communication frame sent by the monitoring end, interference of a high-frequency signal is eliminated by utilizing moving average processing subsequently, a low-pass filtering effect is realized, phase locking processing is utilized to avoid influence on communication data caused by single signal distortion, and the accuracy of the communication data during remote communication is ensured.
Further, the embodiment of the present invention also discloses a specific method for sending current loop communication data, and this embodiment further describes and optimizes the technical solution, compared with the previous embodiment. Specifically, the method comprises the following steps:
specifically, because the controller end and the monitor end adopt different working crystal oscillators, the crystal oscillators are easy to cause frequency deviation due to temperature change. And the frequency deviation at the moment shows linear change and does not change suddenly. Aiming at the characteristics of the crystal oscillator, an improved frequency deviation adjustment scheme is provided: only one bit is adjusted each time; namely, an adjusting strategy of dynamic following and gradual approximation according to bits is adopted. The process of obtaining the optimal phase point by using the average data of the position corresponding to the most significant phase-locked data in each phase-locked signal in S207 may specifically include S2071 to S2074; referring to fig. 5 to 7, in which,
s2071: and obtaining the optimal phase point of the first phase-locked signal by using the average data of the corresponding position of the phase-locked data with the maximum value in the first phase-locked signal. (ii) a
S2072: and determining the assumed optimal phase point of the second phase-locked signal by the same step length by taking the optimal phase point of the first phase-locked signal as a reference.
Specifically, firstly, the average data of the position corresponding to the phase-locked data with the largest value in the first phase-locked signal is obtained according to the method, and the optimal phase point of the first phase-locked signal is obtained, see fig. 5, 5 average data corresponding to the first phase-locked signal in the Group1 bit are obtained, where Ai3 is the maximum value, and is used as the optimal phase point of the first phase-locked signal, mark R _ Max _ Pos =3, at this time, the step length of one signal is 5, that is, the number of sampling points included in one signal is based on the optimal phase point of the first phase-locked signal, and the assumed optimal phase point of the second phase-locked signal Group2 is determined as S _ Max _ Pos by using the same step length.
S2073: and obtaining the theoretical optimal phase point of the second phase-locked signal by using the average data of the position corresponding to the phase-locked data with the maximum value in the second phase-locked signal.
Specifically, the theoretical optimal phase point of the second phase-locked signal is obtained by using the aforementioned phase-locking calculation formula, such as a (i + 1) 5 obtained by calculation, as shown in fig. 6, which is labeled as R _ Max _ Pos =5.
S2074: the bit average data is used as the actual optimal phase point of the second phase-locked signal by approaching the bit average data from the assumed optimal phase point to the theoretical optimal phase point.
Specifically, referring to fig. 6, a bit-by-bit approximation algorithm is used to approach one bit of average data from the assumed optimal phase point to the theoretical optimal phase point, i.e., to move the theoretical optimal phase point from the point a (i + 1) 3 to the point a (i + 1) 5 by one bit, which is labeled as a _ Pos =4, with a (i + 1) 4 as the actual optimal phase point.
Wherein, the second phase-locked signal is the next signal of the first phase-locked signal.
Specifically, referring to fig. 7, the optimal phase point of the third phase-locked signal of the next phase-locked signal of the second phase-locked signal is selected in the same manner, the real maximum value in the third phase-locked signal Group3 is calculated to be a (i + 2) 5, and similarly, based on the assumed optimal phase point, one bit is moved to the actual optimal phase point to be the adjusted actual optimal phase point, and the mark a _ Pos =5 is overlapped with the actual optimal phase point; and analogizing in turn to realize dynamic bit-by-bit following phase adjustment.
It should be understood that the specific labeling manner of the above-mentioned labels is only for convenience of description, and how to label in practical application is not limited herein.
Correspondingly, the embodiment of the present invention further discloses a current loop communication data sending system, as shown in fig. 8, which is applied to a monitoring end, and the system includes:
a communication data grouping module 11, configured to group communication data to obtain multiple grouped data;
a frame load generating module 12, configured to perform convolution, interleaving, and spread spectrum coding on each packet data in sequence, respectively, to obtain a plurality of frame loads;
a communication frame generation module 13, configured to add a training symbol and a preamble in sequence before each frame load to obtain a plurality of communication frames;
a communication frame sending module 14, configured to send a communication frame to the controller;
the training symbol is a multi-bit code for exciting the operational amplifier circuit to enter a working state, and the lead code is a sequence one bit more than the m sequence.
Specifically, the frame load generating module 12 may include a convolution unit, an interleaving unit, and a spreading unit; wherein the content of the first and second substances,
a convolution unit for performing convolution on each grouped data by adopting a convolution code of (2, 1, 7) to obtain a plurality of convolution data;
the interleaving unit is used for interleaving each convolution data by adopting a 4 x N interleaving matrix to obtain a plurality of interleaving data;
the spread spectrum unit is used for carrying out spread spectrum coding on each interweaved data by adopting a Manchester coding mode to obtain a plurality of frame loads;
wherein, N is variable step length, and the value is (byte number of convolution data 8+ 6)/2.
Therefore, the embodiment of the invention carries out grouping, convolution, interweaving and spread spectrum on the communication data of the return code, enhances the anti-interference performance of the communication frame, improves the communication reliability, adds the training symbol and the lead code, and excites the operational amplifier circuit to enter the working state by the training symbol, thereby avoiding the influence of the start delay of the operational amplifier circuit, eliminating the direct current signal in the communication frame by using the lead code to reduce the interference signal, realizing the redesign of the communication frame format, obtaining a new communication message, and ensuring that the communication success rate can be improved during the long-distance communication.
Specifically, the training symbol may be manchester code with a length of 8 bits; the preamble may be a 16-bit or 32-bit sequence that has one more bit than the m-sequence.
In addition, an embodiment of the present invention further discloses a current loop communication data receiving system, which is shown in fig. 9 and is applied to a controller, and the system includes:
the current communication frame receiving module 20 is configured to receive a current communication frame in the form of a current signal sent by the monitoring end;
the voltage communication frame conversion module 21 is configured to convert a current communication frame in a current signal form into a voltage communication frame in a voltage signal form;
the oversampling module 22 is configured to sample the voltage communication frame in an oversampling manner to obtain a plurality of oversampling data;
a moving average module 23, configured to perform moving average on the oversampled data to obtain multiple average data of each signal in the voltage communication frame;
a phase locking module 24 for determining a plurality of phase-locked signals using a phase locking window;
a phase-locked data calculating module 25, configured to calculate a plurality of phase-locked data corresponding to each phase-locked signal;
an optimal phase point calculation module 26, configured to obtain an optimal phase point by using average data of a position corresponding to phase-locked data with a largest value in each phase-locked signal;
a lead code locking module 27, configured to lock the lead code in the voltage communication frame by using the optimal phase point;
a frame load lock module 28, configured to determine a frame load in the voltage communication frame by using the preamble;
a decoding module 29, configured to decode the frame payload to obtain packet data;
the phase-locked window is a preset window comprising multi-bit signals, and the phase-locked data is the sum of absolute values of differences of average data of every two adjacent phase-locked signals in the same corresponding position in the phase-locked window.
Therefore, the embodiment of the invention corresponds to the embodiment, oversampling is performed on the communication frame sent by the monitoring end, interference of a high-frequency signal is eliminated by utilizing moving average processing subsequently, a low-pass filtering effect is realized, phase locking processing is utilized to avoid influence on communication data caused by single signal distortion, and the accuracy of the communication data during remote communication is ensured.
Specifically, the optimal phase point calculating module 26 may include a first optimal phase point calculating unit, an assumed optimal phase point setting unit, a theoretical optimal phase point calculating unit, and an actual optimal phase point setting unit; wherein, the first and the second end of the pipe are connected with each other,
the first optimal phase point calculating unit is used for obtaining the optimal phase point of the first phase-locked signal by utilizing the average data of the position corresponding to the phase-locked data with the maximum value in the first phase-locked signal;
the assumed optimal phase point setting unit is used for determining the assumed optimal phase point of the second phase-locked signal by the same step length by taking the optimal phase point of the first phase-locked signal as a reference;
a theoretical optimal phase point calculation unit, configured to obtain a theoretical optimal phase point of the second phase-locked signal by using average data of a position corresponding to phase-locked data with a largest value in the second phase-locked signal;
and the actual optimal phase point setting unit is used for approaching a bit average data from the assumed optimal phase point to the theoretical optimal phase point, and taking the bit average data as the actual optimal phase point of the second phase-locked signal.
Wherein, the second phase-locked signal is the next signal of the first phase-locked signal.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The technical content provided by the present invention is described in detail above, and the principle and the implementation of the present invention are explained by applying specific examples herein, and the description of the above examples is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method for sending current loop communication data is applied to a monitoring end and comprises the following steps:
grouping communication data to obtain a plurality of grouped data;
carrying out convolution, interleaving and spread spectrum coding on each packet data in sequence respectively to obtain a plurality of frame loads;
sequentially adding training symbols and lead codes before each frame load to obtain a plurality of communication frames;
sending a communication frame to a controller end;
the training symbols are multi-bit codes used for exciting the operational amplifier circuit to enter a working state, and the lead codes are sequences one bit more than m sequences;
the process of obtaining a plurality of frame loads by respectively performing convolution, interleaving and spread spectrum coding on each packet data in sequence comprises the following steps:
performing convolution on each grouped data by adopting a convolution code of (2, 1, 7) to obtain a plurality of convolution data;
interweaving each convolution data by adopting a 4 × N interweaving matrix to obtain a plurality of interweaving data;
carrying out spread spectrum coding on each interweaved data by adopting a Manchester coding mode to obtain a plurality of frame loads;
wherein, N is a variable step length, and the value is (byte number of convolution data 8+ 6)/2.
2. The method for transmitting current loop communication data according to claim 1, wherein the training symbol is manchester code with a length of 8 bits.
3. The method as claimed in claim 2, wherein the preamble is a 16-bit or 32-bit sequence that is one bit more than the m-sequence.
4. A current loop communication data receiving method is applied to a controller end and comprises the following steps:
receiving a current communication frame in a current signal form sent by a monitoring end;
converting the current communication frame in the form of a current signal into a voltage communication frame in the form of a voltage signal;
sampling the voltage communication frame in an oversampling mode to obtain a plurality of oversampling data;
performing moving average on the over-sampling data to obtain a plurality of average data of each signal in the voltage communication frame;
determining a plurality of phase-locked signals using a phase-lock window;
calculating a plurality of phase-locking data corresponding to each phase-locking signal;
obtaining an optimal phase point by using average data of a position corresponding to phase-locked data with the maximum value in each phase-locked signal;
locking the lead code in the voltage communication frame by using the optimal phase point;
determining a frame load in the voltage communication frame by using the lead code;
decoding the frame load to obtain grouped data;
the phase-locked window is a preset window comprising multi-bit signals, and the phase-locked data is the sum of absolute values of differences of average data of every two adjacent phase-locked signals in the same corresponding position in the phase-locked window.
5. The method for receiving current loop communication data according to claim 4, wherein the step of obtaining the optimal phase point by using the average data of the position corresponding to the most significant phase-locked data in each phase-locked signal comprises:
obtaining the optimal phase point of the first phase-locked signal by using the average data of the corresponding position of the phase-locked data with the maximum value in the first phase-locked signal;
determining the assumed optimal phase point of the second phase-locked signal by the same step length by taking the optimal phase point of the first phase-locked signal as a reference;
obtaining a theoretical optimal phase point of the second phase-locked signal by using average data of a position corresponding to phase-locked data with the largest value in the second phase-locked signal;
approaching a bit average data from the assumed optimal phase point to the theoretical optimal phase point, and taking the bit average data as an actual optimal phase point of the second phase-locked signal;
wherein the second phase-locked signal is a next signal of the first phase-locked signal.
6. A current loop communication data transmission system is applied to a monitoring end and comprises:
the communication data grouping module is used for grouping communication data to obtain a plurality of grouped data;
the frame load generation module is used for respectively carrying out convolution, interleaving and spread spectrum coding on each grouped data in sequence to obtain a plurality of frame loads;
the communication frame generation module is used for sequentially adding a training symbol and a lead code before each frame load to obtain a plurality of communication frames;
the communication frame sending module is used for sending the communication frame to the controller end;
the training symbol is a multi-bit code for exciting the operational amplifier circuit to enter a working state, and the lead code is a sequence one bit more than the m sequence;
the frame payload generation module includes:
a convolution unit for performing convolution on each grouped data by adopting a convolution code of (2, 1, 7) to obtain a plurality of convolution data;
the interleaving unit is used for interleaving each convolution data by adopting a 4 × N interleaving matrix to obtain a plurality of interleaving data;
the spread spectrum unit is used for carrying out spread spectrum coding on each interweaved data by adopting a Manchester coding mode to obtain a plurality of frame loads;
wherein, N is a variable step length, and the value is (byte number of convolution data 8+ 6)/2.
7. A current loop communication data receiving system is applied to a controller end and comprises:
the current communication frame receiving module is used for receiving a current communication frame in a current signal form sent by the monitoring end;
the voltage communication frame conversion module is used for converting the current communication frame in the current signal form into a voltage communication frame in the voltage signal form;
the voltage communication module is used for receiving a voltage communication frame and outputting a plurality of voltage communication frames;
the system comprises a moving average module, a data processing module and a data processing module, wherein the moving average module is used for carrying out moving average on oversampled data to obtain a plurality of average data of each signal in a voltage communication frame;
a phase-locking module for determining a plurality of phase-locked signals using a phase-locking window;
the phase-locked data calculation module is used for calculating a plurality of phase-locked data corresponding to each phase-locked signal;
the optimal phase point calculation module is used for obtaining an optimal phase point by utilizing the average data of the position corresponding to the phase-locked data with the maximum value in each phase-locked signal;
the lead code locking module is used for locking a lead code in the voltage communication frame by using the optimal phase point;
the frame load locking module is used for determining the frame load in the voltage communication frame by using the lead code;
a decoding module, configured to decode the frame payload to obtain packet data;
the phase-locked window is a preset window comprising multi-bit signals, and the phase-locked data is the sum of absolute values of differences of average data of every two adjacent phase-locked signals in the same corresponding position in the phase-locked window.
8. The current loop communication data receiving system of claim 7, wherein the optimal phase point calculation module comprises:
the first optimal phase point calculating unit is used for obtaining the optimal phase point of the first phase-locked signal by utilizing the average data of the position corresponding to the phase-locked data with the maximum value in the first phase-locked signal;
the assumed optimal phase point setting unit is used for determining the assumed optimal phase point of the second phase-locked signal by the same step length by taking the optimal phase point of the first phase-locked signal as a reference;
a theoretical optimal phase point calculation unit, configured to obtain a theoretical optimal phase point of the second phase-locked signal by using average data of a position corresponding to phase-locked data with a largest value in the second phase-locked signal;
an actual optimal phase point setting unit, configured to approach a bit average data from the assumed optimal phase point to the theoretical optimal phase point, and use the bit average data as an actual optimal phase point of the second phase-locked signal;
wherein the second phase-locked signal is a next signal of the first phase-locked signal.
CN202011529424.9A 2020-12-22 2020-12-22 Current loop communication data sending and receiving method and system Active CN112737730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011529424.9A CN112737730B (en) 2020-12-22 2020-12-22 Current loop communication data sending and receiving method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011529424.9A CN112737730B (en) 2020-12-22 2020-12-22 Current loop communication data sending and receiving method and system

Publications (2)

Publication Number Publication Date
CN112737730A CN112737730A (en) 2021-04-30
CN112737730B true CN112737730B (en) 2022-12-02

Family

ID=75604022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011529424.9A Active CN112737730B (en) 2020-12-22 2020-12-22 Current loop communication data sending and receiving method and system

Country Status (1)

Country Link
CN (1) CN112737730B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660064B (en) * 2021-09-15 2023-06-16 沈阳飞机设计研究所扬州协同创新研究院有限公司 Multi-data packet-based joint two-dimensional interleaving coding method suitable for power line communication system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1951031A (en) * 2004-03-05 2007-04-18 高通股份有限公司 Transmit diversity and spatial spreading for an ofdm-based multi-antenna communication system
JP2009201083A (en) * 2008-01-22 2009-09-03 Nippon Telegr & Teleph Corp <Ntt> Radio transmitting apparatus, radio receiving apparatus, radio communication system, radio communication method, radio transmission method, and radio reception method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519750B2 (en) * 2006-07-18 2009-04-14 Cortina Systems, Inc. Linear burst mode synchronizer for passive optical networks
US8175118B2 (en) * 2008-05-15 2012-05-08 Marvell World Trade Ltd. Efficient physical layer preamble format
US10674459B2 (en) * 2017-03-10 2020-06-02 Analog Devices Global Method of operating a receiver to process a preamble of a data packet, and to a receiver operating in accordance with the method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1951031A (en) * 2004-03-05 2007-04-18 高通股份有限公司 Transmit diversity and spatial spreading for an ofdm-based multi-antenna communication system
JP2009201083A (en) * 2008-01-22 2009-09-03 Nippon Telegr & Teleph Corp <Ntt> Radio transmitting apparatus, radio receiving apparatus, radio communication system, radio communication method, radio transmission method, and radio reception method

Also Published As

Publication number Publication date
CN112737730A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US20160254696A1 (en) Wireless power transfer in-band communication system
US8432889B2 (en) Method and apparatus for configuring protocol header in wireless communication system
KR101603677B1 (en) System and method for pseudorandom permutation for interleaving in wireless communications
EP1331780A1 (en) Method and apparatus for peak power reduction in OFDM communications
US20140269886A1 (en) Wireless power transfer in-band communication system
US8867654B2 (en) Transmission device, communication system, transmission method and program
WO2002039599A2 (en) Data communication over power lines
CN102113209B (en) Combined dual feed-forward and feedback analog and digital automatic gain control for broadband communication
CN112737730B (en) Current loop communication data sending and receiving method and system
JP2008029010A (en) Point-to-point link using partial transmit time periods on separate transmit and receive frequencies
JP4466670B2 (en) Data transmission method
JP4586816B2 (en) Data transmission method and data transmission apparatus
JP2008244884A5 (en)
JP4733112B2 (en) Method and apparatus for reducing unwanted amplitude modulation
JP2005012411A (en) Radio communication apparatus
JP4115579B2 (en) Data transmission method and apparatus
US20140029697A1 (en) GMSK-Based Modulation in a Wireless Local Area Network
JPH08130541A (en) Method for transmitting data
JP2001069181A (en) Digital data transmitting method and device to carry out the same
US6006353A (en) Error correction method for radio communication and radio communication apparatus
CN114826856B (en) Wireless communication method and device based on carrier modulation and communication terminal
WO2008100496A1 (en) Preferential transmission of non-coded data over forward error correction coded data for efficient power management of a remote device
SUNKARA MIoTy Overview: a Mathematical Description of the Physical layer
Yang et al. NuWa: off-state tolerant backscattering system with uncontrolled excitation traffics
CN104038236A (en) Polarization structure transmitter based frequency processing device and method

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