Infodoc ID |
|
Synopsis |
|
Date |
10180 |
|
Updated modem installation guide |
|
16 Nov 1995 |
*** MODEM CONFIGURATION 4.x ***
If user follows these procedures, the Sun software and serial ports will be set
up correctly for modem use. If user is having problems after all the steps are
complete, refer to the specific modemmanual to make sure modem
configuration is correct, or call the modem vendor for assistance.
1. Refer to the SunOS System and Network Administration manual starting page
326.
2. Make sure there is a modem cable; pins 2 through 8 and pin 20 arewired
straight through. Do not use a null-modem cable!
Make sure connections are secure.
3. Make sure the modem switch settings are correct and internal registers are
set correctly by referring to Modem Manual. Hayes compatible modems using
the AT command set, may work with Sun workstations and most are supported.
4. Be sure that the modem is configured for the following:
(READ the modem manual!)
- Hardware DTR: that is, when the Sun drops DTR the modem should hang up.
- Hardware Carrier Detect: that is, the modem only raises the CD line when
there is an active carrier signal on the phone connection. When carrier
drops, either when the other end of the connection terminated or in
the event the phone connection is broken, the Sun will be notified and
act appropriately. The CD signal is also used for coordinating dial-in
and dial-out use on a single serial port and modem.
- Respond with numeric result codes.
- Sends result codes.
- Does not echo commands.
5. Changing serial port communication parameters on the Sun workstation,
CD and DTR. This applies to SparcSTATION 1 and also the following
machines:
4/20, 4/25, 4/40, 4/50, 4/65, 4/70, and 4/75.
The SPARCstation 1 and later models have an EEPROM that is significantly
different from the others:
Typing in the command 'eeprom' from a command prompt returns a listing of
the various configuration parameters contained in NVRAM. The parameters
being
dealt with here are listed below with their default settings.
ttyb-rts-dtr-off=false
ttyb-ignore-cd=true
ttya-rts-dtr-off=false
ttya-ignore-cd=true
The eeprom command follows the format "eeprom <parameter>=<setting>".
For example, to change the carrier-detect parameter for ttya to false,
type the following:
eeprom ttya-ignore-cd=false
Below is a description of the settings that can be applied to the ports:
**** These are the settings needed for modems ****
ttya-ignore-cd=false carrier-detect signal is not ignored by SunOS on
ttya
ttya-rts-dtr-off=false SunOS does assert DTR and RTS on ttya
6. Make the dial-in and dial-out devices:
NOTE:The dial out device minor number is 128 greater than the dialin tty
for ttya for ttyb
cd /dev cd /dev
mknod cua0 c 12 128 mknod cua1 c 12 129
chmod 600 cua0 chmod 600 cua1
chown uucp cua0 chown uucp cua1
7. Be sure that the baud rate specified in the ttytab file corresponds to the
/etc/gettytab file.
You can use a baud rate of 9600 or 19200 for a 14,400 bps modem.
Don't use the au to baud entries for old style modems.
This assumes that the modem is set up on the ttya port. Be sure to
do the following: (don't add the cua0 device to ttytab)
The word "remote" must be in this line for a modem
/etc/ttytab:
console "/usr/etc/getty std.9600" sun on local secure
ttya "/usr/etc/getty std.9600" dialup on remote secure
Be sure to execute this command after editing the ttytab file to restart
init:
# kill -1 1 (reread the ttytab file)
8. Make sure that the serial port has software carrier detect disabled. The
modem will be checking for CD. Edit the /etc/rc file and make sure that
this line is not commented out. If itis, please remove the # from the
beginning of the line:
/usr/etc/ttysoftcar -a > /dev/null 2>&1
save the file and run this command:
#ttysoftcar -n ttya
NOTE: The above command will hang if the port is on. To turn the
port off edit ttytab change on to off and do a kill -1 1
Then type: # ttysoftcar -n ttya
Verify the setting: # ttysoftcar ttya
ttya is n
Next turn the port back on and do a kill -1 1 again.
9. Be sure that your /etc/remote file is correct. Check to make sure that
your dialers entry reads dv=/dev/cua0 or cua1 since this is the device we
configured above. Make sure also that the section where you tip hardwire
has the
correct port assigned, in this example it would be dv=/dev/cua0 Also make
sure
the tip0 line has the right BAUDRATE, whatever the modem is using. Here's
an example of the /etc/remote file:
cua0:dv=/dev/cua0:br#9600:
hardwire:dv=/dev/cua0:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
tip1200: tc=UNIX-1200:
tip0|tip2400:tc=UNIX-2400:
UNIX-2400:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#2400:tc=dialers:
UNIX-1200:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#1200:tc=dialers:
VMS-300|TOPS20-300:el=^Z^U^C^S^Q^O:du:at=ventel:ie=$@:oe=^Z:br#300:tc=dialers:
VMS-1200|TOPS20-1200:el=^Z^U^C^S^Q^O:du:at=ventel:ie=$@:oe=^Z:br#1200:tc=dialers:
dialers:dv=/dev/cua0:
10. At this point if your modem is configured correctly you should be able to
tip to the port and setup your modem register settings like this:
tip hardwire (baudrate and port from remote file)
connected
AT&FE1V1X0&C1&D2S0=1&W (for a Hayes compatable modem)
~. (exit tip)
Refer to modem documentation or vendor for specific modem register
settings.
11. Now try to dial-out and dial-in to your newly configured system.
tip hardwire or tip -9600 /dev/cua0
connected (modem responds)
atdt 9,5551212 (enter your phone number)
~. (to disconnect)
If you run into any problems please go through the following
troubleshooting
section and if that doesn't help go through theinstructions again.
ERROR:
can't syncronize with hayes
SOLUTION:
check internal and external modem switch settings and cable
connections.
Power cycle the modem if necessary.
ERROR:
can't synchronize with ventel
SOLUTION:
If you are using a Hayes compatible modem then change the /etc/remote
file to at=hayes.
ERROR:
tip:/dev/cua0: no such file or directory
SOLUTION:
Make sure the /dev/cua0 exists and has permissions 600 owner uucp.
ERROR:
tip:/dev/cua0: No such device or address
SOLUTION:
You did not create the dialout device. (step 6)
or the device driver is missing from your kernel.
ERROR:
all ports busy
SOLUTION:
May mean someone is currently using the port either dial-in or
dial-out.
Check to make sure carrier detect was set properly (step 8) and
all modem settings.
Sometimes power cycling the modem helps. Or unplug the serial cable
and plug it in again.
ERROR:
tip: /dev/cua0: permission denied or link down
SOLUTION:
Make sure you have dv=/dev/cua0 in the /etc/remote file. Check also
in /var/spool/locks for a lock file LCK.* and remove that. Check
permissions on /dev/cua0 and ownership. /var/spool/locks directory
must also have permissions of 777.
Top
Sun Proprietary/Confidential: Internal Use Only
Feedback to SunSolve Team