Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MULTI-FREQUENCY DETECTOR
Document Type and Number:
WIPO Patent Application WO/2008/135981
Kind Code:
A1
Abstract:
The method provides a method and device for detecting in a single or multi frequency signal, one or more frequencies from a predetermined set of frequencies. The Signal is subjected to a complex filter substantially passing all of the frequencies in the predetermined set of frequencies. For each of one or more pairs of members of the complex filtered signal, a complex number Yd is determined having a phase indicative of a phase difference between the two members of the pair. The one or more frequencies are then determined based upon the one or more complex numbers. The method and device of the invention may be used in an apparatus such as a call indicator (CI) detector or a DTMF detector.

Inventors:
GUR ARIE (IL)
GREISS ISRAEL (IL)
Application Number:
PCT/IL2008/000593
Publication Date:
November 13, 2008
Filing Date:
May 01, 2008
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
DSP GROUP LTD (IL)
GUR ARIE (IL)
GREISS ISRAEL (IL)
International Classes:
H04Q1/457
Foreign References:
US5257309A1993-10-26
US6157712A2000-12-05
EP0579927A21994-01-26
US5257309A1993-10-26
Attorney, Agent or Firm:
REINHOLD COHN AND PARTNERS (Tel Aviv, IL)
Download PDF:
Claims:
CLAIMS:

1. A method for detecting in a single or multi frequency signal, one or more frequencies from a predetermined set of frequencies, comprising:

(a) subjecting the signal to a complex filter substantially passing all of the frequencies in the predetermined set of frequencies, to produce a complex filtered signal;

(b) for each of one or more pairs of members of the complex filtered signal, determining a complex number Y < j having a phase indicative of a phase difference between the two members of the pair; and (c) determining the frequency of the signal based upon the one or more complex numbers determined in step (b).

2. The method according to Claim 1 wherein the complex filter consists of a first real filter of the input signal producing a real part of the complex signal and a second real filter of the input signal producing the imaginary part of the complex signal. 3. The method according to Claim 2 wherein the first and second real filters have the same magnitude.

4. The method according to Claim 1 wherein, for each of the one or more frequencies in the predetermined set of frequencies, the filter has an essentially constant frequency response in a neighborhood of the frequency. 5. The method according to Claim 1 wherein the complex filter decimates the input signal at a rate such that in a range of frequencies containing the predetermined set of frequencies, the frequency of the input signal is uniquely determined by the phase of Yd.

6. The method according to Claim 1 wherein the complex filter decimates the input signal at a rate greater than a bandwidth of the complex filter.

7. The method according to Claim 1 further comprising determining whether a current value of the filtered sequence satisfies a predetermined energy criterion and detecting each of the predetermined frequencies in the filtered signal when the filtered sequence satisfies the predetermined energy criterion. 8. The method according to Claim 7 wherein the predetermined energy criterion is that the energy of the filtered signal exceeds a predetermined threshold for at least a predetermined number N of recent values in the filtered sequence.

9. The method according to Claim 1 wherein Y d has a phase α equal to the

phase difference of the first and second complex numbers.

10. The method according to Claim 6 wherein Y d is calculated using the algebraic expression Y d =(a+bj)*cong(c+dj).

11. The method according to Claim 1 wherein the step of determining the frequency comprises: i) calculating a complex number number Y d as an average of one or more of the Yd; ii) for each frequency in the set of predetermined frequencies, determining whether the phase α of Y d is in a predetermined range THl<α<TH2 associated with the predetermined frequency, the filtered signal having a current frequency value equal to the predetermined frequency if the phase α of Y d is in the predetermined range.

12. The method according to Claim 11 where in the predetermined range associated with the predetermined frequency is determined based upon the predetermined frequency and a time delay between the first and second complex numbers.

13. The method according to Claim 11 wherein the step of determining whether THKα<TH2 comprises:

(a) Multiplying Y d by exp(jTHl) and determining if Im(Y d *exp(jTHl)>0; (b) Multiplying Y d by exp(jTH2) and determining if Im(Y d *expGTH2)<0; wherein THl«x<TH2 if Im(Y d *expQTHl))>0 and Im(Y d *exp(jTH2))<0.

14. The method according to Claim 1 further comprising,

(a) for each of the one or more predetermined frequencies, outputting a Dbit value associated with the predetermined frequency if the current frequency of the filtered signal is equal to the predetermined frequency; and

(b) outputting a Dbit value of n if the current frequency of the filtered signal is not equal to any one of the predetermined frequencies to generate a sequence of Dbits.

