| James Carlson 2006-06-22, 7:23 pm |
| John Doe <JD@sNmOaSrPpAlMe.com> writes:
> Has anybody tried to associate a Unix signal with the receipt of a
> pulse on the TIOCM_RI (a.k.a TIOCM_RNG) ring indicator pin of a RS-232
> port?
>
> Specifically, we are trying to associate a bundle of bytes at the
> serial port with a pulse signal at the ring indicator pin. And we
> want to do this under Solaris...
Most applications use DCD for this, as you can get async notification
of DCD changes.
There's no notification mechanism here, so you'll need to poll for it
using TIOCMGET. It likely won't be reliable, and the behavior will
likely also rely on which driver (asy, su, se, ...) you're using.
I could file an RFE if you want, but it'd help to know a lot more
about the intended application and the constraints.
--
James Carlson, KISS Network <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
|