S Registers

The modem includes a set of special or "S" registers that are used to control the modem's behaviour. The contents of the S registers can be altered to suit your needs and can be stored as part of a User profile (see &W command).

Note: The default settings for your modem may differ from those listed here. See the supplied Installation Guide for details of any differences.

To alter the value of an S register the Sn=v command is used, where n is the number of the register and v is the value. If a value outside the range of the register is entered the modem sets the value to the nearest maximum or minimum value. No ERROR message is generated. To view the contents of a single register enter the Sn? command.

S Register Descriptions
S0 Automatic answer control :

Range : 0-255 Unit : Rings Default : 0
This register (also known as the automatic answer enable register) determines the number of incoming rings the modem waits before answering the call. Setting the value to 0 disables the automatic answer facility and the A command must be issued to answer a call.

Example : ATS0=5 <Return> will cause the modem to answer after 5 rings.

S1 Ring counter :

Range : 0-255 Unit : Rings Default : 0
Register S1 maintains a running count of the incoming rings. This information is useful to software developers writing applications that utilise the modem in automatic answer mode.

The contents of the register are reset to zero when the modem answers an incoming call.

Note: This register is read only.

S2 ASCII value of escape character :

Range : 0-255 Unit : ASCII Default : 43 ('+')
The escape code character is, by default, the '+' symbol. However, this could cause problems with some remote systems and can be re-defined. Example: ATS2=37 <Return> causes the modem to recognise the '%' symbol as the escape code character. A value of greater than 127 prevents the escape code character from being recognised. A complete list of the ASCII character codes can be found in the back of this guide.

When the modem is being used to run a host system it may be wise to redefine the escape code character. For instance, the host system provides a remote echo facility for callers i.e. it echoes received characters back to the caller. The caller is running a modem with the AT command set. When the caller issues the escape sequence it is passed to the host system via the modem. The host system in turn echoes back the escape sequence to the caller via the modem. However, because the modem cannot distinguish between an escape sequence typed at the DTE and the echo of an escape sequence it goes into command mode. From this it can be seen that a change in the escape code character can be very useful!

S3 ASCII value of carriage return <CR> character :

Range : 0-127 Unit : ASCII Default : 13
The vast majority of computer systems rely on the standard ASCII character set to store textual information. Variations of this may require the use of a different character to represent <CR>.

Example: ATS3=10 <Return> sets the ASCII character 10 <LF> as the recognised <CR> character.

Here the original <Return> character was used to execute the command but from now on further commands must be terminated with the new value. i.e. <LF>

S4 ASCII value of line feed <LF> character :

Range : 0-127 Unit : ASCII Default : 10
Just as the <CR> character can be re-defined, so the <LF> character, by default ASCII 10, can be changed. This may be deemed necessary if the DTE inserts a line feed following a carriage return. For instance, when verbose result codes are in use, you may prevent the display of blank lines, if they occur, by setting the line feed character to NUL: ATS4=0 <Return>

S5 ASCII value of backspace <BS> character :

Range : 0-255 Unit : ASCII Default : 8
Most computers or terminals use ASCII 127 (often marked DEL on the keyboard) to carry out the dual operation of backspacing and deleting incorrectly entered characters. The modem ALWAYS accepts ASCII 127 as delete.

However, some computers use ASCII 8 (backspace) in place of 127, although this does not usually delete the character concerned; it simply backspaces the cursor so that you can over type the incorrect character.

S5 contains a value which the modem accepts (in addition to ASCII 127) to effect a delete and is, by default, set to 8. If your computer uses any other character to represent delete or backspace, simply set S5 with the appropriate ASCII code.

S6 Dial tone wait time :

Range : 4-7 Unit : Seconds Default : 4
Register S6 tells the modem how long to wait before attempting to dial after grabbing the telephone line. The interpretation of the value in this register is dependent on the state of the dial tone detection command X.

