(Page 6 of 6 in this chapter)


Customizing the Functions on Your AG Board

Keep the following restrictions in mind when reconfiguring the available functions on an AG board:

To configure the AG boards in a system to use functions that are not in the default configuration, complete the following the steps:

  1. List all the functions that you wish to be made available to your application in the connected call control state for the ports on a given AG board.

    
    
  2. From the previous step, look in Table 2 to determine which overlay files are required.

    
    
  3. Add a DSPfile statement to the ag.cfg file for each new overlay which is required. The syntax for the statement is:

       DSPfile = <overlay.dsp>
    
    For example, DSPfile = wavrec.dsp
Each overlay file listed in a DSPfile statement will be assigned to task processors. If the overlay is not one of DTMF, DTMFE, SIGNAL or ECHO, it will be placed on all foreground task processors.

Note: In the configuration files on the runtime disk, the DSPfile statements are located in the common section after the [AGBOARD] keyword. This will cause the overlay files to be loaded on all boards configured in the configuration file. As an alternative, the DSPfile statements can be moved to inside the individual BOARD sections of the configuration file. This will allow each board in the system to be configured independently. Note: If configuring for A-law encoding, as is typical with the AG-E1 and AG-60 products, append "_A" to each DSP file name. This will select the
A-law encoded version of the DSP file. (For example, voice_a.dsp.)

  1. Always make certain the following overlay files are specified in the ag.cfg file. These files are required for the call control functions.

       DSPfile = signal.dsp
    DSPfile = callp.dsp
    DSPfile = dtmf.dsp *
    DSPfile = tone.dsp
    (* Substitute dtmfe.dsp if you are using echo canceling.)
  2. To configure for echo canceling, also specify the following overlay file in the ag.cfg file:

        DSPfile = echo.dsp
    
  3. Check your MIPS usage. Take the worst case MIPS usage for each port on a board. Add up the total MIPS usage for all ports. This should not exceed the Available Foreground MIPS from Table 3 for any boards in the system. If it does, then reduce the number of ports used on that board by the application, accordingly.

    
    
  4. Check the list of configuration restrictions

    
    
  5. Initialize the boards by running agmon. Examine the Task Processor Configuration section of the ag.rpt file output by agmon and confirm that the foreground overlays you have selected are assigned to the foreground task processors.

    
    	 Bandwidth Configuration Restrictions

Some functions have extremely high data throughput requirements. This is especially true of Wave file play and record since no audio compression is performed on Wave files. This section lists restrictions based on data throughput limitations.

This example is based on the procedure explained on page 109 and describes how to configure a standard AG-8 to play and record OKI 6Khz speech instead of NMS speech, without echo canceling.

  1. List all foreground functions used in connected state:

    • Tone generator (for play beeps).

      
      
    • OKI Play 6Khz

      
      
    • OKI Record 6Khz

      
      
    • From Table 2, the overlay files required are:

      • tone.dsp

        
        
      • okirec.dsp

        
        
      • okiply.dsp

        
        
      • Edit the ag.cfg file to contain the following statements:

           DSPfile = signal.dsp       # Always required background
        DSPfile = dtmf.dsp # Always required background
        DSPfile = callp.dsp # Always required foreground
        DSPfile = tone.dsp # Always required foreground
        DSPfile = okirec.dsp # Foreground from step 2
        DSPfile = okiply.dsp # Foreground from step 2
      • Calculate worst case MIPS:

        
        From Table 2, the MIPS requirements for the selected foreground functions are:
        Tone Generator = 0.88 MIPS
        OKI Play 6Khz = 2.52 MIPS
        OKI Record 6Khz = 2.46 MIPS
        These three functions are mutually exclusive on each port. i.e. only a single one of the three will ever be active at any given time on a given port. Consequently, the worst case foreground MIPS usage is 2.52 MIPS per port.
        The total worst case MIPS usage is 8 ports * 2.52 MIPS per port = 20.2 MIPS. From Table 3 there are available 23 foreground MIPS.
      • No restrictions apply.

        
        
      • Run agmon on the edited configuration file and confirm task processor assignments.

        
        	 Example 2

      This example is based on the procedure explained on page 109 and describes how to configure a standard AG-24+ to use NMS vari-speed speech with the maximum play speed set to 2X, without echo canceling. It is assumed that the application is also using tone generation. Due to the high MIPS requirements of the NMS vari-speed overlay, this configuration will result in a reduced port count as shown in step 4.

      1. List functions

        • Tone Generator (0.88 MIPS)

          
          
        • NMS Play 32kbs 2X (4.30 MIPS)

          
          
        • NMS Play 24kbs 2X (4.30 MIPS)

          
          
        • NMS Play 16kbs 2X (4.30 MIPS)

          
          
        • NMS Record 32kbs (2.13 MIPS)

          
          
        • NMS Record 24kbs (2.13 MIPS)

          
          
        • NMS Record 16kbs (2.13 MIPS)

          
          
        • List overlays

          • tone.dsp

            
            
          • voxp.dsp

            
            
          • voxr.dsp

            
            
          • Edit the ag.cfg file to contain the following statements:

               DSPfile = signal.dsp       # Always required background
            DSPfile = dtmf.dsp # Always required background
            DSPfile = callp.dsp # Always required foreground
            DSPfile = tone.dsp # Always required foreground
            DSPfile = voxp.dsp # Foreground from step 2
            DSPfile = voxr.dsp # Foreground from step 2
          • All functions listed in step 1 are mutually exclusive on each port. Only a single one of the three types of play or record will ever be active at any given time on a given port. Consequently, the worst case foreground MIPS usage occurs when any NMS vari-speed play is running at 4.3 MIPS per port. The available foreground MIPS on an AG-24+ from table two is 86 MIPS. This means the maximum number of ports in this configuration is equal to 86 MIPS / 4.3 MIPS = 20 ports.

            
            
          • No restrictions apply.

            
            
          • Run agmon on the edited configuration file and confirm task processor assignments.



          (Page 6 of 6 in this chapter)


          Tech_Support@nmss.com
          Copyright © 1996, Natural MicroSystems, Inc. All rights reserved.