Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 1999 18:27:36 +0200 (MET DST)
From:      Peter Brevik <pb@ludd.luth.se>
To:        freebsd-questions@freebsd.org
Subject:   RS232 status read ioctl (RI,DSR,CTS etc..)
Message-ID:  <199905251627.SAA11315@father.ludd.luth.se>

next in thread | raw e-mail | index | archive | help

   Hi,

I am programming a rs232 device (driver) which is using the status line's
rather than the tx/rx lines to control the device.
I have succedded without any problem to send signals by using the ioctl's
described in "man 4 tty" man page.

There is a ioctl called "TIOCMGET" which is intended asfaik to read these
status lines. However this seems not to be the case.

By printf's in kernel sio driver I found out that the sio.c driver will only
actually read these from the chip at opening of the device. And it seems these
lines does not correspond to what actually are on the rs232 connector anyway.
I would not like to use brute force, like inb()/outb() commands..


Any suggestions on how to make use of TIOCMGET as intended ..?

          /Peter


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905251627.SAA11315>