(Page 3 of 3 in this chapter)


3.2 Verifying Your AG Access Installation

This sections verifies that your AG board is installed correctly and that all AG Access paths and library files are defined.

3.2.1 Running the BRDINFO Program

brdinfo is a program that reports the board number, address, type, number of ports on the board, memory, and MVIP stream/slot assignment for each AG board in the system.

To run brdinfo on OS/2 and Windows NT:

  1. Start a command window and enter the following:

       brdinfo 
    
To run brdinfo on UnixWare, SCO and Solaris:

  1. Log in as root (or become the super-user).

    
    
  2. If you have a graphical user interface, start a terminal session (shell prompt).

    
    
  3. Enter the following:

       brdinfo 
    
You should see a display similar to the following:

 AG Board Info Utility V.13 (Nov 7 1996)           ADI Version is 1.20

Board Addr Type Free memory Ports Stream/Slot
----- ---- ---- ----------- ----- -----------

0 2a0 AG-8 8084 8 18:0..7
19:0..7

1 22c0 AG-T1 529428 24 18:0..23
19:0..23

Total port count=32
If no boards are found, verify that the board is loaded (i.e., that you ran agmon). If the board numbers, addresses, etc., are not as expected, review your ag.cfg file.

3.2.2 Running the ADITEST Program

aditest is a program that executes many of the AG Access functions from a simple command menu. It is most useful when used with a telephone so that you can play, record, hear tones, etc. Several methods for connecting a phone are suggested in the following paragraphs. Choose one that is appropriate for the AG hardware in your system.

After you have connected a test line or test phone (see below), enter the following command to start aditest:

   aditest -b <board> -s <stream>:<slot>
Where <board>, <stream> and <slot> are replaced by values that are valid for your installation as displayed by brdinfo.

You should see a display like the following:

ADI Demonstration and Test Program  V.94 (Nov  7 1996)      ADI Version is 1.20
H  help             Q  quit             VD view default prm !  repeat command
OP open port        CP close port       X  show port state  OS open supv port
CE cont event fetch GE get 1 event      SE stop event fetch LE loopback event
SP start protocol   UP stop protocol    AC answer call      PC place call
RC release call     BC block calls      UC unblock calls    C? call status
JC reject call      AS Assert Signal
PF play file        PM play memory      P? play status      PS play stop
RF record file      RM record memory    R? record status    RS record stop
MG modify play gain MS modify playspeed EI encoding info    
DG digit get        DF digit flush      CD collect digits   SC collect stop
DP digit peek       FS FSK Send         FR FSK Receive      FA FSK Abort rcv
GN gen net tone     GT gen user tone    GD gen DTMFs        GS generation stop
TP toggle pattern   GW generate wink    ST start timer      AT abort timer
EB enable bit det   DB disabl bit det   SQ signal bit query
EE enable energydet DE disabl energydet ED enable DTMF det  DD disabl DTMF det
ET enable tone det  DT disabl tone det  EM enable MF det    DM disabl MF det
SD start dial       AD abort dial       CB callprog begin   CS callprog stop

All commands are entered as one or two letters.

Local phone connected to an AG-8 DID

If you have an AG-8 with a DID line interface, you can connect a 2500-type telephone to the line interface. You get a direct audio connection, and can also use the telephone hook switch to simulate signaling from the network.

  1. Connect a telephone and a 24VDC power supply to an AG-8.

    
    
  2. Start aditest. Use the -s option if you are not using the first telephone line on the board.

    
    The initial aditest menu appears.
  3. Open the port by entering op.The following message appears:

       Event: ADIEVN_OPENPORT_DONE, Finished 
    
  4. Start the NOCC protocol by entering sp.

    
    The following message appears:
       Enter protocol name ['nocc']: 
    
  5. Press Enter.

    
    The following message appears:
       Event: ADIEVN_STARTPROTOCOL_DONE, Finished 
    
  6. Begin recording to memory by entering rm.

    
    You should hear a beep on the handset.
  7. Say "Hello World" and wait.

    
    The following message appears on the screen (you may see a different number of bytes):
       Event: ADIEVN_RECORD_DONE, Voice End, nbytes=15624.
    
  8. Play back your voice by entering pm.

    
    The following message appears:
       Event: ADIEVN_PLAY_DONE, Finished, nbytes=15624.
    
  9. Quit the test program by entering q.

    
     Loop start telephone line connected to an AG-8 Loop Start or ATI-24 (with AG-24)