15. The method according to Claim 14 further comprising analyzing the sequence of Dbits to detect a frequency shift modulated signal.

16. The method according to Claim 15 wherein the frequency shift modulated signal is a Tl-NO signal.

17. The method according to Claim 16 wherein the step of analyzing the

sequence of Dbits to detect the Tl-NO signal comprises:

(a) counting a number of flips of a predetermined flip distance in the Dbit sequence, a flip being a 1 separated from a subsequent 0 by the flip distance;

(b) identifying the Tl-NO sequence when a predetermined number of consecutive flips are detected in the Dbit signal.

18. The method according to Claim 15 wherein the predetermined sequence of frequencies is a DTMF signal.

19. A device for detecting in a single or multi frequency input signal, one or more frequencies from a predetermined set of frequencies, the device comprising a processor configured to:

(a) subject the input signal to a complex filter substantially passing all of the frequencies in the predetermined set of frequencies, to produce a complex filtered signal; for each of one or more pairs of members of the complex filtered signal (a+bj) and (c+dj): (b) determine a complex number Y d having a phase indicative of a phase difference between the two members of the pair; and

(c) determine the frequency of the signal based upon the one or more complex numbers determined in step (b).

20. The device according to Claim 19 wherein the complex filter consists of a first real filter of the input signal producing a real part of the complex signal and a second real filter of the input signal producing the imaginary part of the complex signal.

21. The device according to Claim 20 wherein the first and second real filters have the same magnitude.

22. The device according to Claim 19 wherein, for each of the one or more frequencies in the predetermined set of frequencies, the filter has an essentially constant frequency response in a neighborhood of the frequency.

23. The device according to Claim 19 wherein the complex filter decimates the input signal at a rate such that in a range of frequencies containing the predetermined set of frequencies, the frequency of the input signal is uniquely determined by the phase of Y d .

24. The device according to Claim 19 wherein the complex filter decimates the input signal at a rate greater than a bandwidth of the complex filter.

25. The device according to Claim 19 wherein the processor is further

confϊgured to determine whether a current value of the filtered sequence satisfies a predetermined energy criterion and detecting each of the predetermined frequencies in the filtered signal when the filtered sequence satisfies the predetermined energy criterion. 26. The device according to Claim 25 wherein the predetermined energy criterion is that the energy of the filtered signal exceeds a predetermined threshold for at least a predetermined number N of recent values in the filtered sequence.

27. The device according to Claim 19 wherein Y d has a phase α equal to the phase difference of the first and second complex numbers. 28. The device according to Claim 19 wherein Y d is calculated using the algebraic expression Y d =(a+bj)*cong(c+dj).

29. The device according to Claim 19 wherein determining the frequency comprises: i) calculating a complex number Y d as an average of one or more of the; ii) for each frequency in the set of predetermined frequencies, determining whether the phase α of Y d is in a predetermined range THKα<TH2 associated with the predetermined frequency, the filtered signal having a current frequency value equal to the predetermined frequency if the phase α of Y d is in the predetermined range. 30. The device according to Claim 29 where in the predetermined range associated with the predetermined frequency is determined based upon the predetermined frequency and a time delay between the first and second complex numbers.

31. The device according to Claim 29 wherein the step of determining whether THl<α<TH2 comprises:

(a) Multiplying Y d by exp(jTHl) and determining if Im(Y d *exp(jTHl)>0; and

(b) Multiplying Y d by exp(jTH2) and determining if Im(Y d *exp(jTH2)<0; wherein THKα<TH2 if Im(Y d *exp(jTHl))>0 and Im(Y d *expGTH2))<0.

32. The device according to Claim 19 wherein the processor is further configured to: i) for each of the one or more predetermined frequencies, output a Dbit value associated with the predetermined frequency if the current frequency of the filtered signal is equal to the predetermined

frequency; and

(c) output a Dbit value of n if the current frequency of the filtered signal is not equal to any one of the predetermined frequencies to generate a sequence of Dbits. 33. The device according to Claim 32 wherein the processor is further configured to analyze the sequence of Dbits and detect a predetermined sequence of frequencies.

34. The device according to Claim 33 wherein the predetermined sequence of frequencies is a Tl-NO signal. 35. The device according to Claim 33 wherein the processor is configured to analyze the sequence of Dbits to detect the Tl-NO signal in a method comprising:

(a) counting a number of flips of a predetermined flip distance in the Dbit sequence, a flip being a 1 separated from a subsequent 0 by the flip distance;

