From: Grant Edwards <grante@visi.com>
To: linux-serial@vger.kernel.org
Subject: Re: Help:Serial / Parallel Port Control Under Linux
Date: Fri, 3 Oct 2008 14:26:40 +0000 (UTC) [thread overview]
Message-ID: <gc5a30$lup$1@ger.gmane.org> (raw)
In-Reply-To: 709406A39EA948FCB5AE537FF0873FAD@johnny
On 2008-10-03, johnny <johnny@pan-tone.com.sg> wrote:
> Right Now I need to write a simple C code to control the
> serial / parallel port under linux working like this: Detect
> there is an input signal / voltage change and send some output
> signal / voltage accordingly, eg: if DSR is detected to be
> high, I want to set RTS to be high as well; if RI is detected
> to be high, I want DTR set to be low etc.
>
> I have read the Serial-How to and Serial programming-How to,
> however I am still not so clear regarding to this simple
> programming.
Ignore the serial programming howto. It's out-of-date,
incomplete, unmaintained and just plain wrong in many areas. I
needs to be gotten rid of, but that doesn't seem to be
possible.
A far better source of information is the Serial Programming
Guide for Posix Operating Systems:
http://www.easysw.com/~mike/serial/serial.html
Specifically, the information about modem control and status
lines is in chapter 5.1:
http://www.easysw.com/~mike/serial/serial.html#5_1
--
Grant Edwards grante Yow! Inside, I'm already
at SOBBING!
visi.com
next prev parent reply other threads:[~2008-10-03 14:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-03 5:10 Help:Serial / Parallel Port Control Under Linux johnny
2008-10-03 14:26 ` Grant Edwards [this message]
2008-10-06 8:54 ` johnny
2008-10-06 9:12 ` Andreas Stricker
2008-10-08 4:01 ` johnny
2008-10-08 10:05 ` Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gc5a30$lup$1@ger.gmane.org' \
--to=grante@visi.com \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.