[Suns-at-Home] IPX Serial port speed (OpenBSD)

Alex Carver agcme2002 at yahoo.com
Thu Feb 18 16:16:31 EST 2010


--- On Thu, 2/18/10, Matt Crawford <matt8128 at dls.net> wrote:

> From: Matt Crawford <matt8128 at dls.net>
> Subject: Re: [Suns-at-Home] IPX Serial port speed (OpenBSD)
> To: "Alex Carver" <agcme2002 at yahoo.com>
> Cc: suns-at-home at net-kitchen.com
> 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?


      


More information about the Suns-at-Home mailing list