A kind of linear average wave detector implementation method based on software radio
Technical field
The invention belongs to electromagnetic compatibility test neutral line average reading detector technical field, in particular a kind of linear average wave detector implementation method based on software radio.
Background technology
The quickening coming into the market along with various electronic products, electromagnetic compatibility test valued degree in product test is also more and more higher, not only in authentication test laboratory, the departments such as research and development in each large Electronic Products Corporation, test and quality inspection, electromagnetic compatibility test is also becoming an important link.
When carrying out electromagnetic interference emission (EMI) measurement, need to, for disturbance Source Type and circulation way, adopt different test layouts, method of testing and subtest equipment.But it is identical having a bit, this class testing all needs to use highly sensitive electromagnetic interference test receiver (claiming again EMI receiver).EMI receiver is a kind of instrument that voltage amplitude is shown with the rule of frequency change, and its shows the frequency spectrum that receives signal, can understand thus amplitude and the generation source of electromagnetic interference (EMI).
In decades, along with the development of every field technology, EMI receiver is towards wide-band, wide-range, pin-point accuracy, high-speed, digitizing, miniaturization, intellectuality, modularization and systematized future development.Particularly in recent years, the new technologies such as microelectric technique, Digital Signal Processing and software and radio technique were applied in designing and developing of novel EMI receiver gradually, made receiver performance produce qualitative leap.Wherein, the central idea of software and radio technique is: construct one and have opening, standardization, modular general hardware platform, by various radio analysis functions, as modulation /demodulation, detection etc. completes with software, and make wideband A/D and D/A conversion as far as possible near antenna, to develop the wireless communication system of new generation of high degree of flexibility, opening.
In electromagnetic compatibility test field, CISPR (CISPR) is since 1933 set up, always as one of important maker of international EMC testing standard.Company is following the standard of CISPR all the time in the industry, the global standard using it as civilian EMC test.In recent years, some corrections that CISPR standard is made about wave detector type, in the amendment A1:2002 of CISPR16-1:1999 (second edition) in test, use average reading detector made modification, use new linear average (CISPR Average) wave detector to replace original average reading detector; And stipulated the time constant of wave detector.The fundamental purpose of this modification is in order to measure more accurately the intermittent unsettled harassing and wrecking signal occurring.CISPR standard according to new needs EMI receiver to realize the test of linear average wave detector in test.
New CISPR standard to describe linear average wave detector conventional implementation method as shown in Figure 1, after envelope detector 101 and between A/D converter 103, use a pointer instrument artificial network 102, be used for simulating the measuring state of a traditional pointer instrument.By the method, can be found out, it mainly uses mimic channel (such as special linear average wave detector analog circuit board of design) to realize envelope detector 101 and instrument simulation network 102, then by carry out the output of continuous monitoring instrument with A/D converter 103 and microprocessor 104, obtain peakreading as the output reading of linear average wave detector.
In the conventional implementation method use procedure of linear average reading detector, finding, have the factors such as temperature instability due to mimic channel, often there is larger deviation with actual value in measurement result.And CISPR new standard at least needs the linear average wave detector of 2 kinds of different time constants (affecting the important parameter of geophone property), this has just strengthened the design difficulty of circuit, has also increased associated production and debugging cost simultaneously.If the board of this mimic channel is installed in EMI receiver, also can increase the volume and weight of equipment, be unfavorable for that the carrying of instrument and user use.In addition, the processing time of the linear average wave detector that mimic channel is realized is relatively long, to user, makes troubles.
Therefore, there is defect in prior art, needs to improve.
Summary of the invention
Technical matters to be solved by this invention is for the deficiencies in the prior art, and a kind of linear average wave detector implementation method based on software radio is provided.
Technical scheme of the present invention is as follows:
A linear average wave detector implementation method based on software radio, wherein, comprises the following steps:
Step 1: analog intermediate frequency is carried out to signal sampling;
Step 2: the signal after sampling is divided into in-phase component signal and orthogonal component signal transmission after Digital IF Processing;
Step 3: recover intermediate frequency envelope signal from in-phase component signal and orthogonal component signal;
Step 4: intermediate frequency envelope signal is carried out to analog simulation network operations;
Step 5: maximum detection value is obtained in output to analog simulation network, as the output voltage of linear average wave detector.
Described linear average wave detector implementation method, wherein, described step 2: Digital IF Processing, comprises that Digital Down Convert, low pass filtered involve extraction, first, the signal that intermediate frequency input signal and digital local oscillator produce together enters digital mixer and completes Digital Down Convert; Then, after Digital Down Convert, obtain zero intermediate frequency digital signal, comprise in-phase component signal and orthogonal component signal two paths of signals altogether, carry out respectively digital low-pass filtering and extract and process, to reduce the speed of signal and to guarantee that signal message is complete.
Described linear average wave detector implementation method, wherein, in described step 3, described in recover intermediate frequency envelope signal concrete steps be: first ask quadratic sum to open again radical sign computing in-phase component signal and orthogonal component signal and obtain.
Described linear average wave detector implementation method, wherein, in described step 4, described analog simulation network operations realizes by second order iir digital filter, and the transition function of this wave filter is:
Wherein, S is signal transmission, T
mfor time constant, H (S) is transition function.
Described linear average wave detector implementation method, wherein, the transition function of described second order iir digital filter is equivalent to the cascade system that multiplies each other of two identical first order IIR filtering devices:
Converting described first order IIR filtering device transition function to difference equation obtains:
y(n)=b*(x(n)+(x(n-1))-a*y(n-1)
Wherein, the input value that x (n) is wave filter, y (n) is the output valve of wave filter, the coefficient that b and a are wave filter, its value is by time constant T
msampling period T with wave filter input data
sdetermine, specific formula for calculation is as follows:
Wherein, according to CISPR standard code, according to the wave band of required measurement, determine time constant T
m, according to the sampling period of in-phase component signal and orthogonal component signal, determine T simultaneously
sfinally obtain the coefficient a of wave filter and the value of b.
Described linear average wave detector implementation method, wherein, in described step 5, described in obtain maximum detection value concrete steps and be: be in scheduled measurement maximal value in recording step four in the time.
Adopt such scheme:
1, temperature stability is high, measures high conformity; With DSP program sequential operation, no matter, at which kind of temperature, as long as the circuit of front end is stable, digital computation result can not change, and stability and consistance are all good.And employing mimic channel, inductance value is wherein larger, often adopts the mode of wire-wound to design, larger with temperature fluctuation, affects test result.
2, volume is little; Digital geophone can calculate with digital intermediate frequency, FFT computing etc. shares a digital processing platform with digital signal processing related operation, without increasing separately circuit.And analog linearity average reading detector needs independent design circuit.
3, processing speed is fast; Use analog detector, the effective measurement of single at least needs in 2s, if be less than this time, just affects the authenticity of measurement result.By actual measurement, the processing time of wave detector of the present invention can be less than 1s, and the processing time of measuring frequency range wave detector at some is about 500ms.So relatively, use digital detection of the present invention to measure and greatly save Measuring Time, the cost of saving time.
4, realize the reconstruct of wave detector, reduced design and debugging cost; Mode by DSP program realizes linear average wave detector, and main frame is by dsp interface, and the different time constant of resetting, just can realize different wave detectors, has realized the reconstruct of wave detector by the mode of program, has reduced design and debugging cost.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of realizing of prior art neutral line average reading detector.
Fig. 2 is the linear average wave detector schematic diagram that the present invention is based on software radio.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
As shown in Figure 2, first, 1 pair of analog intermediate frequency of A/D converter carries out signal sampling, and the signal after sampling is fed to FPGA field programmable logic array (FPLA) 2, and the signal producing with NCO (being digital local oscillator) 201 together enters digital mixer 202 and 212 and completes Digital Down Convert.By Digital Down Convert, analog if signal has changed zero intermediate frequency digital signal into, comprise altogether I/Q (inphase/orthogonal) two paths of signals, respectively through low- pass filtering 203 and 213, extract 204 and 214 etc. (having guaranteed not losing of signal message when reducing signal rate of low-pass filtering and extraction) and carry out Digital IF Processing, then the baseband signal obtaining is divided into two-way I/Q (inphase/orthogonal component) signal and gives digital signal processor DSP 3.
In Fig. 2, in DSP3, by 3 steps, realize linear average wave detector, first, through digital envelope detection 301, recover the modulation signal on intermediate frequency, i.e. the amplitude envelops of signal; Then enter instrument simulation network 302 and carry out simulation trial, last, by peak detection 303, obtain maximal value, just calculate the output voltage of linear average wave detector.Last test result is sent to main frame 4 and carries out Graphics Processing.
As shown in Figure 2, the instrument simulation network 302 of DSP3 is connected by interface with main frame 4, main frame 4 can arrange the parameters such as different time constants and sampling rate by DSP3 interface, just can be so that DSP3 realizes different instrument simulation networks, also just can realize different linear average wave detectors, so just, as long as revise parameter, without update routine, just realized the reconstruct of wave detector.
The linear average wave detector that the present invention realizes completes by program in DSP, and detailed process is as follows:
1) envelope detection: envelope detection is first to ask quadratic sum to open radical sign computing to the inphase/orthogonal component of signal to obtain again.
2) instrument simulation network: the realization of instrument simulation network realizes by second order iir digital filter, the transition function of this wave filter is:
Wherein S is signal transmission, T
mbe time constant, time constant is the key parameter of this wave filter, affects the filtering performance of wave filter.In CISPR standard, the time constant of different frequency range is had to following requirement in Table 1:
Time constant requirement to linear average wave detector in table 1:CISPR standard
For the ease of realizing by program in DSP, this second order iir digital filter is broken down into the mode that the cascade of two identical first order IIR filtering devices is multiplied each other:
Converting described single order I IR filter transfer function to difference equation obtains:
y(n)=b*(x(n)+(x(n-1))-a*y(n-1)
Wherein, the input value that x (n) is wave filter, y (n) is the output valve of wave filter, the coefficient that b and a are wave filter, by time constant T
msampling period T with wave filter input data
sdetermine, specific formula for calculation is as follows:
Specifically, in realization, according to table 1, by the wave band of required measurement, determine time constant T
m, the sampling period of the I/Q data of simultaneously exporting according to FPGA in Fig. 2 is determined T
sfinally obtain the coefficient a of wave filter and the value of b.
3) peak detection: last processing is peak detection in DSP, its processing is mainly to record the maximal value of instrument simulation network above in certain Measuring Time, and the Output rusults using this value as linear average wave detector.
Should be understood that, for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.