background image

12

6177-2203

DTE Command Lines

A command line is a string of characters sent from a DTE to the modem (DCE) while the modem is
in a command state. A command line has a prefix, a body, and a terminator. Each command line
(with the exception of the A/ command) must begin with the character sequence AT and must be
terminated by a carriage return. Commands entered in upper case or lower case are accepted, but
both the A and T must be of the same case, i.e., ”AT” = ASCII 065, 084 or ”at” = ASCII 097, 116. 

The body is a string of commands restricted to printable ASCII characters (032 – 126). Space
characters (ASCII 032) and control characters other than CR (ASCII 013) and BS (ASCII 008) in the
command string are ignored. The default terminator is the ASCII <CR> character. Characters that
precede the AT prefix are ignored. The command line interpretation begins upon receipt of the
carriage return character.
Characters within the command line are parsed as commands with associated parameter values. The
basic commands consist of single ASCII characters, or single characters preceded by a prefix character
e.g., 

&

or 

%

or 

\

or 

)

followed by a decimal parameter. Missing decimal parameters are evaluated as 0.

The modem supports the editing of command lines by recognising a backspace character. When
modem echo is enabled, the modem responds to receipt of a backspace or delete by echoing a
backspace character, a space character, and another backspace. The hex value to be used for the
backspace character is programmable through register S5. Values equal to 0 or greater than 127, or
the value which corresponds to the carriage return character, cannot be used for the backspace
character. This editing is not applicable to the AT header of a command. A command line may be
aborted at any time by entering < ctrl-x > (18h).
The AT sequence may be followed by any number of commands in sequence, except for commands
such as Z, D, or A. Commands following commands Z, D, or A on the same command line will be
ignored. The maximum number of characters on any command line is 39 (including ”A” and ”T”). If
a syntax error is found anywhere in a command line command, the remainder of the line will be
ignored and the ERROR result code will be returned.
Most commands entered with parameters out of range will not be accepted and the ERROR response
will be returned to the DTE.

Commands will only be accepted by the modem once the previous command has been fully
executed, which is normally indicated by the return of an appropriate result code. Execution of
commands D and A, either as a result of a direct command or a re-execute command, will be aborted
if another character is entered before completion of the handshake.

When the modem has established a connection and has entered on-line data mode, it is possible to
break into the data transmission in order to issue further commands to the modem in an on-line
command mode. This is achieved by the DTE sending to the modem a sequence of three ASCII
characters specified by register S2. The default character is ‘+’. The timing of the three characters
must comply with specific time constraints. There is a guard time before the first character (the pre-
sequence time), a guard time following the third character (the post-sequence time), and a guard
time-out between the first and second characters and between the second and third characters (the
inter-character time). These times are controlled by the value recorded in register S12.

Summary of Contents for TD-22 AC

Page 1: ...PTT Modem INSTALLATION MANUAL 6177 2203 www westermo se TD 22 AC TD 22 DC Westermo Teleindustri AB 1998 REV A Galvanic Isolation Transient Protection CE Approved...

Page 2: ...INSTALLATION 5 RS 232 CONNECTIONS 6 LINE CONNECTIONS 6 TYPICAL TD 22 LINE CONNECTIONS 7 DIP SWITCH SETUP 8 10 LED STATUS INDICATORS 11 DTE COMMAND LINES 12 AT COMMAND SET 13 32 RESULT CODES 33 S REGI...

Page 3: ...pply by 230VAC or 12 36VDC Special 115VAC and 36 55VDC models are also available on request Westermo have implemented commands often left out of standard modems like D to allow hardware controlled dia...

Page 4: ...eased Line Characters up to 11 bits Error correction V 42 MNP 2 4 MNP 10 Not leased line Interface EIA RS 232 C V 24 V 28 Line interface RJ12 or 4 pole screw connector Line 2 wire for dial up connecti...

Page 5: ...ronous clock 25 TI Test indication signal 6 6177 2203 RS 232 Connections Pin outs for the 25 pole D sub and 9 pole screw terminal The other pins in the 25 pole D sub should be left unconnected Line co...

Page 6: ...change Telephone exchange Dial up line 2 wire Telephone modem 1 2 3 4 5 6 7 8 9 The TD 22 is delivered with a factory setting for hardware hand shake with RTS CTS which means that if only TX RX and GN...

Page 7: ...ult code Answering 1 1 Leased line switch off echo and result code Dialling 1 All commands ignored including SW2 8 7 6 5 4 3 2 1 0 SW2 2 to 7 not used 1 For use of SW2 2 to 7 Choice of clock Clock sou...