With dial tone detection enabled (X2 or X4) the modem dials immediately after getting the dial tone, ignoring the status of S6. Disabling dial tone detection (X0, X1 or X3) forces the modem to blind dial, i.e. the modem dials regardless of the presence or absence of a dial tone, after the period specified in S6.

S7 Carrier wait time :

Range : 0-58 Unit : Seconds Default : 40
This register defines the time the modem waits for a remote carrier signal after dialling or answering. If the period specified has expired without detection of carrier, the NO CARRIER message is generated by the modem. If carrier is detected within the period, the modem negotiates a connection.

S8 Dial pause time :

Range : 1-10 Unit : Seconds Default : 2
The inclusion of a "," (comma) in the dial string causes the modem to pause for the period specified before proceeding with the remainder of the dial string. Example : ATD 9 , 01234 567890 <Return>

In the example above the "," is used in place of the W command. This may be useful where the frequency of the secondary dial tone is such that it cannot be distinguished by the modem. In this example the modem dials 9, waits for 2 seconds (the default) then proceed to dial 01234 567890.

S9 Carrier detect time :

Range : 0-255 Unit : 1/10th seconds Default : 6
The carrier detect time is the minimum period of time a remote carrier signal must be present on the line for it to be recognised as a valid carrier. The default is 6 representing 0.6 of a second. Reducing this value opens the way for spurious line noise to be interpreted as carrier thus causing premature connection.

S10 Carrier loss delay :

Range : 0-255 Unit : 1/10th seconds Default : 14
Just as S9 is used to detect the time carrier must be present for it to be recognised as valid, so S10 works to determine the loss of carrier. If carrier is lost for a period exceeding the value in S10 the modem drops the line and goes on hook. This enables the filtering of any spurious line noise which may cause a disconnection. Setting S10 to 255 enables a special test mode that forces the modem to hold the line and generate carrier even when the remote carrier has been lost.

S12 Escape sequence guard time :

Range : 0-255 Unit : 1/50th seconds Default : 50
The escape sequence guard time defines the period of time before and after the escape sequence (and the period between each character of the sequence) in which no other characters can be transmitted for it to be recognised as the escape sequence.

S18 Self test timer :

Range : 0-255 Unit : Seconds Default : 0
Register S18 is used to set the time duration of the loopback tests performed by the modem. After this period, the test is terminated and the modem returns to local mode. The default value of 0 causes the test to be conducted continuously until terminated by the &T0 or H0 command.

S24 Sleep inactivity timer :

Range : 0-255 Unit : Seconds Default : 10
This register sets the number of seconds after which the modem switches to a low power mode when off-line.

S25 DTR hang up delay :

Range : 0-255 Unit : 1/100th seconds (async); seconds (sync) Default : 5
S25 sets the length of time that the modem ignores DTR before hanging up. The units of this value change for synchronous and asynchronous modes.

S26 RTS to CTS delay :

Range : 0-255 Unit : 1/100th seconds Default : 1
This register is only relevant for synchronous operation with &R0 selected. It sets the time delay before the modem turns CTS on after detecting an off-to-on transition on RTS.

S29 Hook flash timer :

Range : N/A Unit : 1/100th seconds Default : Fixed at 7
S29 sets the period of time the modem will go on hook when the "!" modifier is encountered in the dial string before returning off hook. This facility is sometimes useful for transferring calls.

S30 Connection inactivity timer :

Range : 0-255 Unit : seconds (voice) 10 seconds (non-voice) Default : 0
After a successful connection and data transfer the modem will continue to hold the line without transmitting or receiving any further information. If this quiet period exceeds the value specified in S30 the connection will be terminated. This prevents the modem from staying on-line indefinitely when left unattended.

For error corrected connections, each time data is transferred the timer is reset. For non-error corrected connections, only transmitted data resets the timer. The timer is inoperative in synchronous mode. A sensible value in most situations is 10 minutes (i.e. a value of 60). Setting the register to 0 disables the timer.

When in voice mode S30=0 sets the deadman timer to off. No matter how long the period of inactivity lasts, the modem never hangs up the telephone line or switches to auto-baud mode.

