public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Amit Kucheria <akucheria@metricsystems.com>
To: linux-serial <linux-serial@vger.kernel.org>
Subject: RE: access to RS-232 signals from user-space?
Date: Thu, 27 Mar 2003 15:24:44 -0800	[thread overview]
Message-ID: <1048807485.1422.53.camel@amit.metricsystems.com> (raw)
In-Reply-To: <1048721530.1468.20.camel@amit.metricsystems.com>

Hi,

So I wrote some code which can get and set modem line status from
user-space using the TIOCM[S|G]ET ioctls.

I want to get a little more ambitious and do the following:

------|                                   |-------
      |    /                         \    |
Box 1 |====---                     ---====| Box2
      |    \                         /    |
  P1  |    Radio1                Radio2   |  P2
------|                                   |-------


1. Box1 and Box2 are connected to a radio thru the serial port. They are
communicating over the air. The serial ports on both sides are
configured as a SLIP link.

2. P1 and P2 are two processes generating traffic, they know nothing
about the SLIP link, they just generate IP traffic that is forwarded
over the SLIP link (radio) by the IP layer using the forwarding table.

3. I want to write a program that will get/set the status of RTS/CTS,
etc. depending on the load on the box, load on the link, etc. This will
turn on/off the radio.

So when I turnoff RTS on one side, the same program on the other side
will detect this and turn off the (traffic) tap from that side and
buffer the packets. And when I turn it back on the traffic starts
flowing again. 

4. I also want the ability to inject some "status/keep-alive" packets if
the link has been idle for a long time. Any suggestions regarding the
best way to do this?

Has anybody attempted this? Do you foresee any problems?

TIA.

Regards,
Amit

On Wed, 2003-03-26 at 15:32, Amit Kucheria wrote:

> Thanks Ed.
> 
> I have a few more doubts, but I will reserve them for until after I have
> written some code to test out the capabilities of serial port
> communications on Linux.
> 
> Regards,
> Amit

-- 
----------------------------------------------------------------------
Amit Kucheria          akucheria@NOSPAMmetricsystems.com
Metric Systems Corp.   2320 Cousteau Court, Suite 201, Vista, CA 92083
----------------------------------------------------------------------


  reply	other threads:[~2003-03-27 23:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-26 22:39 access to RS-232 signals from user-space? Ed Vance
2003-03-26 23:32 ` Amit Kucheria
2003-03-27 23:24   ` Amit Kucheria [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-26 20:41 Amit Kucheria

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=1048807485.1422.53.camel@amit.metricsystems.com \
    --to=akucheria@metricsystems.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox