Abstract Dual-tone Multi-frequency (DTMF) Signals are used in touch-tone telephones as well as many other areas. Since analog devices are rapidly chan

Similar documents
2 IEEE TRANS. ON SIGNAL PROCESSING Abstract We present the rst dual tone multiple frequency (DTMF) signal detector that meets the International Teleco

Performance Analysis of Goertzel s Algorithm. based Dual-Tone Multifrequency (DTMF) Detection Schemes

Comparative Analysis of Methods Used in the Design of DTMF Tone Detectors

NOISE ESTIMATION IN A SINGLE CHANNEL

CHAPTER 1 : INTRODUCTION

An Introduction to the FDM-TDM Digital Transmultiplexer: Appendix C *

RASTA-PLP SPEECH ANALYSIS. Aruna Bayya. Phil Kohn y TR December 1991

Current Rebuilding Concept Applied to Boost CCM for PF Correction

Exploring QAM using LabView Simulation *

IMPULSE NOISE CANCELLATION ON POWER LINES

DTMF Tone Generation and Detection: An Implementation Using the TMS320C54x

CD22202, CD V Low Power DTMF Receiver

CD22202, CD DTMF Receivers/Generators. 5V Low Power DTMF Receiver. Features. Description. Ordering Information. Pinout. Functional Diagram

DTMF Signal Detection Using Z8 Encore! XP F64xx Series MCUs

Design of Frequency Demodulator Using Goertzel Algorithm

Uncorrelated Noise. Linear Transfer Function. Compression and Decompression

Accurate Delay Measurement of Coded Speech Signals with Subsample Resolution

Pitch Detection Algorithms

CD V Low Power Subscriber DTMF Receiver. Description. Features. Ordering Information. Pinouts CD22204 (PDIP) TOP VIEW. Functional Diagram

10 Speech and Audio Signals

DOPPLER SHIFTED SPREAD SPECTRUM CARRIER RECOVERY USING REAL-TIME DSP TECHNIQUES

Initial Vectors (random) Filter (Fault-simulation Based Compaction) Yes. done? predict/construct future vectors; append to test set.

FOURIER analysis is a well-known method for nonparametric

High Group Hz Hz. 697 Hz A. 770 Hz B. 852 Hz C. 941 Hz * 0 # D. Table 1. DTMF Frequencies

Adaptive Noise Reduction of Speech. Signals. Wenqing Jiang and Henrique Malvar. July Technical Report MSR-TR Microsoft Research

Digital Signal Processing of Speech for the Hearing Impaired

Unraveling Zero Crossing and Full Spectrum What does it all mean?

ECEn 487 Digital Signal Processing Laboratory. Lab 3 FFT-based Spectrum Analyzer

for Single-Tone Frequency Tracking H. C. So Department of Computer Engineering & Information Technology, City University of Hong Kong,

Discrete Fourier Transform (DFT)

Data and Address Busses Parallel Bus Transmit Buer Interface Transmit Shift Register Control Logic Serial Receive Shift Register Parallel Receive Buer

75T2089/2090/2091 DTMF Transceivers

Fundamental frequency estimation of speech signals using MUSIC algorithm

Analysis and pre-processing of signals observed in optical feedback self-mixing interferometry

Pulse Code Modulation

Research of pcm coding and decoding system based on simulink

arxiv: v1 [cs.it] 9 Mar 2016

Lab 3 FFT based Spectrum Analyzer

FIR Filter Design by Frequency Sampling or Interpolation *

Available online at ScienceDirect. Anugerah Firdauzi*, Kiki Wirianto, Muhammad Arijal, Trio Adiono

RECOMMENDATION ITU-R BS

THE BENEFITS OF DSP LOCK-IN AMPLIFIERS

M.Tech Student, Asst Professor Department Of Eelectronics and Communications, SRKR Engineering College, Andhra Pradesh, India

Proceedings of the 5th WSEAS Int. Conf. on SIGNAL, SPEECH and IMAGE PROCESSING, Corfu, Greece, August 17-19, 2005 (pp17-21)

Discrete Multi-Tone (DMT) is a multicarrier modulation

Signal Processing of Discrete-time Signals

Abstract Goertzel Algorithm The working of Goertzel algorithm is based on equations[1]: Q n = x(n) + 2cos(2πk/N) Q n-1 Q n-2

