5m Command HAYES-Modem (C) I. Vyazanichev
__________________________________________ 1. A general
description of the commands Hayes'a All teams must start the
prefix AT (or At, aT, at) and finish . There exist a few
exceptions, which will, FLS described below. All information
entered ne-transmits an echo back to the computer (terminal
signal). Commands can be combined in komandnuyustroku to
improve clarity komandnuyustroku can enter spaces, dashes,
etc.: AT DP 8W (0572) 30-49-00, easier to understand than to
read! ATDP8W0572304900. The command line can contain at most 40
characters, excluding spaces and pre-fixe AT. If the string is
longer than 40 characters, the modem returns an ERROR response
and ignores the command line. Editing erroneous symbols command
line carried out by pressing . For all entered
correctly and executed the command modem responds OK.
2. The basic instruction set
AT - the beginning (prefix) command line.
A - Manual answer.
The command switches the modem from the command
regime on the standby signal carrier
calling modem.
After receiving the carrier signal, the modem
implements a procedure for a positive response
the call and acts as a switched on
procedure for an automatic response.
If the modem is working on a dedicated communication lines,
the carrier is responsible, without specifying frequency. In
this case, if the automatic response (auto-answer) is disabled
(S0 = 0) and there is a call, to obtain the necessary
communication pass a command to ATA.
A / - modem repeats the previous command
line.
The team submitted without a prefix (AT) and
pressing .
Bn - a choice of communication standards:
n = 0 CCITT V.21, V.22, V.22 bis,
n = 1 BELL 103/202A.
Ds - automatic dialing.
After receiving this command, the modem dials the number on
the receiving end connection goes into transfer mode.
The team consists of a phone number,
in the composition of which may include the following
control parameters:
s = P indicates that the digits of the phone
numbers coming after symbol P Modem
should dial pulse (using
form a 0-9).
s = T indicates that the digits of the phone
numbers coming after symbol T modem
should raise the frequency (which is allowed
use the characters 0-9, AD, * and
and #).
s =, represents a break before dialing
following figures (2s).
s =; if used as the last character
at the command line, the modem after
dialing goes into command
mode.
s = @ modem waits 5 seconds of silence at
line if it does not appear in the flow
SRI 30s (the contents of register S7),
modem is turned off, and responds NO
ANSWER.
s =! if the sign! standing in front of signs on
sequence set, the modem transitions
goes into a state of ON HOOK (lays
tube) at 0.5s, and then go over
children in the state of OFF HOOK (removes
tube).
s = S modem dials the phone number for
painted in memory EEROM.
s = R in the record as the last character in
command line, sets the model
dem after dialing mode
"Answer", but just in case
If the modem call to the modem
"Originate".
s = W modem waits for a response station (long
tone) before further set of those
lefonnogo facilities (eg access to
automatic long-distance call).
En - Local echo ON / OFF.
After the command returns the echo E1 modem
each character transmitted to it that lets you know how to
really work command line.
n = 0 echo off,
n = 1 echo enabled.
Hn - control line.
Command is used primarily for
After telephone:
n = 0 disable the modem from the line
n = 1, connect the modem to the line.
In - the production code and control
Amount:
n = 0 message soda product
n = 1 count of checksum prog
FRAMEWORK contained in the EPROM
n = 2, the modem checks the status of internal
an interior memory ROM and returns
message OK or ERROR.
Ln - setting volume signal integrated
Nogo speaker (the speaker).
n = 0 Low
n = 1 Low
n = 2 average
n = 3 high
Mn - Speaker Control (loudspeaker
field).
n = 0 Speaker off,
n = 1 Speaker on only during
dialing on and off
the following detect carrier
n = 2, the speaker turned on all the time
n = 3 Speaker on after dialing
last digits on and off
is obtained after the discovery of bear
ing corresponding to the modem.
Qn - control the modem's response.
n = 0 response is included,
n = 1 the answer is off.
Regardless of the state of Q0 or Q1 modem
always informs the content of S-registers
product code, checksum, and test results (see the commands S,
I, and as' T).
O - after the passage of command, the modem Present
raivaetsya on data transfer mode and
responsible CONNECT (if before he
hodilsya in command mode).
Sr - Control S-registers.
Sr? - Reading the contents of the S-Register
number r.
Sr = nnn - nnn enter a numeric parameter in
S-register number r.
All commands modify the contents of one or more of the
S-registers. Some S-registers contain timing parameters,
which can be changed only team S.
Vn - choose the type of answer modem.
n = 0 response digital code
n = 1 the answer in symbolic form by Ang
liyskom language.
A standard set of responses modem
__________________________________________
A response value in a symbolic digital
response as a source
__________________________________________
OK 0 Modem executed the command
CONNECT NNN 1 Modem is connected with
speed NNNbps
RING 2 Modem has found the correct
Ring Tone.
The answer given is always,
regardless of the mode
work.
NO CARRIER 3 modem lost carrier
or not received a response
from the remote modem.
ERROR 4 Error in command
stroke.Komandnaya row
ka long 40 symbols
fishing, or error in the control
Roll the sum (see
command L2).
NO DIALTONE 6 No signal
Switching Station
(See command X2,
X4).
BUSY 7 rooms (channel) is busy.
NO ANSWER 8 - The answer is obtained
If you use a
command line UPRA
vlyayuschego @ symbol
if the condition is not satisfied
dition - 5s silence (see
team D).
__________________________________________
Xn - the choice groups answer modem connected
with the procedure of dialing:
X0 X1 X2 X3 X4 message communication 1 2 2 2
2 Delay (S6 s) Yes yes no yes no no no Waiting for a signal so
no yes Definition signal No No No Yes
yes busy numbers
Message about the connection 1 - indicates that the model
We shall, after establishing connection
tell CONNECT, regardless of
speed.
Post the link 2 - indicates that the model
We shall, after establishing connection
provide the following response as a function of
depending on the speed of work:
CONNECT 2400, CONNECT 14400, and
etc. CONNECT response means
work with a transfer rate
Data - 300 bps.
Tardiness (S6 s) - indicates that the modem
of numbers before dialing the telephone
pa, expects some of
S-register S6 time.
In many countries there
requirement definition signal
centralized before dialing the phone
Nogo rates.
Waiting for a signal - indicates that the modem
will wait for a signal station 5s
and after this time you
will give a message NO DIALTONE and ne
reydet in batch mode.
Determination of the signal - indicates that the model
We shall in the case of employment vyzy
under consideration, facilities, displays a message
BUSY, and return to command
mode.
Yn - a way to disconnect the modem from the line.
n = 0, the modem disconnected normally
(See command 'D),
n = 1, the modem is turned off after receiving
of the signal from the line.
Z - reset the modem (the processor reads
modem configuration from memory NOVRAM).
+ + + - Serial output.
With this team can go from
transmission mode to command mode
modem connection without interruption. Command requires
silence before and after sending out a sequence. The magnitude
of this time defined in register S12 (usually 50 =
1s). Decimal value of character ASCII, which is a sign sequence
output register contains the S2 (ie, typically 43
'+').
3. An extra set of commands Hayes'a
'Cn - function signal DCD.
n = 0, DCD signal is always active,
n = 1, DCD signal exists from the moment
when the modem detect carrier.
'Dn - DTR signal function in the asynchronous
mode.
n = 0 Modem ignores DTR,
n = 1, since the loss of DTR modem transfer
goes into command mode,
n = 2, since the loss of DTR modem Zvenigorod's
raschaet link off function
"Auto-answer" and goes in to
mandny mode of operation,
n = 3, since the loss of DTR modem auto
automatically executes a command ATZ.
Modem detects a loss of DTR
If the DTR signal lasts longer
time specified in the S-Regis
triangle S25.
'F - modem reads its configuration for
painted in EPROM.
'Gn - on / off protection is often
you.
n = 0 frequency protection is turned off,
n = 1, the modem sends the protective rate
550 Hz,
n = 2, the modem sends the protective rate
1800 Hz.
'Ln - kind of communication line.
n = 0 transfer to the dial-up
communication
n = 1 transfer to the permanent lines
communication.
'Mn - mode of operation.
n = 0 asynchronous
n = 1 for terminals that can be pa
bot as in synchronous and in
asynchronous mode; coma
NDU dialing modem sends
asynchronously, and the transfer of data -
synchronously
n = 2, since the advent of the signal DTR,
modem dials the number of recorded
team 'Z memory NOVRAM,
n = 3 for inactive signal DTR of
exhaust oneself manual dialing.
After obtaining the compound with
moment of receiving the DTR signal
modem connects to the line.
'Pn - setting the pulse rate.
n = 0 fill factor of the closure
of / range 39/61%
n = 1 filling factor of the closure
of / range 33/67%.
'Rn - managing dependencies RTS / CTS:
n = 0 CTS signal occurs after the signal
signal RTS This variant is manifested
us to during the simulation
Half-duplex operation.
These appear to will do
of the CTS signal is ignored.
n = 1, the modem ignores RTS, for an asset
Mr. CTS immediately after connecting
modem. During an asynchronous transition
redachi data (the command 'M0) signal
signal CTS is always active.
'Sn - function signal DSR:
n = 0 DSR signal is active,
n = 1 DSR activated after the end
stage of communication.
'Tn - test your modem.
n = 0 end of the current test,
n = 1, the beginning of the local analog loop,
n = 2 is not used,
n = 3, the top local digital loop
n = 4 modem agrees to early digital
rovoy loop, which passes
remote modem,
n = 5, the modem does not provide an external memory device
Wu consent
n = 6 Remote Digital Home
loop
n = 7, the modem generates a loop RDL, but for
to generate and transmit testing
RATE signal
n = 8 analog loop associated with
internal test.
'W - modem reads its configuration from the PA
myati RAM and writes it into memory
NOVRAM.
'Z - record phone numbers in memory
NOVRAM, (maximum 33 characters).
4. Description of the S-registers.
A description of S-registers used directly when working with
the modem. For descriptions of individual S-Registers indicated
two options:
Range - means the range of parameters
stored in S-register. Value - the value indicates the
factory
parameter recorded in the S-regi
tends from the manufacturer.
S0 - Number of ring signals
Range: 0 - 255
Bandwidth: 0
Number of ring signals, which
modem waits before answering the call to the telephone line:
S0 = 0 autoreply off
S0> 0 autoreply is enabled
S1 - Counter ring signals (information
parameter)
Range: 0 - 255
The contents of S-register increases
every time the modem receives the signal
call from the telephone line and after
8s after the signal response is reset.
This case - the only acting purely informational role, its
contents can be read only.
S2 - return character
Range: 0 - 255
Bandwidth: 043 (ASCII '+')
Contains a decimal character code ASCII,
which is a sign sequence
return (see'+++').
In the case where S2> 127 is
blocking the return sequence.
S3 - Symbol
Range: 0 - 127
Bandwidth: 013
Contains a decimal character code ASCII,
which is a sign .
S4 - Symbol <LF>
Range: 0 - 127
Bandwidth: 010
Contains a decimal character code ASCII,
which is a sign of a new line <LF>.
S5 - Symbol
Range: 0 - 32, 127
Bandwidth: 008
Contains a decimal character code ASCII,
which is a sign of "slaughtering" (backspase) .
S6 - Timeout statement station
Range: 2 - 255
Bandwidth: 2 s
S7 - Waiting for a signal carrier
Range: 1 - 155
Bandwidth: 30 s
S8 - The time interval at a set
Range: 0 - 255
Bandwidth: 2 s
S9 - Response Time DCD
Range: 0 - 255
Bandwidth: 5 (x1/10s = 0,6 s)
Time delay activation signal DCD
the advent of the carrier.
S10 - Delay in the end after loss
Carrier
Range: 1 - 255
Bandwidth: 14 (x1/10s = 1,4 s)
S11 - not used
S12 - The time required for the sequence of Silence
sequence return
Range: 20 - 255
Bandwidth: 050 (x20ms = 1,0 ms)
Contents of the register determines 1/50s
the time required to transfer to the silence and
after a sequence of return (see
'+++').
S13 - not used
. . .
P.S. Here are the only standard
team. Modems from different manufacturers
may have many other teams,
description of which should be seen in
documentation for the modem.
__________________________________________