Unix Programming - RS-232 Ring Indicator Event

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2006 > RS-232 Ring Indicator Event





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RS-232 Ring Indicator Event
John Doe

2006-06-14, 1:24 pm

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...

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com