Wn - Select Extended Result Code


Command Line Format
AT [cmds] W [suffix] [cmds] <CR>

Suffix Values
0 through 2

Default
W0

Stored by &Wn
yes

Displayed by &V
yes

Description
The Wn command works with register S95 to determine which result codes describe the type of connection and protocol, etc., that resulted from handshaking and negotiation.

Wn supports extended result codes in addition to the CONNECT result code. When the modem is operated in error-control mode (&Q5 is in effect), Wn and S95 together allow you to select these additional result codes:

CARRIER

PROTOCOL

AUTOSTREAM

COMPRESSION

CONNECT

Any result codes which are enabled by Wn and S95 are produced in the order indicated above. Result codes that are not enabled by the Wn command may be turned-on by setting certain bits in S95. If AutoStream is not being used, then no AutoStream result code is returned. Also, if the connection results in PROTOCOL: NONE, then there is no COMPRESSION: result code. The S95 result code bit map, which has all zeros as the factory default value, overrides the characteristics of the Wn commands described below when any bit is set.

W0 - CONNECT result code reports DTE speed, and if S95=0 (default), then disables all extended connection result codes.

W1 - CONNECT result code reports DTE speed, and if S95=0 (default), then enables the CARRIER and PROTOCOL extended result codes.

W2 - CONNECT result code reports DCE speed, and if S95=0 (default), then disables all extended result codes.

Refer to the bit map in the S95 section.

Note: Selecting W0 and setting S95=12 (decimal) is the same as selecting W1; and that selecting W0 and setting S95=1 (decimal) is the same as selecting W2.

Note: There is no setting of S95 that forces W2 to report DTE speed in the CONNECT result code. Also there is no setting of S95 that prevents W1 from producing the CARRIER and PROTOCOL result codes.

S95 extends the function of the Wn command. The version of the Wn command here with S95=0 (default) maintains backwards compatibility with previous V-Series products. However, selecting W0 and setting S95 as required provides you with compatible result codes.

Refer to Extended Result Codes.

Click here to return to the Contents page.