Solved

solaris-2.5 modem speed setup

Posted on 1997-05-30
1
339 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 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change HISTFILE for root user on AIX 3 71
Bad Block Relocation for Synchronous GLVM AIX 7.1 2 67
Unix/bash: scripted arithmetic 13 96
MarkLogic 1 70
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now