mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sergei Organov <osv@javad.ru>
To: Michael Buesch <freesoftwaredeveloper@web.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: modifying line state manually on ttyS
Date: 07 Apr 2003 19:34:25 +0400	[thread overview]
Message-ID: <87d6jyiany.fsf@osv.javad.ru> (raw)
In-Reply-To: <200304071702.08114.freesoftwaredeveloper@web.de>

Michael Buesch <freesoftwaredeveloper@web.de> writes:
> Hi.
> 
> I have asked in many other mailing-lists, but I got no good
> solution for my problem, so I try to ask here, although it may
> not be the exaclty correct list for it.
> 
> I have developed my own device, that is connected to ttyS0.
> To talk to my device, I need to set the state of the TxD line
> manually to either 0 or 1 (+12v or -12v). What I try to say is,
> I don't want to write a whole byte to the port, but only one single
> bit, that then stays persistent on the line, until I reset its state.
> Better sayed, I want to handle TxD line, like it's possible for
> DTR-line for example.

Do ioctl(fd, TIOCSBRK, 0) / ioctl(fd, TIOCCBRK, 0) help?

-- 
Sergei.


  parent reply	other threads:[~2003-04-07 15:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-07 15:02 Michael Buesch
2003-04-07 14:16 ` Alan Cox
2003-04-07 15:42   ` Michael Buesch
2003-04-07 15:34 ` Sergei Organov [this message]
2003-04-07 16:32   ` Michael Buesch
2003-04-07 17:01     ` Sergei Organov
2003-04-07 17:16       ` Michael Buesch
2003-04-07 15:51 ` Richard B. Johnson
2003-04-07 15:48   ` Michael Buesch
2003-04-07 16:22 Ed Vance
2003-04-07 16:48 ` Michael Buesch

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=87d6jyiany.fsf@osv.javad.ru \
    --to=osv@javad.ru \
    --cc=freesoftwaredeveloper@web.de \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®