CD Features. 5V Low Power Subscriber DTMF Receiver. Pinouts. Ordering Information. Functional Diagram

Automatic Transcription of Monophonic Audio to MIDI

REFERENCES. Telephony: Digital Signal Processing: Systems: WWW Sites:

ME scope Application Note 01 The FFT, Leakage, and Windowing

) ,4)&2%15%.#9 053("544/. 3)'.!, 2%#%04)/. '%.%2!, 2%#/--%.$!4)/.3 /. 4%,%0(/.% 37)4#().'!.$ 3)'.!,,).'


DSP First. Laboratory Exercise #7. Everyday Sinusoidal Signals

TSA 6000 System Features Summary

Swarup Bhunia and Kaushik Roy. School of Electrical and Computer Engineering, Purdue University. Sine Wave wavelet (meyer) transforms

Optimized PR-QMF Based Codes For Multiuser. Communications. Kenneth Hetling, Gary Saulnier, and Pankaj Das. Rensselaer Polytechnic Institute

the DA service in place, TDRSS multiple access (MA) services will be able to be scheduled in near real time [1].

Teaching Digital Signal Processing with MatLab and DSP Kits

Part VI: Requirements for Integrated Services Digital Network Terminal Equipment

What is an FDM-TDM Transmultiplexer *

)454 / 03/0(/-%4%2 &/2 53% /. 4%,%0(/.%490% #)2#5)43 30%#)&)#!4)/.3 &/2 -%!352).' %15)0-%.4 %15)0-%.4 &/2 4(% -%!352%-%.4 /&!.!,/'5% 0!2!

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

and coding (a.k.a. communication theory) Signals and functions Elementary operation of communication: send signal on

STANFORD UNIVERSITY. DEPARTMENT of ELECTRICAL ENGINEERING. EE 102B Spring 2013 Lab #05: Generating DTMF Signals

Audio Restoration Based on DSP Tools


Signal segmentation and waveform characterization. Biosignal processing, S Autumn 2012

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

TIMA Lab. Research Reports

DIGITAL SIGNAL PROCESSING LABORATORY

Design Digital Non-Recursive FIR Filter by Using Exponential Window

An Overview of the Decimation process and its VLSI implementation

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

Application Note (A12)

ETSI ES V1.2.1 ( )

Wavelet Analysis of Crude Oil Futures. Collection Editor: Ian Akash Morrison

GSM Interference Cancellation For Forensic Audio

Review of Lecture 2. Data and Signals - Theoretical Concepts. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2

Analysis of Processing Parameters of GPS Signal Acquisition Scheme

EECS 452 Midterm Exam Winter 2012

Computer Music in Undergraduate Digital Signal Processing

(i) Understanding the basic concepts of signal modeling, correlation, maximum likelihood estimation, least squares and iterative numerical methods

Chapter 2: Digitization of Sound

Laboratory Assignment 4. Fourier Sound Synthesis

CG401 Advanced Signal Processing. Dr Stuart Lawson Room A330 Tel: January 2003

AC : INTERACTIVE LEARNING DISCRETE TIME SIGNALS AND SYSTEMS WITH MATLAB AND TI DSK6713 DSP KIT

The proposal should be accepted as part of PHY standard for BWA.

DESIGN AND IMPLEMENTATION OF AN ALGORITHM FOR MODULATION IDENTIFICATION OF ANALOG AND DIGITAL SIGNALS

Quantication of Resonances in Magnetic Resonance Spectra. via Principal Component Analysis and Hankel Total Least. Squares.

VU Signal and Image Processing. Torsten Möller + Hrvoje Bogunović + Raphael Sahann

Since the advent of the sine wave oscillator

Fourier Theory & Practice, Part I: Theory (HP Product Note )

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

3.2 Measuring Frequency Response Of Low-Pass Filter :

ece 429/529 digital signal processing robin n. strickland ece dept, university of arizona ECE 429/529 RNS

Part VI: Requirements for ISDN Terminal Equipment

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication

Design of FIR Filter on FPGAs using IP cores

Carrier Frequency Offset Estimation in WCDMA Systems Using a Modified FFT-Based Algorithm

Transcription:

Literature Survey on Dual-Tone Multiple Frequency (DTMF) Detector Implementation Guner Arslan EE382C Embedded Software Systems Prof. Brian Evans March 1998

Abstract Dual-tone Multi-frequency (DTMF) Signals are used in touch-tone telephones as well as many other areas. Since analog devices are rapidly changing with digital devices, digital DTMF decoders become important. There are many DTMF decoding algorithms, but most of them cannot comply with the related International Telecommunications Union (ITU) and Bell Communications Research, Inc. (Bellcore) recommendations and/or are not suitable for realtime implementation. In this survey a brief review of some DTMF detector implementations is given. Although the Goertzel Algorithm is not able to satisfy the standards, it was the best approach in the sense of computational load and memory usage eciency. It might be possible to use the Goertzel Algorithm with variable window length to satisfy the specications. The aim of this project is to implement a DTMF detector, which is ITU complaint, on a xed point low cost DSP. This detector should be able to detect DTMF tones in multiplechannels with as much as possible channels. 2

1 Introduction Dual-tone multi-frequency (DTMF) is an international signaling standard for telephone digits (number buttons). These signals are used in touch-tone telephone call signaling as well as many other areas such as interactive control applications, telephone banking and pager systems. Since analog devices are rapidly changing with digital devices, digital DTMF decoders become important. Digital implementation has many advantages over analog implementation such as better accuracy, stability, re-programmability and a lower chip count; that is, instead of using several analog chips for decoding multi-channel DTMF tones, using only a digital signal processor (DSP) chip for all channels. Many digital DTMF decoding algorithms, have been proposed, but they have several drawbacks in general. 1. Most of them cannot comply with the related International Telecommunications Union (ITU) and Bell Communications Research, Inc. (Bellcore) recommendations. 2. Some of them have too heavy computational load 3. Some of them need too much memory to implement ona single xed point DSP. Although it does not satisfy the ITU specications, the Goertzel Algorithm, which is an ecient algorithm to compute the Discrete Fourier Transform (DFT), is the most commonly used digital DTMF tone detection algorithm. This survey is organized as follows. I will talk about the background of DTMF in section 2 and will review some commonly used DTMF detection algorithms in section 3. I will discuss the most commonly used, Goertzel Algorithm in section 4 and will conclude this survey and point out the future work in section 5. 2 Background A DTMF signal consists of two superimposed sinusoidal waveforms whose frequencies are chosen from a set of eight standardized frequencies. For example, by pressing the \1" button from the touch-tone telephone key pad, a signal made by adding a 697 Hz and a 1209 Hz sinusoid is generated. Detecting multi-frequency signals in noisy environments is a well studied area in DSP. The diculty of DTMF tone detection is due to the standards which must be satised when 3

detecting these signals. Since these standards were determined when DTMF detectors were analog, applying the same standards to digital detectors might causes some problems. For example, the standard frequencies are determined in AT&T Bell Laboratories so that they have no common multipliers. This guarantees that none of the frequencies have common harmonics and thereby improves the performance of analog detectors. However, the most commonly used frequency analysis technique, the Discrete Fourier Transform (DFT), samples the frequency domain with equally spaced samples, and therefore, it is not possible to have a sample exactly at each standard frequency. The ITU specications are as follows: 1) Signal frequencies: Low group (Hz): 697, 770, 852, 941 High group (Hz): 1209, 1336, 1477, 1633 2) ITU frequency tolerances: a. Maximum accepted frequency oset is 1.5% b. Minimum rejected frequency oset is 3.5% 3) Signal Reception Timing: a. Minimum accepted tone duration is 23 ms, b. Maximum rejected tone duration is 40 ms, c. Minimum pause time between two tones is 40 ms, d. Allowable interrupt within a tone is 10 ms, 4) Twist (power dierence between frequencies): a. The low frequency may have8dbhigher power b. The high frequency may have4dbhigher power Dierent from ITU, Bellcore has not only some recommendations but some standardized performance test as well. Some of these tests are performed using a digital simulation test tape which includes several speech samples containing energy at or near valid DTMF frequencypairs. Bellcore Recommendations and test are as follows: 1) Bellcore frequency tolerances tests: In this test, keeping one frequency constant other frequency is varied from -4% up to +4% with 0.1% steps. Bellcore requires that tones varying less then 1.5% detected and tones varying more that 3.5% rejected. 4

