6.6 Tone Detectors

(Page 7 of 11 in this chapter)
The tone detector runs a precise tone filter for a single or dual frequency tone. Each AG Access port has up to three programmable tone detectors. If the port is running a protocol employing an inband cleardown tone, the first tone detector is consumed by AG Access. The following events are generated by the tone detectors:

ADIEVN_TONE_n_BEGIN Where n is the programmable tone ID (1-3)
ADIEVN_TONE_n_END Where n is the programmable tone ID (1-3)

The tone detector functions are:

Function

Description

adiStartToneDetector

Starts a tone detector.

adiStopToneDetector

Stops a tone detector.

In addition to the tone detector identifier which specifies a tone ID of 1-3, the adiStartToneDetector function takes four parameters that describe a single or dual frequency tone:

Note that the range of frequencies detected will be the center frequency plus/minus one-half of the bandwidth. Figure 28 illustrates these parameters.



: Tone Detection Frequency Parameters

Other parameters for the tone detector are defined in a structure with default values. You can modify the tone detector's default behavior by specifying the following parameters when invoking adiStartToneDetector.

Figure 29 illustrates the tone detection qualification parameters.



: Tone Detection Qualification Parameters

This parameter information is communicated via the ADITONEDETECT parameter structure whose exact representation is defined in Appendix D of the AG Access Function Reference Manual.

The remaining parameters in the structure (reflevel and reserved) should not be modified. These are parameters to the DSP algorithms and are included in the structure in the case of a field problem for which an NMS engineer may request modification.

The adiStopToneDetector function immediately terminates a tone detector. AG Access generates an ADIEVN_TONEDETECT_DONE event with the value set to ADI_REASON_STOPPED.

AG Access may also generate the ADIEVN_DTMFDETECT_DONE event with an error code, ADIERR_xxx, if the function is started incorrectly.


(Page 7 of 11 in this chapter)

Copyright 1996 Natural MicroSystems, Inc. All Rights Reserved.