Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

solaris-2.5 modem speed setup

Posted on 1997-05-30
1
Medium Priority
?
356 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
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:
Suggested Courses
Course of the Month6 days, 19 hours left to enroll

782 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