Solved

solaris-2.5 modem speed setup

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.
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.
Suggested Courses

623 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