AU717752B2 - Tone detector - Google Patents
Tone detector Download PDFInfo
- Publication number
- AU717752B2 AU717752B2 AU74146/96A AU7414696A AU717752B2 AU 717752 B2 AU717752 B2 AU 717752B2 AU 74146/96 A AU74146/96 A AU 74146/96A AU 7414696 A AU7414696 A AU 7414696A AU 717752 B2 AU717752 B2 AU 717752B2
- Authority
- AU
- Australia
- Prior art keywords
- microprocessor
- digital
- arrangement
- signal
- signals
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Landscapes
- Measuring Frequencies, Analyzing Spectra (AREA)
Description
P/00/0i 128/5/91 Regulation 3.2
AUSTRALIA
Patents Act 1990 tee# *fl.
a a
ORIGINAL
COMPLETE
SPECIFICATION
STANDARD
PATENT
Invention Title: "TONE DETECTOR" The following statement is a full dlescription of this invention, including the best method of performning it known to us:- 901813 51296 rl 2 This invention relates to tone detection and in particular to an improved arrangement which allows a relatively low cost microprocessor to detect the presence or absence of particular frequencies within an incoming signal, such as, for example dial tone or call waiting tone received from exchange equipment by a telephone subset.
Several tone detector methods are known. One method comprises the steps of passing the signal containing the tone to be detected through a very high Q bandpass filter, a level shifter and then into a digital input port of a microprocessor.
The microprocessor will see a square wave at the input pin whenever the required frequency is present in the input signal. This can easily be detected by interrupts or polling.
In this method, however, the filter tends to be relatively expensive, usually using o o.
several stages to give the desired roll-off and incorporating tight-tolerance or factorytuned mpornnt for crntre-frnencrv ncctjracyv.
Another known method is to incorporate a phase-locked loop (PLL). In this case, the input signal is passed through a low-Q bandpass filter, into the PLL and the Lock signal from the PLL is connected to a digital input port of a microprocessor.
This method is also relatively expensive, and PLL being a significant component .i20 of the cost. It still requires tight tolerance or factory-tuned components for centrefrequency accuracy.
Another known method.which is less costly than the previously mentioned method passes the input signal through a low-Q bandpass filter and a level shifter into a digital input port of a microprocessor. The microprocessor will see a squared off version of the filtered input signal. If the microprocessor is interrupted on every rising (or falling) edge it can time the period between edges. If the period corresponds to the search frequency (or one of the search frequencies) then the microprocessor can indicate the presence of the signal. Typically though, many matching samples would ne-d to occur before the signal could be detected with any certainty. This method is quite sensitive to input noise.
This method uses relatively cheap components to provide a means of detecting multiple frequencies with a reasonably tight bandwidth. However, depending on the microprocessor, this method could use a significant proportion of the available processing power.
Digital signal processers designed specifically for tone detection are also known, but are relatively expensive.
It is an object of the present invention to provide an improved tone detector arrangement in which tight bandwidth is achieved at relatively low cost.
It is a further object of the present invention to provide an improved tone detector arrangement which the tight bandwidth is achieved with minimum processing power.
According to the invention there is provided a tone detector arrangement comprising an analog signal input means coupled to a digital input port of a microprocessor via a bandpass filter means and an analog-to-digital converter means, wherein said microprocessor includes sampling means for sampling signals 0_015 napplidn t- rin ~nrilnrinn zinnnl innput mens n-hit buffer means for storing data i' representing sampled signals, and an analysis means for periodically analysing samples in said buffer means, said analysis means using a modified Fourier Transform to detect signals of a predetermined frequency.
In order that the invention may be readily carried into effect, embodiments thereof will now be described in relation to the accompanying drawings, in which: Figure 1 shows a first embodiment of the invention.
*.":Figure 2 shows a record embodiment of the invention.
***Figure 3 is a flow chart of actions executed in the sampler over analyser shown in Figures 1 2.
Referring to Figure 1, the arrangement comprises a bandpass filter to filter out most of the noise and extraneous signal from the input signal prior to being sampled by the microprocessor.
A limiter to convert the analog input signal into a digital signal useable by the microprocessor and also to filter out low power noise signals. Negative input voltages are shifted to a digital LOW level. Positive noise voltages above the threshold are shifted to a digital HIGH level. A small amount of hysteresis prevents the system from falsely triggering on low level signals.
4 An algorithm used by the microprocessor detects specific frequencies, the algorithm is divided into two parts. The first part samples the input signal and stores it in a buffer for later analysis. Sampling must take place at a relatively high frequency, but the instruction count per sample is low. The second part, the analysis section, periodically analyses the sampled information for the presence of the specified frequency. This requires more processing time per period but can usually be performed at a much lower frequency.
The microprocessor regularly samples the status of the input pin and shifts the sample into an n-bit buffer. This section is time critical.
Normally, in digital signal processing, the sampling frequency needs to be about 3 or 4 times higher than the bandwidth of the input signal. However, in this application under-sampling may be used. The designer must make sure though, that the bandpass filter is capable of discriminating between the target frequency and any nalinas frequencyv intrnrdiic~d h the sampling rate.
.For example: if searching for a 450 Hz signal, then a sampling rate of 1500 Hz would detect a signal with a frequency of 1050 Hz. This example therefore requires a bandpass filter centred at 450 Hz which will attenuate any signal at 1050 Hz to below the noise threshold.
i20 In another example: if searching for a 2130 Hz signal ,then a sampling rate of 1626.6 Hz would give alias frequencies at 503 Hz, 1123 Hz, 2750 Hz, etc. This example requires a bandpass filter centred at 2130 Hz which will attenuate these frequencies to below the noise threshold.
The size of the sample buffer, n depends only on the bandwidth desired and the sample rate according to the following formula.
Buffer size Sample Rate Bandwidth For example, if a bandwidth of 30 Hz is required while sampling at 1500 Hz, samples would need to be stored.
An analysis section periodically examines the samples that have been made to determine whether a particular frequency is present in the input signal. This section is not time critical.
The algorithm used in this section is based on the standard Fourier Transform,
TC
however a number of modifications have been made to adapt it to a simple low-cost microprocessor.
The formula for the Fourier Transform is as follows: F f e -"dt and theory states that the component of energy in a signal, at the radial velocity, w, is given by the magnitude I In practice, the complex exponential term is usually treated as the sum of a cosine term and an imaginary sine term.
In order to be used on a simple microprocessor this invention simplifies this formula in the following ways: 1. Instead of an analog input signal, the input is treated as a sampled 1 -bit digital signal The sanmnple is if th innput signannl is ngative and 1 if it is positive. (In this algorithm, the value 0 really represents 2. Instead of multiplying by sin (wt) and cos (ct) the arrangement of the present invention multiplies by two orthogonal square waves at the detection frequency.
3. Instead of multiplication, the arrangement uses bitwise exclusive-NOR (or exclusive -OR).
4. Instead of integrating over eternity, the last n samples are simply summed over. The sum simplifies to a count of the number of bits in the result.
5. Any constants are ignored.
6. Instead of adding the two orthogonal components together using Pythagorean addition, the arrangement simply takes the absolute value and adds the two components together.
Referring to Figure 3, pseudocode and a flowchart for the analysis section follows: 1. Start (periodically).
2. Templ Samples xor squarewave (Templ is an n-bit buffer) Temp2 Samples xor othogonal squarewave (Temp2 is an n-bit buffer) 3. Bitsl Number of 1 bits in Templ II 6 Bits2 Number of 1 bits in Temp2 4. Valuel absolute value of (n/2 Bitsl) Value2 absolute value of (n/2 Bits 2) 5. Result Valuel Value2 6. If Result is greater than Threshold then frequency is present else frequency is not present Referring to Figure 2, in a further embodiment of the present invention, a digital divide-by-n circuit is interposed between the level shifter and the microprocessor. This modification allows the arrangement to detect the presence of frequencies that would otherwise require more processing power. Software in the S microprocessor is arranged to look for a signal that has a frequency 1/mth of the search frequency.
This modification also affects the relationship between bandwidth, sample rate and buffer size: Buffer size (Sample Rate Bandwidth) m Because the algorithm performs an analysis based on a large number of input 20 samples, the algorithm is relatively insensitive to small amounts of noise.
However, because of the characteristics of the limiter circuit, if a noise signal more than 3dB above the secrch frequency passes through the bandpass filter, the algorithm will not be able to detect the search frequency.
Preferably, in high noise environments, the bandpass filter should be made as narrow as practicable.
Adding a divider also significantly reduces the noise performance of the algorithm. In high noise environments, preferably the divider should not be used.
This invention has an application wherever a low cost microprocessor is used to detect the presence of a particular frequency within an incoming signal, and may be used, for example: 1. In telephones to discriminate between different dial tones.
2. In telephones to detect the presence of call waiting or CIDCW tones.
3. In pay phones to detect the presence of metering pulses.
4. Electricity supply off-peak signal detection.
FM radio 19-kHz carrier detection.
The arrangement may be implemented purely in hardware (for example, in an integrated circuit) as a dedicated tone detector for each of the above applications.
0 *.ss '9 5
S
9; *9 S
S
SS
Claims (4)
1. A tone detector arrangement comprising an analog signal input means coupled to a digital input port of a microprocessor via a bandpass filter means and an analog-to-digital converter means, wherein said microprocessor includes sampling means for sampling digital signals representing the signals applied to said analog signal input means, n-bit buffer means for storing data representing sampled signals, and an analysis means for periodically analysing samples in said buffer means, said analysis means using a modified Fourier Transform to detect signals of a predetermined frequency.
2. An arrangement as claimed in claim 1, wherein a digital divide-by-n circuit means is operatively interposed between said converter means and said digital input port of the microprocessor.
3. An arrangement as claimed in claim 1 or 2, incorporated in a telephone subset. oooo 15
4. An arrangement substantially as herein described with reference to Figures 1 2 of the accompanying drawings. DATED THIS TWENTY-FOURTH DAY OF OCTOBER 1996 ALCATEL AUSTRALIA LIMITED S 20 000 005 363) o• o0•0 0*0a a•
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
AU74146/96A AU717752B2 (en) | 1995-12-20 | 1996-12-05 | Tone detector |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
AUPN7229 | 1995-12-20 | ||
AUPN7229A AUPN722995A0 (en) | 1995-12-20 | 1995-12-20 | Tone detector |
AU74146/96A AU717752B2 (en) | 1995-12-20 | 1996-12-05 | Tone detector |
Publications (2)
Publication Number | Publication Date |
---|---|
AU7414696A AU7414696A (en) | 1997-06-26 |
AU717752B2 true AU717752B2 (en) | 2000-03-30 |
Family
ID=25637529
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
AU74146/96A Ceased AU717752B2 (en) | 1995-12-20 | 1996-12-05 | Tone detector |
Country Status (1)
Country | Link |
---|---|
AU (1) | AU717752B2 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2166925A (en) * | 1984-11-09 | 1986-05-14 | Mitel Corp | Digital tone detector |
EP0243561A1 (en) * | 1986-04-30 | 1987-11-04 | International Business Machines Corporation | Tone detection process and device for implementing said process |
-
1996
- 1996-12-05 AU AU74146/96A patent/AU717752B2/en not_active Ceased
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2166925A (en) * | 1984-11-09 | 1986-05-14 | Mitel Corp | Digital tone detector |
EP0243561A1 (en) * | 1986-04-30 | 1987-11-04 | International Business Machines Corporation | Tone detection process and device for implementing said process |
Also Published As
Publication number | Publication date |
---|---|
AU7414696A (en) | 1997-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4112372A (en) | Spread spectrum communication system | |
CA1126865A (en) | Programmable digital tone detector | |
US5625364A (en) | Apparatus and method for finding a signal emission source | |
US4408284A (en) | Signal processing system | |
US5461643A (en) | Direct phase digitizing apparatus and method | |
US4904930A (en) | Method of carrier frequency estimation | |
FI20002154A (en) | Signal detection system of a spread spectrum receiver | |
US5758277A (en) | Transient analysis system for characterizing RF transmitters by analyzing transmitted RF signals | |
US5694440A (en) | Data synchronizer lock detector and method of operation thereof | |
US4233565A (en) | Method and apparatus for a PSK signal detector | |
CN1666432A (en) | Method and apparatus for detecting jamming signa in a DSSS system using phase transition counting | |
AU717752B2 (en) | Tone detector | |
US6359942B1 (en) | FSK demodulator | |
US5452331A (en) | Symbol lock detection implemented with nonoverlapping integration intervals | |
GB2142805A (en) | Test tone detector apparatus and method modem using same | |
US20010033603A1 (en) | Spread spectrum burst signal receiver and related methods | |
US20030123574A1 (en) | System and method for robust tone detection | |
US5572588A (en) | Method and apparatus for detecting reception of a tone signal | |
US5850438A (en) | Transmission system with improved tone detection | |
US5280501A (en) | Data bit synchronization | |
US7480940B1 (en) | Structures and methods for a low and slow network reconnaissance detector | |
US5764708A (en) | Device for identifying a predetermined sequence of signals in a modem | |
Torres et al. | Digital demodulator for BFSK waveform based upon correlator and differentiator systems | |
US5198992A (en) | Method and apparatus for improving wideband detection of a tone | |
US5602877A (en) | Method and apparatus for information recovery in a radio communication device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FGA | Letters patent sealed or granted (standard patent) | ||
MK14 | Patent ceased section 143(a) (annual fees not paid) or expired |