When in voice mode S30=n where n has the range 1 to 255. This is the period of time in seconds, which if expired causes the modem to hang up the telephone line if it is off hook and no data has passed during that period. The timer is also active whenever the #BDR setting is non zero. To avoid a state where speed sense is disabled, the inactivity time-out occurs if there is no data passed on the DTE interface within the S30 period, even if the modem is on hook. The DTE software must not select a non zero setting for #BDR until it is ready to establish a telephone call or virtual connection to a speaker or microphone. When there is an inactivity time-out with #CLS=8, the modem always forces #CLS=0 and #BDR=0.

S32 ASCII value of XON character :

Range : 0-255 Unit : ASCII Default : 17
The S32 register records the value to be recognised as the XON flow control character. By default this is 17; ASCII DC1.

S33 ASCII value of XOFF character :

Range : 0-255 Unit : ASCII Default : 19
The S33 register records the value to be recognised as the XOFF flow control character. By default this is 19; ASCII DC3.

S36 LAPM failure control :

Range : 0-7 Default : 7
This register indicates what should happen upon a LAPM negotiation failure. Its value is automatically updated when the appropriate \N command is issued. It is not recommended that you modify this register directly.

0 = the modem disconnects.
1 = modem stays on-line and a direct mode connection is established.
2 = reserved.
3 = modem stays on-line and a normal mode connection is established.
4 = an MNP connection is attempted and if it fails, the modem disconnects.
5 = an MNP connection is attempted and if it fails, a direct mode connection is established.
6 = reserved.
7 = an MNP connection is attempted and if it fails, a normal mode connection is established.

S37 Line modulation select :

Range : 0-12, 15-21 Default : 0
When the N0 command is issued, this register selects the communication mode the modem uses. This combination of the N command and S37 can be used as an alternative to the preferred technique of speed selection using the F or +MS command. Below is a list of the valid values for the register, the mode they select and the corresponding F command.

0 = Automatic mode (F0)
1-3 = V.21 or Bell 103 mode (F1) 15 = V.34 14400 bps (F13)
5 = V.22 or Bell 212A mode (F4) 16 = V.34 16800 bps (F14)
6 = V.22bis mode (F5) 17 = V.34 19200 bps (F15)
7 = V.23 mode (F3) 18 = V.34 21600 bps (F16)
8 = V.32 4800 bps (F6) 19 = V.34 24000 bps (F17)
9 = V.32 9600 bps (F8) 20 = V.34 26400 bps (F18)
10 = V.32bis 12000 bps (F9) 21 = V.34 28800 bps (F19)
11 = V.32bis 14400 bps (F10) 22 = V.34 31200 bps (F20)
12 = V.32bis 7200 bps (F7) 23 = V.34 33600 bps (F21)

S38 Delay before hang up (error corrected modes only) :

Range : 0-255 Unit : Seconds Default : 20
This register specifies the delay between the modem's receipt of the H command to disconnect (or on-to-off transition of DTR if the modem is programmed to follow the signal), and the disconnect operation. The register can therefore be used to ensure that data in the modem buffer is sent before the modem disconnects.

If S38 is set to a value between 0 and 254, the modem will wait that number of seconds for the remote modem to acknowledge all data in the modem buffer before disconnecting. If time expires before all the data is sent, the NO CARRIER result code will be issued to indicate that the data has been lost. If all data is transferred prior to time-out, the response to the H0 command will be OK.

If S38 is set to 255, the modem does not time-out and continues to attempt to deliver data in the buffer until the connection is lost or the data is delivered.

S48 V.42 negotiation control :

This register stores settings relating to V.42 connection negotiations. Its value is automatically updated when the appropriate \N command is issued. It is not recommended that you modify this register directly.

S80 Extended feature control (Selected models only) :

Range : see below Default : 1
This register controls the enabling of three of the modem's functions: V.25bis command select; remote configuration enable; and secure access enforcement. Any combination of these functions may be independently enabled by setting S80 to the appropriate value.

