Re: IPX Serial port speed (OpenBSD)

Alex Carver <[email protected]>
Newsgroups gmane.os.solaris.at-home
Message-ID <[email protected]>
--- On Thu, 2/18/10, Matt Crawford <[email protected]> wrote:

> From: Matt Crawford <[email protected]>
> Subject: Re: [Suns-at-Home] IPX Serial port speed (OpenBSD)
> To: "Alex Carver" <[email protected]>
> Cc: [email protected]
> Date: Thursday, February 18, 2010, 9:13 AM
> 
> On Feb 17, 2010, at 11:44 PM, Alex Carver wrote:
> 
> > If I remember correctly, the IPX on-board serial ports
> will support up to 38400 baud.  My current problem is
> that I can't seem to change it to anything other than
> 9600.  In OpenBSD, I use stty to change it (logged in
> as root) and it always bounces back to 9600.  Is there
> something else conflicting with the port speed?
> > 
> > Serial consoles are disabled since I have a keyboard
> and monitor plugged in.
> 
> As soon as the device is closed, it reverts to the default.
> So you have to set it from a process that keeps it open, or
> engage in some other trickery:
> 
> 
> ( stty 38400; myprog ) < /dev/ttyb 2>&1 >
> /dev/ttyb

I'm using this port with a GPS and gpsd so I can turn it into a basic time server.  Gpsd itself is supposed to be able to change the port speed while it's running but it complains that it can't and the port always stays stuck at 9600.

So would this work:

 ( stty 38400 && gpsd /dev/ttyb )

Keeping everything in a single process or am I going to get stuck again?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.