Summary of the invention
To the problems referred to above; Task of the present invention provides a kind of modulation and demodulation that adopts the method realization minimum frequency shift keying signal of multiple parsing bandpass filtering treatment; Reduce the complexity of signal processing algorithm; To improve the flexibility of system, can satisfy the requirement of the various host-host protocols of minimum frequency shift keying signal.
For realizing above-mentioned task, technical scheme of the present invention is to have adopted a kind of modulation that the bandpass filtering method realizes minimum frequency shift keying signal of resolving again, and the method comprising the steps of as follows:
1. sampling rate f
sSelection:
Message transmission rate is generally 300bit/s, 600bit/s, 1200bit/s, 2400bit/s, 4800bit/s, 9600bit/s, 19200bit/s etc.For the ease of signal processing; Get the integral multiple that sampling rate is a message transmission rate; Therefore in minimum frequency shift keying signal modulation and demodulation system; If message transmission rate is no more than 1200bit/s, choosing sampling rate is 9.600kHz, and promptly sampling rate is respectively transmission rate 300bit/s, 600bit/s, 1200bit/s 32 times, 16 times, 8 times.When transmission rate during, consider the operational capability of digital signal processor, generally get sampling rate and be transmission rate 8 times greater than 1200bit/s.
2. modulator approach:
The initial phase of minimum frequency shift keying signal is set at 0; Data to transmission are sampled; The relation of the data of the step-length of phase change and transmission does during each the sampling; If the data of transmission are " 0 ", the step-length of phase change is that the carrier frequency of minimum frequency shift keying signal and 1/4th sums of transmission rate multiply by 2 π again divided by sampling rate; If the data of transmission are " 1 ", the step-length of phase change is that 1/4th difference of carrier frequency and the transmission rate of minimum frequency shift keying signal multiply by 2 π again divided by sampling rate.The present phase value of minimum frequency shift keying signal of transmission equals the original phase value and the step-length sum of phase change, produces the range value of multiple sinusoidal signal then according to present phase value, can obtain the multiple bandpass signal of MSK.Real coefficient FIR low pass filter multiply by the complex carrier signal signal obtain the complex analytic band-pass filter that centre frequency is a carrier frequency; The complex analytic band-pass filter that by centre frequency is carrier frequency carries out multiple parsing bandpass filtering to the multiple bandpass signal of MSK; Suppress the out of band spectrum composition; Get the real part of multiple bandpass signal, through D/A conversion can obtain the MSK that will transmit simulate real bandpass signal, accomplish whole modulation treatment process.
Corresponding with the modulator approach of above-mentioned minimum frequency shift keying signal, the demodulation method of minimum frequency shift keying signal of the present invention is following:
The Binary Frequency Shift Keying that receives is simulated real bandpass signal and is become digital real signal through A/D; The complex analytic band-pass filter that by centre frequency is carrier frequency carries out multiple parsing bandpass filtering to the digital real signal that receives; The outer unwanted signal frequency content of filtering band, signal becomes multiple bandpass signal by original real bandpass signal; This multiple bandpass signal is postponed, and the sampling of delay is counted and is the twice of sampling rate divided by transmission rate, and the conjugation of the multiple bandpass signal after postponing, the multiple bandpass signal before the delay, the phase shift factor relevant with carrier frequency are carried out complex multiplication; Get the resulting long-pending imaginary part that multiplies each other; If the value of imaginary part is greater than zero, dateout " 0 " then is if the value of imaginary part is less than zero; Dateout " 1 " then, thus whole differential ference spiral process accomplished.
For MSK is realized resolving again bandpass filtering, must design complex analytic band-pass filter, the invention provides the design of complex analytic band-pass filter, this method for designing is following:
At first for different transmission rates, design and the irrelevant real coefficient FIR low pass filter of minimum frequency shift keying signal carrier frequency, with the coefficient storage of filter in the program storage of processor; Carry out at processor before the modulation handling procedure of minimum frequency shift keying signal; Processor is according to corresponding low pass filter in the different transmission rate option program memories; Product by processor compute low pass filtered device and complex carrier signal signal; Obtain the complex analytic band-pass filter that centre frequency is a carrier frequency; The coefficient storage of complex analytic band-pass filter in the program storage of processor, is so just accomplished the design of complex analytic band-pass filter, realized the sharing of filter of identical traffic speed.The processor that adopts in this method is a digital signal processor.
Adopt the method for resolving bandpass filtering again to realize the modulation and demodulation of MSK (MSK) signal; The minimum frequency shift keying signals different for centre frequency need not design miscellaneous band pass filter; The minimum frequency shift keying signal identical for transmission bandwidth only need design a kind of low pass filter; Calculate the complex analytic band-pass filter that centre frequency is a carrier frequency by processor then; Reduce the complexity of signal processing algorithm so greatly, realized the sharing of filter of identical traffic speed.
Embodiment
1. adopt DSP and complex signal to handle the method that realizes MSK (MSK) signal
1.1 MSK (MSK) signal
The expression formula of MSK (MSK) signal can be write as
s(t)=cos[2πf
ct+θ(t)] (1)
Wherein:
In the formula: f
cBe carrier frequency; T
bBe symbol width; a
kRelevant with k input symbols, its value ± 1;
Be k the phase constant in the input symbols, at time kT
bThe T of≤t≤(k+1)
bIn remain unchanged.If establishing the transmission rate of binary system MSK (MSK) signal is r
b, frequency deviation is f
Δ, signal frequency is f when sending data " 0 " sign indicating number
2, a
k=1; Signal frequency is f when sending data " 1 " sign indicating number
1, a
k=-1; Then
r
b=1/T
b (3)
The coefficient correlation of two signal waveforms of Binary Frequency Shift Keying does
Because MSK is a kind of quadrature modulation, its signal waveform coefficient correlation is 0, and first of equal sign back equals 0, so second also must equal 0, that is:
The selection of phase constant
should guarantee that signal phase is that phase place is continuous in the code element conversion constantly.
Can know that from above discussion msk signal must have following characteristics:
1. the amplitude of modulated signal is constant; 2. the frequency shift strictness of signal equals ± r
b/ 4; 3. with the carrier phase be the signal phase of benchmark in a code-element period exactly linear change be ± pi/2; 4. in a code-element period, signal should comprise the integral multiple of 1/4th carrier cycles; 5. in the code element conversion constantly, the phase place of signal is continuous.
General MSK modulation signal is accomplished by differential coding, serial/parallel conversion, orthogonal function weighting, quadrature carrier modulation, stack and bandpass filtering, and wherein different carrier frequencies need design different band-pass.Adopt DSP and complex signal to handle and realize the MSK modulation; Only need phase place stack, multiple bandpass signal to produce and resolve bandpass filtering again and can accomplish, wherein complex analytic band-pass filter is by obtaining with irrelevant real coefficient low pass filter and the complex carrier signal signal multiplication of carrier frequency.
1.2 the complex signal of MSK modulation is handled implementation method
Because message transmission rate is generally 300bit/s, 600bit/s, 1200bit/s, 2400bit/s, 4800bit/s, 9600bit/s, 19200bit/s etc., for the ease of signal processing, gets sampling rate f
sBe r
bIntegral multiple, therefore in MSK modulation and demodulation system, choose
f
s=9600·n(Hz) (9)
In the formula: n=1,2,4,8 ..., when message transmission rate≤1200bit/s, n=1.
Can obtain the multiple bandpass signal expression formula of MSK (MSK) numeral by formula (1) is:
If the initial phase of minimum frequency shift keying signal
When input data d (n)=0, a
k=1,
When input data d (n)=1, a
k=-1,
Therefore formula (10) can be put in order and done
Order
Then
In order to suppress the out of band spectrum composition of msk signal, must carry out filtering to multiple bandpass signal c (n).If directly adopt band pass filter to carry out filtering; For identical message transmission rate; Though the bandwidth of filter is identical, because the band pass filter of the different needs of carrier frequency design different center frequency implements more loaded down with trivial details like this; And to take a large amount of memory resource of DSP, this paper adopts the method for resolving bandpass filtering again to simplify the implementation method of MSK modulation with innovating.
As shown in Figure 1, at first for different data transmission rates design and the irrelevant real coefficient FIR low pass filter h (n) of carrier frequency, with the coefficient storage of filter in the program storage of DSP; Then before the operation of DSP main program; DSP is according to corresponding low pass filter in the different transmission rate selection memories; By the product of DSP compute low pass filtered device h (n), obtain the complex analytic band-pass filter that centre frequency is a carrier frequency
promptly with complex carrier signal signal
Coefficient storage with
has so just been accomplished the design of complex analytic band-pass filter in the program storage of DSP.
Multiple bandpass signal c (n) is carried out multiple parsing bandpass filtering, suppresses the out of band spectrum composition:
* in the formula--represent convolution
Get the real part of y (n), obtain MSK (MSK) real signal:
y
r(n)=Re{y(n)} (16)
With digital signal y
r(n) carry out digital-to-analogue conversion (D/A) output MSK analog signal:
s(t)=cos[2πf
ct+θ(t)] (17)
Can find out that from whole complex signal processing procedure the modulation signal that obtains thus satisfies 5 characteristics of minimum frequency shift keying signal fully.
1.2.MSK the complex signal of differential ference spiral is handled implementation method
The data of from minimum frequency shift keying signal, recovering transmission can be used coherent demodulation, non-coherent demodulation and differential ference spiral, and the antijamming capability of coherent demodulation slightly is superior to other forms of demodulation.But because coherent demodulation need be carried out carrier extract and synchronous at receiving terminal; Implement more complicated; Other forms of demodulation need not to recover synchronous carrier wave, implements fairly simplely, so this paper introduces the differential ference spiral that the method that adopts complex signal to handle realizes minimum frequency shift keying signal.
The input signal s (t) of receiving terminal becomes digital signal s (n) through analog-to-digital conversion (A/D), and the multiple low-pass signal of establishing after the demodulation is x (n), and according to the complex demodulation principle of Binary Frequency Shift Keying, the demodulating process that receives signal is represented with following equality:
Utilize the character of Fourier transform to obtain:
Complex analytic band-pass filter
filters out the outer interference of useful signal band, order
In the formula: m (n) is multiple bandpass signal, then
X (n) is after postponing the sampling period of M integral multiple and get conjugation and obtain signal x
*(n-M), carry out differential ference spiral, can obtain:
Wherein
Be complex constant
Get the imaginary part of w (n):
V=Im{w(n)} (23)
Order:
Then:
Therefore, work as a
k=1 o'clock, V>0, dateout d
1(n)=0;
Work as a
k=-1 o'clock, V<0, dateout d
1(n)=1.
It is as shown in Figure 2 that the complex signal that can obtain binary system MSK (MSK) differential ference spiral by above-mentioned analysis is handled the theory diagram of implementation method.Can find out, introduce complex analytic band-pass filter, input signal is carried out multiple parsing bandpass filtering after, needn't carry out demodulation to multiple bandpass signal, directly will answer the conjugated signal m after bandpass signal m (n) and its delay
*(n-M), phase shift factor
Carry out complex multiplication, resulting long-pending imaginary part is adjudicated to recover initial data.
2. the digital multiple modulation and the complex demodulation implementation of binary system MSK (MSK) signal
As shown in Figure 3, utilize high-speed dsp (Digital Signal Processing), dual-channel audio codec (CODEC), RS232 interface convertor, microcontroller composition function powerful hardware platform such as (MCU).Data-signal carries out delivering to DSP after the level conversion through the RS232 interface convertor; DSP carries out the multiple bandpass signal of phase-accumulated and direct generation according to the data of input; By corresponding complex analytic band-pass filter multiple bandpass signal is carried out filtering; Suppress the out of band spectrum composition, get the real part of multiple bandpass signal, export the logical analog signal of real band of MSK then through the D/A of dual-channel audio codec (CODEC).The logical analog signal of the real band of the MSK that receives converts digital signal to and delivers to DSP and carry out differential ference spiral and handle through the A/D of dual-channel audio codec (CODEC); Carry out filtering to the received signal by complex analytic band-pass filter and obtain multiple bandpass signal, will answer bandpass signal and directly carry out differential ference spiral and recover primary signal.Adopt the C++Builder programming technique to realize the man-machine dialog interface of perfect in shape and function; PC is provided with through the modulation and demodulation parameters such as centre frequency, transmission rate, same anti-phase, similarities and differences step and transmission level of microcontroller (MCU) to msk signal, to satisfy the requirement of various host-host protocols.This hardware platform can be realized the transmission of the msk signal of two channels simultaneously, perhaps on a channel, utilizes frequency division multiplexing mode transmitting two paths msk signal simultaneously.Fig. 4 is with sampling frequency f
s=9.6kHz, data rate r
b=600Bd, f
c=1200Hz is the minimum frequency shift keying signal modulation and demodulation signal waveforms of example.