A kind of linear average cymoscope implementation method based on software radio
Technical field
The invention belongs to linear average reading detector technical field in electromagnetic compatibility test, in particular a kind of based on
The linear average cymoscope implementation method of software radio.
Background technology
The quickening come into the market along with various electronic products, valued degree is also in product test for electromagnetic compatibility test
More and more higher, not only at authentication test laboratory, research and develop in each big Electronic Products Corporation, test and the department such as quality inspection, electromagnetism
Compatibility test is also becoming an important link.
When carrying out electromagnetic interference emission (EMI) and measuring, it is required for disturbance Source Type and circulation way, uses not
Same test layouts, method of testing and subtest equipment.But it is identical for having a bit, this class testing is required for using highly sensitive
The electromagnetic interference test receiver (also known as EMI receiver) of degree.EMI receiver is that voltage amplitude is changed by one with frequency
The instrument that shows of rule, its display receives the frequency spectrum of signal, thus will appreciate that amplitude and the occurring source of electromagnetic interference.
In decades, along with the development of every field technology, EMI receiver towards wide-band, wide-range, high accuracy,
At high speed, digitized, miniaturization, intellectuality, modularity and systematized direction are developed.The most in recent years, microelectronics
The new techniques such as technology, Digital Signal Processing and software and radio technique are gradually applied to setting of novel EMI receiver
In meter exploitation, receiver performance is made to produce qualitative leap.Wherein, the central idea of software and radio technique is: construct a tool
There are opening, standardization, modular general hardware platform, various radio analysis functions, such as modulation /demodulation, detection etc. are used
Software completes, and make broadband A/D and D/A conversion as far as possible near antenna, with develop high degree of flexibility, open new one
The wireless communication system in generation.
In electromagnetic compatibility test field, CISPR (CISPR) from 1933 set up since, one
One of straight important maker as international EMC testing standard.Company follows the standard of CISPR all the time in the industry, as
The global specification of civilian EMC test.In recent years, some corrections that CISPR standard is made about cymoscope type,
In amendment A1:2002 of CISPR16-1:1999 (second edition) for test uses average reading detector be made that and repair
Change, use new linear average (CISPR Average) cymoscope to instead of original average reading detector;And define
The time constant of cymoscope.The main purpose of this amendment is able to measure the instability that intermittence occurs more accurately
Harassing and wrecking signal.According to new CISPR standard, EMI receiver is needed to realize the test of linear average cymoscope in testing.
New CISPR standard describes the conventional implementation method of linear average cymoscope as it is shown in figure 1, in envelope detection
Employ a pointer instrument artificial network 102 after device 101 and between A/D converter 103, be used for simulating one traditional
The measuring state of pointer instrument.By the method it can be seen that it mainly uses analog circuit (such as one piece of special line of design
Property average reading detector analog circuit board) realize envelope detector 101 and instrument simulation network 102, then by using
A/D converter 103 and microprocessor 104 carry out the output of continuous monitor table, it is thus achieved that peakreading is as linear average detection
The output reading of device.
Find, owing to analog circuit exists temperature not during the conventional implementation method of linear average reading detector uses
The factors such as stability, often there is bigger deviation with actual value in measurement result.And, the new standard of CISPR at least needs 2 kinds
The linear average cymoscope of different time constant (affecting the important parameter of geophone property), this just increases the design of circuit
Difficulty, too increases associated production and debugging cost simultaneously.If the board of this analog circuit being installed in EMI receiver, also
The volume and weight of equipment can be increased, be unfavorable for that the carrying of instrument and user use.It addition, the linear averaging that analog circuit realizes
The process time of value cymoscope is relatively long, makes troubles to user.
Therefore, prior art existing defects, need to improve.
Summary of the invention
The technical problem to be solved is for the deficiencies in the prior art, it is provided that a kind of based on software radio
Linear average cymoscope implementation method.
Technical scheme is as follows:
A kind of linear average cymoscope implementation method based on software radio, wherein, comprises the following steps:
Step one: analog intermediate frequency is carried out signal sampling;
Step 2: the signal after sampling is divided into in-phase component signal and orthogonal component signal after Digital IF Processing
Send;
Step 3: recover intermediate frequency envelope signal from in-phase component signal and orthogonal component signal;
Step 4: intermediate frequency envelope signal is simulated artificial network computing;
Step 5: the output of analog simulation network is obtained maximum detection value, as the output electricity of linear average cymoscope
Pressure.
Described linear average cymoscope implementation method, wherein, described step 2: Digital IF Processing, including numeral
Down coversion, low pass filtered involve extraction, and first, the signal that IF input signals produces with digital local oscillator together enters digital mixer
Complete Digital Down Convert;Then, after Digital Down Convert, obtain zero intermediate frequency digital signal, including in-phase component signal and orthogonal point
Amount signal two paths of signals altogether, carries out digital low-pass filtering respectively and extraction processes, to reduce the speed of signal and to ensure signal letter
Breath is complete.
Described linear average cymoscope implementation method, wherein, in described step 3, described in recover intermediate frequency envelope letter
Number concretely comprise the following steps: by the most squared to in-phase component signal and orthogonal component signal and open radical sign computing again and obtain.
Described linear average cymoscope implementation method, wherein, in described step 4, described analog simulation network operations
Being realized by second order iir digital filter, the transfer function of this wave filter is:
Wherein, S is transmission signal, TMFor time constant, H (S) is transfer function.
Described linear average cymoscope implementation method, wherein, the transfer function etc. of described second order iir digital filter
Valency is the cascade system that is multiplied of two identical first order IIR filtering devices:
Described first order IIR filtering device transfer function is converted into difference equation obtain:
y(n)=b*(x(n)+(x(n-1))-a*y(n-1)
Wherein, x (n) is the input value of wave filter, and y (n) is the output valve of wave filter, b and a is the coefficient of wave filter, its
Value is by time constant TMSampling period T with wave filter input datasDetermining, specific formula for calculation is as follows:
Wherein, specify according to CISPR standard, determine time constant T according to the wave band of required measurementM, simultaneously according to same
The sampling period of branch signal and orthogonal component signal determines TsFinally obtain the value of coefficient a and b of wave filter.
Described linear average cymoscope implementation method, wherein, in described step 5, the described maximum detection value that obtains has
Body step is: be the maximum within the scheduled measurement time in recording step four.
Employing such scheme:
1, temperature stability is high, measures concordance good;With DSP program sequential operation, no matter at a temperature of which kind of, if front
The circuit stability of end, numerical calculation result will not change, and stability and concordance are the best.And use analog circuit, electricity therein
Sensibility reciprocal is relatively big, frequently with line around mode design, relatively big with temperature fluctuation, affect test result.
2, volume is little;Digital detector can calculate with digital intermediate frequency, FFT computing etc. and Digital Signal Processing related operation
Share a digital processing platform, it is not necessary to individually increase circuit.And analog linearity average reading detector needs individually designed electricity
Road.
3, processing speed is fast;Using analog detector, single is effectively measured at least to be needed in 2s, during if less than this
Between, just affect the verity of measurement result.Being measured by reality, the process time of the cymoscope of the present invention can be less than 1s,
Some process time measuring frequency range cymoscope is about 500ms.So compare, use the digital detection of the present invention to measure and significantly save
About measure the time, time-consuming cost.
4, achieve the reconstruct of cymoscope, decrease design and debugging cost;Realize linear flat by the way of DSP program
Average detector, main frame passes through dsp interface, resets different time constants, it is possible to realize different cymoscopes, pass through program
Mode achieve the reconstruct of cymoscope, decrease design and debugging cost.
Accompanying drawing explanation
Fig. 1 be in prior art linear average reading detector realize schematic diagram.
Fig. 2 is present invention linear average based on software radio cymoscope schematic diagram.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
As in figure 2 it is shown, first, A/D converter 1 carries out signal sampling to analog intermediate frequency, and the signal after sampling is fed to
FPGA field programmable logic array 2, with NCO (i.e. digital local oscillator) 201 produce signal together enter digital mixer 202 and
212 complete Digital Down Convert.By Digital Down Convert, analog if signal has been converted to zero intermediate frequency digital signal, includes I/Q altogether
(inphase/orthogonal) two paths of signals, respectively through low-pass filtering 203 and 213, extraction 204 and 214 etc. (low-pass filtering and extraction
Not losing of signal message is ensure that while reducing signal rate) carry out Digital IF Processing, then the base band obtained
Signal is divided into two-way I/Q (inphase/orthogonal component) signal and gives digital signal processor DSP 3.
In fig. 2, in DSP3, linear average cymoscope is realized by 3 steps, first, through digital envelope detection
301, recover the amplitude envelops of the modulated signal on intermediate frequency, i.e. signal;It is simulated fortune subsequently into instrument simulation network 302
Calculate, finally, obtain maximum by peak detection 303, just calculate the output voltage of linear average cymoscope.Last survey
Test result is sent to main frame 4 and carries out display process.
As shown in Figure 2, the instrument simulation network 302 of DSP3 is connected by interface with main frame 4, and main frame 4 is by DSP3 interface
The parameters such as different time constants and sample rate can be set, it is possible to makes DSP3 realize different instrument simulation networks, also
Just can realize different linear average cymoscopes, as long as thus amendment parameter, program need not be revised, be achieved that detection
The reconstruct of device.
The linear average cymoscope that the present invention realizes is completed by program in dsp, and detailed process is as follows:
1) envelope detection: envelope detection is that the inphase/orthogonal component to signal is first the most squared and open radical sign computing again and obtain
's.
2) instrument simulation network: the realization of instrument simulation network is realized by second order iir digital filter, this filter
The transfer function of ripple device is:
Wherein S is transmission signal, TMBeing time constant, time constant is the key parameter of this wave filter, affects wave filter
Filtering performance.In CISPR standard, the time constant of different frequency range is had and following requires to be shown in Table 1:
Time constant requirement to linear average cymoscope in table 1:CISPR standard
For the ease of being realized by program in dsp, this second order iir digital filter is broken down into two identical single orders
The mode that the cascade of iir filter is multiplied:
Described single order I IR filter transfer function is converted into difference equation obtain:
y(n)=b*(x(n)+(x(n-1))-a*y(n-1)
Wherein, x (n) is the input value of wave filter, and y (n) is the output valve of wave filter, b and a is the coefficient of wave filter, by
Time constant TMSampling period T with wave filter input datasDetermining, specific formula for calculation is as follows:
The most in the implementation, time constant T is determined according to table 1 by the wave band of required measurementM, simultaneously according in fig. 2
The sampling period of the I/Q data of FPGA output determines TsFinally obtain the value of coefficient a and b of wave filter.
3) peak detection: the most last process is peak detection, its process was mainly within certain measurement time
Record the maximum of above instrument simulation network, and using this value as the output result of linear average cymoscope.
It should be appreciated that for those of ordinary skills, can be improved according to the above description or be converted,
And all these modifications and variations all should belong to the protection domain of claims of the present invention.