2) Bellcore guard time test: Guard time is the minimal length of a tone that can be reliably detected. The guard time is determined by decreasing tone lengths at the input of the detector and counting the number of detects. 2) Bellcore twist test: The twist is tested by applying DTMF tones with a twist decreasing 0.1 db in every step. 3) Bellcore signal to noise ratio (SNR) test: The detector should be work with a SNR at 23 db or higher. 4) Bellcore power level test: A minimum detection of 25 out of 35 at a tone power of -25 dbm is required, where x xdbm=10 log 10 1mW 5) Bellcore decode check: This test consist of using all digits 10 times and counting the number of false detects. 6) Bellcore talk-o Tests: One of the most important tests is the talk-o test which determines how often a detector detects a speech asavalid tone. Bellcore provides three one-hour audio tapes which includes over 50,000 speech samples to test a detector. Testing a DTMF detector with all these speech samples is equivalent to testing the detector on one million calls if it would used in a local central oce. 3 DTMF Detection Algorithms Since digital DTMF detectors have become so important, many techniques have been proposed and implemented. Some of them are summarized below. Mock [1] implemented the Goertzel Algorithm on a TMS32010 signal processor. Since the Goertzel Algorithm is still the most commonly used DTMF decoding algorithm, I will discuss the details, including why it does not satisfy the ITU specications, of the algorithm in section 4. Gay et al [2] implemented two dierent algorithms on a WE DSP32. The rst one was a Linear Prediction (LP) based algorithm which modeled each frequency with a two-pole autoregressive (AR) model. The signal from the channel is rst down-sampled by a factor of 2 5

