5.
ATA command issued
6.
Automatic answer (e.g., set register S0>0 and ring detected)
These results are NOT cleared by changing DTR, V.24 circuit 108.2, if &D0, &D1 or &D2.
Data Call State Model
For purposes of this command, there are four data call states, and associated status issues:
∋
Call Setup
.
Calling DCE: get dial tone, generate dial digits, detect call progress signals.
.
Answering DCE: detect ringing, detect CallerID, etc.
∋
Negotiation
.
V.25 calling tone/answer tone exchanges
.
V.8 or V.8bis call function negotiations
.
V-series modem carrier detection and training
.
Modem-to-modem protocols (e.g., V.42, V.42bis).
∋
Data Transfer
.
Bit-error rates, for each direction
.
Rate renegotiation
.
Retraining
∋
Call Termination
.
protocol disconnect signals
.
carrier disconnect signals
.
loss of carrier
.
excessive error rates
Command Syntax
In response to this command, the modem will report one or more lines of information text as
defined below. Information text format conforms to V.250; each line is preceded by a
<CR><LF> pair, and terminated by <CR><LF>. (CR and LF characters may be changed by
writing new values to the contents of registers S3 and S4, respectively.)
The modem may generate a single line or multiple lines, followed by a standard OK final
result code. For example, if call setup failed, only that result is useful. Each information text
line is formatted as follows, including one or more key=value pairs:
Syntax
#UD
Response
DIAG <token key=value [[key=value] [key=value]] …>
Defined Values
DIAG 5 hexadecimal characters (44h, 49h, 41h, 47h, 20h)
< Left angle bracket (less than sign) (3Ch)
token Unique 32-bit hexadecimal string 2A4D3263(32h, 4h1, 34h, 44h,
33h, 32h, 36h, 33h)
space space character (20h)
Key One- or two-digit hexadecimal number (see Key in Table 3-3)
= Equal sign (3Dh)
Value Any string as defined below (Table 3-3 - as Table 3-8 appropriate)
> Right angle bracket (greater than sign) (3Eh)
Unless otherwise noted, all values are hexadecimal numbers. Any numeric values from tables
in ITU V.58 are converted to hexadecimal. Multi-digit values are reported MSD first. Leading
0’s may be deleted. See examples in Table 3-12.
Monitoring an active connection
This command is intended for use after call termination. However, codes are defined so that a
modem can respond before the first call is placed, and during a call for live monitoring
purposes. For example, key 60, call termination, has value 1 defined, indicating that the call is
still in progress.
There are at least two ways to do this. First, the DTE could switch the modem to On-Line
command state, issue the command, capture the responses and then issue an ATO command.
For smoother on-line monitoring, in-band means defined in ITU V.80 are recommended if