(b) identifying the Tl-NO sequence when a predetermined number of consecutive flips are detected in the Dbit signal.

36. The device according to Claim 19 being a call indicator (CI) detector.

37. An apparatus comprising the device according to Claim 19.

38. The apparatus according to Claim 37 being a communication device.

39. The apparatus according to Claim 37 being a DTMF detector. 40. A device for detecting a Tl-NO signal at a multi-line communication node, the multi-line communication node comprising two or more communication lines, the system comprising:

(a) a modem; and

(b) A device comprising a processor configured, for each of the two or more communication lines, to: subject a single frequency input signal in the communication line to a complex filter substantially passing all of the frequencies in the predetermined set of frequencies, to produce a complex filtered signal; for each of one or more pairs of members of the complex filtered signal (a+bj) and (c+dj); determine a complex number Yj having a phase indicative of a phase difference between the two members of the pair; determine the frequency of the input signal based upon the one or more complex numbers determined in step (b);

for each of the one or more predetermined frequencies, output a Dbit value associated with the predetermined frequency if the current frequency of the filtered signal is equal to the predetermined frequency; output a Dbit value of n if the current frequency of the filtered signal is not equal to any one of the predetermined frequencies, to generate a sequence of Dbits; analyze the sequence of Dbits to detect the Tl-NO sequence; and connect the communication line to the modem when the Tl-NO sequence is detected in the communication line.

Description:

MULTI-FREQUENCY DETECTOR

FIELD OF THE INVENTION

This invention relates to methods and devices for detecting frequency modulated signals.

BACKGROUND OF THE INVENTION A frequency modulated signal consists of a predetermined sequence of data bits