and then ltered by two band-pass lters which separated the two frequencies of the DTMF signal. Then, they computed the auto-correlation and cross-correlation of both sub-signals using an iterative algorithm and used these estimates in the normal equations to nd the AR model coecients. It is obvious to say that this algorithm will not meet the ITU specications due to its high computational load. The second technique they implemented was the Goertzel Algorithm which will be discussed in the following section. A relatively new work done by Bagchi et al [3] proposes a sub-band non-uniform Discrete Fourier Transform. The algorithm is based on the fact that the DTMF tone frequencies are low (The highest frequency is 1633 Hz.) compared to the sampling frequency (Sampling rate at telephone channels is 8 Khz). Thus after sub-band decomposition (Filtering the signal in a high-pass and low-pass section and applying a decimation by a factor of 2.) the low frequency part will include all the DTMF tones and the high frequency part can be omitted. This reduces the number of samples which will be used by the Goertzel Algorithm by a factor of two and, thereby, reduces the computational load. The disadvantages of this algorithm are that the sub-band decomposition itself needs some computation and delay, and the downsampling procedure might cause some interference. Additionally since the signals high-pass section, which is generally used for talk-o test, is thrown away a, talk-o test cannot be applied. In [4] we compared three dierent approaches to DTMF tone detection and implemented them on ADSP-2101 and Motorola 56001 signal processors. These three approaches include a subspace technique called Multiple Signal Classication (MUSIC), an adaptive frequency estimation technique which was improved by a modication and named Normalized Direct Frequency Estimation Technique (NDFET) and the most popular Goertzel Algorithm. Our results were that the MUSIC algorithm has a very heavy computational load; that the NDFET is too sensitive to noise, and that, although the Goertzel Algorithm is not able to satisfy the standards, it was the best approach in the sense of computational load and memory usage eciency. DSP manufacturers Texas Instruments and Analog Devices published some application notes on DTMF detectors in [5] [6] [7]. All of these three applications used the Goertzel Algorithm. The algorithm proposed by Felder et al [8], [9] is an ecient, digital, ITU complaint, zero buering DTMF detection algorithm which can be implemented on a TMS320C5x digital signal processor to decode 24 channels using time-division-multiplexing (TDM). 6