Page 8: ...1200 Baud 0 1 0 0 2400 Baud 0 1 0 1 4800 Baud 0 1 1 0 9600 Baud 0 1 1 1 19200 Baud 0 0 0 7 N 0 0 1 7 E 0 1 0 7 O 0 1 1 8 N 1 0 0 8 E 1 0 1 8 O 1 1 0 8 O Sets direct mode AT Q0 Used for 8 bits optional...

Page 9: ...2 1 Select Line Modulation 0 0 0 Use saved parameters 0 0 1 V 21 300 bps 0 300 ATF1 0 1 0 V 23 Hdx ATF3 F3 0 1 1 V 23 1200 75 bps ATF3 1 0 0 V 22 1200 bps ATF4 1 0 1 V 22 bis 2400 bps ATF5 1 1 1 Auto...

Page 10: ...ed on the line The ANS indicator shines constantly when answering an incoming call and remains lit thereafter to indicate the modem is in autoanswer mode REL When the modem is in error correcting and...

Page 11: ...annot be used for the backspace character This editing is not applicable to the AT header of a command A command line may be aborted at any time by entering ctrl x 18h The AT sequence may be followed...

Page 12: ...dependent upon country specific requirements Please also refer to ATDn S0 S1 S7 S8 S9 and S30 An Select Maximum MNP Block Size The modem will operate an MNP error corrected link using a maximum block...

Page 13: ...and in error correction mode a 300 ms break is passed Cn DCD Option The modem controls the DCD output in accordance with the parameter supplied The parameter value if valid is written to S21 bit 5 On...

Page 14: ...ory n 0 to 3 or 0 to 19 depending on the modem model See Z W Wait for dial tone the modem will wait for dial tone before dialling the digits following W If dial tone is not detected within the time sp...

Page 15: ...s the modem to hang up Auto answer goes off D2 DTR drop causes the modem to hang up Auto answer is inhibited D3 DTR drop is interpreted according to the setting as follows Q0 Q1 Q4 Q5 or Q6 DTR drop c...

Page 16: ...omode operation All connect speeds supported by the modem are possible according to the remote modem s preference The contents of S37 are ignored as is the sensed DTE speed F1 Selects V 21 or Bell 103...

Page 17: ...modulation modes only The parameter value if valid is written to S23 bits 6 and 7 G0 Disables guard tone Default G1 Disables guard tone G2 Selects 1800 Hz guard tone This command may not be permitted...

Page 18: ...tween two MNP10 modems The value is stored in register S40 bit 2 H0 Connection is executed at maximum available speed Default H1 Connection is executed at 1200 Baud Please also refer to AT N In Identi...

Page 19: ...send a break to the remote modem K0 Clear data buffers and send break to remote modem K1 Clear data buffers and send break to remote modem Same as 0 K2 Send break to remote modem immediately K3 Send...

Page 20: ...the MDP not at the telephone line connector For example 007 7dBm 033 33dBm For leased line the value should be better than 40dBm The noise should be at least 6dBm lower than the signal itself in order...

Page 21: ...10 11 12 13 14 15 16 17 18 19 OK Please also refer to AT P Not available in remote programming mode AT R Mn Speaker Control This command selects when the speaker will be on or off The parameter value...

Page 22: ...voice data switch The call is manually initiated while DTR is inactive When DTR becomes active the handshake proceeds in originate or answer mode according to S14 bit 7 The value 011b is written to S2...

Page 23: ...lts in the modem hanging up Forces Q5 S36 4 and S48 128 Default N3 Please also refer to AT M AT Q S36 S48 On Return to On Line Data Mode This command determines how the modem will enter the on line da...

Page 24: ...d S25 to the desired values before selecting AutoSync operation with Q4 After the CONNECT message is issued the modem waits the period of time specified by S25 before examining DTR If DTR is on the mo...

Page 25: ...AT prompt by the local DTE the local DTE may send commands to the remote modem These commands a subset of the normal commands available should be entered without the AT header Some commands are prohib...

Page 26: ...TE PARITY 8NONE C DCD OPTION ON S1 RING COUNT 000 LINE SPEED NONE D DTR OPTION 0 S2 ESC CHAR 043 B BELL MODE OFF G GUARD TONE NONE S3 CR CHAR 013 E CMD ECHO ON K FLOW CONTROL RTS S4 LF CHAR 010 F LINE...

Page 27: ...oopback acknowledgement for remote request i e an RDL request from a remote modem is denied Clears S23 bit 0 Default T6 Requests a remote digital loopback RDL V 54 Loop 2 with self test In self test a...

Page 28: ...7 000 S40 168 S41 195 S46 138 S95 000 TELEPHONE NUMBERS 0 1 2 3 OK Please also refer to AT S Wn Connect Message Control This command controls the format of CONNECT messages The parameter value if vali...

Page 29: ...AL TONE The value 000b is written to S22 bits 6 5 and 4 respectively X1 Disables monitoring of busy tones unless forced otherwise by country requirements send only OK CONNECT RING NO CARRIER ERROR NO...

