Q: Using Stick parity on serial ports

Q: Using Stick parity on serial ports

Post by Geoffrey K Jacobs » Sat, 30 Mar 1996 04:00:00

We have an application where the devices we are talking to use the
parity bit for detecting an address byte on a RS485 bus.

For any message we send we want to be able to set the parity bit for
the first byte and clear for subsequent bytes.

The LCR register on the UART allows a Stick parity to be selected.
Then by enabling parity and selecting odd or even we can set the
parity bit as needed.

However (in at least Kernel 1.2.13) there does not appear to be any
command to enable Stick parity.

We want to patch termios to added this command.  Has anyone else done
this? Is there a standard name to use (eg; TIOCSSTK).  How do we go
about getting this put into the standard kernel?

Geoff Jacobsen, Trunked Network Division, Tait Electronics Ltd


1. Modem used for dial-out on ULTRIX - how to set serial port parity?


I have a modem I use to dial in and out.  It's connected to a DECstation
5000/25 running ULTRIX 4.2A.  I can succussfully dial in with no parity
by editing /etc/ttys and passing to getty a terminal type with no parity.
But, I also want no parity when I dial-out.  I always get even parity.
Any ideas?  Thanks.  I prefer an E-mail reply, I doubt that many people
would be interested anyway.



Bob Firestine

UUCP:     {amdahl,decwrl,uunet}!sjsca4!bob

2. Cabling for Sparc <-> PC Serial

3. How can I turn off parity check on serial port for SUN ?

4. Scalable CPU bitmasks for 2.5.4

5. TTY serial port parity settings

6. New HD Install

7. stuck serial ports and tip

8. making a copy of a machine?

9. Serial Port stuck at 4,800 baud --- Help!

10. Serial ports 'stuck' on a Sun Fire 280

11. Serial port stuck

12. serial port stuck!

13. Serial port stuck at 7-bits in cu - continued