public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: David Lawyer <dave@lafn.org>
To: linux-serial@vger.kernel.org
Subject: Re: Serial port shuts down APC UPS
Date: Fri, 24 Jan 2003 22:54:42 -0800	[thread overview]
Message-ID: <20030125065442.GB532@lafn.org> (raw)
In-Reply-To: <20030124013902.GF765@wheat.boylan.org>

On Thu, Jan 23, 2003 at 05:39:02PM -0800, Ross Boylan wrote:
> When I connect my APC BackUPS 650 to ttyS1 the unit turns off when
> Linux starts up.  APC tells me (after several days) that a different
> cable is necessary for Unixy systems than for windows.  Apparently
> some voltage on the serial port gets transmitted back to the unit,
> which interprets it as a shut down signal.  (That is, I continue to
> get power, but if the wall power fails the battery won't kick in).
> 
> Since the hardware works under Windows, I assume there is a software
> solution, and I would like to find it.
> 
> APC further says the port should be at 2400 baud, with Flow set to
> XON/XOFF (which might also be known as no FIFO).  

Xon/Xoff flow control also makes use of the FIFO.  You must disable
RTS/CTS hardware flow control so that the RTS and CTS lines can be used
for UPS signalling on those lines.  You can do this with the stty
command.  The control setting is: -crtscts to disable it.  Look at how
it's set with "stty -F /dev/ttyS1 -a".  Regarding setting Xon/Xoff, the
stty man page seems to be wrong as you need both ixon and ixoff to have
full software flow control.  See "man termios" for the correct info on
this.  

> I find baud control but no flow control in setserial, and at any rate
Since it's done by stty.
> my understanding is that it doesn't reprogram the physical device.
Correct.  But stty does a little of this since it sets the baud rate in
the physical device.

[snip]

			David Lawyer

  reply	other threads:[~2003-01-25  6:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-24  1:39 Serial port shuts down APC UPS Ross Boylan
2003-01-25  6:54 ` David Lawyer [this message]
2003-01-25 15:12   ` Gerald Waugh
  -- strict thread matches above, loose matches on Subject: below --
2003-01-24 18:16 Ed Vance
2003-01-24 22:38 ` Ross Boylan
2003-01-25  1:33 Ed Vance

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=20030125065442.GB532@lafn.org \
    --to=dave@lafn.org \
    --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