Summary of the invention
The invention provides a kind of Morse and report signal processing method, the method can determine centre frequency and the bandwidth of Morse's number of notifying exactly.
In addition, the present invention also provides a kind of Morse to report signal processing apparatus.
Morse provided by the invention reports signal processing method to comprise the following steps:
Predetermined simulated audio signal is sampled with predetermined frequency, obtains digital baseband signal;
Frame number is sampled to described digital baseband signal at predetermined intervals, obtains sampled signal frame;
Fast Fourier transform (FFT) is carried out to described sampled signal frame, obtains figure signal frame;
Gather the positional information of amplitude peak spectral line in each figure signal frame, form statistical parameter data group;
Centre frequency and the bandwidth of described Morse's number of notifying is determined according to the data value of described statistical parameter data group and predetermined strategy.
Preferably, after the centre frequency determining described Morse's number of notifying and bandwidth, also comprise the step of filter bag external noise, this step comprises:
According to centre frequency and the bandwidth of described Morse's number of notifying, all signals be positioned in described digital baseband signal outside this bandwidth are filtered out.
Preferably, also comprise the step of noise in filter bag after filter bag external noise, this step comprises:
Centre frequency and bandwidth is reported, peak value spectral line amplitude information in each frame band in extraction digital baseband signal, morphogenesis characters parameter frame sequence according to described Morse;
According to the size of range value, characteristic parameter frame is arranged, form ascending order frame sequence;
According to the tract of predetermined length, moving median smothing filtering is carried out to ascending order frame sequence, forms level and smooth ascending order frame sequence;
Obtain the frame difference energy value of level and smooth ascending order frame, form frame difference energy value sequence by the sequence of level and smooth ascending order frame; Described frame difference energy value is the difference between the range value of the first level and smooth ascending order frame and the range value of the second level and smooth ascending order frame; Described first level and smooth ascending order frame and the second level and smooth ascending order frame interval predetermined frame number in described level and smooth ascending order frame sequence;
In described smoothed frame difference energy value sequence, judge whether multiple continuous print smoothed frame difference energy value is all greater than predetermined value, if so, then the range value determining the first level and smooth ascending order frame corresponding with first frame difference energy value being greater than predetermined value is optimal quantization level value;
Based on optimal quantization level value, amplitude quantizing is carried out to characteristic parameter frame sequence, the range value that any range value is not less than the frame of optimal quantization level value is converted into predetermined high level, the range value that any range value is less than the frame of optimal quantization level value is converted into predetermined low value, forms the pulse Morse number of notifying.
Preferably, after obtaining the pulse Morse number of notifying, also comprise the step of the message structure parameter determining Morse's number of notifying, this step comprises:
Obtain all pulsewidths and the arteries and veins distance of the pulse Morse number of notifying, and form pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve respectively;
Determine the peak of the pulse of pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve respectively;
According to the peak of the described pulse determined, determine the predefined parameter group of Morse's number of notifying, described predefined parameter group comprises: " point, draw " pulse width parameter of telegraph sybmol, intersymbol distance parameter, code word spacing parameter and code character spacing parameter.
Morse provided by the invention reports signal processing apparatus to comprise:
Receiving element, for sampling with predetermined frequency to predetermined simulated audio signal, obtains digital baseband signal;
Sampling unit, samples to described digital baseband signal for frame number at predetermined intervals, obtains sampled signal frame;
Converter unit, for carrying out FFT to described sampled signal frame, obtains figure signal frame;
Collecting unit, for gathering the positional information of amplitude peak spectral line in each figure signal frame, forms statistical parameter data group;
Processing unit, for determining centre frequency and the bandwidth of described Morse's number of notifying according to the data value of described statistical parameter data group and predetermined strategy.
Preferably, Morse reports signal processing apparatus also to comprise:
The all signals be positioned at outside this bandwidth, for according to the centre frequency of described Morse's number of notifying and bandwidth, are filtered out by band external noise filter element.
Preferably, Morse reports signal processing apparatus also to comprise noise filtering unit in band, and in described band, noise filtering unit comprises:
First module, for according to described centre frequency and band width, extracts the peak value spectral line amplitude information of each frame in digital baseband signal, morphogenesis characters parameter frame sequence;
Second module, for the size according to range value, carries out ascending order arrangement to characteristic parameter frame sequence, forms ascending order frame sequence; Again according to the tract of predetermined length, moving median smothing filtering is carried out to ascending order frame sequence, form level and smooth ascending order frame sequence;
3rd module, for obtaining the frame difference energy value of level and smooth ascending order frame sequence, and forms frame difference energy value sequence by the sequence of level and smooth ascending order frame; Described frame difference energy value is the difference between the range value of the first level and smooth ascending order frame and the range value of the second level and smooth ascending order frame; Described first level and smooth ascending order frame and the second level and smooth ascending order frame interval predetermined frame number in described level and smooth ascending order frame sequence;
Four module, for in described frame difference energy value sequence, judge whether multiple continuous print frame difference energy value is all greater than predetermined value, if so, then determine that the range value of the first level and smooth ascending order frame corresponding with first the frame difference energy value being greater than predetermined value is optimal quantization level value;
Quantization modules, for carrying out amplitude quantizing based on optimal quantization level to characteristic parameter frame sequence, the range value that any range value is not less than the frame of optimal quantization level value is converted into predetermined high level, the range value that any range value is less than the frame of optimal quantization level value is converted into predetermined low value, forms the pulse Morse number of notifying.
Preferably, Morse reports signal processing apparatus also to comprise decision unit, and described decision unit comprises:
First subelement, for obtaining all pulsewidths and the arteries and veins distance of the pulse Morse number of notifying, and forms pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve; Determine the peak of the pulse of pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve respectively;
Second subelement, for the peak according to described pulse, determine the predefined parameter group of Morse's number of notifying, described predefined parameter group comprises: the pulse width parameter of telegraph sybmol " point, draw ", intersymbol distance parameter, code word spacing parameter and code character spacing parameter.
Morse provided by the invention reports in signal processing method, first samples to predetermined simulated audio signal with predetermined frequency, obtains digital baseband signal; Frame number is sampled to predetermined digital baseband signal at predetermined intervals again, obtains sampled signal frame; FFT is carried out to described sampled signal frame, obtains figure signal frame; Gather the positional information of amplitude peak spectral line in each figure signal frame, form statistical parameter data group; Then centre frequency and the bandwidth of described Morse's number of notifying is determined according to the data value of described statistical parameter data group and predetermined strategy.Because statistical parameter data group can represent the frequency characteristic of Morse's number of notifying better, therefore, the method can determine centre frequency and the bandwidth of Morse's number of notifying exactly.
In further technical scheme, based on centre frequency and the bandwidth of the Morse's number of notifying determined, whole signal band being divided into band and out-of-band two parts, by filtering the outer composition of all bands, effectively can reducing the noise in Morse's number of notifying.
In further technical scheme, also comprise the step of noise in filter bag, its content is: the Morse according to obtaining reports centre frequency and bandwidth, extracts digital baseband signal each frame peak spectral line amplitude information, forms the characteristic parameter frame sequence of Morse's number of notifying; From small to large ascending order arrangement is carried out according to range value to characteristic parameter frame sequence, forms ascending order frame sequence; According to the tract of predetermined length, moving median smothing filtering is carried out to ascending order frame sequence, forms level and smooth ascending order frame sequence; Obtain the frame difference energy value sequence of level and smooth ascending order frame sequence, frame difference energy value sequence is formed by the sequence of level and smooth ascending order frame, judge whether multiple continuous print frame difference energy value is all greater than predetermined value again, if so, then the range value determining the first level and smooth ascending order frame corresponding with first frame difference energy value meeting this condition is optimal quantization level value; Based on optimal quantization level value, amplitude quantizing is carried out to characteristic parameter frame sequence, the amplitude that any range value is more than or equal to the frame of optimal quantization level value is converted into predetermined high level, the amplitude that any range value is less than the frame of optimal quantization level value is converted into predetermined low value, form the pulse Morse number of notifying of binaryzation accordingly, for next step message decipher provides basic data.
In further technical scheme, first, calculate pulsewidth and the arteries and veins distance of the pulse Morse number of notifying, form pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve; The peak of each pulse is determined apart from Distribution Statistics curve based on pulsewidth Distribution Statistics curve and arteries and veins; According to each pulse peak positions described, determine 5 predefined parameters needed for the decipher of Morse's number of notifying, described predefined parameter is: the pulse duration of telegraph sybmol " point, draw ", intersymbol distance, code word spacing, code character spacing.These parameters are used for the decipher of Morse's number of notifying.
Report signal processing method corresponding with above-mentioned Morse, Morse provided by the invention reports signal processing apparatus to have corresponding technique effect equally.
Embodiment
Be described in detail technical scheme provided by the invention below in conjunction with accompanying drawing, the description of this part is only exemplary and explanatory, should not be considered as the restriction to public technology content of the present invention.
Please refer to Fig. 1, this figure is the overview flow chart that a kind of Morse that the embodiment of the present invention provides reports signal processing method.
The Morse that this embodiment provides reports signal processing method to comprise the following steps generally:
Step S100: obtain digital baseband signal.Namely receive telegraph voice frequency signal, according to prior art, telegraph voice frequency signal (being generally wireless signal) is converted to accessible digital baseband signal.
Step S200: centre frequency and the bandwidth of determining Morse's number of notifying.Its detailed content will be described later.
Step S300: filter bag external noise.The mode that this step can use prior art to provide is carried out.
Step S400: noise in filter bag.Equally, the mode that this step can use prior art to provide is carried out, and the mode that the embodiment of the present invention provides will be described later.
Step S500: the message structure parameter obtaining Morse's number of notifying; Namely based on the pulse Morse number of notifying after filtration, the message structure parameter of predetermined Morse's number of notifying is obtained.Equally, the mode that this step can use prior art to provide is carried out, and the mode that the embodiment of the present invention provides will be described later.
Step S600: based on message structure parameter group, the paired pulses Morse number of notifying carries out decipher.The technological means that the mode of decipher can adopt prior art to provide is carried out.
Please refer to Fig. 2, this figure is the detail flowchart that a kind of Morse that the embodiment of the present invention provides reports signal processing method.Below the detailed process of above-mentioned corresponding steps is described in detail.
In the step s 100, by sampling with predetermined frequency to predetermined simulated audio signal, obtain digital baseband signal.This simulated audio signal comprises predetermined Morse's number of notifying.
In step s 200, determine that the described centre frequency of Morse's number of notifying and the process of bandwidth comprise the following steps:
Step S201: frame number is sampled to predetermined digital baseband signal at predetermined intervals, obtains sampled signal frame, forms sampled signal time domain frame sequence.
If it is 512 that the every frame of digital baseband signal analyzes sampling point, then the time domain frame sequence of digital baseband signal can be expressed as: { x (i, j), 1≤i≤N, 1≤j≤512}, wherein, i represents frame number, and j represents sample point in frame.
If first sampled signal frame is x (i, j), predetermined Δ frame period, then formed multiple sampled signal frame x (i+l* Δ, j), l=0,1,2 ..., j=1,2 ... 512}, multiple sampled signal frame forms a sampled signal frame sequence.Wherein, the size of Δ value can adjust according to actual needs.
Step S202: carry out fast Fourier transform (FFT, FastFourier Transform) to multiple described sampled signal frame, obtains figure signal frame, and multiple figure signal frame forms figure signal frame sequence.
Step S203: the positional information gathering amplitude peak spectral line in each figure signal frame, forms statistical parameter data group.If this statistical parameter data group is that { j in L (j), 1≤j≤257}, this j and x (i, j) is consistent.
Step S204: centre frequency and the bandwidth of determining described Morse's number of notifying according to the data value of described statistical parameter data group and predetermined strategy.
Concrete grammar: to L (j), 1≤j≤257} searches for, obtain all peak points in L (j), 1≤j≤257}, this peak point is forwarding center frequency; Then corresponding with each peak point in searching statistical supplemental characteristic group left shoulder and the corner position of right shoulder, the distance between two corner position is the bandwidth of Morse's number of notifying.
General principle: the frequency of transmitting messages due to Morse's number of notifying is single-frequency characteristic, even if this signal receives the pollution of noise in transmitting procedure, message characteristic information is still concentrated near certain frequency, and the peak point positional information therefore given by Corpus--based Method supplemental characteristic group can determine the frequency of Morse's number of notifying exactly; Then determine left shoulder corresponding with peak point in statistical parameter data group and right shoulder corner position, and then the bandwidth of described Morse's number of notifying can be determined.After the centre frequency determining described Morse's number of notifying and bandwidth, the technical scheme that can provide according to prior art carries out respective handling to Morse's number of notifying.
When serious interference, may there is false frequency of transmitting messages in the centre frequency of the Morse's number of notifying determined according to said method; Due to the message symbolic information that the frequency of transmitting messages of falseness is not corresponding with it, therefore these frequencies by automatic filtering in follow-up message symbolic information leaching process, no longer can describe in step thereafter.
In step S300, according to the centre frequency and the bandwidth that obtain Morse's number of notifying in step S200, filter bag external noise.Namely according to centre frequency and the bandwidth of described Morse's number of notifying, all signals be positioned at outside this bandwidth are all considered as noise and directly filter out in described digital baseband signal.
Specific implementation process: establish forwarding center frequency to be
left and right border frequency is respectively
the characteristic of the band external noise filter then used is:
By above-mentioned steps, can all band external noise of filtering, purify message signals to a certain extent.
Step S400 may be used for noise in filter bag.In the embodiment of the present invention, in filter bag, the step of noise specifically comprises the following steps:
Step S401: the Morse according to obtaining reports centre frequency and bandwidth, extracts digital baseband signal each frame peak spectral line amplitude information, morphogenesis characters parameter frame sequence.
Step S402: carry out ascending order arrangement from small to large according to range value to characteristic parameter frame, forms ascending order frame sequence;
In the embodiment of the present invention, the ascending order frame sequence of formation is with { x (n), 1≤n≤N} represents.
Step S403: carry out moving median smothing filtering according to the tract of predetermined length to ascending order frame sequence, forms level and smooth ascending order frame sequence;
In embodiments of the invention: with x (n) for predetermined characteristic parameter frame, select its forward and backward each 5 frames, totally 11 frames are the tract of 11 frames as length; If the averaged amplitude value of characteristic parameter frame is x ' (n) in this tract, then computing formula is:
Obtain level and smooth ascending order frame sequence thus.
Step S404: the frame difference energy value obtaining level and smooth ascending order frame, forms frame difference energy value data rows by the sequence of level and smooth ascending order frame; Described frame difference energy value is the difference between the range value of the first level and smooth ascending order frame and the range value of the second level and smooth ascending order frame; Described first level and smooth ascending order frame and the second level and smooth ascending order frame interval predetermined frame number in described level and smooth ascending order frame sequence.
In the embodiment of the present invention, the first level and smooth ascending order frame (namely predetermined one level and smooth ascending order frame) and the second level and smooth ascending order frame (i.e. predetermined another level and smooth ascending order frame) spacing 49 frame in level and smooth ascending order frame sequence; In practical application, the frame pitch of the first level and smooth ascending order frame and the second level and smooth ascending order frame can adjust according to making a concrete analysis of object.Frame difference energy value is set to g (n), and concrete processing mode is:
g(n)=x’(n)-x’(n-50)。
Multiple frame difference energy value g (n) forms frame difference energy value sequence.
Step S405: in frame difference energy value sequence, judges whether multiple continuous print frame difference energy value is all greater than predetermined value, and if so, then the range value of the first corresponding with first the frame difference energy value being greater than this predetermined value level and smooth ascending order frame is optimal quantization level value.
In the embodiment of the present invention, if predetermined value is 0.70, the concrete mode of this step is:
g(n)≥0.70,n=n
*,n
*+1,n
*+2,…,n
*+100,…。
This formula represents, when continuous 100 frames difference energy value meets this condition, now set and meet this condition at first as g (n), the range value of the x ' (n) corresponding with g (n) is optimal quantization level value.
Step S406: form the pulse Morse number of notifying based on optimal quantization level value.
Concrete grammar is: carry out amplitude quantizing with optimal quantization level value to characteristic parameter frame sequence, the range value that any range value is more than or equal to the frame of optimal quantization level value is converted into predetermined high level, the range value that any range value is less than the frame of optimal quantization level value is converted into predetermined low value, forms the pulse Morse number of notifying of binaryzation accordingly.In the embodiment of the present invention, predetermined high level is 1, and predetermined low value is 0.After this step process, in fact characteristic parameter frame sequence is converted into the pulse Morse number of notifying of binaryzation.
After defining the pulse Morse number of notifying, next need the message structure parameter group extracting Morse's number of notifying, to facilitate the decipher to message.
In the embodiment of the present invention, step S500 comprises the following steps:
Step S501: all pulsewidths and the arteries and veins distance that obtain the pulse Morse number of notifying, and form pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve respectively.
In the embodiment of the present invention, with { y (t), T
min≤ t≤T
maxrepresent statistics pulsewidth Distribution Statistics curve.Based on this pulsewidth Distribution Statistics curve, the principle of the message structure parameter determining Morse's number of notifying is described below.
Step S502: the peak determining pulse in pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve respectively.
In embodiments of the invention, determine that the concrete mode of peak of pulse in pulsewidth Distribution Statistics curve is:
With y (t) for benchmark, calculate:
Front difference: gl (t)=y (t)-y (t-1), T
min≤ t<T
max.
Rear difference: gr (t)=y (t)-y (t+1), T
min≤ t<T
max.
If the peak value place value of pulse is t
p, then t
pone of three following conditions should be met:
Arteries and veins can be identical with the mode of the peak determining pulse in pulsewidth Distribution Statistics curve apart from the peak determination mode of pulse in Distribution Statistics curve.
Step S503: according to the peak of each pulse in described pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve, determine the predefined parameter group of Morse's number of notifying decipher, described predefined parameter group can comprise: the pulse duration of telegraph sybmol " point, draw ", intersymbol distance, code word spacing, code character spacing.
In the embodiment of the present invention, described predefined parameter group comprises " point, draw " pulse duration separation.Determine that the concrete mode of its separation can be:
If pulse duration boundary point value is t
l, then concrete mode is:
Determine t
lafterwards, can also again to t
lcarry out small scope fine setting, make it be somebody's turn to do y (t in preset range
l) minimum, t now
lbe " point, draw " pulse duration separation.
Based on identical handling principle, the parameters such as intersymbol distance, code word spacing and code character spacing can be determined.
After 5 predefined parameters determining the decipher of Morse's number of notifying, signal message can be reported to carry out decipher according to prior art paired pulses Morse.
A kind of Morse provided by the invention reports signal processing apparatus to comprise receiving element, sampling unit, converter unit, collecting unit and processing unit.Wherein: receiving element is used for sampling with predetermined frequency to predetermined simulated audio signal, obtains digital baseband signal.Sampling unit is used for frame number at predetermined intervals and samples to the digital baseband signal that receiving element obtains, and obtains sampled signal frame; Converter unit is used for carrying out FFT to described sampled signal frame, obtains figure signal frame; Collecting unit, for gathering the positional information of amplitude peak spectral line in each figure signal frame, forms statistical parameter data group; Processing unit is used for centre frequency and the bandwidth of determining described Morse's number of notifying according to the data value of described statistical parameter data group and predetermined strategy.Its operation principle is shown in step S200 in said method, does not repeat them here.
In addition, in embodiment provided by the invention, band external noise filter element can also be comprised, for according to the centre frequency of described Morse's number of notifying and bandwidth, this band external noise will be positioned at and directly filter out, to reduce band external noise to the interference of telegraphic signal.Operation principle with external noise filter element is shown in step S300 in said method, does not repeat them here.
Moreover Morse reports signal processing apparatus can also comprise noise filtering unit in band, for noise in filter bag.In band, noise filtering unit comprises the first module, the second module, the 3rd module, four module and quantization modules.Wherein, the first module is used for centre frequency according to obtaining and band width, peak value spectral line amplitude information in the band extracting digital baseband signal each frame, morphogenesis characters parameter frame, multiple characteristic parameter frame morphogenesis characters parameter frame sequence.Second module is used for carrying out ascending order arrangement to characteristic parameter frame sequence from small to large according to range value, forms ascending order frame sequence; Again according to the tract of predetermined length, moving median smothing filtering is carried out to ascending order frame sequence, form level and smooth ascending order frame sequence.3rd module, for obtaining the frame difference energy value of level and smooth ascending order frame signal, forms frame difference energy value sequence by the sequence of level and smooth ascending order frame; Described frame difference energy value is the difference between the range value of a level and smooth ascending order frame (the first level and smooth ascending order frame) and the range value of another level and smooth ascending order frame (the second level and smooth ascending order frame), in described level and smooth ascending order frame sequence, these two the predetermined frame numbers of level and smooth ascending order frame period.Four module is used in described frame difference energy value sequence, judge whether multiple continuous print frame difference energy value is all greater than predetermined value, if so, then the range value determining the first level and smooth ascending order frame corresponding with first frame difference energy value meeting this condition is optimal quantization level value.Quantization modules is used for carrying out amplitude quantizing based on optimal quantization level value to characteristic parameter frame sequence, the range value that any range value is more than or equal to the frame of optimal quantization level value is converted into predetermined high level, the range value that any range value is less than the frame of optimal quantization level value is converted into predetermined low value, forms the pulse Morse number of notifying of binaryzation accordingly.
In band, the operation principle of noise filtering unit is shown in step S400 in said method, does not repeat them here.
The Morse that the embodiment of the present invention provides reports signal processing apparatus to comprise decision unit, for obtaining message signals structural parameters group, to carry out message decipher.
Described decision unit comprises the first subelement and the second subelement.Wherein, the first subelement, for obtaining pulsewidth and the arteries and veins distance of the pulse Morse number of notifying, forms pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve; Again based on pulsewidth Distribution Statistics curve and arteries and veins distance Distribution Statistics curve, determine the peak of pulse respectively.Second subelement is used for the peak according to each pulse described, and determine the predefined parameter group of Morse's number of notifying decipher, predefined parameter group comprises 5 predefined parameter values.Described 5 predefined parameter values are: the pulse duration of telegraph sybmol " point, draw ", intersymbol distance, code word spacing, code character spacing.The operation principle of decision unit is shown in step S500 in said method, does not repeat them here.
Apply specific case herein to set forth technical scheme provided by the invention, the explanation of above embodiment is just for helping the technical scheme understanding the present invention's proposition.It should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to some details of the present invention; These improve and modify and also fall in the protection range of the claims in the present invention.