4 Goertzel Algorithm The Goertzel Algorithm uses the fact that the complex exponential in the Discrete Fourier Transform (DFT) equation is periodic and expresses the computation of DFT as a linear ltering operation dened by the dierence equations, s k [n] =x[n]+2cos( 2k N )s k[n, 1], s k [n, 2] (1) j2k y k [n] =s k [n],e N s k [n, 1] (2) where the kth DFT coecient is produced after the lter has processed N samples: X[k] =y k [n]j n+n (3) Since in DTMF detection we are only considered in the power of the signal the square of the kth DFT coecient can be computed instead of the complex DFT coecient. In this case no complex multiplication or addition is needed which will decrease the computational complexity ofthealgorithm. DFT is the method of sampling the frequency axes with equally spaced samples. If there is a frequency peak between two samples of the DFT, its amplitude will not be accurately obtained. This is due to the windowing eect. Since a limited number of samples are used to estimate the frequency, a smoothing will happen in the frequency domain. The windowing eect and the problem of the Goertzel Algorithm is shown in the gure bellow. In the gure, the dashed rectangular window indicates the frequencies which have to be accepted whereas the dot-dashed lines indicate the frequencies which have to be rejected according to the ITU specications. The curve (absolute value of a sinc function) gives the amplitude which will be obtained from the Goertzel Algorithm (or DFT) when the related frequency is received. According to this gure, we have to accept values over 0.28, which is the minimum value inside the dashed window and reject the values below 0.38, which is the largest value outside the dot-dashed lines. This is a contradiction and source of the problem in using Goertzel Algorithm (or generally DFT). The windowing eect has a very close relation with the number of samples N used in DFT. As mentioned before the standard DTMF frequencies are chosen such that they have no common multipliers. This is to prevent the interference of harmonics, but is a problem in determining N. The most often used value for N is 205, which minimizes an error dened as the dierence between the actual standard frequencies and the nearest frequency sample of the DFT. But when this number is used the problem explain above will occur. 7

0.7 Windowing effect of DFT in DTMF tone detection 0.6 0.5 %3.5 %1.5 %1.5 %3.5 magnitude 0.4 0.3 0.2 0.1 0 680 700 720 740 760 780 800 820 840 860 frequency (Hz) Figure 1: The amplitude of k th (k=20) DFT coecient for a window length of N (N=205) A solution of this problem is to use dierent window lengths (N) for each frequency such that the dashed window in the gure is centered at our sinc window as much as possible. 5 Modeling and Implementation I am going to test the variable window length Goertzel algorithm with the window numbers I have determined using simulations in MATLAB, for ITU and Bellcore compatibility. Since for all of the DTMF algorithms mentioned the number of samples consumed and generated is known before the compilation time, the synchronous dataow model can be used in modeling in Ptolemy. The decision logic, however, will be modeled with nite state machine. Implementation will be as follows: 1) Modeling and simulating in Ptolemy, 2) Code generating for TMS320C5x in Ptolemy, 3) Optimizing the code by hand. 8

References [1] P.C.Mock, \Add DTMF generation and decoding to DSP- P design," EDN, pp. 205{220, March 1985. [2] S. L. Gay, J. Hartung, and G. L. Smith, \Algorithms for multi-channel DTMF detection for the WE DSP32 family," International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1134{1137, May 1989. [3] S. Bagchi and S. K. Mitra, \An ecient algorithm for DTMF decoding using the subband NDFT," International Symposium on Circuits and Systems, pp. 1936{1939, April 1995. [4] G. Arslan, B. L. Evans, F. A. Sakarya, and J. L. Pino, \Performance evaluation and realtime implementation of subspace, adaptive, and DFT algorithms for multi-tone detection," IEEE International Conference on Telecommunications, pp. 884{887, April 1996. [5] The Applications Engineering Sta of Analog Devices DSP Division Edited by Amy Mar, Digital Signal Pocessing Applications Using The ADSP-2100 Family, ch. Chapter 14 Dual- Tone Multi-Frequency Coding, pp. 441{500. Prentice Hall, 1990. [6] C. J. Chen, \Modied Goertzel algorithm in DTMF detection using the TMS320C80," tech. rep., Texas Instruments, Digital Signal Processing Solutions - Semiconductor Group, June 1996. [7] P. Duh, \Improving 32 channel dtmf decoders using the TMS320C5x," tech. rep., Texas Instruments, CAC FAE Taiwan, June 1996. [8] M. D. Felder, J. C. Mason, and B. L. Evans, \Ecient ITU-compliant dual-tone multiplefrequency detection using the non-uniform discrete fourier transform." IEEE Signal Processing Letters, To Apear. [9] M. D. Felder, J. C. Mason, and B. L. Evans, \Ecient digital ITU-compliant, zerobuering, DTMF detection algorithm using the non-uniform discrete fourier transform." Filed March 10, 1998. A Non-Condential Specication Sheet is available at http://www.utexas.edu/academic/otl/software.html#dtmf. 9