[104585] in Cypherpunks

home help back first fref pref prev next nref lref last post

(for SunOS) ... need to read serial data at non-standard rate (2700 baud)

daemon@ATHENA.MIT.EDU (Steven Cooper)
Fri Oct 23 14:46:34 1998

Date: Fri, 23 Oct 1998 13:34:39 -0400 (EDT)
From: Steven Cooper <scoop@insight.cas.mcmaster.ca>
To: coderpunks@toad.com
Cc: scoop@insight.cas.mcmaster.ca
Reply-To: Steven Cooper <scoop@insight.cas.mcmaster.ca>


Actually, I'd *REALLY* like to be able to accept a custom
baud rate on my SUN SPARC-10/40 workstation (SunOS 4.1).

The UART in question is a Zilog 8350 (I think).

Does anybody whether there is something available that
is equivalent to the "setserial" command (available in Linux),
but for SunOS ??

thanks in advance,
  Steven Cooper


Andreas Bogk wrote:
> On Fri, Oct 23, 1998 at 12:17:09PM -0400, Steven Cooper wrote:
> > Does anybody on this list know enough about standard PC UARTs to know
> > how to set an appropriate divide-by constant to achieve
> > the desired bit rate?
> 
> PC UARTs generate the baud rate by dividing 115200 by an integer value.
> So the closest you can get to 2700 is 115200/43 = 2679. This is an error
> of less than 1%, so it should work.
> 
> If you are using Linux, use the setserial command to set a custom divisor
> of 43. If you enable a custom divisor, it is used instead of the default one
> when you select a baud rate of 38400.
> 
> So, do
> 
> $ setserial /dev/ttyS0 spd_cust divisor 43
> 
> and then select a baud rate of 38400 in your application.


home help back first fref pref prev next nref lref last post