Get Firefox!

AT Command Sets

Long ago, Hayes set a standard for modem commands with its Smartmodem 300. Most modem manufacturers adopted this command set in order to call themselves "Hayes compatible." The command set used by the Smartmodem 300, as well as most modems today (with a few advanced commands), is known as the AT command set. AT stands for attention, and precedes all (with the exception of A/) commands directed to the modem. For example, when dialing, it is necessary for either the software or the user to issue an ATDT or ATDP command followed by the number and enter. AT tells the modem that it is about to receive a command. DT tells it to dial by tone, while DP tells it to pulse dial. Finally, the modem dials the number given to it after the command. Different modems do have slightly different command sets, but generally most modems follow the standard set by Hayes.


Modem Commands

The modem supports the standard and extended Hayes* AT command set. The AT prefix (also known as the Attention Code), signals the modem that one or more commands are to follow. These commands are industry standard language used to communicate with the modem. Your modem is always either in the command mode, or the on-line mode. The modem starts up in command mode when it is first switched on. Commands are only accepted by the modem when it is in command mode. Commands input when the modem is on-line, are treated as data, not as commands. Commands may be entered from the terminal mode of most communications software packages.

Settings made via AT commands are automatically reused by the modem until another command is received to change them, or the modem is turned off.


Setting Up the Command Line

All commands except two, must begin with the characters AT. The two exceptions are the escape sequence (+++), and the repeat command (A/). The command line prefix (letters AT) and the command sequences which follow, can be typed in upper case, or lower case, but case must not be mixed. More than one command can be typed on one line, separated by spaces if you wish for easier reading. The spaces are ignored by the modem's command interpreter. The command line buffer accepts up to 39 characters including "A" and "T". Spaces, carriage return, and any line feed characters do not go into the buffer, and don't count against the 39 character limitation. If more than 39 characters are entered, or a syntax error is found anywhere in the command line, the modem returns an ERROR result code, and the command input is ignored.


Command Acknowledgment

The modem will acknowledge most commands almost immediately. As soon as you type in a command ending with the carriage return character your modem will respond with OK.


Basic Commands

With the following basic AT commands, you can make calls directly, select the dialing method (tone or pulse), control the speaker volume, and perform a number of other basic modem operations. IMPORTANT: You must be in the Command mode of your communication software to use the AT commands. Refer to the documentation that came with your communications software for information on entering the Command mode.


Dial Command Modifiers

Command modifiers define additional parameters to the modem that instruct the modem to perform certain functions automatically when dialing a phone number. They are only valid when they are contained in a dial string (that follows the D command). The commands that are used to accomplish this task are called dial modifiers, and are placed in the dial string prior to issuing the command.

Syntax: ATD{dial modifier} 1234567 [Enter]

Basic dial modifiers are:


Making a Call

The following examples show how to place a call using several of the dial modifiers.

ATD 1234567

The modem dials the telephone number 1234567 and then waits for a carrier from a distant, or remote modem. If no carrier is detected within a given time (as defined by the initial settings in S-Register 6), then the modem automatically releases the line and sends a NO CARRIER result code. If a carrier is detected, the modem gives a CONNECT result code and goes on-line, allowing communications with the remote modem. The connection between the two modems ends when any of the following occurs causing the modem to hang up, return to command mode, and send the NO CARRIER response:

AT &F1DT9,P5551234 [Enter]

This command restores the factory default settings, dials, using tones, a 9 to access an outside line, pauses briefly, then pulse dials the number 555-1234.


Manually Dialling with the Telephone

To manually dial the phone, you should be in your communications software's command mode.


Manual Answer

When the automatic answer feature (S-Register S1) is not being used, incoming calls can be answered manually by typing:

ATA [Enter]

When an incoming call is received. The modem will answer the incoming call and [Enter] the on-line mode.