From - Thu May 27 21:04:02 1999 Path: reader2.news.rcn.net!feed1.news.rcn.net!rcn!newsfeed.cwix.com!144.212.100.101!newsfeed.mathworks.com!mvb.saic.com!info-vax From: "Richard B. Gilbert" <76702.1567@compuserve.com> Newsgroups: comp.os.vms Subject: Dial-up Settings For Decserver 200 MC Message-ID: <199905262228_MC2-7736-F599@compuserve.com> Date: Wed, 26 May 1999 22:26:06 -0400 Organization: Info-Vax<==>Comp.Os.Vms Gateway X-Gateway-Source-Info: Mailing List Lines: 256 Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Xref: reader2.news.rcn.net comp.os.vms:232564 Message text written by INTERNET:showell@gte.net >I've tried the FAQ but either it isn't there or I missed it. I'd appreciate hearing from anyone who can recommend a reliable port configuration for a DS 200MC and dip-switch settings for a USR V Everything external modem. Just need the modem to answer incoming calls. Many thanks.< This should get you started. How to Use a MODEM With Your VMS System Richard B. Gilbert Computer Systems Consultant 76702.1567@CompuServe.Com Revised November 4, 1998 Most MODEMs come with factory defaults intended for dialout use with PCs. The MODEM is typically set to ignore DTR; e.g., assume that it is always asserted and to assert CD at all times regardless of the actual state of the received carrier. The user is not required to do much, if anything, to get it to work. Such a MODEM requires some configuration before it will work properly, or at all, with a VMS System. Be sure that the serial port you are using supports MODEM control signals. On the DMF32, for example, only ports 0 and 1 can be used with MODEMS. These ports on the DMF32 must have DIP switches set to enable MODEM control signals. The VAXStation 3100 does NOT support MODEM control! (It is possible to use a MODEM but the VAXstation cannot detect the loss of the connection; the next person to dial in could find himself logged in to your account!) The MicroVAX 3100 has a single port, device name TTA2, with a DB-25 connector that does support MODEM control. As a general rule, anything with a DEC Modified Modular Jack (MMJ) connector does not support full MODEM control; the MMJ has only six pins and nine are required. Eight pin RJ45 connectors are sometimes used; e.g. on some models of the DECserver 700, where a choice is offered as to the signals supported. Connect the MODEM with a cable that supports MODEM control signals, such as Digital's BC22E. The BC22F, connecting all twenty-five pins, is overkill but will work quite well. A twenty-five conductor ribbon cable will also work but a shielded cable is highly recommended in order to comply with Radio Frequency Interference (RFI) requirements. Note that while it was possible to "fake it" with VMS V4.x and earlier, VMS V5 requires that all of the MODEM control signals be connected. (Pins 2-8, 20 and 22 should be connected straight through; i.e., 2-2, 3-3, 4-4, ...). If you are forced to sacrifice one signal, try RI (Ring Indicator) first. For reference, here is the standard pinout for the RS-232-C DB-25 connector. Pin Description 1 Protective ground (may be connected to shield at ONE end only) 2* Transmitted data (TxD) 3* Received data (RxD) 4* Request to send (RTS) 5* Clear to send (CTS) 6* Data set ready (DSR) 7* Signal ground 8* Carrier detect (CD) 12 Speed Mode Indicate (or secondary CD) 15 Synchronous transmit clock 17 Synchronous receive clock 19 Speed select (or secondary RTS) 20* Data terminal ready (DTR) 22* Ring indicator (RI) 23 Data Signal Rate Select (DSRS) It should be noted that not all devices connect or support all these pins and not all those listed are necessary for "full MODEM control". The pins marked with an asterisk are generally essential to satisfactory and secure operation of your MODEM. You will need to make some switch settings on your MODEM. The following settings are for a U.S. Robotics Courier V32bis FAX Modem. Other U.S. Robotics MODEMs use quite similar switch numbers and settings. Other manufacturers may use different switch numbers but the functions available are typical. See your MODEM's instruction manual for the sordid details. The settings marked with an asterisk are critical to the successful use of your MODEM. Some settings can also be made from the CPU via the MODEM's AT command set, in which case the hardware switch settings determine the MODEM's power on defaults. The AT commands in parentheses, following the switch settings, are the commands for a U.S. Robotics Courier HST Dual Standard MODEM. Check your manual for the proper commands for your MODEM. * 1. DTR Normal (controlled by CPU) (AT&D2&W) 2. Verbal result codes (Useful during dialout) (ATV1) * 3. Do not display result codes (Quiet mode) (ATQ1) 4. Echo off line commands (Useful during dialout) (ATE1) * 5. Auto answer (MODEM will answer the phone if DTR is asserted) (ATS0=1) * 6. Normal Carrier detect (controlled by MODEM) (AT&C1&W) 7. Display originate result codes only. 8. Normal At command set (Must be enabled for auto dial.) 9. Online after +++ 10. Load NVRAM defaults on power up. ************************************************************************ Many users have observed a VMS System dropping DTR (Data Terminal Ready) while a user is trying to dial in, causing the MODEM to hang up the phone. The terminal driver will drop DTR if it sees DSR (Data Set Ready) for more than thirty seconds, without also seeing CD (Carrier Detect). If it is possible to configure the MODEM so that it does not assert DSR until it asserts CD (AT &S1&W), do so. Otherwise it will be necessary to use a modified cable. At the VAX end of the cable, cut the wire leading to pin 6 (DSR) and jumper pin 6 to pin 8 (CD). Commands similar to the following should be placed in your SYS$MANAGER:SYSTARTUP_VMS.COM (SYSTARTUP_V5.COM for VMS V5.X) file to set up an asynchronous port for use with a MODEM. You may want to add some more qualifiers but this will get you going. $ SET TERMINAL - /PERMANENT - ! Make settings permanent /MODEM - ! Use MODEM control signals /DIALUP - ! Gives the DIALUP identifier to user. /HANGUP - ! Hang up the phone when user logs off /AUTOBAUD - ! Detect the user's baud rate and set it.* /ALTYPEAHD - ! Use the alternate typeahead buffer. The ! alternate typeahead buffer can be made larger ! than the regular one. This is helpful if you ! are doing file transfers. See SYSGEN parameter ! TTY_ALTYPAHD. /HOSTSYNC - ! VMS System will send XOFF when its buffer is ! nearly full and XON when it is ready for more ! input. See SYSGEN parameter TTY_ALTALARM. _TXA0: $ SET SECURITY /CLASS=DEVICE /PROTECTION=W:R ! VMS V6 ! Sets device protection to allow non-privileged ! users to allocate the device for dialing out. ! Otherwise user must own device or hold SYSPRV. or $ SET PROTECTION=W:R /DEVICE ! VMS V5 * Many modern MODEMs are capable of using a fixed DTE rate to talk to the computer; e.g. if they are set to 19,200 baud, they will talk to the computer at 19,200 regardless of what speed they are using to talk to the remote MODEM. This feature has performance implications for MODEMs that do data compression using either CCITT V.41 or MNP. For such MODEMs, set a speed that is at least four times the rated DCE speed of the MODEM or the highest available speed using /SPEED=xxxxx rather than using /AUTOBAUD. The MODEM must be set to use the corresponding speed. The U.S. Robotics Courier series are set to a particular DTE rate by the most recent AT&W command; the rate set is the current speed of the port. See your MODEM's instructions for details. ************************************************************************ The following commands should probably go in SYS$SYLOGIN, your system-wide login command file: $! Test for interactive or batch mode $! $ IF F$MODE() .NES. "INTERACTIVE" THEN GOTO 10$ $! Set up device dependant terminal characteristics. This only works $! if the terminal responds to ANSI Device Attributes (DA) control string. $! Most DEC terminals (VT1xx, VT2xx, VT3xx, VT4xx, VT5xx, LAxxx) and $! compatibles will do so. $ IF F$GETDVI("TT", "TT_MODEM") THEN $ SET TERMINAL /INQUIRE $ 10$: ************************************************************************** To set the terminal for temporary dialout use, execute the following commands: $ ALLOCATE TXA0: KER$COMM ! Logical is useful for Kermit-32. $ SPEED="''P1'" $! Default to 1200 baud. ! Pick a suitable default value. $ IF SPEED .EQ. "" THEN SPEED=1200 $ SET TERMINAL /NOAUTOBAUD /SPEED='SPEED' KER$COMM: You may need to add a /NOECHO qualifier if your terminal program is too stupid to read with no echo. It is not necessary with SET HOST/DTE, KERMIT, XMODEM, or HOST32. To support a MODEM on a DECServer 200: 1. Set up the terminal server as follows: (assuming port 8) Local> DEFINE PORT 8 ACCESS DYNAMIC AUTOBAUD DISABLED Local> DEFINE PORT 8 DSRLOGOUT DISABLED FLOWCONTROL XON Local> DEFINE PORT 8 INACTIVITY ENABLED MODEM ENABLED Local> DEFINE PORT 8 SIGNAL CHECK ENABLED Local> DEFINE PORT 8 SPEED 2400 ALTERNATE SPEED 1200 Local> DEFINE PORT 8 DIALUP ENABLED Local> LOGOUT PORT 8 Local> DEFINE SERVICE service_name PORT 8 IDENT "string" Local> SET SERVICE service_name PORT 8 IDENT "string" Other port characteristics may be defined "to taste". 2. Insert the following statements in SYS$STARTUP:LAT$SYSTARTUP.COM (SYS$MANAGER:LTLOAD.COM for VMS V5.4 and below): CREATE PORT LTA100: /NOLOG SET PORT LTA100: /APPLICATION /NODE=server_name /SERVICE=service_name - /NOQUEUE /NOLOG The LTA number is more or less arbitrary but must take into account the fact that LAT startup creates a few ports temporarily (starting at LTA1) and the number you choose must not conflict. The server_name and service_name must correspond exactly to the names used in the DECserver DEFINE SERVER server_name and DEFINE SERVICE service_name commands! 3. Insert the following statements in SYS$MANAGER:SYSTARTUP_VMS.COM (SYS$MANAGER:SYSTARTUP_V5.COM for VMS V5.X): $! $ @SYS$STARTUP:LAT$STARTUP.COM ! Start LAT. $! Note that SYS$STARTUP:LAT$STARTUP.COM starts LAT and then invokes $! LAT$SYSTARTUP.COM to complete the system specific part of the startup. $! VMS V5.4 and below would use @SYS$MANAGER:LTLOAD.COM. $! $! Set up MODEM port on terminal server. The SET TERMINAL may not $! be necessary at all since the DECserver DEFINE commands include equivalents $! for everything except /ALTYPEAHD. $ SET TERMINAL /PERMANENT /DIALUP /ALTYPEAHD /HOSTSYNC LTA100: $ SET SECURITY /CLASS=DEVICE /PROTECTION=W:R LTA100: 4. Reboot or execute the commands in steps 2 and 3.