Page 30: ...lock to the TXC output at the serial interface X2 Selects slave receive timing The modem derives the transmit clock signal from the incoming carrier and applies it to the TXC output at the serial inte...

Page 31: ...sumed Z0 Soft reset and restore stored profile 0 Z1 Soft reset and restore stored profile 1 Please also refer to AT W Zn Store Telephone Number The modem can store up to 20 telephone numbers and each...

Page 32: ...2400 baud on the DTE 11 CONNECT 4800 For connections with 4800 baud on the DTE 12 CONNECT 9600 For connections with 9600 baud on the DTE 16 CONNECT 19200 For connections with 19200 baud on the DTE 22...

Page 33: ...Return Character Not stored with the AT W command Sets the command line and result code terminator character Default 13 Carriage Return 0 127 ASCII decimal S4 Line Feed Character Not stored with the...

Page 34: ...time Only for USA The time a DTMF tone will be activated during dialling Default 95 50 255 thousands of a second S12 Escape Prompt Delay EPD Time before entry exit of command mode Default 50 1 second...

Page 35: ...sub carrier option AT E 0 Disabled E0 Default 1 Enabled E1 S18 Test Timer Sets the length of time in seconds that the modem conducts a test commanded by Tn before returning to the command mode If thi...

Page 36: ...ts 2 3 Speaker control Mn 0 Disabled M0 1 Off on carrier M1 Default 2 Always on M2 3 On during handshake M3 Bits 4 6 Limit result codes Xn 0 X0 4 X1 5 X2 6 X3 7 X4 Default Bit 7 Dial abort option AT a...

Page 37: ...election Qn 3 1 0 0 0 0 Q0 1 0 0 Q4 1 0 1 Q5 Default 1 1 0 Q6 Bit 2 Reserved Bits 4 5 Internal clock select Xn 0 Internal clock X0 Default 1 External clock X1 2 Slave clock X2 Bit 6 CCITT Bell mode se...

Page 38: ...cter Default 19 0 255 ASCII decimal S36 LAPM Failure Control This value indicates what should happen upon a LAPM connect failure 0 Modem disconnects 1 Modem stays on line and a Direct mode connection...

Page 39: ...ault 4 XON XOFF K4 Bits 3 7 Reserved S40 General Bit Mapped Options Status Read only register Indicates the status of command options Bit 0 1 MNP Extended Services Kn 0 Disable extended services K0 De...

Page 40: ...flow control 0 Disabled AT0 1 Enabled AT1 Bit 4 MNP block or digit flow control 0 Disabled AT0 1 Enabled AT1 S82 Break control for LAPM connections 3 Break is sent immediately Data in the buffer is s...

Page 41: ...al function Bit 6 and 7 Equal to C command Normally not available S202 Remote Access Escape Character Default 170 0 255 Block diagram RS 232 Interface DSP CPU Memory Watch dog E2 PROM Dipswitch Insula...

Page 42: ...INICALL Pager systems ATS6 60 Waits for tone in maximum 60 seconds OK ATD 0746xxxxxxW0yyyyyyyy Dot gives disconnection Comma gives a pause The telephone number shall end with according to instructions...

Page 43: ...same changes to the standard settings The most commonly encountered problems concern speed parity and control signals from the connected equipment Speed and parity are changed with the switches under...

Page 44: ...d If only a relay contact is available the DSR pin will provide a suitable voltage The modem does not have a redialling function If necessary this must be handled by other equipment connected We advis...

Page 45: ...When renting lines from a telephone company a longer transmission distance is normally possible as the signals are probably transmitted over PCM lines i e fibre optic or other media with low attenuat...

Page 46: ...for the installation of equipment in an apparatus cubicle DTE Data Terminal Equipment like PC s terminals and printers Data Compression and Error Correction V 42 CCITT s error correction protocol inc...

Page 47: ...ed to control data flow whereas with the software method characters are transmitted to control the data Hayes commands A set of commands for controlling PTT modems Often refereed to as the AT command...

Page 48: ...ected connection between two modems The data is however speed buffered Off Hook Term used to describe when the modem is not connected to a telephone line On Hook Term used to describe when the modem i...

Page 49: ...d and usable DTR Data Terminal Ready A signal from the DTE showing it is powered and usable DCD Data Carrier Detect A signal from the DCE showing that a carrier is present and a line is ready for data...

Page 50: ...51 6177 2203 OWN COMMENTS...

Page 51: ...have distributors in several countries contact us for further information Westermo Data Communications GmbH Bruchsaler Stra e 18 68753 Wagh usel Tel 49 0 7254 95400 0 Fax 49 0 7254 95400 9 E Mail wes...

Reviews: