*BSD News Article 7723


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!olivea!charnel!fish
From: fish@ecst.csuchico.edu (Kevin Haddock)
Newsgroups: comp.unix.bsd
Subject: Re: Help!  I can't change baudrate on /dev/com1 with stty!
Message-ID: <1e4ld7INNb5u@charnel.ecst.csuchico.edu>
Date: 15 Nov 92 04:58:15 GMT
References: <2818@devnull.mpd.tandem.com>
Organization: California State University, Chico
Lines: 39
NNTP-Posting-Host: cscihp.ecst.csuchico.edu

In article <2818@devnull.mpd.tandem.com> fmayhar@altair.mpd.tandem.com (Frank Mayhar) writes:
>  I do the tip /dev/com1, suspend it, and try to
>change the speed with stty.  No joy.  The speed is stubbornly stuck at
>9600, and I can't change it to talk to my modem.
>
>  I'm stuck until I get this fixed.

Here is a hack that I found got me around this problem:

stty cs7 2400 </dev/com1
stty cs8 </dev/com1
stty </dev/com1

This will set your baud rate.  You can put it in a shell script.  The
trick is you need to change something else other than the baud rate
at the same time and it will take.  In this case I set it to seven 
data bits 'cs7' and then back to 8 'cs8'.  You can do this in one fell
swoop if you need to change any of the parameters from the default.
>
>Thanks in advance, whoever you are that bails me out.  Email responses
>preferred, obviously.
>-- 

I Agree but this is a general purpose problem that I personally have
not seen addressed yet.  I just stumbled upon it myself after 'trying
all the buttons'

>Frank Mayhar  fmayhar@mpd.tandem.com
>              Tandem Computers, Inc.  Micro Products Division
>              14231 Tandem Blvd., Austin, TX  78728    Phone:  (512) 244-8969


hope this helps,

-Kevin
fish@cscihp.ecst.csuchico.edu

--------
Hackers do it with fewer instructions!