How to add a modem to the modem table and apply that modem configuration to ports

UPDATE:  August 26, 1999

FOR THE FOLLOWING MODELS:
PM2, PM2E, PM2R, PM2ER, PM25, IRX111, IRX112, IRX114, IRX211, OR-M, OR-U, OR-HS, OR-LS

SUMMARY:

The modem table on the Lucent box allows the user to apply a modem configuration (a DTE port speed, and an initialization string/script) to a modem attached to the Lucent box. Each time a port is administratively reset (ie: reset s1) or the Lucent box is rebooted then the init string is resent and the DTE speed is reaffirmed.
Note the following:

  • The modem table can only be modified and applied form the prompt, not from PMconsole (TM)/ PMVision (TM).
  • To change a modem profile you have to delete the profile and then add it.
  • If you apply a modem to a virgin port (factory default, no modifications) then that port will take on the properties of the modem profile.
  • Some modems require a special AT command or dip switch setting to lock the DTE speed.

COMMAND SUMMARY:

add modem [short name] [long name] [speed] [init string]  
# adds a new modem

show modem [short name]
# displays a modem profile
delete modem [short name]
# deletes a modem profile from the table
show table modem
# displays the entire modem table
set s[port number] modem [short name]  
# applies the modem profile to a port

attach s[port number]
# attaches session directly to modem

BEFORE YOU START:

1) Modem Init String.

  • For best Results you will want an AT initialization string customized for your modem. This can be obtained from your modem documentation or from the modem manufacturer themselves. You want the modems attached to the Lucent box to do the following:
  • Raise DCD (Data Carrier Detect) when a call comes in (&C1)
  • Reset itself when DTR is dropped (&D3 or &D2)
  • Lock the DTE speed
  • Use hardware flow control (RTS/CTS)
  • Answer on the first ring (S0=1)

2) Access to the PortMaster's (TM) command prompt through telnet, console connection or dialup connection. 

ADDING A MODEM TO THE TABLE
To add a new modem to the modem table you use the following command syntax.

add modem [short name] ["long name"] [speed] ["init string"]

  • [short name] This is the label used later when applying the modem to a port.
  • ["long name"] This is what is display under "Long Name" when doing a show modem. If you have a space (more than one word) in the long name then you have to put the long name in quotes.
  • [speed] This is the DTE speed that the modem will be locked into. This value should match the speed settings on the port. If your users see garbage when they log in then you have a DTE speed mismatch between the modem and the port.
  • ["init string script"] This is a script that is sent to the asynchronous device. It must be in quotes. The script consists of two parts separated by a caret '^'. First part (1) Init string. This is where the "AT" commands are sent to the modem. A '\r' indicates a return. Second part (2) anticipated response. This is what you expect to get back from the modem. If the Lucent box gets the anticipated response then the port's "modem status" is set to "configured". You can have multiple send/expect sequences in the script and each are also separated with a caret.

For example, if you wanted to add the USRobotics 28.8 v.34 modem to your modem table you would use the following command:

Command> add modem usr-v34 "USRCourierV.34" 115200 "AT&F1S0=1&W\r^OK"
New script entry successfully added.
Modem usr-v34 successfully added.

This adds the USR modem to the modem pool using the name usr-v34. It also adds the baud rate which is set to 115200 and an init string used to configure the modem. 

VIEWING THE MODEM TABLE
To view the modem table type the following from the prompt: 

Command> sh table modem
Short Name       Long Name         Type
---------------- ----------------- ------
usr-v34          USRCourierV.34    User
hayes            HayesOptimaV34    User 

In this example we have two modem profiles in the modem table.

VIEWING THE MODEM

Command> show modem usr-v34
   Short Name: usr-v34
    Long Name: USRCourierV.34
Optimal Speed: 115200
         Type: User Defined

 Init Script:  Send Command          Wait for Reply
               --------------------- ---------------
               AT&F1S0=1&W\r         OK

APPLYING THE MODEM TO A PORT

To apply the modem profile to the modem, attach to a port, and issue the following commands: (Of course substituting your own port numbers) 

Command> set s1 modem usr-v34
Modem type for port S1 changed from  to usr-v34
Command> reset s1
Resetting port S1
Command>

You can watch the initialization process by issuing the following commands:

Command> set console
# display console messages to this session
Setting CONSOLE to admin session
Command> set debug 0x51
# set the debug value
Setting debug value to 0x51
Command> reset s5
# reset the port
Resetting port S5
at&w\r\r\nOK

Command set debug off 
# turns off the debug
All debugging disabled
Command> reset console
# turns off the console
Console RESET    

DELETING A MODEM FROM THE TABLE

Command> del modem usr-v34
Modem usr-v34 successfully deleted.

ALTERNATE METHODS FOR CONFIGURING A MODEM
 

  • Connect the modem to a dumb terminal or a PC running a terminal program and program it directly.
  • Use the "attach s[port number] command and program the modem directly. 
  • Command> attach s5
    Trying 192.168.1.1 ...
    Connected - Escape character is '^]'.
    at&f1s0=1&w
    # Issue your at commands
    OK
    ^]
    # to get back to the prompt press "CTRL"+"]"
    telnet> send esc
    # sometimes you have to do this 2 or 3 times.
    Connection Closed
  • Configure the port for reverse telnet and program the modem directly.
  • If using a managed modem rack, it may be best NOT to configure the modem via the PortMaster's modem table. Instead, you should use the modem rack's own management tool.

TROUBLESHOOTING

If you do not get "Configured" back for the port's "Modem Status" try the following and reset the port after each action:

  1. Make sure the port speed and the DTE speed in the modem profile match
  2. Do a "show modem [short name]" and make sure you have a '\r' and an anticipated response under "Wait for Reply". See above for good example.
  3. Make sure the modem is configured to return a reply to the init string (ATE1Q0 will often take care of this)
  4. Use the ATTACH command and see if the modem will take AT commands. Enter your AT commands one by and make sure that you get no ERRORs.
  5. Swap the modem
  6. Swap the straight-through serial cable.
  7. Remove any adapters
  8. Make sure the modem is on (Kick yourself if it was off)