public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Ross Boylan <RossBoylan@stanfordalumni.org>
To: linux-serial@vger.kernel.org
Cc: Ross Boylan <RossBoylan@stanfordalumni.org>
Subject: Serial port shuts down APC UPS
Date: Thu, 23 Jan 2003 17:39:02 -0800	[thread overview]
Message-ID: <20030124013902.GF765@wheat.boylan.org> (raw)

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).  I find baud control
but no flow control in setserial, and at any rate my understanding is
that it doesn't reprogram the physical device.

serial.c appears to set FIFO on, so that's probably part of the
problem.  Is it safe to turn it off, or would that require
rearchitecting things?  (Also, I don't know how to turn it off).

As a final complication, I get "LSR safety check engaged" on ttyS1
when I start, even if the cable is disconnected.  My suspicion is that
this indicates I have the wrong IO range or IRQ in setserial.

I've built my kernel from source (2.4.19 under Debian), so it would be
relatively easy for me to modify serial.c (for example)--if I knew
what to do!

Gigabyte GI-7IXE4 motherboard, using the AMD 751/756 chipset.  Athlon
processor.  I've looked around for the ports in /proc/isapnp and
lspci, but haven't found anything.  A mouse is on the other port, and
I have an internal modem using another port.  Also using USB scanner.
There are quite a lot of peripherals; interrupts are in short supply.

In case you can't tell, I'm no hardware expert.  I'd appreciate any
help.  What do I need to do to get the serial port to work with my
UPS?

Thanks.

P.S. I just subscribed to the list.  I'd appreciate it if you cc'd me
in case the subscription hasn't taken yet.

             reply	other threads:[~2003-01-24  1:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-24  1:39 Ross Boylan [this message]
2003-01-25  6:54 ` Serial port shuts down APC UPS David Lawyer
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=20030124013902.GF765@wheat.boylan.org \
    --to=rossboylan@stanfordalumni.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