With this setup you will need a loop start line as a test line connected to your system, so you can call the test line from a telephone connected to another line. Follow the procedure below:

  1. Make sure that your ag.cfg file has the following statement either in the common section or in the context of the board that you will be using:

       TCP = lps0.tcp
    
    If necessary, edit the ag.cfg file and re-start agmon.
  2. Start aditest.

    
    The initial aditest menu appears.
  3. Open the port by entering op.

    
    The following message appears:
       Event: ADIEVN_OPENPORT_DONE, Finished 
    
  4. Start a protocol by entering sp.

    
    The following message appears:
       Enter protocol name ['nocc']: 
    
  5. Enter the loop start protocol, lps0.

    
    The following message appears:
       Event: ADIEVN_STARTPROTOCOL_DONE, Finished 
    
  6. Place a call to the line connected to the AG board.

    
    The following message appears:
       Event: ADIEVN_INCOMING_CALL
    
  7. Initiate answering the call by entering ac.

    
    The following message appears:
       Number of rings [1]: 
    
  8. Press Enter.

    
    You should hear a single ring tone.
    The following messages appear:
       Event: ADIEVN_ANSWERING_CALL
    Event: ADIEVN_CALL_CONNECTED, Answered
  9. Begin recording to memory by entering rm.

    
    You should hear a beep on the handset.
  10. Say "Hello World" and wait.

    
    The following message appears on the screen (you may see a different number of bytes):
       Event: ADIEVN_RECORD_DONE, Voice End, nbytes=15624.
    
  11. Play back your voice by entering pm.

    
    The following message appears:
       Event: ADIEVN_PLAY_DONE, Finished, nbytes=15624.
    
  12. Quit the test program by entering q.

    
     Wink start telephone line connected to an AG-T1 or to a DTI-48 with AG-24 or AG-48

With this setup you will need a T1 connection, and a way to place a call to one of the channels of the T1.

  1. Make sure that your ag.cfg file has one of the following statements either in the common section or in the context of the board that you will be using:

       TCP = did0.tcp
    
or

   TCP = wnk0.tcp
If necessary, edit the ag.cfg file and re-start agmon.
  1. Start aditest (see above).

    
    
  2. Open the port by entering op.

    
    The following message appears:
       Event: ADIEVN_OPENPORT_DONE, Finished 
    
  3. Start a protocol by entering sp.

    
    The following message appears:
       Enter protocol name ['nocc']: 
    
  4. Enter the appropriate protocol, wnk0 or did0.

    
    The following message appears:
       Event: ADIEVN_STARTPROTOCOL_DONE, Finished 
    
  5. Place a call to the line connected to the AG board.

    
    The following message appears:
       Event: ADIEVN_INCOMING_CALL
    
  6. Initiate answering the call by entering ac.

    
    The following message appears:
       Number of rings [1]: 
    
  7. Press Enter.

    
    You should hear a single ring tone.
    The following messages appear:
       Event: ADIEVN_ANSWERING_CALL
    Event: ADIEVN_CALL_CONNECTED, Answered
  8. Begin recording to memory by entering rm.

    
    You should hear a beep on the handset.
  9. Say "Hello World" and wait.

    
    The following message appears on the screen (you may see a different number of bytes):
       Event: ADIEVN_RECORD_DONE, Voice End, nbytes=15624.
    
  10. Play back your voice by entering pm.

    
    The following message appears:
       Event: ADIEVN_PLAY_DONE, Finished, nbytes=15624.
    
  11. Quit the test program by entering q.



(Page 3 of 3 in this chapter)


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