Introduction The Westermo TD-22 is an industrialised dial and leased line modem. This modem has been developed to be used in industrial applications and has some features you would not expect to find on a normal modem. Terminal data rates of up to 19.2 kbit/sec can be handled using data compression and error correction.
2-wire for dial up connections 2- or 4-wire for leased line connections REN, Ringer Equivalence Number Power 230 VAC -10% +15%, 48-62 Hz (TD-22 AC) 12-36 VDC (TD-22 DC) 115 VAC or 36-60 VDC can be delivered as optional Power consumption...
RS-232 Connections Pin outs for the 25-pole D-sub and 9-pole screw terminal: 25 Pin Screw Direction Name Description D-sub Terminal DCE-DTE - - - Protective earth ← Transmit data Receive data ← Request to send Clear to send Modem ready - - - Signal ground Data carrier detect...
Typical TD-22 line connections 4-position screw-terminal Leased line 2-wire 4-position screw-terminal Leased line 4-wire Handshaking The TD-22 is delivered with a factory setting for ”hardware hand- shake” with RTS-CTS which means that if only TX, RX and GND are connected no data will be sent on the receiving modem’s RS-232 connection unless RTS is high.
DIP Switch Setup Disconnect power before changing DIP-switches. Take ESD-protection when changing switches. The DIP-switches can be used to provide the following settings. The DIP-switches are underneath the top lid of the modem. (1 = On, 0 = Off) Non defined switches will be in off position. SW1: Dial-up line Leased line, switch off echo and result code.
Page 8
SW4: Select speed and parity towards computer/terminal Automatic speed and format setting up 300 Baud 600 Baud 1200 Baud 2400 Baud 4800 Baud 9600 Baud 19200 Baud 8,O* Sets direct-mode AT&Q0 (Used for 8 bits, optional parity) 8,N* Sets direct-mode AT&Q0 (Used for 7 bits, optional parity) 2-stop bits *) The modem use this format when sending information to the DTE only in command mode.
LED Status Indicators PWR: Full Intensity The modem is functioning normally Half intensity The modem is in test mode or remote configuration mode Occasional flashing with speaker click Power supply problem 1:6, on:off ratio RAM error On/off with speaker click Modem unable to start LINE LED lights up when the modem has the line...
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.
AT COMMAND SET The modem will respond to the commands detailed below. Parameters applicable to each command are listed with the command description. A/ – Re-execute Command The modem behaves as though the last command line had been re-sent by the DTE. ”A/” will repeat all the commands in the command buffer.
Page 13
&Bn – DTR Dial Option This command interprets the OFF to ON transition of the DTR signal from the DTE to enable the modem to dial the telephone number stored with ATZ0=..The parameter value, if valid, is written to S27 bits 7. &B0 No action.
Page 14
Dn – Dial This command directs the modem to go on-line, dial according to the string entered and attempt to establish a connection. If no dial string is supplied, the modem will go on-line and attempt the handshake in originate mode. Dial Modifiers.
Page 15
&Dn – DTR Option This command interprets the ON to OFF transition of the DTR signal from the DTE in accordance with the parameter supplied. The parameter value, if valid, is written to S21 bits 3 and 4. &D0 DTR drop is interpreted according to the setting as follows: (Default.) &Q0, &Q5 or &Q6 DTR is ignored (assumed ON).
Page 16
%En – Enable/Disable Line Quality Monitor and Auto- Retrain or Fallback/Fall Forward (V.22bis only) Controls whether or not the modem will automatically monitor the line quality and request a retrain (%E1) or fall back when line quality is insufficient or fall forward when line quality is sufficient (%E2).
Page 17
%Fn – Split-Speed direction select, V.23 Determines which direction (transmit or receive) has the 75bps channel and which has the 1200bps channel. This command is only valid if the \W1 command has been executed. Selects 75Tx/1200Rx. resets S28 bits 1 and 2. (Default.) Selects 1200Tx/75Rx.
Page 18
Hn – Disconnect (hang up) This command initiates a hang up sequence. This command may not be available for some countries due to PTT restrictions. The modem will release the line if the modem is currently on-line, and will terminate any test (AT&T) that is in progress.
Page 19
\Kn – Break Control Controls the response of the modem to a break received from the DTE or the remote modem or the \B command according to the parameter supplied. The parameter value, if valid, is written to S40 bits 3, 4, and 5.
Page 20
Ln – Speaker Volume The modem sets the speaker volume control according to the parameter supplied. The parameter value, if valid, is written to S22 bits 0 and 1. Speaker off. Low volume. (Default.) Medium volume. High volume. Please also refer to ATM %L –...
Page 21
*L – Display secure access (callback) directory The modem will display all secure access (callback) directory entries. Format: Entry Number – Password: Callback Number. Example: 0-ABRAKADABRA (password entered; no callback number) 1-ABCDE:012-3456789 (password and number) Please also refer to AT*P Not available in remote programming mode, AT*R.
Page 22
&Mn – Asynchronous/Synchronous Mode Selection This command determines the DTR operating mode. The modem treats the &M command as a subset of the &Q command. &M0 Selects direct asynchronous operation. Note that the command sequence &M0\N0 selects normal buffered mode, but the command sequence \N0&M0 selects direct mode.
Page 23
\Nn – Operating Mode This command controls the preferred error correcting mode to be negotiated in a subsequent data connection. This command is affected by the OEM firmware configuration. Selects normal speed buffered mode (disables error-correction mode). (Forces &Q6.) Selects direct mode and is equivalent to &M0, &Q0 mode of operation. (Forces &Q0.) In this mode the serial port is directly connected to the data pump, which results in the lowest possible delay time.
Page 24
Qn – Quiet Results Codes Control The command enables or disables the sending of result codes to the DTE according to the parameter supplied. The parameter value, if valid, is written to S14 bit 2. Enables result codes to the DTE. (Default.) Disables result codes to the DTE.
Page 25
&Rn – RTS/CTS Option This selects how the modem controls CTS. CTS operation is modified if hardware flow control is selected (see &K command). The parameter value, if valid, is written to S21 bit 2. &R0 In Synchronous mode the CTS signals follows the status of RTS. The delay between RTS and CTS is set in register S26.
Page 26
&Sn – DSR Override This command selects how the modem will control DSR. The parameter value, if valid, is written to S21 bit 6. &S0 DSR will remain ON at all times. (Default.) &S1 DSR will become active after answer tone has been detected and inactive after the carrier has been lost.
Page 27
&Tn – Test and Diagnostics The modem will perform selected test and diagnostic functions according to the parameter supplied. A test can be run only when in an asynchronous operation in non-error-correction mode (normal or direct mode). To terminate a test in progress, the escape sequence must be entered first, except for parameters 7 and 8 (see Section 3.1.3).
Page 28
&V – Display Current Configuration and Stored Profiles Reports the current (active) configuration, the stored (user) profiles, and the first four stored telephone numbers. The stored profiles and telephone numbers are not displayed if the NVRAM is not installed or is not operational as detected by the NVRAM test during reset processing. AT&V ACTIVE PROFILE: B0 E1 L1 M1 N1 Q0 T V1 W0 X4 Y0 &C0 &D0 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0 &Y0...
Page 29
\W – Split Speed Operation This command supports a split-speed DCE/DTE interface for applications such as Viewdata terminals which require a transmit speed of 75 bps and receive speed of 1200 bps at the DTE interface. The parameter value, if valid, is written to S28 bit 0. Disables split-speed mode.
Page 30
&Xn – Select Synchronous Clock Source Selects the source of the transmit clock for the synchronous mode of operation. The parameter value if valid is written to S27 bits 4 and 5. In asynchronous mode, the transmit and receive clocks are turned OFF. In synchronous mode, the clocks are turned ON with the frequency of 1200Hz or faster corresponding to the speed that is selected for modem operation.
Page 31
Zn – Soft Reset and Restore Profile The modem performs a soft reset and restores (recalls) the configuration profile according to the parameter supplied. If no parameter is specified, zero is assumed. Soft reset and restore stored profile 0. Soft reset and restore stored profile 1. Please also refer to AT&W &Zn –...
Result Codes When a command is sent from the terminal the modem replies with a result code. The reply may be either in Long Form i.e. text (V1) or in Short Form, i.e. a two digit code (V0). The result code in Long Form is followed by <CR><LF>...
S-REGISTERS Below follows a description of the S-registers and its different components. Note that some parameters can not be changed due to local PTT-regulations in different countries. Where nothing else is stated the registers are stored by using the AT&W command. Some registers are read only registers and can not be changed from the DTE.
Page 34
S10 – Lost Carrier To Hang Up Delay Sets the length of time, in tenths of a second, that the modem waits before hanging up after a loss of carrier. When register S10 is set to 255, the modem functions as if a carrier were always present. The actual interval the modem waits before disconnecting is the value in register S10 minus the value in register S9.
Page 35
S16 – General Bit Mapped Test Options Status (&T) (Read only register, not stored with &W) Indicates the test in progress status. Bit 0 Local analogue loopback Disabled (Default.) Enabled (&T1) Bit 1 Not used Bit 2 Local digital loopback Disabled (Default.) Enabled (&T3) Bit 3...
Page 36
Bit 5 RLSD (DCD) behaviour (&Cn) &C0 selected (Default.) &C1 selected Bit 6 DSR behaviour (&Sn) &S0 selected (Default.) &S1 selected Bit 7 Long space disconnect (Yn) Y0 (Default.) S22 – Speaker/Results Bit Mapped Options Status (Read only register) Indicates the status of command options. Bits 0-1 Speaker volume (Ln) Off (L0)
Page 37
Bits 6-7 Guard tone (&Gn) None (&G0) None (&G1) 1800 Hz (&G2) (Default.) S24 – Receiver disconnect level If %D1 is set, will the value in this register set the level of the lowest accepted linesignal Default 0 {0-43} (dBm) S25 –...
Page 38
S29 – Flash Dial Modifier Time (Not stored with the AT&W command. Only for Germany) Sets the length of time that the modem will go on-hook when it encounters the flash (!) dial modifier in the dial string. Default 0 (disabled) {0-255} 10 ms intervals. S30 –...
Page 39
S38 – Delay Before Forced Hang Up (Not stored with the AT&W command!) 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.
Page 40
Bit 3 Modem-to-modem flow control Disabled (\G0) (Default.) Enabled (\G1) Bits 4-5 Reserved Bit 7 Enable fallback to V.22 bis/V.22 (-Qn) Disabled (-Q0) Enabled (-Q1) (Default.) S46 – V.42bis, Data Compression Control Execute error correction protocol with no compression. Execute error correction protocol with compression. (Default.) S48 –...
S200 – Bit Mapped Register Bit 0 If not set is normal faxspeeeds used, or else it is a special function. Bit 6 and 7 Equal to \C command (Normally not available). S202 – Remote Access Escape Character Default 170 {0..255} Block diagram Telephone Line/...
Example1: Several commands can be stacked on each command-line. For example ATEQ1\N4D12345 can be used instead of ATE0 ATQ1 AT\N4 ATD12345 with the same result To use MINICALL (Pager systems) Waits for tone in maximum 60 seconds. ATS6=60 Dot gives disconnection. ATD^0746xxxxxxW0yyyyyyyy#,.
Page 43
To use multidrop V23 in half duplex Multidrop connection is possible only when the modem is set for V23 half duplex. This allows a maximum line transmission speed to 1200 baud. The speed at the serial port can however be higher. The carrier (the transmission) is activated with the RTS signal in the RS-232 interface and the carrier remains high until the transmission buffer is empty.
Page 44
Dial up with hardware signalling External signal Dial-up can be made by applying an external signal to the DTR-pin in the RS-232 contact. A typical application is an alarm signal from a PLC. The modem reacts on the first rising edge which means that one pulse is sufficient. The signal-level should be in compliance with the RS-232 standard.
Page 45
Leased line applications Leased line connections can be done using either 2-wire or 4-wire. When renting a 4-wire line from a telephone company one pair of cables for transmission and one pair for reception are usually provided. The maximum transmission distance depends on the attenuation of the line. To have a good error rate it is recommended to keep the attenuation under 20 dB, which is approximately 20 km in distance.
Glossary ASCII A binary code system which defines 128 characters using different combinations of 1s and 0s. ASCII = American Standard Code for Information Interchange. Asynchronous Data transmission where the characters are transmitted one at a time, starting with a start bit and ending with a stop bit.
Page 47
V.42bis. Data Compression technique used by modems rather than MNP5, because it offers better compression on already compressed data. Data Rate In modems this is often different to the baud rate. For instance the Data Rate of V.32bis is 14,400bps and the baud is 2400 symbols/second.
Page 48
Modulation Techniques DPSK Differential Phase Shift Keying. employed in data rates up to 4800bps. Frequency Shift Keying. Used in the lowest data rate standards. Quadrature Amplitude Modulation. A technique used for data rates up to 9600. Trellis Coded Modulation. Used in the highest speed modulations. NVRAM Non Volatile Random Access Memory.
Page 49
RS232 Signals Transmitted Data. Data going from DTE to DCE. Received Data. The Data going from DCE to DTE. Request to Send. Hardware handshake generated by the DTE to determine if the DCE is ready to receive data. Expected response is from the CTS line. Clear To Send.
Page 50
OWN COMMENTS ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................6177-2203...
Page 51
Westermo Teleindustri AB have distributors in several countries, contact us for further information. Westermo Teleindustri AB • S-640 40 Stora Sundby, Sweden Phone +46 16 612 00 Fax +46 16 611 80 E-mail: info@westermo.se • Westermo Web site: www.westermo.se Subsidiaries...
Need help?
Do you have a question about the TD-22 AC and is the answer not in the manual?
Questions and answers