(Dbits), where each Dbit type is transmitted as a signal having one or more frequencies from a predetermined set of specified frequencies. Use of a frequency modulated signal to transmit information over a communication line requires a detector capable of quickly detecting the signal even in a low signal to noise ratio environment. For example, communication devices are known capable of transmitting and receiving voice as well as video signals. When a voice communication link has been established between two or more parties, and one of the parties decides to change the mode of communication from voice to video, the party transmits a CI (call indication) signal to the other party's device in order to inform the other party's device to change its mode of communication from voice to video. This CI signal is specified in the ITU-V.8 standard, and is a frequency shift modulated signal known as the "Tl-NO" sequence. This sequence consists of 10 ones ('1111111111') followed by 10 synchronization bits ('0000000001') and a call function octet (O byte data 1'). The standard further specifies that a "0" be transmitted as a 1180 Hz signal, and that a "1" be transmitted as a 980 Hz signal. These two frequencies, 980 Hz and 1180 Hz are referred to as the "FSK" (frequency shift key modulation) frequencies. The CI signal is transmitted with a regular ON/OFF cadence in which the ON periods are not less than 3 periods of the CI sequence, and are not greater than 2 sec in duration. The OFF periods are not less than 0.4 sec and not greater than 2 sec in duration. A communication device capable of alternating between voice and video modes needs to include a CI signal detector, also known as a CI detector. When the CI detector identifies a CI signal received at the communication device from a remote

communication device indicating that the remote device has changed from voice to video communication, the CI detector generates a signal causing its communication device to change from voice to video communication.

As another example, dual frequency (DF) signals, also known as dual-tone multiple frequencies (DTMF), are signals that are an additive combination of two equal- amplitude frequency components. Thus, the signal generated by depressing " 1 " on the telephone keypad is the sum of a 697 Hz and a 1209 Hz frequency signals, and the signal generated by depressing "5" is the sum of a 770 Hz and a 1336 Hz sine wave. DF signals are used for example, for representing telephone numbers and other signaling functions within a telephone system including interactive voice response.

SUMMARY OF THE INVENTION

The present invention provides a device for detecting a multi-frequency signal in a communication signal. The device of the invention may be used, for example, as a CI signal detector for detecting a CI signal in a communication signal. The CI detector may be used in a communication device capable of supporting voice and video communication. As another example, the multi-frequency detector of the invention may be used in a device to detect a DTMF signal.

In the multi-frequency detector of the invention, an input signal which is to be analyzed for the occurrence of a predetermined signal sequence of data bits is input to a filter module. In accordance with the invention, the filter module carries out a band pass filtering process in which the passed frequency band includes all of the frequencies in the specified frequency set consisting of all of the frequencies used to represent the Dbits in the signal sequence to be detected. In a preferred embodiment of the invention, the passed frequency band has a plateau around each one of the frequencies in the frequency set, where adjacent plateaus are preferably separated by a local minimum.

The filtered signal is input to a frequency condition module that determines, on the basis of the detector module output, whether the frequency of the filtered sequence is one of the specified frequencies. When one of the specified frequencies is detected, by the frequency condition module, it generates an output of the Dbit corresponding to the detected frequency. Otherwise the module generates a blank output (indicated herein by "n") indicating that none of the specified frequencies was detected. A sequence condition module may optionally search the output of the frequency condition module

for the presence of the signal sequence to be detected. When the signal sequence is detected, the device generates a signal indicating that the signal sequence has been detected.

Thus, in one of its aspects, the present invention provides a method for detecting in a single or multi frequency signal, one or more frequencies from a predetermined set of frequencies, comprising:

(a) subjecting the signal to a complex filter substantially passing all of the frequencies in the predetermined set of frequencies, to produce a complex filtered signal; (b) for each of one or more pairs of members of the complex filtered signal, determining a complex number Ya having a phase indicative of a phase difference between the two members of the pair; and (c) determining the frequency of the signal based upon the one or more complex numbers determined in step (b). In another of its aspects, the invention provides a device for detecting in a single or multi frequency input signal, one or more frequencies from a predetermined set of frequencies, the device comprising a processor configured to:

(a) subject the input signal to a complex filter substantially passing all of the frequencies in the predetermined set of frequencies, to produce a complex filtered signal; for each of one or more pairs of members of the complex filtered signal (a+bj) and (c+dj);

(b) determine a complex number Ya having a phase indicative of a phase difference between the two members of the pair; and

(c) determine the frequency of the signal based upon the one or more complex numbers determined in step (b).

In still another of its aspects, the invention provides an apparatus comprising the device according to the invention.

In yet another of its aspects, the invention provides a device comprising a processor configured, for each of the two or more communication lines, to: subject a single frequency input signal in the communication line to a complex filter substantially passing all of the frequencies in the predetermined set of frequencies, to produce a complex filtered signal; for each of one or more pairs of members of the complex filtered signal (a+bj) and (c+dj);

determine a complex number Y d having a phase indicative of a phase difference between the two members of the pair; determine the frequency of the input signal based upon the one or more complex numbers determined in step (b); for each of the one or more predetermined frequencies, output a Dbit value associated with the predetermined frequency if the current frequency of the filtered signal is equal to the predetermined frequency; output a Dbit value of n if the current frequency of the filtered signal is not equal to any one of the predetermined frequencies, to generate a sequence of Dbits;. analyze the sequence of Dbits to detect the Tl-NO sequence; and connect the communication line to the modem when the Tl-NO sequence is detected in the communication line.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to understand the invention and to see how it may be carried out in practice, embodiments will now be described, by way of non-limiting example only, with reference to the accompanying drawings, in which:

Fig. 1 shows a CI signal detector in accordance with one embodiment of the invention;

Fig. 2 shows a frequency response of a filter module for use in the CI signal detector of Fig. 1 ;

Fig. 3 shows a method carried out by the energy condition module for use in the CI signal detector of Fig. 1 ; Fig. 4 shows the normalized phase difference between two consecutive outputs from the filter module as a function of the frequency of the filtered signal;

Fig. 5 shows a method for determining whether the phase difference between two consecutive outputs from the filter module is in a predetermined range;

Fig. 6 shows an implementation of a call indicator detector at a multi line communication node; and

Fig. 7 shows a DTMF detector in accordance with one embodiment of the invention.

DETAILED DESCRIPTION OF EMBODIMENTS

The invention will first be described within the context of a CI signal detector configured to detect the Tl-NO signal sequence in a frequency modulated signal composed from two different Dbit types (0 and 1). This is done only for clarity in the description; it being evident that the invention may be extended to the detection of a frequency modulated signal composed from more than two Dbit types.

Fig. 1 shows a schematic representation of a CI signal detector, generally indicated by 2, in accordance with one embodiment of the invention. An input signal 4 which is to be analyzed for the presence of the Tl-NO sequence is first input to a filter module 6. As described in detail below, the filter module 6 carries out a filtering process in which frequencies around the two FSK frequencies used in a CI signal are transmitted. The output 8 of the filter module 6 is a sequence of complex numbers that is input to an energy condition module 10. The energy condition module 10 determines whether the present value of the sequence 8 has an energy level above a predetermined threshold value. If the present value of the sequence 8 does not have an energy level above the predetermined threshold, this result is input as a signal 11 to a sequence condition module 20 which outputs a result 22 that a CI signal has not been detected. If the present value of the sequence 8 has an energy value above the predetermined threshold, the present value of the sequence 8 is input to a frequency detection module 12 as a signal 13. The energy condition module then determines whether the sequence 8 has had an energy level above the predetermined threshold for at least a predetermined number of consecutive values. If the energy condition module 10 determines that the filtered signal does not meet this energy criterion, this result is input to the sequence condition module 20 which outputs a result 22 that a CI signal has not been detected. When the energy condition module 10 determines that the filtered signal 8 satisfies the energy criterion, this is input to the frequency detection module 12 which generates, for each pair of consecutive complex values output from the filter module 10, a complex output whose phase is equal to the phase difference between the pair. The output 14 of the frequency detector module is input into a frequency condition module 16 that determines from its input, whether the frequency of the filtered signal 8 is one of the two FSK frequencies. When the 980 Hz frequency or the 1 180 Hz frequency is detected by the frequency condition module 16, the module 16 generates an output 18 of " 1" or "0", respectively. Otherwise the module 16 generates a blank output "n"

indicating that neither one of the FSK frequencies was detected. The sequence 18 generated by the frequency condition module is input to a sequence condition module 20 which searches the sequence 18 for the presence of the Tl-NO sequence. The sequence condition module outputs an output 22 that is set to 1 when the Tl-NO sequence is detected. Otherwise, the output 22 is set to 0.

The Filter Module

Fig. 2a shows the frequency response of the filter module 6 in accordance with one preferred embodiment of the invention. The frequency response has a transmission band 24 including the two FSK frequencies that is shown in greater detail in Fig. 2b. The transmission band 24 has a plateau 25a around the FSK frequency 980 and a plateau 25b around the FSK frequency 1180. The two transmission peaks 25a and 25b are separated by a local minimum 27. The filter module 6 uses an 80 tap complex FIR (finite input response) to compute one complex output every 2ms. The input signal 4 typically has a baud rate of 300 baud, and a sampling rate greater than 300 baud. For example, a sampling rate of 500 baud may be used, in which case every 16 samples (2 msec) a new FIR starts to run. Every run generates a single complex number indicative of the real and the imaginary frequency components. The frequency response shown in Fig. 2a is achieved using FIR coefficients generated as follows.

The frequency bandwidth of the filter module 6 is designed to extend from about 100 Hz below the carrier frequency Fc of the input signal 4 (1080 Hz) to 100 Hz above the carrier frequency (with a deviation of up to +/-12Hz). The input signal 4 is shifted by the carrier frequency Fc by multiplying the input signal 4 by exp(j*Fc), so that the Fc is set to 0 Hz. Low pass filtering is then run with a high attenuation out-band using a

Hamming window convoluted with a Kaiser window. The response of this band pass filter is saddle shaped and flattened at the two FSK frequencies. This is accomplished by multiplying by the two symmetric side frequencies near of the carrier frequency (Fc), exp(j*(Fc+df) and exp(j*(Fc-df).

In a preferred embodiment, the following process is carried out

Win_size =80; df=81; Gb=-0.8; dp= -1/2; dw= 16; fc= 1080; Fs= 8000;

% Make lowpass fir filter.

Win^con v(hamming( Win_size-dw+ 1 ),kaiser(d w, 1 )) ;

% Comlex shift by : expFp=expG*2*pi*([l :length(Win)/2]*(fc+df)/Fs + dp*(fc+df)/Fs)); expFn=expO*2*pi*([l :lengm(Win)/2]*(fc-df)/Fs+ dp*(fc-df)/Fs)); expFc=exp(j*2*pi*([l :length(Win)/2]*(fc)/Fs + dp*(fc)/Fs)); s=expFp+expFn+Gb*expFc;

%make symmetric complex freq. s=[conj (s(end:- 1 : 1 )) s] ;

%Calculate complex FIR coef.

B=s.*Whϊ;

The filter is converted into a symmetric complex form by setting, s=[conj(s(end:-l :l)) s]. Since the filter module 6 uses a symmetric window, it is sufficient to use only half of the window. The real window is based on cosines and thus has positive symmetry. The imaginary window is based on sines and thus has negative symmetry. Because of this negative symmetry, the half imaginary window is multipled by '-1 ' when being used for the other half. A complex FIR coefficient B is calculated as B=sWin'.

Implementing this process with the parameter values specified above, the filter coefficients B shown in Table 1 in fix point format Q2.13, are obtained.

Table 1

Although the filter module 6 uses a time window of including 80 taps, the main coefficient energy is only slightly more than one FSK bit, corresponding to about 30 samples. Using a sliding window with a 2 msec delay gives overlapped FSK bits, for more data.

The Energy Condition Module

The output 8 from the filter module 6 is a time sequence of complex numbers that is input to the energy condition module 10. Fig. 3 shows a flow chart diagram for a method carried out by the energy condition module 10. In step 26 the value of a counter is set to 0. In step 28 a complex data sample a+bi from the output 8 is input to the energy condition module 10. In step 30, the energy of the output 22 is calculated using the algebraic expression Energy = a 2 +b . In step 32 it is determined whether the energy is above a predetermined threshold TH. If no, then in step 33 an output of n is generated to the sequence condition module 20 and the process returns to step 26 with the counter being reset to 0. If the energy is above the threshold TH 5 then in step 34 the present value of the filtered signal 8 is input to the frequency detector module 12. The process then continues with step 35 where the value of the counter is increased by 1. In step 36 it is then determined whether the counter is greater than or equal to a predetermined constant N. If yes, then in step 37 an output of 1 is generated to the frequency condition module 16 and the process returns to step 28 with the next data sample being input to

the energy condition module 10. If the counter is not greater than or equal to the predetermined constant N, then in step 38 an output of n is generated to the sequence condition module 20 and the process returns to step 28 with the next data sample being input to the energy condition module 10. The final energy decision is thus based upon the last N outputs from the filter module 6. The energy of all of the last N outputs must exceed the energy threshold TH in order for an output of 1 to be generated by the energy condition module 10. The larger the N, the larger the immunity to noise and other signals superimposed on the CI signal 4, but there is less sensitivity to "talk off'. N may be set, for example, to 4. In order to reduce or prevent MIPS (million instructions per second) peaks, the filter module 6 should run every sample, while the other modules (the energy condition module 10, the frequency detection module 12, the frequency condition module 16 and the sequence condition module 20) run every 2ms. The Frequency Detection Module When the frequency detection module 12 receives an input from the energy condition module 10 that the energy of the filtered signal 8 has been above the predetermined threshold TH for at least the N most recent data values, the frequency detection module 12 determines whether the frequency of the signal is one of the two FSK signals. During a time period when the frequency of the input signal 4, and hence the frequency of the filtered signal 8 is constant, all pairs of consecutive data values in the sequence 8 have a fixed phased difference α that is uniquely determined by this constant signal frequency and the constant time delay between consecutive data values. There is thus a one-to-one correspondence between the frequency of the signal 8 and the phase difference α. Fig. 4 shows the normalized phase between two consecutive data values in the sequence 8 as a function of the frequency of the signal 8. In the normalization shown in Fig. 5, the carrier frequency Fc has been set at 0 phase for the sake of clarity in the description.

When the delay is 2mSec (16 sample) and Fs = 8000Hz then Fs/16 = 500Hz so that every 500Hz the phase changes sign. In this case, the relationship between the normalized phase and the frequency of the signal 8 in the rage of ±250Hz around Fc is:

*o = |;' ( /. -λ)

where f 0 is the frequency of the signal 8, and f c is the carrier frequency. More generally, for non-normalized phases:

where f b is the frequency at which the phase changes sign (the "flip frequency"). Given two consecutive data points in the output 8,

^o = a + bj - Ae jB and _y, = c + dj = Ce }D > me frequency detector module 12

