home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 July / CHIP797.ISO / workshop / doc / modwsh20.exe / ATCOM.TXT < prev    next >
Encoding:
Text File  |  1995-01-03  |  11.3 KB  |  236 lines

  1.  
  2.           B A S I C   A T   C O M M A N D S
  3.           
  4.           The standard AT command set is sometimes referred to as
  5.           Hayes compatible modem commands. A modem that is Hayes
  6.           compatible can use this standard Hayes command set. 
  7.           Don't buy a modem if it isn't Hayes compatible. Almost
  8.           all modems sold today support these AT commands. The
  9.           command letters AT wake up the modem and initialize it. 
  10.           The AT means ATTENTION modem. This list of commands is
  11.           for reference only; please don't feel you need to memorize
  12.           them! If you do, your cohorts will presume you're a nerd
  13.           (and correctly so).
  14.           
  15.           COMMAND        FUNCTION
  16.           
  17.           A/         Repeats the last AT command (this command does
  18.                      not need to be preceded by the letters AT)
  19.           +++        Switches the modem from online mode to command
  20.                      mode (this command does not need to be preceded
  21.                      by the letters AT)
  22.           
  23.           AT         Attention modem--(wakes up the modem)
  24.           
  25.           
  26.           
  27.           
  28.           The following commands require an AT to precede the
  29.           command (such as ATA for the first one on the list):
  30.           
  31.           A          Sets the modem in answer mode
  32.           DT         Dials a touch-tone phone
  33.           DP         Dials a pulse (rotary) phone                           
  34.           
  35.           
  36.                  dial modifiers
  37.                      
  38.                  R       Originate call in answer mode (to call
  39.                          originate only modems)
  40.                  S=n     Dial the stored numbers where n= 0,1,2,3
  41.                  W       Wait for dial tone prior to dialing--the time
  42.                          period of the pause is determined by an S
  43.                          register setting
  44.                  ,       Pause 2 seconds before continuing to dial
  45.                  /       Pause .125 second before continuing to dial
  46.                  ;       Remain in command mode after connection
  47.                  !       Flash hook--hangs up then reconnects in .5
  48.                          second
  49.                  @       Wait for silence before continuing to dial--the
  50.                          time period of the pause is determined by an S
  51.                          register setting
  52.           
  53.           
  54.           COMMAND        FUNCTION
  55.  
  56.           E or E0    Turns character echo off
  57.           E1         Turns character echo on
  58.           F or F0    Sets modem to half-duplex
  59.           F1         Sets modem to full-duplex
  60.           H or H0    Hangs up the phone
  61.           I or I0    Shows the modem product code
  62.           I1         ROM check
  63.           I2         ROM test
  64.           L1         Sets modem speaker volume to low
  65.           L2         Sets modem speaker volume to medium
  66.           L3         Sets modem speaker volume to high
  67.           M2         Turns modem speaker on for the entire connection
  68.                      (don't do it!)
  69.           M0         Turns modem speaker off
  70.           M1         Turns modem speaker off when connection is
  71.                      established
  72.           O0         Returns online after entering command mode
  73.           Q0         Turns on result code display
  74.           Q1         Turns off result code display
  75.           Sxn        Sets the S register x to the value of n; note
  76.                      that both x and n are variable numbers 
  77.           Sx?        Displays value of register Sx                              
  78.           V0         Sets modem to display numeric result codes 
  79.           V1         Sets modem to display verbose codes (words)
  80.           Xn         Modem response sets (note that n is a variable
  81.                      number)
  82.                      X0=minium responses
  83.                      X1=minium responses--don't wait for dialtone
  84.                      before dialing
  85.                      X2=like X1 but do wait for dialtone before
  86.                      dialing
  87.                      X3=like X1 but adds call progress messages and
  88.                      tone detection
  89.                      X4=call progress messages--tone detection and wait
  90.                      for dialtone                             
  91.           Z          Resets modem                             
  92.           &          Advanced commands prefix (not all modems support
  93.                      these)
  94.           &F         Resets modem to factory default                 
  95.           
  96.           
  97.           S REGISTERS
  98.           
  99.           A Hayes compatible modem has special memory locations
  100.           called S registers. A modem initialization string
  101.           consists of AT commands which usually include S register
  102.           settings. The list below gives some of the more
  103.           important S register functions.    
  104.           
  105.                          FUNCTION
  106.           
  107.           S0         Sets the number of rings to answer when in auto
  108.                      answer mode.
  109.                      S0=0 (which is usually the default setting)
  110.                      suppresses auto answer. S0=3 sets the modem to
  111.                      auto answer mode and tells the modem to answer on
  112.                      the third ring.
  113.           
  114.           S1         Counts the number of rings from an incoming call
  115.                      and stores it.
  116.           S2         Stores the ASCII escape code character.
  117.           S3         Stores the ASCII decimal code for a carriage
  118.                      return.
  119.           S4         Stores the ASCII decimal code for a line feed.
  120.           S5         Stores the ASCII decimal code for a backspace.
  121.           S6         Sets the time in seconds that a modem waits
  122.                      before dialing.
  123.           S7         Sets the time in seconds, that a modem waits for
  124.                      a carrier. If you desire to make an
  125.                      international call you might want to change this
  126.                      to a longer time period.
  127.           S8         Sets the time in seconds, for a comma pause.  The
  128.                      default for a (,) pause is usually set to 2
  129.                      seconds.
  130.           S9         Sets the time in 1/10 seconds for carrier detect
  131.                      response
  132.           S10        Sets the time in 1/10 seconds for lost carrier
  133.                      hang-up delay.
  134.           S11        Sets the touch-tone dialing duration and spacing
  135.                      in milliseconds.
  136.           S12        Sets the time in 1/50 seconds for the Hayes
  137.                      escape code guard time.
  138.           S13        Bit-mapped register for UART.
  139.           S14        Bit-mapped option register.
  140.           S15        Bit-mapped option for flag register.
  141.           S16        Modem self-test.
  142.           S28        Sets the time in 1/10 seconds for V.32 answer
  143.                      tones.  
  144.           
  145.  
  146.           AT COMMAND SET USAGE
  147.           
  148.           AT commands need to be issued in upper or lower case
  149.           letters. You can't mix upper and lower case letters when
  150.           issuing an AT command. When loaded, most
  151.           telecommunications programs start in the command mode. 
  152.           This means you can issue AT commands from the keyboard as
  153.           soon as you load your telecommunications program. Try
  154.           loading yours. Then type:
  155.           
  156.                                 atz <ENTER>
  157.           
  158.           If your modem is connected to the serial port you
  159.           designated when you set up your telecommunications
  160.           software and it is working properly, you should see OK on
  161.           your screen.
  162.           
  163.           OK
  164.           
  165.           Next, you can try dialing a BBS number using an AT
  166.           command. If you have a touch-tone phone (most people
  167.           do), try issuing a command while in the command mode of
  168.           your telecommunications program:
  169.           
  170.                                 atdt845-8532 <ENTER>
  171.           
  172.           The dashes are optional. Suppose you were at a phone
  173.           where you had to dial 9 before you got an outside line. 
  174.           Start up your telecommunications software, then from the
  175.           command mode type:
  176.           
  177.                                 at dt 9 , 845-8532 <ENTER>
  178.           
  179.           In this example spaces were used. AT commands ignore
  180.           spaces and dashes. The first AT command got the modem's
  181.           attention. The following DT told it to dial using touch-
  182.           tone dialing. The 9 is to get an outside line.  A comma
  183.           then instructs the modem to pause two seconds before
  184.           continuing (see the dial modifiers in the basic AT
  185.           commands). The 845-8532 is the phone number you want to
  186.           dial. Note that you only need the AT (attention modem)
  187.           at the beginning of an AT command statement and that AT
  188.           commands can be strung together.
  189.           
  190.           Perhaps you have a burning desire to check the value of
  191.           your S7 register. This will show the number of seconds
  192.           that your modem waits for a carrier before hanging up. 
  193.           Start up your telecommunications software, then from the
  194.           command mode type:
  195.                  
  196.                                 at s7? <ENTER>
  197.           
  198.           The above command will show you the value of your modem's
  199.           S7 register.
  200.  
  201.           Your telecommunications software manual will probably
  202.           mention the modem initialization string. This is the
  203.           string of commands that initializes your modem. The AT
  204.           command section combined with the S registers section
  205.           should help you understand your modem's initialization
  206.           string. See your particular modem manual for more
  207.           details on AT commands and initialization strings. 
  208.           Different modems require different modem initialization
  209.           strings. The better telecommunications software programs
  210.           will have a modem pick-list feature. With such a
  211.           feature, the software will automatically set your modem
  212.           for optimum use with pre-defined setup initialization
  213.           strings. When newer modems come out, telecommunications
  214.           software manufactures have to keep adding the new modems
  215.           to their pick-list. If your modem is not on their pick-
  216.           list, you can often contact the company that makes the
  217.           telecommunications program for a software update. For
  218.           example, if you are using Telix, you would contact
  219.           deltaComm Development, the company that makes Telix. 
  220.           Many of these companies maintain a BBS where customers
  221.           can download updates.    
  222.           
  223.           You can also send AT commands to your modem from the DOS
  224.           command line. Suppose you have your modem connected to
  225.           COM2 (serial port) and a speaker phone connected to your
  226.           modem. Go to the DOS prompt. With your modem on, you
  227.           can dial a number by using the ECHO command. First,
  228.           press the button to activate your speaker phone. Then,
  229.           at the DOS prompt type:
  230.           
  231.                                 echo atdt845-8522 >com2 <ENTER>
  232.           
  233.           That's dialing from DOS!  
  234.           
  235.           =========================================================
  236.