Solved

solaris-2.5 modem speed setup

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

747 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

11 Experts available now in Live!

Get 1:1 Help Now