calculates a vector Y d where Y d = y 0 conj(y x ) = ACe λB D) = {a + bj)(c - dj) = g + hj .

The phase of the vector Y d is thus equal to the phase difference α between the two consecutive vectors .yø and>> / . The frequency detector module outputs as an output 14 to the frequency condition module, the vector Y d .

In a neighborhood of the FSK frequencies, there should not be more than one cycle of the phase because more than one cycle of the phase may cause misdetection.

As shown in Fig. 4, this situation can arise, for example, with a time delay of more than 16 samples, using this 80 tap FIR. A delay of about 2 msec is the optimum delay that an

80 tap filter can support.

The frequency condition module

The frequency condition module 16 determines whether the frequency of the signal 8 is one of the two FSK frequencies using an algorithm involving the vector Yj. If the phase α of Yd is in a first range THi<α<TH 2 corresponding to a predetermined range of the FSK frequency 980 Hz, the frequency condition module 16 outputs an output 18 of Dbit=l to the sequence condition module 20, indicating that the value of the signal 4 is 1. If the value of α is in a second range TH 3 <α<TH 4 , where TH 2 <TH 3 , corresponding to a predetermined range of the FSK frequency 1180 Hz, the frequency condition module 16 outputs an output 18 of Dbit=0, indicating that the value of the

