Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not paid
Embodiment, belongs to the scope of protection of the invention.
One kind is based on G3-PLC frequency domain ROBO coded modulation demodulation methods, and the processing of baseband signal is mainly comprising 5 steps:
(1) power line channel specificity analysis and Channel Modeling is set up;(2) to G3-PLC standard physical layer scale-model investigations;(3)
Ofdm system is built;(4) various coded systems are increased according to G3-PLC standards on the basis of (three);(5) on the basis of (four)
Upper increase frequency domain ROBO codings.As shown in figure 4, specifically implementing according to following steps:
Step one:According to power line channel transmission characteristic, power line channel model is set up.
The present invention is modeled using top down method to power line channel, and multinomial is expressed as:
The channel model can be stated from three parts by formula (1):
(1) weight coefficient gn(f), and the i-th paths the more big then g of decaynIt is smaller, wherein, f represents to show frequency;
(2) fading factor exp (- (α0+α1·fl)dn), wherein:α0And α1Attenuation parameter is represented, l represents decay factor
Index, dnRepresent the length in nth bar path;
(3) delay componentWherein c0For the light velocity, εrFor dielectric constant.
To the polynomial module type analysis of power line channel, as a result show:Power line channel has certain multipath fading special
Property, therefore, effective coded system is needed during using power line as telecommunication media to overcome power line channel characteristic to communication process
Influence.
Step 2:According to the power line channel model set up, the existing data frame structure of G3-PLC standards is divided
Analysis, builds the physical layer model of G3-PLC communication systems, and the signal frame structure of the model is determined.
As indicated with 2, the data frame structure of G3-PLC standards is mainly made up of 3 parts:
(1) leading (Preamble) part:The information that Preamble parts are included in data frame structure is mainly used in control
The synchronization of signal receiving end and automatic growth control (Automatic Gain Control, AGC).
(2) frame control head (FCH) part:In order to ensure that signal is correctly modulated demodulation, G3-PLC in communication process
The information that FCH includes is relied primarily in the data frame structure of standard to be controlled.
(3) Data parts:Data parts are the communication information sent.
In order to realize in the reliable communication of power line, the data frame structure of G3-PLC standards except using specially
Outside Preamble and FCH are controlled to synchronization, AGC and modulation demodulation system respectively, certain length is added in each intersymbol
Cyclic prefix (Cyclic Prefix, CP) be used for reduce interchannel carrier-in-interference ICI;In addition, each intersymbol adds protection
Interval is used for resisting the influence of the multipath delay characteristic of power line channel, and then reduces intersymbol interference ISI.Generally ensure each
The cyclic prefix CP of certain length is chosen in the orthogonality of intercarrier, G3-PLC standards as protection interval, in order to prevent frequency spectrum
Leakage, considers in the data frame structure to carry out windowing process to signal, while generating certain overlapping.
Rigorous signal data frame structure reduces influence of the power line channel characteristic to communication process in G3-PLC standards,
According to the frame structure of G3-PLC standards, G3-PLC alliances determine the physical layer model of G3-PLC standards, and Fig. 3 is in G3-PLC marks
The physical layer model after frequency domain ROBO codings is loaded on the basis of standard.Frequency domain ROBO codings are loaded on the basis of G3-PLC standards
Physical layer model afterwards includes power line, sending module and receiving module, and sending module includes Data transmitting elements, FCH and sent
Unit and Preamble transmitting elements, Data transmitting elements include CRC-16 verifications, scrambler, RS codings, Viterbi coding, friendship
Knit, modulate mapping, frequency domain ROBO codings and inverse Fourier transform, data carry out CRC-16 verifications, scrambler, RS codings, dimension successively
Spy is than coding, intertexture, modulation mapping, frequency domain ROBO codings and inverse Fourier transform.FCH transmitting elements include Viterbi coding,
Frequency domain ROBO codings, intertexture and modulation mapping and inverse Fourier transform, FCH carry out Viterbi and encode the domain ROBO phases that are connected successively
Connection, intertexture, modulation mapping and inverse Fourier transform.Preamble transmitting elements include inverse Fourier transform and adding window, leading
Inverse Fourier transform and adding window are carried out successively.Data transmitting elements and FCH transmitting elements are combined, then by adding before circulation
Sew and be combined after windowing process with Preamble transmitting elements, eventually pass AFE(analog front end) amplifilter AFE and coupling
Transformer is sent to power line, and AFE represents AFE(analog front end), and it act as:The processing procedure of analog signal, signal amplification.It is above-mentioned
Modulation mapping includes DBPSK modulation or DQPSK modulation.Receiving module be sending module inverse process, including FCH separative elements and
Data separating unit, FCH separative elements include going cyclic prefix, Fourier transformation, demodulation, deinterleaving, solution frequency domain ROBO codings,
Viterbi decoding, data separating unit include going cyclic prefix, Fourier transformation, demodulation, solution frequency domain ROBO codings, deinterleave,
Viterbi decoding, RS decodings, descrambling code and CRC-16 verifications.Wherein, cyclic prefix, Fourier transformation, demodulation, solution frequency domain are removed
ROBO codings, deinterleaving, RS decodings and descrambling code are to add cyclic prefix, inverse Fourier transform, modulation mapping, frequency domain ROBO respectively
Coding, interweave, RS coding and scrambler inverse process.The data received from power line are filtered by receiving module, AGC and synchronization
Sent after processing to FCH separative elements and data separative element, FCH separative elements isolate FCH, data separating unit sub-department
Data.
The coded system of G3-PLC standards is analyzed according to this physical layer model:Using power line as boundary, top half
To send the cataloged procedure of client information, transmitting terminal is made up of the part of Data, FCH, Preamble tri-, in transmitting terminal, baseband signal
Need (to verify using CRC-16 herein) by CRC, it is therefore an objective to judge the data received and whether send data
It is identical;Scrambler process reduces the number of continuously " 0 " and " 1 ", it is ensured that the extraction of receiving terminal bit synchronization;Data are encoded through RS
Process equivalent to forward error correction, coded treatment is carried out to the signal of input, encoding to be combined with Viterbi using RS codings makes
System has good error correcting capability;Data after coding are interleaved, thus it is possible to vary the transmission sequence of data flow, burst is wrong
Randomization by mistake, improves the ability of the error correction of system;G3-PLC standards support two kinds of modulation systems of DBPSK and DQPSK, after optimization
G3-PLC standards modulation system is set to optionally;Data increase frequency domain ROBO cataloged procedures after modulated, are used
To improve the accuracy of signal transmission;IFFT conversion is carried out after frequency domain ROBO codings, in order to eliminate ICI and ISI, in addition it is also necessary to right
Signal adds cyclic prefix, windowing process;In signal sending end, FCH includes the necessary information that current data frame is correctly demodulated, accordingly
The need for FCH carry out frequency domain robust, FCH, data bit are cascaded with leading afterwards, final data passes through AFE(analog front end)
Amplifilter and coupling transformer, are transmitted to power line.Fig. 3 the latter half is receiving module, and the flow of receiving module is
The inverse operation of sending module, original signal is obtained after the data that receive are demodulated.
Step 3:The modulation and demodulation algorithm on OFDM in G3-PLC standards is studied, and system is entered using OFDM modulation
Row is built.
OFDM modulation is exactly during channel is divided into some subchannels, information transfer, by the serial number of high-speed transfer
Parallel low rate data streams are turned to according to circulation, and are modulated in orthogonal subchannel.Due to the orthogonality of subcarrier, OFDM modulation
Symbol the availability of frequency spectrum can be improved with spectrum overlapping.In an ofdm system, N ways signal sum is:
Wherein, t represents time, xk(t) the kth way signal in ofdm system, B are representedkThe amplitude of kth road signal is represented,
fkRepresent the frequency of kth road signal, ΦkRepresent the phase of kth road signal.
The signal of OFDM modulation uses multi-system, multi-carrier frequency, the method for parallel transmission, and its main flow is as shown in figure 1, two
System input signal after serial/parallel conversion by DBPSK or DQPSK modulation after carry out inverse Fourier transform, then by simultaneously/
D/A conversion is carried out after string conversion, up-conversion is finally carried out and obtains ofdm signal.The signal modulated by OFDM can mainly be realized
Function:
(1) element duration of transmission is made greatly to increase, so as to improve the ability of the anti-multipath transmission of signal;
(2) influence of intersymbol interference is overcome:During using calculating IDFT, the method for adding cyclic prefix, in OFDM adjacent codes
Increase a protection interval between member, separate adjacent code element.
Step 4:The various encoding operations in increase G3-PLC standards on the basis of OFDM modulating systems, obtain OFDM letters
Number.
Formula (2) can write realization according to matlab language, obtain ofdm signal, and basis is according to G3-PLC herein
CRC-16, scrambler, RS in standard, Viterbi, interweaving encoding principle, are realized with matlab language, make ofdm signal in noise
The Immunity Performance having had in the case of interference.
Step 5:The ofdm signal loading frequency domain ROBO codings obtained to step 4.
Frequency domain ROBO coding principle be:
(1) position encoded in G3-PLC medium standard frequencies domain ROBO is determined;As shown in figure 3, sending end signal carries out inverse Fu
Before vertical leaf transformation IFFT, ROBO codings are carried out to the signal in frequency domain, solution ROBO behaviour is carried out after FFT in receiving end signal
Make.
(2) frequency domain ROBO codings are carried out to sending end signal;Its algorithm principle is as follows:
Known by parameter setting (as shown in table 1) in G3-PLC standards using 256 subcarriers in G3-PLC standards, wherein having
It it is 36 with subcarrier number, the data-signal for choosing useful subcarrier carries out frequency domain ROBO codings.
Table 1G3-PLC physical layer parameters
1. before frequency domain ROBO codings are carried out, because G3-PLC standards are modulated by OFDM modulation to signal, because
This needs the data matrix that the stream compression with communication information is changed to parallel transmission, is set according to G3-PLC physical layer parameters
Put, the partial information is transmitted by 36 useful subcarriers.
2. in G3-PLC standards, according to actual measurement power line noise characteristic, frequency range CELENEC-A wave bands 35.9~
Noise disturbs smaller to signal in 90.6kHz, the frequency range the 23rd~58 subcarrier of correspondence, if the portion subcarriers information square
Battle array D is represented, this partial information is carried out into frequency domain ROBO codings, and its coding principle is as shown in Figure 5.The D that matrix is chosen in Fig. 5 is a certain
Arrange (D1,j~D36,j), the signal of 9 subcarriers is extracted every time, and this partial information parallel arranged carries out the column data information
3 same operations, and as shown in Figure 5, to the robust operation for a certain row for completing matrix D.By each row of matrix D by same
The coded system of sample is encoded, it is assumed that the data information matrix D size for carrying out frequency domain ROBO codings is:P × Q, by this portion
Point information obtains matrix for A1 after frequency domain ROBO codings, and its size is:P×4Q.
3. the conjugation symmetrical matrix that matrix A 2 is matrix A 1 is defined, i.e.,:
A237-p,q=A1* p,q(1≤p≤36,1≤q≤m) (3)
Wherein:P represents p-th of useful subcarrier;Q represents q-th of OFDM symbol;The OFDM symbol number that m represents total (is adjusted
When mode processed is DBPSK, m=256;When modulation system is DQPSK, m=256 × 2).
4. B is assumedk,qFor 256 × m null matrix (1≤k≤256,1≤q≤m), the matrix encoded by frequency domain ROBO
Bk,qIt can be expressed as:
Matrix B after changek,qIt is exactly the data information matrix after frequency domain ROBO codings.
5. the data message after frequency domain ROBO code changes carries out IFFT computings again, in an ofdm system, N ways letter
Number sum is:
Wherein, Bk,qComplex matrix is represented, is represented in kth subchannels, the multiple input data of q-th OFDM symbol.
(3) receiving module carries out solution ROBO operations to signal;Solution robust operation is carried out after signal is demodulated, will be received
To data step-by-step be compared, when receiving 3 " 0 ", then the data received are designated as " 0 ";When receiving 3 " 1 ",
The data received are designated as " 1 ";When receiving 2 " 0 " or 2 " 1 ", the data received are designated as " 0 " or " 1 ".By " few
Number is obeyed most " principle, the larger data of probability of occurrence are selected as the data message of the receiving terminal data bit.
" step-by-step is compared ":Due to sending end signal by ROBO codings, coding principle is as shown in figure 4, subcarrier
Information correspondence in serial number 1~9,10~18,19~27,28~36 is identical, and signal, can be by channel circumstance after channel
Influence, in receiving terminal it needs to be determined that the 1st~9,10~18,19~27, the information on 28~36 subcarriers, and by bit comparison.Example
Such as:Choose in Fig. 4 first ofdm signal illustrate, the information on the 1st subcarrier of transmitting terminal with the 10th, the 19th, the
Information on 28 subcarriers is identical, uses D1Represent, after channel, information on the 1st subcarrier of receiving terminal is with the 10th, the
19th, the information on the 28th subcarrier uses D respectively11、D12、D13、D14Represent, if receiving terminal D11、D12、D13、D14In at least three
Individual " 0 ", the then information received is " 0 ";If at least three " 1 ", the information received is " 1 ";When receiving 2
When " 0 " or 2 " 1 ", the data received are designated as " 0 " or " 1 ", so by being achieved that solution robust operation by bit comparison.
The present invention is windows7/32 bit machines in system environments, and software environment is under matlab2012a version environment
Carry out simulating, verifying;All emulated from step one to step 5 using this environment, the form of function write using matlab,
Subfunction is nested into principal function using matlab language and realizes whole system function.The present invention passes through emulation in step one
The reasonability for the power line channel model set up is verified, if unreasonable continue to study the new electric power of power line channel characteristic progress
The foundation of line channel model.The reasonability and correctness by emulation experiment checking modulation and demodulation algorithm are needed in step 3, such as
Fruit performance does not reach requirement and continues to build G3-PLC standards progress OFDM Systems.Needed in step 4 real by emulation
Whether the systematic function tested after test code is improved.Need to verify the effective of the invention by experiment simulation in step 5
Property.
As a result show, when the modulation system of system is DBPSK, simulation result such as Fig. 6.With not adding RS codings in G3 standards
Compare, error rate of system is 10-3When, system obtains about 1dB gain in G3 standards plus after RS codings;Frequency is loaded in G3 standards
After domain ROBO codings, when error rate of system is 10-2When, compared with adding the system that RS is encoded, system obtains about 3dB gain;
Under same case, after signal loading frequency domain ROBO codings compared with signal does not add RS to encode, system obtains about 4dB gain.
When the modulation system of system is DQPSK, simulation result such as Fig. 7.Systematic comparison with not adding RS codings, the bit error rate
About 10-3When, plus system about obtains 1dB gain after RS codings;With adding RS encoding ratios compared with the bit error rate is about 10-2
When, signal add frequency domain ROBO encode after system about obtain 2dB gain;RS is not added to be compared with signal, the bit error rate is about 10-2
When, system about obtains 3dB gain after increase frequency domain ROBO is encoded.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.