The table below shows the available combinations and the value to be entered in register S80.

For example, to enable both remote configuration and secure access while using the AT command set, type the following:

ATS80=193 <Return>

A reset (power on or Z command) is required to effect the change made by altering the value of S80.

S82 Break handling options :

Range : 3, 7, 128 Default : 128
Break signals provide a way for the user to get the attention of the remote modem. The break type depends on the specific application. LAPM specifies three methods of break signal handling: in sequence, expedited, and destructive. If an invalid number is entered, it is accepted into the S register, but S82 will act as if the default value has been entered.

S82=3 Expedited: Modem sends a break immediately; data integrity is maintained both ahead of and after the break.
S82=7 Destructive: Modem sends a break immediately; data being processed by each modem at the time of the break is destroyed.
S82=128 In sequence: Modem sends a break in sequence with any transmitted data; data integrity is maintained both ahead of and after the break. (Default.)

S86 Call failure reason code :

Range : 0, 4, 5, 9, 12, 13, 14
When the modem issues a NO CARRIER result code, a value is written to this S register. It records the first event that contributes to the NO CARRIER message. The reason codes are:

0 = Normal disconnect initiated by this modem.
4 = Loss of carrier.
5 = V.42 negotiation failed to detect an error-correcting modem at other end.
6 = No response to feature negotiation.
7 = This modem is asynchronous only; the other modem is synchronous only.
8 = No framing technique in common.
9 = The modems could not find a common protocol.
10 = Bad response to feature negotiation.
11 = No sync information from remote modem.
12 = Normal disconnect initiated by the remote modem.
13 = The remote modem did not respond after 10 re-transmissions of the same message.
14 = Error correction protocol violation.
15 = DTR has been lost.
16 = Remote hang-up initiated by GSTN cleardown.
17 = Inactivity time-out.
18 = Speed not supported.
19 = Long space disconnect.
20 = Key abort disconnect.

S95 Result code/message control :

Range : 0-15, 32-47 Default : 3
Individual bits in register S95 select up to five options relating to enhanced connect messages. Some of the changes effected by this register may more easily be achieved by the use of the W command. Indeed, the W command overrides some of the settings selected with S95.

The options may be individually enabled in any combination. There is a decimal value corresponding to each message option available which must be entered in the register. To select more than one option at a time, add the decimal values corresponding to each option together and enter the sum total into the register.

Bit Decimal Description
0 1 The connect message always reflects the line speed instead of the DTE speed
1 2 The suffix /ARQ is added to the connect message for any error corrected connections
2 4 A CARRIER XXXX message describing the line speed of the connection is displayed before the connect message
3 8 A PROTOCOL: XXXX message describing the type of error correction protocol in use is displayed before the connect message
4 0 Reserved
5 32 A COMPRESSION: XXXX message describing the type of data compression in use is displayed before the connect message
6 0 Reserved
7 0 Reserved

S202 Remote access escape character :

Range : 0-255 Unit : ASCII Default : 170
The register S202 holds the decimal value of the ASCII character used as the escape character in the escape sequence from on-line to Remote access. S202 works in a similar way to S2 except that the S2 escape character is used in the escape sequence from on-line to the command mode.

A value over 127 disables the escape process i.e. no escape character is recognised. The default S202 value 170 disables the escape process to Remote access (whereas the default value of S2 enables escape to command mode). If 128 is subtracted from 170 (i.e. bit 7 is reset), the resulting 42 is the ASCII code for the "*" character. The "*" is commonly used for the Remote access escape character.

The Remote access escape sequence works when the modems are connected in any mode (normal, LAPM or MNP) except direct mode. The modem on which the remote commands are typed (the local modem) does not require any special code associated with the remote configuration. The remote modem (whose configuration will be modified remotely) must have remote configuration enabled. See the description of the register S80 for more information.


Previous Section | Contents | Search Tools | Glossary | Comments | Next Section

Hosted by www.city-visitor.com

AT Commands N-Z V.25bis Operation Contents Search Tools Glossary Comments