Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

solaris-2.5 modem speed setup

Posted on 1997-05-30
1
Medium Priority
?
349 Views
Last Modified: 2013-12-16
I set up a hays 28.8 optima modem on a sparc station running solaris 2.5 on /dev/cua/a. went into admintool and used the bidirectional template and I set it on 9600 baud. But for some reason, I can only connect at 300 baud, both dial in and dial out.  If somebody tries to dial in with anything higher, it gets hung.  It can only dial out at 300 baud. the eeprompt is set at 9600 baud.  How can I increase this speed to 9600 baud?  Thanks in advance. Tom
0
Comment
Question by:tomy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
pxh earned 200 total points
ID: 1812313
Hi,

forgte about setting up the modem with the admintool, it usually just will not work. I have insetad used a script, which I derived from Celeste Stikeleys guide on how to set up a modem for Solaris,

see http://www.stokely.com/unix.serial.port.resources/modem.html

and which I paste in just here:

# 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 document
#      contty5H =  19200 bps, 7 bits even parity
#      conttyH =   9600 bps,7 bits even parity
#----------------------------------------
TTYSPEED="9600E"
#----------------------------------------
# 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
#----------------------------------------
/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 `ttyadm -V` -fu -m "`ttyadm -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


So the crucial value of 9600E must correspond to an entry in the /etc/ttydefs file:

# from /etc/ttydefs

19200E:19200 hupcl evenp:19200 evenp::9600
9600E:9600 -parity crtscts opost onlcr:9600 sane -parity crtscts hupcl::4800
4800E:4800 hupcl evenp:4800 evenp::2400
2400E:2400 hupcl evenp:2400 evenp::1200
1200E:1200 hupcl evenp:1200 evenp::300
300E:300 hupcl evenp:300 evenp::38400

# end from /etc/ttydefs

As you see I did some modifications to the setup of the serial line, I think they were suggested in Celeste's guide too.

Try to apply that script (most likely you have to run it twice in a bourne shell) and then try to dial in to the modem again. Let me know what happened.

So for outgoing calls you have to look into /etc/remote and make shure things are set up for the serial speed you prefer. E.g. the lines like:

cuaa:dv=/dev/cua/a:br#9600
hardwire:dv=/dev/cua/a:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:

should allow you to talk to your modem via 9600 baud using the command "tip hardwire".


Last nor least: why do you want to use only 9600 baud, if you have a 28.8 kb modem??? I suggest that you go for 38400, which is the maximum of the built in serial lines in SparcStations.

Hope this helps,

Peter (pxh@mpe-garching.mpg.de)

P.s.: I was assuming that the modem itself is correctly set up to allow transfer rates of more than 300 B however, that might not be the case. There should be an AT command which allows you to check the serial speed of the modem. Try it. If the modem is connected with 9600 to the solaris system and give you only 300 on the phone line you have to work on the modem set up.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question