The method and apparatus that a kind of touch-tone signal receives
Technical field
The present invention relates to the network communications technology field, be specifically related to the method and apparatus that a kind of DTMF (dual-tone multifrequency) signal receives.
Background technology
DTMF (Dual tone multifrequency, dual-tone multifrequency) is a kind of subscriber line signaling, can be that the dual tone phone machine is issued switch and is used for calling out, also can be by switch issue double-tone frequently phone so that CID (caller identification) to be provided business.
On the dual tone phone machine, press a key on its figure disc, telephone set will send a dtmf signal, and each dtmf signal is made up of two frequencies.The frequency that each dtmf signal comprises is as shown in table 1.
Table 1
Frequency (Hz) |
1,209 |
1,336 |
1,477 |
1,633 |
697 |
1 |
2 |
3 |
A |
770 |
4 |
5 |
6 |
B |
852 |
7 |
8 |
9 |
C |
941 |
* |
0 |
# |
D |
Usually, we are called low frequency group with four frequencies of vertical gauge outfit in the table 1, and four frequencies of horizontal gauge outfit in the table 1 are called high frequency group.Be frequency be 697,770,852,941 be low frequency group, frequency be 1209,1336,1477,1633 be high frequency group.
When we call, whenever press a number on the dial, telephone set all can send a signal that comprises two frequencies, and one of them frequency is the frequency in the high frequency group, and another frequency is the frequency in the low frequency group.For example: during number 1 on pressing dial, telephone set sends a dtmf signal, and the frequency that this signal comprises is 697Hz and 1209Hz.
The above-mentioned this simple superposition of sinusoidal signal on amplitude that is actually two different frequencies that comprise.Press frequency that signal that other numbers on the dial send comprises with reference to table 1.
When dtmf signal is received, need dtmf signal receiving system accurate recognition dtmf signal, dtmf signal is received reliably, the process of dtmf signal receiving system reception dtmf signal is actual to be exactly the process of discerning to received signal.
Usually for the dtmf signal receiving system, dtmf signal received reliably need satisfy following condition:
1, in the frequency departure dtmf signal standard value certain limit of received signal, the dtmf signal receiving system should be determined received signal is received as dtmf signal, makes little deviation reliable reception.For example frequency should be the received signal of 697Hz, certain skew appears in the frequency of received signal, having become frequency is the received signal of 700Hz, because the frequency departure of received signal is in the scope of dtmf signal standard value, the dtmf signal receiving system still should be determined received signal is received as dtmf signal, and the little deviation of dtmf signal is received reliably.
2, beyond the frequency departure dtmf signal standard value certain limit of received signal, the dtmf signal receiving system should be determined received signal not to be received as dtmf signal, and large deviation is not reliably received.For example frequency should be the received signal of 697Hz, skew appears in the frequency of received signal, having become frequency is the received signal of 600Hz, because the frequency departure of received signal is outside the scope of dtmf signal standard value, the dtmf signal receiving system should be determined received signal is not received as dtmf signal, and the dtmf signal large deviation is not reliably received.
3, when phone is in talking state, the dtmf signal receiving system should not receive voice signal as dtmf signal, and simultaneously, the dtmf signal receiving system should not receive note signal yet as dtmf signal.This feature of dtmf signal receiving system is usually said anti-characteristics of speech sounds, anti-musical sound characteristic.
The dtmf signal receiving system is that the characteristics according to received signal judge whether received signal is received as dtmf signal.Because the dtmf signal receiving system is a real-time working, so when speaking, there is such possibility, feature and the feature of dtmf signal of a certain section voice signal in the dtmf signal frequency band is more close, and this time, the dtmf signal receiving system will receive its mistake as dtmf signal.Simultaneously, when transmitting musical sound, also have so possibility, feature and the feature of dtmf signal of a certain section note signal in the dtmf signal frequency band is more close, and the dtmf signal receiving system will miss it and receive as dtmf signal this time.
A good dtmf signal receiving system needs under equal conditions, promptly at same section voice or same section musical sound, and the situation that appearance mistake that can be the least possible receives as dtmf signal.
The method that dtmf signal receives in the prior art has two kinds at present:
The method of first kind of dtmf signal reception is based on the feature of dtmf signal.
Because dtmf signal has certain feature on frequency and Energy distribution, so the signal in the dtmf signal frequency band carries out frequency and the analysis of signal energy distribution characteristics can determine whether received signal has the dtmf signal feature, and the received signal that will have the dtmf signal feature receives as dtmf signal to received signal.
Determine that the method whether received signal has a dtmf signal feature is: judge whether the frequency of received signal satisfies the requirement of dtmf signal; Judge simultaneously whether the signal energy distribution of received signal in the dtmf signal frequency band satisfies the requirement of dtmf signal.If received signal satisfies the requirement of dtmf signal simultaneously in frequency and Energy distribution, determine that received signal has the dtmf signal feature, if received signal can not satisfy the requirement of dtmf signal simultaneously in frequency and Energy distribution, determine that received signal does not have the dtmf signal feature.
The embodiment of the method that first kind of dtmf signal receives is: carry out filtering to received signal, determine whether received signal is received as dtmf signal according to the frequency and the energy distributions feature of signal after the filtering.
The kind of filtering is respectively low frequency group bandpass filtering and high frequency group bandpass filtering.
Judge whether that flow chart that received signal is received as dtmf signal as shown in Figure 1.
In Fig. 1, carry out low frequency group bandpass filtering and high frequency group bandpass filtering to received signal simultaneously;
The passband of low frequency group bandpass filtering comprises the scope of low frequency group, does not comprise the scope of high frequency group, and for example, free transmission range is 600Hz~1050Hz.
The passband of high frequency group bandpass filtering comprises the scope of high frequency group, does not comprise the scope of low frequency group, and for example, free transmission range is 1100Hz~1750Hz.
Judge received signal through the signal energy behind the low frequency group bandpass filtering whether less than predetermined low frequency group energy threshold.If the signal energy behind the received signal process low frequency group bandpass filtering is less than predetermined low frequency group energy threshold, the expression received signal is not effective dtmf signal, received signal is not received as dtmf signal.If received signal is not less than predetermined low frequency group energy threshold through the signal energy behind the low frequency group bandpass filtering, the expression received signal departs within the scope in standard value low frequency group.
Judge received signal through the signal energy behind the high frequency group bandpass filtering whether less than predetermined high frequency group energy threshold.If the signal energy behind the received signal process high frequency group bandpass filtering is less than predetermined high frequency group energy threshold, the expression received signal is not effective dtmf signal, received signal is not received as dtmf signal.If the signal energy behind the received signal process high frequency group bandpass filtering is not less than predetermined high frequency group energy threshold, expression received signal departing within standard value range at high frequency group.
Judge that whether signal energy behind the high frequency group bandpass filtering and the signal energy difference behind the low frequency group bandpass filtering are greater than the predetermined power difference.If the signal energy difference behind signal energy behind the high frequency group bandpass filtering and the low frequency group bandpass filtering is greater than the predetermined power difference, the expression received signal is not effective dtmf signal, received signal is not received as dtmf signal.If the signal energy difference behind signal energy behind the high frequency group bandpass filtering and the low frequency group bandpass filtering is not more than the predetermined power difference, the expression received signal has the feature of the signal energy difference of dtmf signal behind signal energy behind the high frequency group bandpass filtering and low frequency group bandpass filtering.
Carry out the signal frequency judgement to received signal, whether meet dtmf signal requirement on frequency exactly if adjudicating received signal according to the signal behind high frequency group and the low frequency group bandpass filtering in the signal frequency judgement.If the signal frequency judgement is not passed through, the expression received signal is not effective dtmf signal, received signal is not received as dtmf signal.If the signal frequency judgement is passed through, and received signal departs within the scope in standard value low frequency group, received signal departs within standard value range high frequency group, received signal has the feature of the signal energy difference of dtmf signal behind signal energy behind the high frequency group bandpass filtering and low frequency group bandpass filtering simultaneously, the expression received signal has the feature of dtmf signal, and received signal is received as dtmf signal.
In the above-mentioned deterministic process, though be described according to sequencing, above-mentioned deterministic process be in no particular order the order.In like manner, the deterministic process among Fig. 1 also be in no particular order the order.
First kind of dtmf signal method of reseptance can be realized the little deviation reliable reception of dtmf signal, and large deviation does not reliably receive.But can not realize anti-characteristics of speech sounds and anti-musical sound characteristic.
The method of second kind of dtmf signal reception is:
In the judging process of first kind of dtmf signal method of reseptance, whether increase satisfies the judgement that dtmf signal requires in the Energy distribution of the out-of-band low frequency signal of dtmf signal to received signal.If received signal satisfies the dtmf signal requirement in the Energy distribution of the out-of-band low frequency signal of dtmf signal, and received signal adjudicates to having the dtmf signal feature in first kind of dtmf signal method of reseptance, then received signal received as dtmf signal.
Its concrete grammar as shown in Figure 2.
Carry out low frequency group bandpass filtering, high frequency group bandpass filtering and low-pass filtering to received signal simultaneously, whether the ratio of judging signal energy after the received signal low-pass filtering and received signal gross energy is less than predetermined value, if the predetermined value of being not less than does not receive received signal as dtmf signal.If less than predetermined value, and received signal has the dtmf signal feature simultaneously, and received signal is received as dtmf signal.
The typical free transmission range of low-pass filtering is 0~550H, and its free transmission range can not have overlapping with the low frequency group frequency band range.
Because the main concentration of energy of voice signal is in low-frequency range, so by carrying out low-pass filtering to received signal, can determine according to the signal after the low-pass filtering whether received signal is pure voice signal.
The method that receives with first kind of dtmf signal in like manner, the deterministic process among above-mentioned deterministic process and Fig. 2 also is an order in no particular order.
The receiving system of second kind of dtmf signal method of reseptance of realization as shown in Figure 3.Comprise a high frequency group band pass filter, low frequency group band pass filter, low pass filter and judging module.
In Fig. 3, received signal is passed through low pass filter simultaneously respectively, and low frequency group band pass filter and high frequency group band pass filter carry out filtering, with filtered signal input judging module.
Judging module is used for adjudicating according to the signal characteristic that transmission comes, and determines whether received signal is received as dtmf signal; And output court verdict.Its judging process is: if the signal energy behind the received signal process low frequency group bandpass filtering is not less than predetermined low frequency group energy threshold, signal energy behind the received signal process high frequency group bandpass filtering is not less than predetermined high frequency group energy threshold, signal energy difference behind signal energy behind the high frequency group bandpass filtering and the low frequency group bandpass filtering is not more than the predetermined power difference, received signal is not more than predetermined value through the signal energy after the low-pass filtering and the ratio of received signal gross energy simultaneously, and the signal frequency judgement is passed through, determine received signal is received as dtmf signal, and the output received signal is the court verdict of dtmf signal; Otherwise determine received signal is not received as dtmf signal, and the output received signal is not the court verdict of dtmf signal.
Receiving system utilizes the signal after low frequency group band pass filter and the high frequency group band-pass filter to judge whether the Energy distribution of received signal has the feature of dtmf signal Energy distribution, the purpose that the little deviation reliable reception of realization dtmf signal and the large deviation of dtmf signal reliably do not receive.
Because the main concentration of energy of voice signal in low-frequency range, so receiving system has designed low pass filter, realizes the purpose of anti-voice by the judgement to the low frequency signal after the low-pass filtering.
But the method that the dtmf signal of prior art receives does not take into full account anti-musical sound characteristic.
Musical sound is different with the characteristics of voice, and the characteristics of musical sound are that the harmonic ratio of signal is abundanter, and the energy of harmonic wave is bigger, and the main concentration of energy of note signal is at high band like this.If only received signal is carried out low-pass filtering, can only realize the purpose of anti-voice according to filtered signal distributions feature, can not realize the purpose of anti-musical sound.
As mentioned above, prior art has considered that little deviation reliable reception, large deviation reliably do not receive and anti-characteristics of speech sounds.But prior art does not take into full account anti-musical sound characteristic.
Utilize prior art, when transmitting note signal, the situation that exists the dtmf signal misconnection to receive.
Summary of the invention
The objective of the invention is to, the method and apparatus that provides a kind of DTMF (dual-tone multifrequency) signal to receive with effective identification dtmf signal, reduces the dtmf signal misconnection and receives probability.
For achieving the above object, the method that a kind of dtmf signal provided by the invention receives comprises:
A, obtain the high-frequency signal of received signal outside the dual tone multi-frequency dtmf signal band;
B, judge whether described high-frequency signal distribution characteristics satisfies the received signal of dtmf signal requirement;
C, the received signal that will satisfy the dtmf signal requirement and have the dtmf signal feature simultaneously receive as dtmf signal;
Described have dtmf signal and be characterized as: the signal distributions feature in the dtmf signal frequency band satisfies the requirement of dtmf signal.
Described step a comprises: described received signal is carried out high-pass filtering.
Described step b comprises:
Determine that the ratio of higher frequency signal energy after the described high-pass filtering and described received signal gross energy is not more than the received signal of first predetermined value, and it is satisfied the received signal of dtmf signal requirement as the high-frequency signal characteristic distribution.
Described method step a also comprises:
A1, obtain received signal at the out-of-band low frequency signal of dtmf signal;
And described step c comprises:
When received signal satisfies dtmf signal requirement, received signal when the out-of-band high-frequency signal distribution characteristics of dtmf signal satisfies dtmf signal requirement and received signal and has the dtmf signal feature simultaneously in the out-of-band low frequency signal distribution characteristics of dtmf signal, this received signal is received as dtmf signal.
Described step a1 specifically comprises:
Described received signal is carried out bandreject filtering; Or
Described received signal is carried out high-pass filtering and low-pass filtering simultaneously.
Described step b comprises:
Determine that the ratio of the energy of described bandreject filtering output signal and described received signal gross energy is not more than the received signal of second predetermined value, and it is satisfied the received signal of dtmf signal requirement as high-frequency signal and low frequency signal characteristic distribution; Or
Determine that the ratio of described high-pass filtering output signal and described low-pass filtering output signal stack back signal energy and described received signal gross energy is not more than the received signal of second predetermined threshold, and it is satisfied the received signal of dtmf signal requirement as high-frequency signal and low frequency signal characteristic distribution.
Described signal with dtmf signal feature comprises:
Signal energy is not less than predetermined low frequency group energy threshold behind the described received signal process low frequency group bandpass filtering, signal energy is not less than predetermined high frequency group energy threshold behind the described received signal process high frequency group bandpass filtering, and described received signal through the low frequency group bandpass filtering after signal energy and described received signal through the high frequency group bandpass filtering after the difference of signal energy be not more than the predetermined power difference, the judgement of synchronous signal frequency is a dtmf signal.
It is a kind of based on the device of realizing the method that dtmf signal of the present invention receives that the present invention also provides, comprise: obtain signaling module in the dtmf signal frequency band: be used to obtain the signal of received signal in the dtmf signal frequency band, the described signal that obtains is outputed to judging module;
Obtain the out-of-band high-frequency signal module of dtmf signal: be used to obtain received signal at the out-of-band high-frequency signal of dtmf signal, the described high-frequency signal that obtains is outputed to judging module;
Judging module: be used for adjudicating, the received signal that satisfies the dtmf signal requirement and have the dtmf signal feature is simultaneously received as dtmf signal to transmitting the signal that comes;
Described have dtmf signal and be characterized as: the signal distributions feature in the dtmf signal frequency band satisfies the requirement of dtmf signal.
The described interior signaling module of dtmf signal frequency band that obtains comprises: low frequency group band pass filter and high frequency group band pass filter;
The described out-of-band high-frequency signal module of dtmf signal of obtaining comprises: high pass filter.
Described device also comprises: obtain the out-of-band low frequency signal module of dtmf signal;
Obtain the out-of-band low frequency signal module of dtmf signal: obtain received signal at the out-of-band low frequency signal of dtmf signal, and the described low frequency signal that obtains is outputed to judging module;
Judging module: be used for satisfying dtmf signal requirement, received signal when the out-of-band high-frequency signal distribution characteristics of dtmf signal satisfies dtmf signal requirement and received signal and has the dtmf signal feature simultaneously in the out-of-band low frequency signal distribution characteristics of dtmf signal, this received signal is received as dtmf signal in definite received signal.
Describedly obtain the out-of-band high-frequency signal module of dtmf signal and the described out-of-band low frequency signal module of dtmf signal of obtaining is: band stop filter; Or be: high pass filter and low pass filter.
By the present invention, carry out the signature analysis in the dtmf signal frequency band to received signal and carry out the out-of-band signature analysis of dtmf signal to received signal, can the effective recognition dtmf signal, even when the voice signal of input or the feature of note signal in the dtmf signal frequency band of input are more close with the dtmf signal feature, also can the effective recognition dtmf signal, dtmf signal is received reliably, thereby realized reducing the purpose that probability is received in the dtmf signal misconnection.
Description of drawings
Fig. 1 is first kind of dtmf signal method of reseptance flow chart in the prior art;
Fig. 2 is second kind of dtmf signal method of reseptance flow chart in the prior art;
Fig. 3 is a dtmf signal receiving system in the prior art;
Fig. 4 is first kind of dtmf signal method of reseptance flow process of the present invention;
Fig. 5 is second kind of dtmf signal method of reseptance flow process of the present invention;
Fig. 6 is the third dtmf signal method of reseptance flow process of the present invention;
Fig. 7 is first kind of dtmf signal receiving system of the present invention;
Fig. 8 is second kind of dtmf signal receiving system of the present invention;
Fig. 9 is the third dtmf signal receiving system of the present invention.
Embodiment
Because dtmf signal has certain feature, musical sound and voice signal also have certain feature, extract corresponding feature to received signal, the feature of extracting are analyzed just can determine whether received signal is received as dtmf signal.
In the present invention by carrying out the signature analysis in the dtmf signal frequency band to received signal and carrying out the signature analysis of the out-of-band high-frequency signal of dtmf signal to received signal, can the effective recognition received signal whether be dtmf signal, determine whether received signal is received as dtmf signal.Its method is: the signal extraction that received signal is belonged to dtmf signal low frequency group scope is come out, the signal extraction that received signal is belonged to dtmf signal high frequency group scope is come out, and judges according to the signal distributions of received signal in the dtmf signal frequency band whether received signal has the feature of dtmf signal.With the extracting of received signal, judge in the Energy distribution of the out-of-band high-frequency signal of dtmf signal whether received signal satisfies the requirement of dtmf signal in the Energy distribution of the out-of-band high-frequency signal of dtmf signal simultaneously according to received signal at the out-of-band high-frequency signal of dtmf signal.
If received signal has the feature of dtmf signal, simultaneously received signal satisfies the requirement of dtmf signal in the Energy distribution of the out-of-band high-frequency signal of dtmf signal, so received signal is identified as effective dtmf signal and it is received as dtmf signal.
By said method dtmf signal is received and have anti-musical sound characteristic, realized the purpose of dtmf signal reliable reception, thereby reduced the probability that the dtmf signal misconnection is received.
The present invention is described in detail below in conjunction with accompanying drawing.
First kind of embodiment of dtmf signal method of reseptance of the present invention as shown in Figure 4.
In Fig. 4, step 400 is carried out high frequency group bandpass filtering, low frequency group bandpass filtering, high-pass filtering to received signal simultaneously.
The passband of low frequency group bandpass filtering comprises the scope of low frequency group, does not comprise the scope of high frequency group, and for example, free transmission range is 600Hz~1050Hz.
The passband of high frequency group bandpass filtering comprises the scope of high frequency group, does not comprise the scope of low frequency group, and for example, free transmission range is 1100Hz~1750Hz.
The high-pass filtering scope does not comprise the scope of high frequency group, and for example filter range is 1900Hz~4000Hz.
After the received signal filtering through three kinds of modes simultaneously, obtained received signal in the dtmf signal frequency band signal and received signal at the out-of-band high-frequency signal of dtmf signal.
In step 410, judge received signal through the signal energy behind the low frequency group bandpass filtering whether less than predetermined low frequency group energy threshold.
If the signal energy behind the received signal process low frequency group bandpass filtering is less than predetermined low frequency group energy threshold, the expression received signal is not effective dtmf signal, to step 470, received signal is not received as dtmf signal.
If received signal is not less than predetermined low frequency group energy threshold through the signal energy behind the low frequency group bandpass filtering, the expression received signal is within the energy of low frequency group signal departs from scope in standard value, to step 420.
In step 420, judge received signal through the signal energy behind the high frequency group bandpass filtering whether less than predetermined high frequency group energy threshold.
If the signal energy behind the received signal process high frequency group bandpass filtering is less than predetermined high frequency group energy threshold, the expression received signal is not effective dtmf signal, to step 470, received signal is not received as dtmf signal.
If received signal is not less than predetermined high frequency group energy threshold through the signal energy behind the high frequency group bandpass filtering, the expression received signal is within the energy of high frequency group signal departs from scope in standard value, to step 430.
In step 430, judge received signal through the ratio of signal energy after the high-pass filtering and received signal gross energy whether greater than first predetermined value.
If greater than first predetermined value, the expression received signal is not effective dtmf signal, to step 470, received signal is not received as dtmf signal.
If be not more than first predetermined value, the expression received signal satisfies the requirement of dtmf signal in the Energy distribution of the out-of-band high-frequency signal of dtmf signal, to step 440.
In step 440, judge that whether signal energy behind the high frequency group bandpass filtering and the signal energy difference behind the low frequency group bandpass filtering are greater than the predetermined power difference.
If greater than the predetermined power difference, the expression received signal is not effective dtmf signal, to step 470, received signal is not received as dtmf signal.
If be not more than the predetermined power difference, the expression received signal has the feature of the signal difference of dtmf signal behind signal behind the high frequency group bandpass filtering and low frequency group bandpass filtering, to step 450.
In step 450, carry out the signal frequency judgement to received signal, if the signal frequency judgement is not passed through, the expression received signal is not effective dtmf signal, to step 470, received signal is not received as dtmf signal.If the signal frequency judgement is passed through, the expression received signal is effective dtmf signal, to step 460, received signal is received as dtmf signal.
In the foregoing description process, though be described from step 410 to step 450 according to sequencing, above-mentioned from step 410 to step 450 be in no particular order the order.In like manner, 410 of Fig. 4 to 450 also be in no particular order the order.
Can realize that by said method little deviation reliable reception, the large deviation of dtmf signal reliably do not receive and the purpose of anti-musical sound.
Second kind of embodiment of dtmf signal method of reseptance of the present invention as shown in Figure 5.
In Fig. 5, step 500 is carried out high frequency group bandpass filtering, low frequency group bandpass filtering, bandreject filtering to received signal simultaneously.
The passband scope of low frequency group bandpass filtering is identical with first kind of embodiment with the passband scope of high frequency group bandpass filtering.
The stopband range of bandreject filtering comprises the scope of high frequency group and the scope of low frequency group, and for example, the scope of stopband is 600Hz~1750Hz.
After the received signal filtering through three kinds of modes simultaneously, obtained received signal in the dtmf signal frequency band signal distributions and received signal in the signal distributions of out-of-band high-frequency signal of dtmf signal and low frequency signal.
Step 410 in the determination methods of step 510 and step 520 and first kind of embodiment is identical with the determination methods of step 420.
In step 530, judge received signal through the ratio of signal energy behind the bandreject filtering and received signal gross energy whether greater than second predetermined value.
If greater than second predetermined value, the expression received signal is not effective dtmf signal, to step 570, received signal is not received as dtmf signal.
If be not more than second predetermined value, the expression received signal satisfies the requirement of dtmf signal in dtmf signal frequency band external signal energy distributions, to step 540.
Step 440 in the determination methods of step 540 and step 550 and first kind of embodiment is identical with the determination methods of step 450.
In the present embodiment, if the signal energy behind the received signal process low frequency group bandpass filtering is not less than predetermined low frequency group energy threshold, signal energy behind the received signal process high frequency group bandpass filtering is not less than predetermined high frequency group energy threshold, signal energy difference behind signal energy behind the high frequency group bandpass filtering and the low frequency group bandpass filtering is not more than the predetermined power difference, received signal is not more than second predetermined value through the signal energy behind the bandreject filtering and the ratio of received signal gross energy simultaneously, and the signal frequency judgement is passed through, and received signal is received as dtmf signal; Otherwise received signal is not received as dtmf signal.
With the embodiment of first kind of dtmf signal method of reseptance of the present invention in like manner, deterministic process in second kind of embodiment also is an order in no particular order.The deterministic process of Fig. 5 too in no particular order in proper order.
By said method can realize dtmf signal little deviation reliable reception, large deviation does not reliably receive and the purpose of anti-voice, anti-musical sound.
The third embodiment of dtmf signal method of reseptance of the present invention as shown in Figure 6.
In Fig. 6, step 600 is carried out high frequency group bandpass filtering, low frequency group bandpass filtering, low-pass filtering, high-pass filtering to received signal simultaneously.
The passband scope of the passband scope of low frequency group bandpass filtering and the passband scope of high frequency group bandpass filtering and the low frequency group bandpass filtering of above-mentioned first kind of embodiment is identical with the passband scope of high frequency group bandpass filtering.
Low-pass filtering and high-pass filtering can realize the effect of the bandreject filtering in above-mentioned first kind of embodiment jointly.
After the received signal filtering through four kinds of modes simultaneously, the signal distributions of received signal in the dtmf signal frequency band and the signal distributions of received signal high-frequency signal and low frequency signal outside the dtmf signal frequency band have been obtained.
Signal acceptance method in signal acceptance method in the third embodiment and the second kind of embodiment is basic identical, just the step 530 in second kind of embodiment to received signal behind the bandreject filtering signal judge and judge by signal after high-pass filtering to received signal of the step 630 in the present embodiment and the low-pass filtering and to substitute.
In step 630, signal after the high-pass filtering and the signal after the low-pass filtering simply superpose, whether the energy of judgement stack back signal and the ratio of received signal gross energy is greater than second predetermined value, if greater than second predetermined value, the expression received signal is not effective dtmf signal, to step 670, received signal is not received as dtmf signal.If be not more than second predetermined value, the expression received signal satisfies the requirement of dtmf signal in dtmf signal frequency band external signal Energy distribution, to step 640.
In the present embodiment, if the signal energy behind the received signal process low frequency group bandpass filtering is not less than predetermined low frequency group energy threshold, signal energy behind the received signal process high frequency group bandpass filtering is not less than predetermined high frequency group energy threshold, signal energy difference behind signal energy behind the high frequency group bandpass filtering and the low frequency group bandpass filtering is not more than the predetermined power difference, the signal stack power after received signal process high-pass filtering simultaneously and the low-pass filtering and the ratio of received signal gross energy are not more than second predetermined value, and the signal frequency judgement is passed through, and received signal is received as dtmf signal; Otherwise received signal is not received as dtmf signal.
With the embodiment of first kind of dtmf signal method of reseptance of the present invention in like manner, the deterministic process in the third embodiment also is an order in no particular order.The deterministic process of Fig. 6 too in no particular order in proper order.
By said method can realize dtmf signal little deviation reliable reception, large deviation does not reliably receive and the purpose of anti-voice, anti-musical sound.
The present invention also provides the device of realizing above-mentioned dtmf signal method of reseptance.
First kind of device as shown in Figure 7, this device is realized first kind of dtmf signal method of reseptance in specific embodiment of the invention.Comprise: low frequency group band pass filter 700, high frequency group band pass filter 710, high pass filter 720, judging module 730.
Low frequency group band pass filter 700 and the high frequency group band pass filter 710 common functions that realize obtaining signaling module in the dtmf signal frequency band; High pass filter 720 realizes obtaining the function of the out-of-band high-frequency signal module of dtmf signal.
Low frequency group band pass filter 700: be used for received signal is carried out low frequency group filtering, filtered signal is outputed to judging module 730.
High frequency group band pass filter 710: be used for received signal is carried out high frequency group filtering, filtered signal is outputed to judging module 730.
High pass filter 720: be used for received signal is carried out high-pass filtering, obtain received signal, the described high-frequency signal that obtains is outputed to judging module 730 at the out-of-band high-frequency signal of dtmf signal.
Judging module 730: be used for adjudicating, determine whether received signal receives as dtmf signal according to the signal characteristic that transmission comes; And output court verdict.
Its judging process is: if the signal energy behind the received signal process low frequency group bandpass filtering is not less than predetermined low frequency group energy threshold, signal energy behind the received signal process high frequency group bandpass filtering is not less than predetermined high frequency group energy threshold, signal energy difference behind signal energy behind the high frequency group bandpass filtering and the low frequency group bandpass filtering is not more than the predetermined power difference, received signal is not more than first predetermined value through the signal energy after the high-pass filtering and the ratio of received signal gross energy simultaneously, and the signal frequency judgement is passed through, determine received signal is received as dtmf signal, and the output received signal is the court verdict of dtmf signal; Otherwise determine received signal is not received as dtmf signal, and the output received signal is not the court verdict of dtmf signal.
By the effective identification dtmf signal of this device, little deviation reliable reception, the large deviation that realizes dtmf signal reliably do not receive and the purpose of anti-musical sound, reduced the dtmf signal mistake probability that collects the digits.
Second kind of device as shown in Figure 8, this device is realized second kind of dtmf signal method of reseptance in specific embodiment of the invention.Comprise: low frequency group band pass filter 800, high frequency group band pass filter 810, band stop filter 820, judging module 830.
Low frequency group band pass filter 800 and the high frequency group band pass filter 810 common functions that realize obtaining signaling module in the dtmf signal frequency band; Band stop filter 820 realizes obtaining out-of-band low frequency signal module of dtmf signal and the function of obtaining the out-of-band high-frequency signal module of dtmf signal.
Low frequency group band pass filter 800: be used for received signal is carried out low frequency group filtering, filtered signal is outputed to judging module 830.
High frequency group band pass filter 810: be used for received signal is carried out high frequency group filtering, filtered signal is outputed to judging module 830.
Band stop filter 820: be used for received signal is carried out bandreject filtering, obtain received signal, the described signal that obtains is outputed to judging module 830 at the out-of-band signal of dtmf signal.
Judging module 830: be used for adjudicating, determine whether received signal receives as dtmf signal according to the signal characteristic that transmission comes; And output court verdict.
Its judging process is: if the signal energy behind the received signal process low frequency group bandpass filtering is not less than predetermined low frequency group energy threshold, signal energy behind the received signal process high frequency group bandpass filtering is not less than predetermined high frequency group energy threshold, signal energy difference behind signal energy behind the high frequency group bandpass filtering and the low frequency group bandpass filtering is not more than the predetermined power difference, received signal is not more than second predetermined value through the signal energy behind the bandreject filtering and the ratio of received signal gross energy simultaneously, and the signal frequency judgement is passed through, determine received signal is received as dtmf signal, and the output received signal is the court verdict of dtmf signal; Otherwise determine received signal is not received as dtmf signal, and the output received signal is not the court verdict of dtmf signal.
By the effective identification dtmf signal of this device, realize dtmf signal little deviation reliable reception, large deviation does not reliably receive and the purpose of anti-voice, anti-musical sound, has reduced the dtmf signal mistake probability that collects the digits.
The third installs as shown in Figure 9, and this device is realized the third dtmf signal method of reseptance in specific embodiment of the invention.Comprise: low frequency group band pass filter 900, high frequency group band pass filter 910, low pass filter 920, high pass filter 930, judging module 940.
Low frequency group band pass filter 900 and the high frequency group band pass filter 910 common functions that realize obtaining signaling module in the dtmf signal frequency band; Low pass filter 920 realizes obtaining the function of signal in the out-of-band low frequency signal module of dtmf signal; High pass filter 930 realizes obtaining the function of signal in the out-of-band high-frequency signal module of dtmf signal.
Low frequency group band pass filter 900: be used for received signal is carried out low frequency group filtering, filtered signal is outputed to judging module 940.
High frequency group band pass filter 910: be used for received signal is carried out high frequency group filtering, filtered signal is outputed to judging module 940.
Low pass filter 920: be used for received signal is carried out low-pass filtering, obtain the out-of-band low frequency signal of dtmf signal, filtered low frequency signal is outputed to judging module 940.
High pass filter 930: be used for received signal is carried out high-pass filtering, obtain the out-of-band high-frequency signal of dtmf signal, filtered high-frequency signal is outputed to judging module 940.
Judging module 940: be used for adjudicating, determine whether received signal receives as dtmf signal according to the signal characteristic that transmission comes; And output court verdict.
Its judging process is: if the signal energy behind the received signal process low frequency group bandpass filtering is not less than predetermined low frequency group energy threshold, signal energy behind the received signal process high frequency group bandpass filtering is not less than predetermined high frequency group energy threshold, signal energy difference behind signal energy behind the high frequency group bandpass filtering and the low frequency group bandpass filtering is not more than the predetermined power difference, the signal stack power after received signal process low-pass filtering and the high-pass filtering and the ratio of received signal gross energy are not more than second predetermined value simultaneously, and the signal frequency judgement is passed through, determine received signal is received as dtmf signal, and the output received signal is the court verdict of dtmf signal; Otherwise determine received signal is not received as dtmf signal, and the output received signal is not the court verdict of dtmf signal.
By the effective identification dtmf signal of this device, realize dtmf signal little deviation reliable reception, large deviation does not reliably receive and the purpose of anti-voice, anti-musical sound, has reduced the dtmf signal mistake probability that collects the digits.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wishes that appended claim comprises these distortion and variation.