home *** CD-ROM | disk | FTP | other *** search
/ The CIA World Factbook 1992 / k3bimage.iso / sel / 04 / 0022 / iso_0060.iso < prev    next >
Encoding:
Text File  |  1991-12-02  |  14.3 KB  |  376 lines

  1.     "AT" COMMANDS: PROTOCOL SUMMARY
  2.     --------------------------------
  3.  
  4.     Hayes compatible modems autodialing protocol use the industry standard
  5.     "AT" command set.  Each command in the autodialing protocol follows the
  6.     format below (with the exception of the A/ command and the +++ command,
  7.     which will be discussed later).
  8.  
  9.        <AT><Command>{Argument}{=n}{More}<Return>
  10.  
  11.     Each element of the command line shown above is described below.
  12.  
  13.  
  14.        Note: Information in "angle" brackets <> must be included as part of
  15.              the command line, while information in "curly" braces {} may
  16.              or may not be necessary as part of the command line.
  17.  
  18.  
  19.     AT         This is the attention code to let the modem know that a
  20.                command will follow.  The AT must be in capital letters.
  21.  
  22.     Command    A command consists of one or two letters.
  23.  
  24.     Argument   Optional information that further defines the command.
  25.  
  26.     =n         Used when setting a register.  These registers are used to
  27.                change certain of the modem's operating parameters.
  28.  
  29.     More       You may "string" commands together in one command line as
  30.                long as the total length of the command line does not exceed
  31.                40 characters.  The attention code, AT, is only required at
  32.                the beginning of the command line.  Therefore, the "more"
  33.                command sequence follows the following format:
  34.  
  35.                <Command>{Argument}{=n}
  36.  
  37.     <Return>   This is the carriage return or enter key on your computer's
  38.                keyboard.  Pressing RETURN at the end of the command line
  39.                will tell the modem to execute the command(s) in that
  40.                command line.
  41.  
  42.     For  example,  let's look at the command line
  43.  
  44.        AT DT 555-1234 ; <return>
  45.  
  46.     Here, AT is the attention code; DT is the command to dial a number
  47.     using the tone method; 555-1234 is the argument (a phone number); ; is
  48.     "more" (another command, this one instructing the modem to return to
  49.     the  command state after dialing); and <return> is the carriage return
  50.     terminating the command line.
  51.  
  52.     In the following commands, r and n are used as variables and can have
  53.     the values that are explained with the associated command.  "n...n"
  54.     means that an item may be repeated as many times as necessary, as long
  55.     as the entire command line does not exceed 40 characters.
  56.  
  57.     "AT" COMMAND SET SUMMARY
  58.     ------------------------
  59.  
  60.     A          Tells the modem to immediately answer an incoming call.
  61.  
  62.  
  63.     A/         Causes the modem to re-execute the last command that was
  64.                issued.   For example, this command can be used to redial a
  65.                number if the previous command was a dial command.  A/ and
  66.                +++ are the only commands that are neither preceded by AT
  67.                nor followed by <return>.
  68.  
  69.  
  70.     B[n]       n=0 or 1 (default=1)
  71.  
  72.                B0 Selects CCITT V.22 operation at 1200 bps.
  73.                B1 Selects Bell 212A operation at 1200 bps.
  74.  
  75.  
  76.     C[n]       n=0 or 1 (default=1)
  77.  
  78.                This command instructs the modem to turn the carrier signal
  79.                ON or OFF.
  80.  
  81.                C0 Carrier OFF
  82.                C1 Carrier ON
  83.  
  84.  
  85.     D[n...n]   This command instructs the modem to dial the phone number
  86.                expressed by the string argument n...n.  The number will be
  87.                dialed with either tones or pulses depending on how the last
  88.                number was dialed.  On power up, this command will default
  89.                to pulse dialing.  (See note in DT[n...n] command).  The
  90.                allowable arguments for n...n differ for pulse and tone
  91.                dialing, see the detailed descriptions under DT[n..n].
  92.  
  93.  
  94.     DP[n...n]  n=0 to 9, P T R ;@ ! W /
  95.  
  96.                This command instructs the modem to dial the phone number
  97.                expressed by  the argument n...n using pulse dialing.  See
  98.                the detailed description of the arguments under DT[n...n]
  99.                below).
  100.  
  101.     DT[n...n]  n=0 to 9, P T R ;@ ! W / A B C D * #
  102.  
  103.                This command instructs the modem to dial the phone number
  104.                expressed by the argument n...n using tone dialing.
  105.  
  106.                The [n...n] arguments consist of three groups:
  107.  
  108.                In addition to the numerals 0-9, there are some special
  109.                characters that  can be included in a dialing string.  They
  110.                are called dial string modifiers, and they both define the
  111.                phone number to be dialed, and certain other specific
  112.                dialing operations.  These characters are P R T ; , @ ! W /
  113.                A B C D *  #.  These characters have the following
  114.                functions:
  115.  
  116.                P  Causes the MODEM to pulse dial the digits that follow.
  117.  
  118.                R  Causes the modem to go into the Answer mode after dialing
  119.                   the number.  This character must only be at the end of
  120.                   the dialing string.
  121.  
  122.                T  Causes the modem to tone dial the digits, characters, and
  123.                   symbols that follow.
  124.  
  125.                ;  A ; (semicolon) causes the modem to go back into the
  126.                   Command State, allowing you to enter other commands while
  127.                   online.
  128.  
  129.                ,  When inserted in a dialing string, a , (comma) causes the
  130.                   modem to pause.  The default time for the pause is two
  131.                   seconds, and can be changed by modifying register S8.
  132.  
  133.                @  A @ (commercial "at") causes the modem to wait for a
  134.                   specified period of quiet before proceeding.  This is
  135.                   often used to detect the end of a prerecorded message.
  136.                   The default is 30 seconds, and can be changed by
  137.                   modifying register S7.  Result code 8 will be reported
  138.                   regardless of which result code set is selected.
  139.  
  140.                !  A ! (exclamation mark) causes a "hookflash." This
  141.                   simulates hanging up for 1/2 second and then
  142.                   reconnecting.  It is typically used for transferring
  143.                   calls.
  144.  
  145.                W  Causes the modem to wait for a dial tone for a specified
  146.                   length of time before proceeding. The default is 30
  147.                   seconds, and can be changed by modifying register S7.
  148.                   Result code 6 will always be included regardless of which
  149.                   result code set is selected.
  150.  
  151.                /  A / (slash) causes the modem to wait for 0.125 second
  152.                   before proceeding with the rest of command line.
  153.  
  154.  
  155.                A-D, *, #   The characters A B C D and the symbols * # can
  156.                            be used only during tone dialing.  They are
  157.                            typically used to access the newer features of
  158.                            modern telephone systems.
  159.  
  160.     E[n]       n=0 or 1 (default=1)
  161.  
  162.                Causes the modem to either echo characters or not to echo
  163.                characters while in the Command State.
  164.  
  165.                E0 Echo is OFF
  166.                E1 Echo is ON
  167.  
  168.  
  169.     F[n]       n=0 or 1 (default=1)
  170.  
  171.                The F[n] command selects either Full- or Half-Duplex
  172.                operation.  This causes the  modem to either echo or not to
  173.                echo characters while online.
  174.  
  175.                F0 Half-Duplex; echo is ON
  176.                F1 Full-Duplex; echo is OFF
  177.  
  178.  
  179.     H[n]       n=0 or 1 (default=0)
  180.  
  181.                Causes the modem to go offhook or onhook.  (Going offhook
  182.                means that the modem "picks up" the telephone; going onhook
  183.                means that the modem "hangs up" the telephone.)
  184.  
  185.                H0 Onhook
  186.                H1 Offhook
  187.  
  188.  
  189.     I[n]       n=0-2 (default=0)
  190.  
  191.                The I[n] command requests that the modem respond with
  192.                certain product information.
  193.  
  194.                I0  Returns product identification code of the format 24X.
  195.                I1  Returns ROM checksum
  196.                I2  Runs memory (ROM) test and returns with OK or ERROR
  197.                    result code message
  198.  
  199.     L[n]       n=0 to 7 (default=3)
  200.  
  201.                The L[n] command selects the speaker volume (0 is the
  202.                softest; 7 is the loudest).
  203.  
  204.  
  205.     M[n]       n=0-3 (default=1)
  206.  
  207.                The M[n] command controls the ON/OFF function of the
  208.                speaker.
  209.  
  210.                M0  Speaker always OFF
  211.                M1  Speaker ON until carrier is detected
  212.                M2  Speaker always ON
  213.  
  214.     O[n]       n=0-2
  215.  
  216.                The O[n] command causes the modem to go offhook in the same
  217.                mode (originate or answer) as in the previous call, and
  218.                controls whether or not the Remote Digital Loopback mode is
  219.                ON or OFF.
  220.  
  221.                O0  Causes the modem to go off hook in the same mode
  222.                    (originate or answer) as in the previous call.
  223.                O1  Remote digital loopback OFF
  224.                O2  Remote digital loopback ON
  225.  
  226.  
  227.     P          Causes the modem to pulse dial until tone dialing is
  228.                selected or the modem is reset.
  229.  
  230.  
  231.     Q[n]       n=0 or 1 (default=0)
  232.  
  233.                The Q[n] command tells the modem to either send the Result
  234.                Codes or to remain quiet.
  235.  
  236.                Q0  Send Result Codes
  237.                Q1  Stay quiet
  238.  
  239.  
  240.     S[r]?      r=0 to 16
  241.  
  242.                The S[r]? command requests the modem to respond with the
  243.                value of any of the modem's 17 registers.  These registers
  244.                are used to set up various operating parameters of the
  245.                modem.
  246.  
  247.  
  248.     S[r]=[n]   r=0 to 16 n=0 to 255
  249.  
  250.                The S[r]=[n] command allows you to set (modify) the value of
  251.                any of the 17 registers.
  252.  
  253.  
  254.     T          Causes the modem to touch-tone dial until pulse dialing is
  255.                selected or the modem is reset.
  256.  
  257.  
  258.     V[n]       n=0 or 1 (default=1)
  259.  
  260.                The V[n] command either verbal (whole words) or numerical
  261.                Result Codes.
  262.  
  263.                V0  Result Codes sent as digits (numerals)
  264.                V1  Result Codes sent as whole words
  265.  
  266.     X[n]       n=0 to 4 (default=0)
  267.  
  268.                The X[n] command selects normal or extended Result Codes.
  269.  
  270.                X0  Includes Result Codes 0-4
  271.                X1  Includes Result Codes 0-5
  272.                X2  Includes Result Codes 0-6
  273.                X3  Includes Result Codes 0-5, 7
  274.                X4  Includes Result Codes 0-8
  275.  
  276.                Dial string modifiers W and @ cause result codes 6 and 8,
  277.                respectively, to always be included. Result Codes are
  278.                summarized at the end of this document.
  279.  
  280.     Y[n]       n=0 or 1 (default=1)
  281.  
  282.                The Y[n] command enables or disables long space disconnect.
  283.  
  284.                Y0  Long space disconnect disabled
  285.                Y1  Long space disconnect enabled
  286.  
  287.  
  288.     Z          The Z command resets the modem.  All commands and registers
  289.                are returned to their default values.
  290.  
  291.  
  292.     +++        During a data connection, the escape command +++ returns you
  293.                to Command State without terminating the data connection so
  294.                you can enter commands. (Do not type AT before the pluses or
  295.                <return> after them.  You must wait for one second of
  296.                inactivity before and after typing the pluses.)
  297.  
  298.     RESULT CODES
  299.     ------------
  300.  
  301.           Digit   Word
  302.           Code    Code          Meaning
  303.           ──────  ──────────    ──────────────────────────────────────
  304.  
  305.             0     OK            Command was executed without error
  306.  
  307.             1     CONNECT       Carrier detect at 300 or 1200 bps
  308.                                 (basic Result Code)
  309.  
  310.             2     RING          Ring signal detected
  311.  
  312.             3     NO CARRIER    Carrier was lost or connection was not
  313.                                 made
  314.  
  315.             4     ERROR         Invalid command or error in command
  316.                                 line
  317.  
  318.             5     CONNECT 1200  Connection established at 1200 bps
  319.  
  320.             6     NO DIALTONE   No dialtone was detected on the
  321.                                 telephone line
  322.  
  323.             7     BUSY          Busy signal detected after dialing
  324.  
  325.             8     NO ANSWER     The "wait for quiet answer" dial
  326.                                 modifier @ was issued, and five
  327.                                 seconds of silence was not detected
  328.  
  329.     S-REGISTER SUMMARY
  330.     ------------------
  331.  
  332.           Register  Range   Units     Function                 Default
  333.           ────────  ──────  ────────  ───────────────────────  ───────
  334.  
  335.             S0      0-255   rings     Number of rings on which    00
  336.                                       the modem answers the call
  337.  
  338.             S1      0-255   rings     Number of rings occurred    00
  339.  
  340.             S2      0-127   ASCII     Escape Code character       43
  341.  
  342.             S3      0-127   ASCII     Carriage return character   13
  343.  
  344.             S4      0-127   ASCII     Line feed character         10
  345.  
  346.             S5      0-32    ASCII     Backspace character         08
  347.                     & 127
  348.  
  349.             S6      2-255   seconds   Wait time for dial tone     02
  350.  
  351.             S7      1-255   seconds   Wait time for carrier       30
  352.  
  353.             S8      0-255   seconds   Length of pause (caused     02
  354.                                       by comma)
  355.  
  356.             S9      1-255   1/10 sec  Carrier detect response     06
  357.                                       time
  358.  
  359.             S10     0-255   1/10 sec  Lost carrier to hang-up     07
  360.                                       delay
  361.  
  362.             S11     50-255  milli-    Duration and spacing of     70
  363.                             seconds   touch-tones.
  364.  
  365.             S12     0-255   1/50 sec  Escape Code guard time      50
  366.  
  367.  
  368.             S13     ------  --------  UART Status Register        --
  369.  
  370.             S14     ------  --------  Option Register             --
  371.  
  372.             S15     ------  --------  Flag Register               --
  373.  
  374.             S16     0-2, 4  --------  Self test                   00
  375.  
  376.