
LRS Reference Manual
In order to communicate appropriately with a modem (this varies from modem to modem) the LRS consults a compilation of appropriate commands and responses for that modem. This compilation is called a modem profile.
A modem profile must be chosen from this list and copied to the port that the modem is attached to. Examine this list. If your modem is listed, copy it to the port using the Define Port Modem Type command.
Figure 9-1: Associating Modem Profile With a Port
| Local>> DEFINE PORT 3 MODEM TYPE 5 |
If your modem isn't in the list of profiles, use a modem profile that's similar to your modem type (for example, a modem from the same manufacturer). If there isn't a similar modem listed, use the Generic profile.
Be sure to verify the provisions mentioned in Security.New modem profiles will be added to the list as they become available from users and our engineering staff. If your modem isn't included in the list of profiles, contact Lantronix to see if it will be added in a later version of the software.
To verify that the changes have been made, use the List Port Modem command:
Figure 9-2: Verifying Modem Configuration
| Local>> LIST PORT 3 MODEM |
Very few modems can use all commands in the generic modem profile. This is a starting point only.Profiles can also be edited to "fine-tune" your modem's performance. For example, dialing performance can be increased by adjusting the DMTF (touch tone) duration and spacing.
To edit a modem profile, complete the following steps.
Figure 9-3: Displaying Modem Configuration
| Local>> LIST PORT 3 MODEM |
Table 9-1: Commands in Initialization String
| Command | Example String (Not for all modems: consult your documentation for appropriate commands) |
|---|---|
| Set modem to factory defaults | &f |
| Set modem to ignore any character that may force it to return to command mode (for example, +++) | s2=128 |
| Set carrier detect (DCD) to "follow carrier" | &c1 |
| Set modem to hang up phone and reload its configuration when DTR signal is dropped | &d2 |
| Set modem to return as many result codes as possible (known as "all progress"). Result codes will be returned in text (rather than numbers) | w2 |
| Set modem to use hardware flow control | &k3 |
| Set modem to determine its serial speed from the Attention command (rather than using a constant serial speed). | s20=0 |
If the Init string in your profile needs to be edited, use the Define Port Modem Init command:
Figure 9-4: Sending Initialization String
| Local>> DEFINE PORT 3 MODEM INIT "&fs2=128&c1&d3w2" |
If you configure a modem profile that is not available on the list, please mail it to support@lantronix.com.
Figure 9-5: Configuring a String
| Local>> DEFINE PORT 3 MODEM DIAL "DT" |
Figure 9-6: Enabling Modem Control
| Local>> DEFINE PORT 3 MODEM CONTROL ENABLED |
Figure 9-7: Initializing the Modem
| Local>> LOGOUT PORT 2 |
See Compression for a complete description of compression.
See Error Correction for a complete description of error correction.
When most modems receive the Get Setup string, they'll return one page that lists their configuration. The LRS will not function properly if more than one page of configuration information is sent (prompting the user to press a key to continue to the next page); if your modem is configured in this manner, the Get Setup string will need to be set to "". When Get Setup is set to "", the modem will not be queried for its configuration; instead, the LRS will write the modem's NVR each time the LRS is booted.
The AT&T Paradyne Compshere and AT&T Dataport pose this problem.Use caution when configuring Get Setup in this manner. A modem's NVR can only be written a particular number of times; if the LRS is rebooted too often, setting Get Setup to "" could wear out the modem's NVR.
The modem will then be asked for its current configuration. The Init string will be sent followed by a request for the modem's configuration. If the current modem profile on that port does not match the configuration sent from the modem, it will be assumed that the modem's setup has changed. The Save string will be sent, and the setup contained in the profile will be saved in the modem's permanent memory (NVR).
The NVR on some modems will wear out with repeated use. This limitation is avoided by only writing the setup to the modem if it has changed.The LRS will raise DTR so that the modem can answer incoming calls. The port will then wait to receive the Connect string from the modem or to begin an outgoing call.
To set the telephone number, refer to Assign A Telephone Number to the Port or Site.If the modem responds with the Connect String, the call will succeed. If the modem responds with the No Carrier, Error, No Dial Tone or Busy strings, or if no response is received in 60 seconds, the call will immediately fail and the modem will be reset. (60 seconds is the default wait period; this can be configured using the Define Port Modem Carrierwait command).
When the modem asserts the DCD signal, the incoming call will be permitted.
If more than 60 seconds pass between ring signals or before the assertion of DCD, the LRS will assume that the caller hung up or that the connect failed. (60 seconds is the default wait period; this can be configured using the Define Port Modem Carrierwait command). The port will then be available for outgoing calls.
When the modem receives the Reset string, it will read its configuration from NVR. Any temporary configuration (for example, changes that an outbound modem user made) will be cleared at this point.
If a user made changes during an outbound call and saved them to the modem's NVR, the modem will be returned to this state.
Data compression enables a modem to transfer a larger amount of data in the same amount of time. When compression is used, uncompressed data arrives on the modem's serial port and the modem compresses the data before sending it over the phone line. The advantage of compression is increased throughput. For example, a modem might compress data to 1/2 its original size, doubling the modem's throughput; twice the data could be sent in the same amount of time required to send uncompressed data.
The disadvantage of compression is increased latency. Latency is the delay before data transfer occurs, caused by the additional time the modem requires to compress the data before it is sent. In situations where the delay is annoying (for example, during interactive use over a long distance line), compression should not be used.
The "compressibility" of data depends on what is being compressed. Some data can be compressed to half its original size, while other data cannot be compressed at all. As the data to be sent changes, the modem's throughput will change.
Before enabling compression, flow control must be enabled. In addition, the modem's serial speed must be set higher than the line speed. This enables the LRS to keep the modem's internal data buffer filled with data to compress. As lower compression ratios decrease the effective line speed, the modem will flow control the LRS more often. When compression ratios and the effective line speed rise, the modem will flow control the LRS less often.
To configure flow control, see Flow Control.To enable modem compression, use the following command:
Figure 9-8: Enabling Modem Compression
| Local>> DEFINE PORT 2 MODEM COMPRESSION ENABLED |
Figure 9-9: Displaying a Modem Profile's Strings
| Local>> LIST MODEM 11 |
Figure 9-10: Changing the Disable and Enable Strings
| Local>> DEFINE PORT 2 MODEM COMPRESSION "s46=136" "q5" |
V.42bis encoding offers an automatic 20% savings on all data sent, regardless of how compressible it is. Some text files can be compressed down to 1/4 or less of their original size. In addition, V.42bis will enable or disable compression according to whether or not it's required.
Other compression modes, such as MNP, may not give the same results as V.42bis. To obtain the best results, experiment with different modes of compression.
On many modems, error correction must be enabled in order to use data compression.
Error correction modes enable modems to ensure data integrity in the presence of telephone line noise. These modes work by checking the data for errors at the receiving modem. If an error is detected, the receiving modem requests that the sending modem retransmit the data.
When errors are not detected, data flows through the modem at a normal rate. If an error occurs, requiring the sending modem to retransmit the data, new data will not be permitted through the connection. The sending modem must be able to flow control the LRS during the retransmission. Ensure that flow control is enabled on the LRS before enabling error correction.
To configure flow control, see Flow Control.To enable error correction, use the following command:
Figure 9-11: Enabling Error Correction
| Local>> DEFINE PORT 2 MODEM ERRORCORRECTION ENABLED |
Figure 9-12: Displaying a Modem Profile's Strings
| Local>> LIST MODEM 11 |
Figure 9-13: Changing the Disable and Enable Strings
| Local>> DEFINE PORT 2 ERROR CORRECTION "&q5" "q0" |
Dialback security, discussed below, can be used in conjunction with these techniques on modem ports for an additional layer of security.
The Ports and Security chapters cover security features in detail. The best tools for securing modem ports are username and password pairs, server passwords, and idle timeouts.
For information on Autostart or the DCD/DSR signals, see Chapter 8 - Ports
For a complete discussion of dialback, see Dialback.
If you're using an LRS16, you'll need to wire the DB25 adapter from the LRS16 DSR/DCD pin to the DCD pin on the modem. See the Pinouts appendix of the LRS16 Installation Guide for complete wiring information.
For a description of the serial signals, see Serial Signals.
Figure 9-14: Typical Modem Configuration
| Local>> LIST MODEM Local>> DEFINE PORT 2 MODEM ENABLED Local>> DEFINE PORT 2 MODEM TYPE 4 Local>> DEFINE PORT 2 MODEM SPEAKER DISABLED Local>> LOGOUT PORT 2 |
Port 2's speed must be set properly for the modem. To determine the appropriate port speed, examine the following table:
| Modem | Typical Maximum Baud Rate |
|---|---|
| V.32 | 19200 |
| V.32bis | 57600 |
| V.fast | 115200 |
| V.34 | 115200 |
Figure 9-15: Configuring Port Speed
| Local>> DEFINE PORT 2 MODEM DISABLED Local>> DEFINE PORT 2 SPEED 115200 |
The port speed is tested by logging into the port and sending an attention ("at") command. The modem should respond with "OK". If it does not send "OK", the port speed should be set to a lower baud rate (see Table 9-2 above).
Figure 9-16: Testing the Port Speed
| Local>> SET PORT 2 LOCAL SWITCH ^\ Local>> CONNECT LOCAL PORT_2 Local protocol emulation V2.2 at OK
Local>> |
To determine which profile number is the generic profile (the number will change as new profiles are added), the List Modem command is used:
Figure 9-17: Displaying Modem Profiles
| Local>> LIST MODEM 1- Modem 1 2- Modem 2 3- Modem 3 4- Generic Local>> DEFINE PORT 2 MODEM ENABLED Local>> DEFINE PORT 2 MODEM TYPE 4 %Info: Port speed changed to 57600. %Info: Port flow control changed to CTS. |
Figure 9-18: Current Port Configuration
| Local>> list port 2 Port 2 : Username: Physical Port 2 (Idle) Char Size/Stop Bits: 8/1 Input Speed: 57600 Flow Ctrl: Cts/Rts Output Speed: 57600 Parity: None Modem Control: Disabled
Access: Local Local Switch: None Backward: None Port Name: Port_2 Break Ctrl: Local Session Limit: 4 Forward: None Terminal Type: Soft() Preferred Services: (Telnet) Characteristics: Broadcast Loss Notify Telnet Pad Verify |
Figure 9-19: Configuring Port Speed
| Local>> DEFINE PORT 2 SPEED 115200 |
Figure 9-20: Configuring Local Switch and Port Access
| Local>> DEFINE PORT 2 ACCESS DYNAMIC Local>> LOGOUT PORT 2 |
Figure 9-21: Changing Init String
| Local>> DEFINE PORT 3 MODEM INIT "&fw1&c1&d2s2=128s38=0" |
Table 9-3: Modem Troubleshooting
| Problem | Possible Cause(s) | Remedy |
|---|---|---|
| The modem won't answer the phone. | Modem isn't configured to answer the phone. | Enable answering with the Define Port Modem Answer command. |
| The DTR signal isn't attached. | Verify the wiring. Ensure that the ground pins on the RJ45 ports are wired together. | |
| The LRS isn't asserting the DTR signal. | Ensure that the Dtrwait characteristic is disabled on the LRS port used. | |
| The modem has hung. | Cycle power on the modem. | |
| The modem doesn't respond to the LRS' configuration requests. | The modem's flow control isn't set properly, or the modem's autobaud isn't functioning properly. | Reset the modem's NVR to the factory default state (the at&f string is commonly used). For instructions, refer to your modem's documentation. |
| The modem isn't wired correctly. | Verify the wiring. Ensure that the ground pins on RJ45 ports are wired together. | |
| The modem answers, but can't log into the LRS. | The Access characteristic on the LRS port used is set to None or Remote. | Set Access to Local or Dynamic. |
| The modem's serial speed does not match the serial speed on the LRS port used. | Ensure that the modem and LRS port have matching serial speeds. | |
| A network user is connected to the modem. | Use the Show Ports command to verify that the LRS port is idle. If it is not idle, log out the port using the Logout Port command. | |
| The modem has hung. | Cycle power on the modem. | |
| The LRS cannot detect the DCD signal. | Verify the wiring. Ensure that the ground pins on the RJ45 ports are wired together. | |
| All data is corrupted. | The ground pins aren't wired correctly. | Verify the wiring. Ensure that the ground pins on the RJ45 ports are wired together. |
| The modem's serial speed does not match the serial speed on the LRS port used. | Ensure that the modem and LRS port have matching serial speeds. | |
| Flow control isn't working properly. | Ensure that the modem and LRS port are configured to use the same flow control method. | |
| The modem is set to the wrong baud rate. | Cycle power on the modem. | |
| The first few lines of data are transmitted properly, but the subsequent data is corrupted. | Flow control isn't working properly. | Ensure that the modem and LRS port are configured to use the same flow control method. Flow control is discussed in detail in Flow Control. |
| The ground pins aren't wired correctly. | Verify the wiring. On RJ45 ports, ensure that the ground pins are wired together. | |
| When the port is logged out, the modem doesn't hang up the phone line. | Modem Control isn't enabled on the LRS port used. | Ensure that Modem Control is enabled. See Define Port Modem Control for details. |
| The DTR signal isn't attached. | Verify the wiring. Ensure that the ground pins on RJ45 ports are wired together. | |
| The modem isn't configured to reset when the DTR signal is dropped. | Check the modem's configuration. | |
| When the phone is hung up, the LRS doesn't log out the port. | Modem Control isn't enabled on the LRS port used. | Ensure that Modem Control is enabled. See Define Port Modem Control for details. |
| The DCD signal isn't attached. | Verify the wiring. Ensure that the ground pins on RJ45 ports are wired together. | |
| The modem isn't configured to deassert DCD upon loss of carrier. | Check the modem's configuration. | |
| The modem answers, but won't connect to the remote modem. | One or both modems are configured not to connect unless some feature is enabled (for example, error correction). | Check the documentation for both modems; verify their configuration. |
| The two modems cannot be connected. (Some modems are incompatible with one another). | Replace one or both of the modems. Verify that the modem is using the correct and current version of its software. |
| Modem Profiles | |||
| To | Use This Command | Example(s) | What Example Does |
| Display the Available Modem Profiles | Show/Monitor/List Modem | SHOW MODEM | Displays all LRS modem profiles. See Modem Profiles for more information. |
| Copy a Modem Profile to a Port | Define Port Modem Type | DEFINE PORT 2 MODEM TYPE 5 | Copies modem profile 5 to port 2. See Using a Profile for more information. |
| Enable Modem Operation on a Port | Define Port Modem Enabled | DEFINE PORT 2 MODEM ENABLED | Tells the LRS to treat port 2 as if there is a modem attached. |
| Make a Modem Profile Take Effect (Once Copied to a Port) | Logout | LOGOUT PORT 2 | Port 2 will start using its defined profile. See Using a Profile for more information. |
| Display a Port's Modem Configuration | Show/Monitor/List Modem | LIST PORT 2 MODEM
| Displays the modem configuration for port 2. See Examine the Profile for more information. |
| Modem Profiles, cont. | |||
| To | Use This Command | Example(s) | What Example Does |
| Edit a Modem Profile | 1. Display the port's modem configuration (see above). | ||
| 2. Define Port Modem <string> | DEFINE PORT 2 MODEM INIT "&f&c1s20=0" | Configures port 2's initialization string. Note: Initialization strings are different for each modem. See Profile Settings for more information. | |
| 3. Define Port Modem Control | DEFINE PORT 2 MODEM CONTROL ENABLED | Enables modem operation on port 2. See Enable Modem Control for more information. | |
| 4. Logout Port | LOGOUT PORT 2 | Initializes the modem attached to port 2. Any changes made to the LRS modem configuration will be put into effect. See Initialize the Modem for more information. | |
| Compression | |||
| To | Use This Command | Example(s) | What Example Does |
| Enable/Disable the Modem's Data Compression
| Define Port Modem Compression | DEFINE PORT 2 MODEM COMPRESSION ENABLED | The LRS will configure the modem to use data compression by sending the appropriate string when the modem is configured. See Compression for more information. |
| Edit the Strings Sent to the Modem to Enable/Disable Compression | Define Port Modem Compression | DEFINE PORT 2 MODEM COMPRESSION "s46=136" "q5"
| When modem compression is enabled on port 2, the LRS will send "s46=136" to the modem to disable compression and "q5" to enable compression. See Compression for more information. |
| Error Correction | |||
| To | Use This Command | Example(s) | What Example Does |
| Enable the Modem's Error Correction | Define Port Modem Errorcorrection | DEFINE PORT 2 MODEM ERRORCORRECTION ENABLED | The LRS will configure the modem to use error correction by sending the appropriate string when the modem is configured. See Error Correction for more information. |
| Edit the Strings Sent to the Modem to Enable/Disable Error Correction | Define Port Modem Errorcorrection | DEFINE PORT 2 MODEM ERRORCORRECTION "&q5" "q0" | When modem compression is enabled on port 2, the LRS will send "&q5" to the modem to disable error correction and "q0" to enable error correction. See Error Correction for more information. |
| Security | |||
| To | Use This Command | Example(s) | What Example Does |
| Secure Modem Ports | See Chapter 11 - Security. | ||
| Configure a List of Authorized Users for Incoming Modem Connections | See Dialback. | ||
| Wiring | |||
| To | Use This Command | Example(s) | What Example Does |
| Ensure that the LRS2 Uses the DCD Pin on the Modem | No wiring is necessary. Connecting a DB25 cable from the LRS2 to the modem will automatically use the DCD pin. | ||
| Ensure that the LRS16 Uses the DCD Pin on the Modem | See the Pinouts appendix of the LRS16 Installation Guide. | ||
| Flow Control Configuration | |||
| To | Use This Command | Example(s) | What Example Does |
| Set the Appropriate Line and Serial Speeds | See Modem Configuration Using Generic Profile. | ||
| Disable Autobaud | Set/Define Port Autobaud. | DEFINE PORT 2 AUTOBAUD DISABLED | Disables Autobaud on port 2. See Flow Control for more information. |
LRS Reference Manual - 4 MARCH 1996

Generated with Harlequin WebMaker