[summary of the invention]
Technical problem to be solved by this invention is: make up above-mentioned the deficiencies in the prior art, propose a kind of signal frame generating method of power-line carrier communication system, its accuracy of signal frame generated is high, noise immunity strong and can adapt to country variant and area to the requirement of power line carrier frequency range.
Technical problem of the present invention is solved by following technical scheme:
A signal frame generating method for power-line carrier communication system, described signal frame comprises synchronizing signal frame, control signal frame and data frame signal; The hop count of described synchronizing signal frame is N, signal amplitude is B, every segment signal modulating time is T
0, frequency band range is f
1~ f
2synchronizing signal; The hop count of described control signal frame is H, and signal amplitude is B1, every segment signal modulating time is T1
0, frequency band range is f
3~ f
4control signal; It is characterized in that: comprise the following steps: 1) generate described synchronizing signal frame, comprise 1-1) introduce the first modulation signal P that code length is N, P={a
0, a
1..., a
n-1, wherein, a
i=± 1; 1-2) introduce the first linear FM signal L (t):
in formula, A is the signal amplitude of described linear FM signal; T is the time width of described linear FM signal;
For rectangular function;
initial time phase place for described linear FM signal: f
0for the initial frequency of described linear FM signal; μ is the chirp rate of described linear FM signal; The parameter of described first linear FM signal L (t) 1-3) is set: arrange A=B, arrange f
0=f
1, T=T is set
0, arrange
1-4) use described first linear FM signal after described first modulation signal modulation parameters, obtain synchronizing signal frame S (t), its expression formula is:
2) described control signal frame is generated: comprise 2-1) introduce long the second modulation signal P1 for H of K group code, P1={P1
0, P1
1..., P1
k-1, wherein, P1
i={ b
i0, b
i1..., b
i (H-1), b
ij=± 1; The value of K is the kind number of the control mode that in described communication system, control information can be combined into; K kind control mode and described K group modulation signal are set up one_to_one corresponding; 2-2) introduce the second linear FM signal L1 (t):
in formula, A1 is the signal amplitude of described second linear FM signal; T1 is the time width of described second linear FM signal;
For rectangular function;
initial time phase place for described second linear FM signal: f
5for the initial frequency of described second linear FM signal; μ 1 is the chirp rate of described second linear FM signal; The parameter of described second linear FM signal L1 (t) 2-3) is set: arrange A1=B1, arrange f
5=f
3, T1=T1 is set
0, arrange
2-4) use corresponding to a kind of control mode one group of second modulation signal P1 of the current use of described communication system
idescribed second linear FM signal after modulation parameters, obtain control signal Q (t), its expression formula is:
3) described data frame signal is generated: 3-1) introduce M group code length for being the 3rd modulation signal P2 of S,
P2={P2
0, P2
1..., P2
m-1, wherein, P2
i={ c
i0, c
i1..., c
i (S-1), c
iz=± 1; 3-2) bit data flow waiting for transmission is one group according to every X bit and sets up mapping relations one to one with described M group the 3rd modulation signal; Wherein, M=2
x; 3-3) introduce third linear FM signal L2 (t):
in formula, A2 is the signal amplitude of described third linear FM signal; T2 is the time width of described third linear FM signal;
For rectangular function;
initial time phase place for described third linear FM signal: f
8for the initial frequency of described third linear FM signal; μ 2 is the chirp rate of described third linear FM signal; The parameter of described third linear FM signal L2 (t) 3-4) is set: arrange A2=B2, arrange f
8=f
6, T2=T2 is set
0, arrange
3-5) use the described third linear FM signal after the 3rd modulation signal modulation parameters corresponding to bit data flow waiting for transmission, obtain data-signal F (t), its expression formula is:
; 4) by described step 1) the synchronizing signal frame obtained, described step 2) the control signal frame and the described step 3 that obtain) data frame signal that obtains is combined into described signal frame.
In preferred technical scheme,
Described step 1) in also comprise step 1-5), optimized synchronization signal: using step 1-4) in the synchronizing signal that obtains m point of foremost be increased to described step 1-4 as prefix) in the synchronizing signal that obtains foremost, the synchronizing signal increased after prefix is the synchronizing signal after optimization; M is positive integer, and the signal that value is no more than described synchronizing signal is counted.After such increase prefix, optimize the synchronizing signal obtained, not only comprise element, also comprise a segment prefix signal, the demand that in communication system, receiving terminal AGC power controls can be met, guarantee the stability of the power receiving synchronizing signal.
Further in preferred technical scheme,
Described step 1) in step 1-3) in also comprise parameters
linear FM signal is set like this, makes it in the initial time phase place of t=0 to be
amplitude is zero, can guarantee that the initial time amplitude of the synchronizing signal generated is started from scratch, to reduce the amplitude impulse response of hardware.
Described step 1) middle step 1-1), described first modulation signal is chosen by the truncated code of pseudo random sequence, Barker code, pseudo random sequence or the truncated code of Barker code.
Described step 2) in step 2-3) in also comprise parameters
Described step 2) middle step 2-1), described second modulation signal is chosen by the truncated code of pseudo random sequence, Barker code, pseudo random sequence or the truncated code of Barker code.
Described step 3) in form described data frame signal by least one OFDM modulation data block.
Described step 3-4) in also comprise parameters
Described 3rd modulation signal is chosen by the truncated code of pseudo random sequence, Barker code, pseudo random sequence or the truncated code of Barker code.
The beneficial effect that the present invention is compared with the prior art is:
The signal frame generating method of power-line carrier communication system of the present invention, synchronizing signal frame, control signal frame and data frame signal in signal frame composition are all utilize pseudo random sequence or Barker code or its truncated code to make modulation signal to carry out modulation to linear FM signal and obtain, because pseudo random sequence, Barker code have good correlated performance, and linear FM signal also has good auto-correlation and cross-correlation performance, synchronizing signal, control signal and the data-signal generated is made also to have good correlation.The good correlation of synchronizing signal makes synchronizing signal have to guarantee the function of receiving terminal and transmitting terminal data symbol accurate synchronization, and the good correlation of control signal also guarantees the control information that can demodulate system after receiving terminal receives control signal accurately.Meanwhile, the good correlation of data-signal also ensure that the correct demodulation of receiving terminal data, achieves the high reliability of transfer of data.。On the other hand, linear FM signal is similar to general sinusoidal signal, there is constant envelope amplitude, the synchronizing signal of generation, control signal, data-signal is made also to have constant envelope amplitude, also the signal frame namely obtained has constant envelope amplitude, changes in amplitude is more regular, and not too responsive to amplitude amplitude limit, noise immunity is strong.Moreover, in generation method, synchronizing signal, control signal, the band limits of data-signal is relevant with the optimum configurations of linear FM signal, need the synchronizing signal generating which kind of band limits, control signal and data-signal, correspondence arranges the parameter of linear FM signal, the synchronizing signal of generation need be regulated, during the band limits of control signal and data-signal, amendment optimum configurations, make synchronizing signal, the band limits of control signal and data-signal facilitates adjustable, also namely the band limits of signal frame is adjustable, the requirement to power line carrier frequency range with satisfied adaptation country variant and area.
[embodiment]
Contrast accompanying drawing below in conjunction with embodiment the present invention is described in further details.
As shown in Figure 1, be the signal frame generating method of power-line carrier communication system in this embodiment, comprise 4 steps: 1) generate synchronizing signal frame; 2) control signal frame is generated; 3) data frame signal is generated; 4) the synchronizing signal frame obtained, control signal frame, data frame signal are combined into signal frame.The signal frame structure schematic diagram obtained as shown in Figure 2.Wherein, the hop count of synchronizing signal frame is N=7, signal amplitude is B=1, every segment signal modulating time is T
0=128 × 10
-6s, frequency band range are synchronizing signal (the i.e. f of 10 ~ 50kHz
1=10kHz, f
2=50kHz).The hop count of control signal frame is H=16, and signal amplitude is B1=1, every segment signal modulating time is T1
0=67 × 10
-6s, frequency band range are control signal (the i.e. f of 10 ~ 50kHz
3=10kHz, f
4=50kHz).
Above-mentioned steps 1) in generate the concrete steps of synchronizing signal frame as shown in Figure 3:
Step 101), introduce the first modulation signal P that code length is N=7, P={a
0, a
1..., a
n-1, wherein, a
i=± 1.Need the synchronizing signal length generated to be 7 in this embodiment, the first modulation signal length namely chosen is also 7, using Barker code as modulation signal in this embodiment, and P={+1 ,+1 ,+1 ,-1 ,-1 ,+1 ,-1}.It should be noted that, the first modulation signal has P={a
0, a
1..., a
n-1, wherein, a
ithe form of=± 1 this expression formula, therefore, also can be chosen by the truncated code of the truncated code of pseudo random sequence, pseudo random sequence or Barker code and obtain.
Step 102), introduce the first linear FM signal L (t):
Wherein, A is the signal amplitude of the first linear FM signal; T first is the time width of linear FM signal;
For rectangular function;
be the initial time phase place of the first linear FM signal: f
0it is the initial frequency of the first linear FM signal; μ is the chirp rate of linear FM signal described in first.
Step 103), the parameter of line primary FM signal L (t) is set: arrange A=B=1, f is set
0=f
1=10kHz, arranges T=T
0=128 × 10
-6s, is arranged
and
arbitrary value in desirable 0-π, gets in this embodiment
the first linear FM signal is made in the initial time phase place of t=0 to be
amplitude is zero, guarantees that the initial time amplitude of the synchronizing signal generated is started from scratch, to reduce the amplitude impulse response of hardware.The oscillogram of the first linear FM signal after parameters as shown in Figure 4.
Step 104), use the first linear FM signal after the first modulation signal modulation parameters, obtain synchronizing signal S (t),
The first linear FM signal that namely the synchronizing signal S (t) obtained is modulated by N section+1 or-1 forms, and its structural representation as shown in Figure 5.From above-mentioned expression formula, the hop count of synchronizing signal is 7, signal amplitude is B=1, every segment signal modulating time is T
0=128 × 10
-6s, frequency band range are f
1~ f
2, i.e. 10 ~ 50kHz, meets design requirement.
For optimized synchronization signal, can increase prefix in the synchronizing signal front end obtained, m the point getting foremost in synchronizing signal is increased to synchronizing signal foremost as prefix, carrys out optimized synchronization signal with this.The structural representation optimizing postamble as shown in Figure 6, puts by m the prefix formed by one section foremost at synchronizing signal S (t).Wherein, m is positive integer, and the signal that value is no more than described synchronizing signal is counted.Concrete value can consider according to the requirement of receiving terminal AGC power control requirements and overhead.Synchronizing signal after optimization, not only comprises element, also comprises a segment prefix signal, can meet the demand that in communication system, receiving terminal AGC power controls, and guarantees the stability of the power receiving synchronizing signal.In this embodiment, get m=200, as shown in Figure 7, spectrogram as shown in Figure 8, can obtain the oscillogram of the optimized synchronization signal obtained from spectrogram, and its spectral range remains 10 ~ 50kHz.
The synchronizing signal generated by said method, utilizes the signal as shown in expression formula P to modulate linear FM signal L (t), due to such as P
nsignal shown in expression formula has good correlation, and linear FM signal L (t) also has good auto-correlation and cross-correlation performance, the synchronizing signal S (t) generated is made also to have good correlation, and signal has good correlation could be accurately identified out at receipt of subsequent end, for synchronization timing provides accurate and reliable position, make receiving terminal and transmitting terminal synchronously, namely synchronizing signal has the function that good correlation just can realize making receiving terminal and transmitting terminal data symbol accurate synchronization.
On the other hand, first linear FM signal L (t) is similar to general sinusoidal signal, there is constant envelope amplitude, the synchronizing signal S (t) generated is made also to have constant envelope amplitude, changes in amplitude is more regular, not too responsive to amplitude amplitude limit, noise immunity is strong.As shown in Figure 9, under the state of signal-to-noise of-2dB, receiving terminal receive synchronizing signal correlation peak schematic diagram.Therefrom can find out, even if under the adverse circumstances of-2dB, the correlation peak of receiving terminal synchronizing signal still clearly, shows that synchronizing signal noise immunity is very strong.
Moreover, in generation method, the band limits of synchronizing signal S (t) is relevant with the optimum configurations of the first linear FM signal L (t), need the synchronizing signal S (t) generating which kind of band limits, correspondence arranges the parameter of the first linear FM signal L (t), when therefore needing the band limits regulating the synchronizing signal S (t) generated, by means of only shirtsleeve operation, amendment optimum configurations, the band limits of synchronizing signal S (t) can be made to facilitate adjustable, the requirement to power line carrier frequency range with satisfied adaptation country variant and area.
Above-mentioned steps 2) in generate the concrete steps of control signal frame as shown in Figure 10:
Step 201), introduce long the second modulation signal P1 for H=16 of K=6 group code, P1={P1
0, P1
1..., P1
k-1, wherein, P1
i={ b
i0, b
i1..., b
i (H-1), b
ij=± 1.Need the control signal length generated to be 16 in this embodiment, the second modulation signal length namely chosen is also 16, and using Barker code as the second modulation signal in this embodiment, needs will explanatorily, and the second modulation signal has P1
i={ b
i0, b
i1..., b
i (H-1), b
ijthe form of=± 1 this expression formula, therefore, also can be chosen by the truncated code of the truncated code of pseudo random sequence, pseudo random sequence or Barker code and obtain.In this embodiment, in communication system, there are 2 control elements, data modulation and data coding mode.And data modulation optional manner has 3 kinds, data coding mode optional manner has 2 kinds, and the control mode obtained after combination like this amounts to 6 kinds, as shown in the table.6 kinds of control modes and above-mentioned 6 group of second modulation signal P1 are set up one_to_one corresponding.This is also the reason of getting K=6.
Control mode and modulation signal mapping relations table
Step 202), introduce the second linear FM signal L1 (t):
Wherein, A1 is the signal amplitude of the second linear FM signal; T1 is the time width of the second linear FM signal;
For rectangular function;
be the initial time phase place of the second linear FM signal: f
5it is the initial frequency of the second linear FM signal; μ 1 is the chirp rate of the second linear FM signal.
Step 203), the parameter of the second linear FM signal L1 (t) is set: arrange A1=B1=1, f is set
5=f
3=10kHz, arranges T1=T1
0=67 × 10
-6s, is arranged
and
arbitrary value in desirable 0-π, gets in this embodiment
the second linear FM signal is made in the initial time phase place of t=0 to be
amplitude is zero, guarantees that the initial time amplitude of the control signal generated is started from scratch, to reduce the amplitude impulse response of hardware.The oscillogram of the second linear FM signal after parameters as shown in figure 11.
Step 204), use corresponding to a kind of control mode one group of second modulation signal P1 of the current use of communication system
ithe second linear FM signal after modulation parameters.Wherein, suppose the 2nd kind of control mode in table in the current use of power-line carrier communication system in this embodiment, what namely select is this control mode of data modulation 2+ data coding mode 1, then now select second group of corresponding with it PN code P1
2={-1,1 ,-1 ,-1 ,-1 ,-1 ,-1,1,1 ,-1 ,-1,1 ,-1,1,1 ,-1} as modulation signal.Namely P1 is used
2modulate the second linear FM signal L1 (t) as the second modulation signal, obtain control signal Q (t), its expression formula is:
The linear FM signal that namely the control signal Q (t) obtained is modulated by H section+1 or-1 forms, and its structural representation as shown in figure 12.From above-mentioned expression formula, the hop count of control signal is H=16, signal amplitude is B1=1, every segment signal modulating time is T1
0=67 × 10
-6s, frequency band range are f
3~ f
4, i.e. 10 ~ 50kHz, meets design requirement.The oscillogram of gained control signal Q (t) is shown in Figure 13.
As shown in figure 14, be second group of modulation signal P1 in this embodiment mapping table
2the coefficient correlation figure of modulation signal is respectively organized with other, as we know from the figure, second group of modulation signal P1
2the coefficient correlation respectively organizing modulation signal with other is all very little, is only 1 with the coefficient correlation of himself, therefore visible second group of modulation signal P1
2have good correlation, like this, the coefficient correlation that receiving terminal respectively organizes modulation signal according to the control signal received and other is just known, and that control signal is selected is second group of modulation signal P1
2, thus can judge that namely the control information that the control signal that transmitting terminal sends is carried is this control mode of data modulation 2+ data coding mode 1 accurately.
Above-mentioned steps 3) in generate the flow chart of data-signal frame method as shown in figure 15, comprise the following steps:
Step 301) introduce the 3rd modulation signal P2 of M=4 group code long S=15, P2={P2
0, P2
1..., P2
m-1, wherein, P2
i={ c
i0, c
i1..., c
i (S-1), c
iz=± 1, the data length signal generated is needed to be 15 in present embodiment, namely the 3rd modulation signal chosen code length be also 15, this embodiment is using pseudo random sequence as the 3rd modulation signal, it should be noted that, as long as the 3rd modulation signal meets above-mentioned expression formula, the truncated code of pseudo random sequence, bake sequence or its truncated code therefore also can be selected as the 3rd modulation signal.
Step 302) by bit data flow waiting for transmission according to every X bit be one group with described M group the 3rd modulation signal set up mapping relations one to one; Wherein, M=2
x; Its mapping relations table is as following table:
Present embodiment is 00,01,10,11 to be described for data to be transmitted, now X=2, itself and step 301) in the mapping relations of the 3rd modulation signal be:
Bit data b
2b
1 |
3rd modulation signal |
00 |
-1,1,-1,-1,-1,-1,1,-1,1,1,1,1,1,-1,-1 |
01 |
-1,-1,1,-1,-1,-1,-1,1,-1,1,1,1,1,1,-1 |
10 |
1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,1,1,1 |
11 |
-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,1,1 |
Suppose that now power-line carrier communication system sends Bit data 01, namely now should select second group of pseudo noise code, P2
1=-1,1 ,-1 ,-1,-1 ,-1,1,-1,1,1,1,1,1,-1 ,-1 as modulation signal, and the correlation properties coefficient of this group modulation signal and each group of modulation signal as shown in figure 16, can find out, the coefficient correlation of second group of modulation signal and other various modulation signals is all very little, has good cross correlation as seen between them.Like this, the carrier data signal of receiving terminal according to reception and the correlation of various modulation signal, just can judge the modulation signal that transmitting terminal sends accurately, and then demodulate the original bit data of system transmission reliably according to form 2.
Step 303) introduce third linear FM signal L2 (t):
in formula, A2 is the signal amplitude of described third linear FM signal; T2 is the time width of described third linear FM signal;
For rectangular function;
initial time phase place for described third linear FM signal: f
8for the initial frequency of described third linear FM signal; μ 2 is the chirp rate of described third linear FM signal;
Step 304) parameter of described third linear FM signal L2 (t) is set: A2=B2=1 is set, f is set
8=f
6=40kHz, f
7=100kHz, T2=T2
0=65 × 10
-6s,
and
can remove the arbitrary value in 0 ~ π in theory, present embodiment is got
third linear FM signal is made in the initial time phase place in t=0 moment to be
namely amplitude is zero, to reduce the amplitude impulse response of hardware.The oscillogram of the third linear FM signal after parameters as shown in figure 17.
Step 305) use the 3rd modulation signal corresponding to Bit data waiting for transmission to modulate the third linear FM signal after parameters.That is: by second group of pseudo noise code, P2
1=-1,1 ,-1 ,-1 ,-1 ,-1,1 ,-1,1,1,1,1,1 ,-1 ,-1, modulation linearity FM signal L2 (t), obtains data-signal F (t), and its expression formula is:
The linear FM signal that data-signal F (t) obtained is modulated by S section+1 or-1 forms.As can be seen from above-mentioned expression formula, calcining S=15, the signal amplitude B2=1 of control signal, the modulating time of every segment signal are T2
0=65 × 10
-6s, frequency band range are f6 ~ f7, i.e. 40kHz ~ 100kHz, meet design requirement, and Figure 18 is the oscillogram of the data obtained signal F (t), and Figure 19 is the frequency spectrum profile of the data obtained signal F (t).
This embodiment, synchronizing signal frame in signal frame composition, control signal frame, data frame signal all have good correlation, thus synchronizing signal is had guarantee the function of receiving terminal and transmitting terminal data symbol accurate synchronization, and the good correlation of control signal also guarantees the control information that can demodulate system after receiving terminal receives control signal accurately.Meanwhile, the good correlation of data-signal also ensure that the correct demodulation of receiving terminal data, achieves the high reliability of transfer of data.On the other hand, the synchronizing signal generated in method, control signal, data-signal also have constant envelope amplitude, and the signal frame also namely obtained has constant envelope amplitude, and changes in amplitude is more regular, and not too responsive to amplitude amplitude limit, noise immunity is strong.Moreover, in generation method, synchronizing signal, control signal is relevant with the optimum configurations of linear FM signal with the band limits of data-signal, need the synchronizing signal generating which kind of band limits, control signal and data-signal, correspondence arranges the parameter of linear FM signal, the synchronizing signal of generation need be regulated, during the band limits of control signal and data-signal, amendment optimum configurations, make synchronizing signal, the band limits of control signal and data-signal facilitates adjustable, also namely the band limits of signal frame is adjustable, the requirement to power line carrier frequency range with satisfied adaptation country variant and area.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, make some substituting or obvious modification without departing from the inventive concept of the premise, and performance or purposes identical, all should be considered as belonging to protection scope of the present invention.