signal 4 is 0. Otherwise, the frequency detector module outputs an output 18 of Dbit=n.

In practice, when determining whether α is in a particular range, it may be computationally more efficient to operate on the real and imaginary parts of Y d , rather than directly on the phase α of Y d . Fig. 5 shows a flow chart for a method of determining whether the phase difference α is in either one of the intervals Tη 1 <α<TTϊ 2 or TH 3 <α<TH 4 that operates on the imaginary part of Y d . In step 46 the vector Y d is rotated by -TH 2 by multiplying Y d by exp (-JTH 1 ). In step 48, it is determined whether the imaginary part of the rotated vector Y d exp(-jTH 2 ) is less than 0. If the imaginary part of Y d exp(-jTH 2 )is less than 0, then in step 40, the vector Y d is rotated by -TH 1 by multiplying Y d by exp(-jTH0- Then, in step 42 it is determined whether the imaginary part of the rotated vector YaBXp(^TH 1 ) is greater than 0. If no, then 0KTH 1 so that the frequency of the signal 8 is not 980 Hz and is not 1180 Hz. In this case, in step 44, the frequency condition module 16 outputs an output of Dbit=n to the sequence condition module 20, and the process ends. If the imaginary part of Y d CXp(^TH 1 ) is greater than 0, then TH 1 SoKTH 2 and the frequency of the signal 8 is 980 Hz. In this case, in step 50 the frequency condition module 16 outputs a databit (Dbit) output of "1", and the process ends.

If in step 48 it is determined that the imaginary part of the rotated vector Y d exp(- JTH 2 ) is not less than 0, then in step 52, the vector Y d is rotated by -TH 3 by multiplying Y d by exp (-JTH 3 ). Then, in step 54 it is determined whether the imaginary part of the rotated vector Y d exp(-jTH 3 ) is greater than 0. If no, then α<TH 3 and the frequency of the signal 8 is not 980 Hz and is not 1180 Hz. In this case, in step 56, the frequency condition module 16 outputs Dbit= n and the process ends. If the imaginary part of Y d exp(-jTH 3 ) is greater than 0, then TH 3 >α. In this case the process continues with step 58 where the vector Y d is rotated by -TH 4 by multiplying Y d by exp (-JTH 4 ). Then, in step 60 it is determined whether the imaginary part of the rotated vector Y d exp(-jTHU) is less than 0. If no, then α>TH 4 and the frequency of the signal 8 is not 980 Hz and is not 1180 Hz. In this case, in step 62, the frequency condition module 16 outputs a Dbit=n and the process ends. If the imaginary part of Y d exp(-j TH 4 )Js less than zero, then TH 3 <α<TH 4 , and the frequency of the signal 8 is 1180 Hz. In this case, in step 64 the frequency condition module 16 outputs a databit (Dbit) output of "0", and the process ends.

When a signal is superimposed on the CI signal, "frequency noise" may cause the phase α of Y d to leave the detection zone. Frequency noise may be reduced by using instead of Y d in the algorithm of Fig. 5, the mean value of the M most recent values of Y d , where M is a predetermined constant. M may be, for example, equal to 4. The Sequence Condition Module

The output 18 of the frequency condition module 16 consisting of the sequence of Dbits is input to the sequence condition module 20. The sequence condition module

20 searches the output 18 for the preamble of the Tl-NO sequence (the portion of the

Tl-NO sequence consisting of 10 ones ('1111111111') followed by 10 synchronization bits ('0000000001')).

The fact that there is no synchronization between the sampling rate and the baud rate and the fact that the Dbit is based on an average of a few windows, may cause Dbit misdetection at the beginning of the Tl-NO sequence and in the transition of bits. Thus, for example, when the signal 4 includes the Tl-NO sequence preamble .. ^,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1... the corresponding output 18 of the frequency condition module 16 may be

...11,11,^1,1,1,1,1,1,1,1,1,^0,0,0,0,0,0,0,^1...

The distance in the Tl-NO preamble between the first '1' to the first '0' is known as the "flip distance" and is equal to 10 FSK bits or 17 Dbits (The Dbit length is obtained by dividing the FSK bit length by 0.6). The Tl -NO preamble contains 9 flips (a

1 separated from a subsequent 0) of length 10 FSK bits or 17 Dbits. Due to the problem of misdetection, in one preferred embodiment, in order to detect the Tl-NO sequence preamble, instead of searching the output 18 for consecutive flips of length 10 FSK bits, the output 18 is searched for predetermined number of consecutive occurrences of a shorter flip. For example, the Tl-NO preamble maybe detected in the output 18 by searching for consecutive occurrences of a flip of length 7 FSK bits (12 Dbits). When a predetermined number of such flips is detected, the sequence condition module 18 outputs an output 22 of "1" indicating that the Tl-NO signal has been detected.

Otherwise, the output 22 is set to 0, indicating that the Tl-NO signal has not been detected.

The higher the number of consecutive occurrences needed to generate an output 22 of "1", the lower the probability for false detection, but the higher the probability for not detecting the Tl-NO sequence preamble when present. On the other hand, the lower

the number of consecutive occurrences needed to generate an output 22 of "1" the higher the probability for false detection but the lower probability for not detecting the Tl-NO sequence preamble when present. For most implementations, a value of 7 for the predetermined constant is preferable. Since the sequence condition module searches the signal 18 only and looks for the CI preamble, and the preamble itself is only two thirds of the CI signal, the detection decision is made after no more than 66mSec from the beginning of the CI.

Fig. 6 shows an implementation of the CI detector 2 at a communication node 68 of a communication system. The CI detector 2 simultaneously monitors each of two or more communication lines 70 at the node for the occurrence of the Tl-NO sequence. Three communication lines 7Oa 5 70b, and 70c are shown in Fig. 6. This is by way of example only, and the CI detector 2 may be implemented at a communication node 68 involving any number of lines 70. The implementation further comprises a single modem 72. When the sequence condition module 20 (Fig. 1) of the CI detector 2 detects the Tl-NO sequence in one of the communication lines 70, for example, the communication line 70a, the CI detector 2 connects the communication line 70a to the modem 72 by means of a switch 74 and causes the modem to change its mode of communication from voice to video. In this implementation, a single modem may be used, and use of a dedicated modem for each of the communication lines can be avoided.

Fig. 7 shows an implementation of the multi-frequency detector of the invention in a DTMF detector 80. The DTMF detector 80 searches an input signal 82 for the presence of a DTMF signal which consists of an additive combination of a high frequency and a low frequency where the high frequency is from a predetermined set of high frequencies and the low frequency is from a predetermined set of low frequencies.

In the DTMF detector 80, the input signal 82 is simultaneously input into a high frequency detector 84 and a low frequency detector 86. The high frequency detector 84 consists of a high frequency filter module 88a that transmits the frequencies of the predetermined set of high frequencies and is preferably constructed essentially as described above in reference to the filter module 6. The output of the filter module 88a is input to an energy condition module 90a which operates essentially as described above in reference to the energy condition module 10. When the filtered signal satisfies the energy condition of the energy condition module, the filtered signal is analyzed by

means of a high frequency detection module 92a and a high frequency condition module 94a, which operate as described above in reference to the frequency detection module 12 and the frequency condition module 16, respectively. When the high frequency condition module 94a detects one of the high frequencies, the detected high frequency is input to a DTMF detection module 96. Otherwise, the high frequency condition module 94a outputs an output of "n".

The low frequency detector 84 consists of a low frequency filter module 88b that transmits the frequencies of the predetermined set of low frequencies and is preferably constructed essentially as described above in reference to the filter module 6. The output of the low frequency filter module 88b is input to an energy condition module 90b which operates essentially as described above in reference to the energy condition module 10. When the filtered signal satisfies the energy condition of the energy condition module 90b, the filtered signal is analyzed by means of a low frequency detection module 92b and a low frequency condition module 94b, which operate as described above in reference to the frequency detection module 12 and the frequency condition module 16, respectively. When the low frequency condition module 94b detects one of the low frequencies, the detected low frequency is input to a DTMF detection module 96. Otherwise, the low frequency condition module 94a outputs an output of "n". The DTMF detection module 96 thus receives inputs from the high frequency condition module 94a and the low frequency condition module 94b. The DTMF detection module detects pairs of simultaneously obtained inputs from the two frequency condition modules 94a and 94b indicating that one of the predetermined high frequencies was detected in the input signal 82 simultaneously with the detection of one of the predetermined low frequencies. The DTMF detection module 96 may further determine whether the detected pair of high and low frequencies satisfies any other predetermined requirements, especially requirements specified by a communications standard. When the DTMF detection module detects that a predetermined high frequency and a predetermined low frequency were simultaneously detected in the input signal 82, and meet any predetermined requirements, the DTMF detection module outputs an output indicative of this.