From Wikibooks, open books for an open world
Serial Programming: Introduction and OSI Network Model -- RS-232 Wiring and Connections -- Typical RS232 Hardware Configuration -- 8250 UART -- DOS -- MAX232 Driver/Receiver Family -- TAPI Communications In Windows -- Linux and Unix -- Java -- Hayes-compatible Modems and AT Commands -- Universal Serial Bus (USB) -- Forming Data Packets -- Error Correction Methods -- Two Way Communication -- Packet Recovery Methods -- Serial Data Networks -- Practical Application Development -- IP Over Serial Connections
This module explains the AT commands A to M as used by a "generic" Hayes-compatible modem. Different modems use slightly different commands. However, this list is supposed to be as "generic" as possible, and should not be extended with modem-specific commands. Instead it is recommended to provide such command lists in an Appendix.
Syntax:
A
Description:
The command initiates handshake as answering side. No next commands in this command line are proceeded. If handshake succeeds, modem sends successful message ("CONNECT...") to serial line and serial line switches to data mode, otherwise failure message is sent and serial line remains in command mode.
Result Codes:
Result Codes Code Description CONNECT Handshaking succeeds NO CARRIER Handshake failedCONNECT message usually contains speed, protocol and other details of succeeded connection and may be preceded with other messages of connection details.
Related Commands and Registers:
Syntax:[1]
B[0|1] (original Hayes) B[number] (extensions)
Description:
In original Hayes modems, it selects protocols for 300bps and 1200bps handshake: B0 selects CCITT protocols; B1 selects Bell protocols.
Some vendors (e.g. Rockwell) extends it to limit connection speed (e.g. B15 - no more than 28800 bps).
Result Codes:
Result Codes Code Description OK Speed/protocol selection succeeded ERROR Speed/protocol selection failedRelated Commands and Registers:
Syntax:
'''ATC0''' The carrier detect (CD) override is always on (default) '''ATC1''' The modem sends the carrier detect signal when it makes connection with another modem and drops the signal when it disconnects.
Description:
Controls the carrier detect signal sent by the modem to the computer. .
DTE Interface:
If AT&C1, the carrier detect enters into a true state when a connection is made. The carrier detect returns to a false state after the connection is dropped.
Aborting Events:
None
Related Commands and Registers:
Syntax:
D [T|P|digits|misc]
Description:
The command initiates dialing a number using pulse or tone dialing. The dial string can be rather flexible. Almost all of the modem's default settings can be overridden in the dial string. Dialing is controlled by providing dial modifiers after the D
command.
Dial Modifiers:
T
modifier is encountered. The modifier is persistent. It not only affects the current dialing, but also any other dialing (until a T
modifier is encountered or the modem is reset).
P
modifier is encountered. The modifier is persistent. It not only affects the current dialing, but also any other dialing (until a P
modifier is encountered or the modem is reset).
W
modifier is a much better choice over the ,
modifier.
NO ANSWER
result code. This is somewhat counter intuitive, since the modem is waiting for silence as an answer. If busy detection is enabled, some modems return a BUSY
answer code instead. Which is also arguable.
;
on the same command line, or can be sent on additional command lines.
ATD<CR>
needs to be sent, which will transition the modem's state to enter call progress.
ATH0<CR>
.
&Z
command for how to store a number in the modem.
Modern modems accept and support a number of additional modifiers.
To do:
Syntax:
E[0|1]
Description:
Switches character echo on (1) or off (0) when in the command state. Given no argument, assumes 0.
Character echoing is usually not desired when controlling a modem via some software program. It is useful for debugging purposes, and when the modem is controlled manually, e.g. via some generic terminal program.
Result Codes:
Result Codes Code Description OK Parameter was valid ERROR Bad number specified; must be either 0 or 1. This page or section is an undeveloped draft or outline.Command Description Template
Syntax:
<The syntax of the command, when necessary in EBNF>
Description:
<Description of the command, including information about the purpose and effects>
Result Codes:
Result Codes Code Description OK Parameter was valid <description of success> ERROR Otherwise <description of failure>Related Commands and Registers:
Syntax:MiscModemState.java
H[0|1]
Description:
Controls if the modem goes on-hook (disconnects from the phone line), or off-hook (connects to the phone line). The wording is taken from normal telephone usage, where someone takes the handset off the hook (off-hook) when intending to place a call. The terminology is counter-intuitive for modems, since off-hook indicates the modem goes on-line, and on-hook indicates the modem goes off-line.
or
D
dial command. If the inactivity timer S7 expires while off-hook, the modem goes back on-hook (off-line). This behavior prevents accidental blocking of a phone line by broken DTE software which manages to go off-hook but for whatever reason doesn't use the seized line.
Result Codes:
Result Codes Code Description OK Parameter was valid. ERROR Otherwise.Related Commands and Registers:
Command Description Template
Syntax:
<The syntax of the command, when necessary in EBNF>
Description:
<Description of the command, including information about the purpose and effects>
Result Codes:
Result Codes Code Description OK Parameter was valid <description of success> ERROR Otherwise <description of failure>Related Commands and Registers:
Command Description Template
Syntax:
<The syntax of the command, when necessary in EBNF>
Description:
<Description of the command, including information about the purpose and effects>
Result Codes:
Result Codes Code Description OK Parameter was valid <description of success> ERROR Otherwise <description of failure>Related Commands and Registers:
Syntax:
M[0|1|2|3]
Description:
Some vendors add additional modes.
Result Codes:
Result Codes Code Description OK Speaker mode setting succeeded. ERROR Speaker mode setting failed.Related Commands and Registers:
Serial Programming: Introduction and OSI Network Model -- RS-232 Wiring and Connections -- Typical RS232 Hardware Configuration -- 8250 UART -- DOS -- MAX232 Driver/Receiver Family -- TAPI Communications In Windows -- Linux and Unix -- Java -- Hayes-compatible Modems and AT Commands -- Universal Serial Bus (USB) -- Forming Data Packets -- Error Correction Methods -- Two Way Communication -- Packet Recovery Methods -- Serial Data Networks -- Practical Application Development -- IP Over Serial Connections
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4