SUMMARY:solaris dialin/out modem

From: David Stern (dave@davka.gsfc.nasa.gov)
Date: Mon Mar 29 1999 - 13:49:40 CST


Thanks to those who responded including:

mwang@tech.cicg.ml.com (Michael Wang)
celeste@stokely.com (Celeste Stokely)
MARTENSD@health.qld.gov.au (Dennis Martens)
sun_ultra@hotmail.com (T Karthikeyan)

Several mentioned using admintool which I have avoided. (Real Unix
weenies use command line)
Indeed I did follow the correct steps; the modem is screwed.

Original message:
>I'm trying to configure a modem for dialin/dialout as per
>http://www.stokely.com/unix.serial.port.resources/tutorials.html
>
>I've done it before on a sparc10/20 but don't recall what step I might
>have missed (or perhaps now it's a modem hardware problem).
>
>tip hardwire returns
>link down
>
>Steps taken:
>chmod/chown/chgrp /dev/cua/a
>eeprom tty params set
>modified /etc/remote
>reboot
>check sacadm, pmadm
>run script to add bi-directional port

Michael Wangs answer:

1. fireup admintool
   browse serial
   double click port b
   check expert
   change template to "Modem - Bidirectional"
   Port: b, service enable
   Options: Bidirectional
   Expert Options: Create utmp Entry
   Baud Rate: 38400
   Terminal Type tvi925
   Login Prompt: ttyb login:
   Comment: Modem - Bidirectional
   Service Tag: ttyb
   Port Monitor Tag: zsmon
   Service: /usr/bin/login
   Streams Modules: ldterm,ttcompat
   Timeout (secs): Never
   Click OK
2. On the back of US Robotics modem, flip every switch up except 3 and 8
3. tip -38400 /dev/cua/b
   Connected
   at&f&c1&d2&w # at= attention; f= factory defaults;
   ats0=1 # c1= DCD follows carrier; d2= modem follows DTR
   at&w # w= saves settings; "s0=1"= auto answer picks up 1 ring

T Karthikeyan's answer:
>o Connect your 56K modem with *Straight cable* to your system.
>
>o Login as "root"
>
>o Change the following EEPROM parameters by # eeprom [var=value]
>
>eeprom ttya-ignore-cd=true
>ttya-rts-dtr-off=true
>ttya-mode=38400,8,n,1,-
>
>o Configure ttymon :
>
> # sacadm -a -p zsmon -t ttymon -c /usr/lib/saf/ttymon -v `ttyadm -V`
>(If already exist, skip this step)
>
>o Remove the existing Port monitor :
>
> # pmadm -r -p zsmon -s ttya
>
>o Make the following entry in /etc/ttydefs (I tried upto 38400 baud
>rate):
>
>contty6H:38400 -parity opost onlcr:38400 sane -parity crtscts
>hupcl::contty6H
>
>o FTP the add_modem script from
> ftp://ftp.stokely.com/pub/add_modem.sh or
> it is hear , and change the TTYSPEED to 38400 :
>
>!/bin/sh
># add_modem shell script. Must be run as root from bourne shell
># Change these parameters as needed for your particular needs.
>#
># PARAMETER MEANING
># --------- -------
># PORT Port you want to set up. "a" or "b"
># TTYSPEED Speed setting, from /etc/ttydefs
># LOGINMSG The login message which will be displayed.
># -p zsmon PMTAG, name of this port monitor
># -s ttya SVCTAG, modem is on ttya. you may want ttyb
># -d /dev/term/$PORT Actual port device.
># -l contty5H Ttylabel, defined in /etc/ttydefs file.
>(speed
># setting. contty5H=19200 baud)
># -b Flag for bidirectional port use
># -S n Turn software carrier off (modem supplies
># hardware carrier detect signal)
># "dial in/out on serial port" This is a comment you'll see on pmadm -l
>
>########################################################################
>LOGINMSG="Always be nice to your sysadm. You may now login. "
># set PORT = either a or b
>PORT="a"
>#----------------------------------------
># choose your speed setting. See /etc/ttydefs for more, or build your
># own from the examples in the rest of this article.
># contty5H = 19200bps, 7 bits even parity, as supplied by Sun
># conttyH = 9600bps, 7 bits even parity, as supplied by Sun
>TTYSPEED="contty5H"
>#----------------------------------------
># change ownership of outgoing side of port to user uucp, group tty.
># change ownership of incoming side of port to user root, group tty.
>chown uucp /dev/cua/$PORT; chgrp tty /dev/cua/$PORT
>chown root /dev/term/$PORT; chgrp tty /dev/term/$PORT
>#----------------------------------------
># Remove any existing port monitor on this port.
># You can ignore any error messages from this next command.
># If you see the message "Invalid request, ttya does not exist under
>zsmon",
># You may be trying to remove a port monitor which does not exist.
>/usr/sbin/pmadm -r -p zsmon -s tty$PORT
>#----------------------------------------
># Create the new port monitor
>/usr/sbin/pmadm -a -p zsmon -s tty$PORT -i root \
>-v `/usr/sbin/ttyadm -V` -fu -m "`/usr/sbin/ttyadm \
>-p "$LOGINMSG" -d /dev/term/$PORT -s /usr/bin/login -l $TTYSPEED -b \
>-S n -m ldterm,ttcompat`" -y "dial in/out on serial port"
>############ end of add_modem script#################################
>
>o Make the above script executable and execute
>
> # chmod 744 add_modem
> # ./add_modem
>
>o Make the following entry in /etc/remote :
>
> cuaa:dv=/dev/cua/a:br#38400:at=hayes:
>
>o execute the following "tip" command to make sure that your system is
> communicating with modem
>
> # tip cuaa
> connected /* "connected" message says that
> you're connected into port a */
>
> ATE1V1 /* type ATE1v1 and enter */
> OK /* If it says, OK then you modem
> is communicating with System */
> /* Otherwise check the above procedure to make sure
>that
> your modem is communicating with Systems */
> ~. /* type ~. to EXIT from tip */
>

=-=-=-=-=-=-=-=-=- generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=-=-=
David Stern Flight Dynamics
dave@davka.gsfc.nasa.gov Goddard Space Flight Ctr
Building 23 Room S226 301-286-9786



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:17 CDT