Common Hayes Modem Commands

This abbreviated listing is provided for your convenience. For a complete list of commands compatible with the modem, please refer to the modem manual.

PREFIX
FUNCTION
AT
Attention code. This must precede all commands except A/ and +++.
Command
Function
A
Force answer mode command. The modem will answer the phone even if it has not received a call.
A/
Re-execute command. This executes the last command sent to the modem. This does not require the AT prefix.
D
Dial command. This command places the modem in originate mode and then dials the dialing string that follows.
H0
Hang up command. This disconnects from the phone line.
M
Speaker status. M0 turns the speaker off. M1 turns the speaker on until a connection is established.
P
Pulse dialing command. This command causes the modem to use pulse dialing.
Q
Result-code display command. Q0 causes the modem to display the results of the commands sent to it. For example, OK = Command executed, RING = Ring signal detected. For further result codes, see the modem documentation. Q1 causes your modem not to display the results.
S0
Auto-answer command. This commands sets the number of rings to wait before answering the phone. S0=0 will cause the modem not to answer the phone. S0=1 will cause the modem to answer the phone on the first ring.
T
Tone dialing command. This command causes the modem to use touch-tone dialing.
V
Result-code form command. V0 causes results to be displayed numerically. For example, 0 = OK, 2 = RING. V1 causes the results to be displayed in verbal (English) form.
Z
Resets the modem and restores all default values.
+++
Escape command. This command sets the modem off-line so commands can be issued to it. This command does not require the AT prefix.
&F
Factory reset command. This command restores the modem to its initial factory settings.
&W
Write configuration. If the modem supports nonvolatile RAM, this command will save the current configuration.