Subject: Re: Setting modem speed
To: Z+ Proton <proton@phy.bbk.ac.uk>
From: Bill Studenmund <skippy@macro.stanford.edu>
List: port-i386
Date: 04/03/1997 13:45:07
On Thu, 3 Apr 1997, Z+ Proton wrote:

> 	> Is there anyway i can set my modem speed to 38400?
> 	> the speed i have is always 9600 whatever i do with /ppp/options or 
> 	> stty -f /dev/tty01 38400.
> 
> 	You might try setting it in /etc/ppp/options. As the man page says, just
> 	add "38400" to the options file, or to the command line you use to invoke
> 	pppd.
> 
> 	Take care,
> 
> 	Bill
> as  i mentioned , put 38400 or 115200 in /etc/ppp/options does not solve the 
> problem. I have to initialize the port tty01 to 38400 before pppd chat.
> (i used direct pppd chat, no getty). I just could not figure out
> why stty -f /dev/tty01 38400 does not do the job.

That stty line would work if you don't close the port before ppp and chat
start using it. If the port ever gets fully closed, though, the next time
it's opened, it will revert back to the default settings (9600 among
them).

I use pppd all the time on my mac68k. I set the speed on the command line
when I fire up pppd, and 38400 works.

Take care,

Bill