Electronics Repair (sci.electronics.repair) Discussion of repairing electronic equipment. Topics include requests for assistance, where to obtain servicing information and parts, techniques for diagnosis and repair, and annecdotes about success, failures and problems.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

[Re-posted with new subject and more appropriate NG's)

Using a USB-to-Serial adapter to connect a laptop to APC UPS' RS232 serial
port.

No signs of communication from the UPS. The laptop's OS has an
auto-recognition feature that enables built-in power-down options if/when the
UPS communicates its presence.

Loop-back test of the serial adapter confirms data is going out and coming
back, being displayed in a terminal program. (Local echo turned off.)

Serial cable (between adapter & UPS) is the correct APC p/n (with unique pin
assignments) for this application and model of UPS. Confirmed this with APC
tech support.

Tried power-cycling the UPS, and connecting the serial cable before & after.
No joy.

What options are left? This is a new (well, New, Old Stock) UPS and has not
seen any use before I powered it up last week.

Ideas?

Mac PowerBook; OS X 10.4.11
APC Backup-Pro 650 (model BP650S); APC serial cable #940-0095B
No-name USB-Serial adapter w/1.2.1r2 Prolific OS X driver

Thanks.

  #2   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 488
Default APC UPS won't talk to me

notme wrote:
[Re-posted with new subject and more appropriate NG's)

Using a USB-to-Serial adapter to connect a laptop to APC UPS' RS232 serial
port.

No signs of communication from the UPS. The laptop's OS has an
auto-recognition feature that enables built-in power-down options if/when the
UPS communicates its presence.

Loop-back test of the serial adapter confirms data is going out and coming
back, being displayed in a terminal program. (Local echo turned off.)

Serial cable (between adapter & UPS) is the correct APC p/n (with unique pin
assignments) for this application and model of UPS. Confirmed this with APC
tech support.

Tried power-cycling the UPS, and connecting the serial cable before & after.
No joy.

What options are left? This is a new (well, New, Old Stock) UPS and has not
seen any use before I powered it up last week.

Ideas?

Mac PowerBook; OS X 10.4.11
APC Backup-Pro 650 (model BP650S); APC serial cable #940-0095B
No-name USB-Serial adapter w/1.2.1r2 Prolific OS X driver

Thanks.

So you know the cable is OK via APC support .AND. that loopback works OK.
Loopback working OK also indicates that at least that part of the
converter is working properly.
So, take a small step of faith and assume the whole converter can
work OK (ie: nothing wrong with it).
Therefore, it is the softwa either the USB driver (most likely) or
the application.
  #3   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

http://www.apc.com/resource/include/..._sku=BP650S&CF
ID=20442563&CFTOKEN=64258989

says this product is discontinued.


Yes, I know. "Discontinued" does not mean obsolete. New models are introduced
every month so as to keep that cash rollin' in. The "old" models still
provide a service. (In my case for $0.)

APC makes a version of Powerchute for MacOS X:

http://www.apcmedia.com/salestools/J...SRLT_R0_EN.pdf


According to e-mail correspondence with APC tech support, there is no
Powerchute version compatible with the BP650S UPS model. They recommend using
the built-in UPS monitoring features in Mac OS X.

If you're up to "rolling your own", then that leaves you to reverse
engineer the interface, then write a program that, when installed, runs
on bootup (rather than just when someone logs in) and listens to the
USB-Serial adapter for a signal that the power has gone out, then runs a
graceful shutdown script.


Not worth it, if that's the answer.

I hope someone chimes in this discussion that they experienced this issue and
found a way to make it work with the built-in OS's UPS monitoring features...

Thanks.

  #4   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

So you know the cable is OK via APC support .AND. that loopback works OK.
Loopback working OK also indicates that at least that part of the
converter is working properly.
So, take a small step of faith and assume the whole converter can
work OK (ie: nothing wrong with it).
Therefore, it is the softwa either the USB driver (most likely)


If data is going out and coming in, that means the USB driver works. Yes?

or the application.


It's not a stand-alone app. It's part of the System Preferences of Mac OS X.

And Googling a bit, I've seen no evidence that the UPS monitoring feature has
been an issue with other models of UPS.

So, I suspect it's a non-standard spec of the APC UPS communication spec for
this model. Worst case.

N.

  #5   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 27
Default APC UPS won't talk to me

On Wed, 22 Jul 2009 23:17:52 -0700, notme wrote:

[Re-posted with new subject and more appropriate NG's)

Using a USB-to-Serial adapter to connect a laptop to APC UPS' RS232 serial
port.

No signs of communication from the UPS. The laptop's OS has an
auto-recognition feature that enables built-in power-down options if/when the
UPS communicates its presence.


Ideas?


UPSes don't normally speak serial. More often, they simply connect two
pins together, treating the serial port as a general-purpose I/O port.
This won't work with a USB-to-serial converter, as there is no serial data
to convert.



  #6   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 106
Default APC UPS won't talk to me


"notme" schreef in bericht
...
[Re-posted with new subject and more appropriate NG's)

Using a USB-to-Serial adapter to connect a laptop to APC UPS' RS232 serial
port.

No signs of communication from the UPS. The laptop's OS has an
auto-recognition feature that enables built-in power-down options if/when
the
UPS communicates its presence.

Loop-back test of the serial adapter confirms data is going out and coming
back, being displayed in a terminal program. (Local echo turned off.)

Serial cable (between adapter & UPS) is the correct APC p/n (with unique
pin
assignments) for this application and model of UPS. Confirmed this with
APC
tech support.

Tried power-cycling the UPS, and connecting the serial cable before &
after.
No joy.

What options are left? This is a new (well, New, Old Stock) UPS and has
not
seen any use before I powered it up last week.

Ideas?

Mac PowerBook; OS X 10.4.11
APC Backup-Pro 650 (model BP650S); APC serial cable #940-0095B
No-name USB-Serial adapter w/1.2.1r2 Prolific OS X driver

Thanks.


FAIK APC UPS communication should be started by sending a question mark to
it.

petrus bitbyter


  #7   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 3,833
Default APC UPS won't talk to me

APC used to have an adapter cable. My guess is that a "standard"
USB-to-RS-232 cable is not likely to work.

As another person said, I don't see the point for a notebook, even a desktop
replacement. I assume the Mac has some system for automatic shutdown as the
batteries are drained. (Windows does.) So, simply set it and the computer
will shut down gracefully is power is lost.


  #8   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 2
Default APC UPS won't talk to me

In article l, "petrus bitbyter" writes:

"notme" schreef in bericht
al-september.org...
[Re-posted with new subject and more appropriate NG's)

Using a USB-to-Serial adapter to connect a laptop to APC UPS' RS232 serial
port.

No signs of communication from the UPS. The laptop's OS has an
auto-recognition feature that enables built-in power-down options if/when
the
UPS communicates its presence.

Loop-back test of the serial adapter confirms data is going out and coming
back, being displayed in a terminal program. (Local echo turned off.)

Serial cable (between adapter & UPS) is the correct APC p/n (with unique
pin
assignments) for this application and model of UPS. Confirmed this with
APC
tech support.

Tried power-cycling the UPS, and connecting the serial cable before &
after.
No joy.

What options are left? This is a new (well, New, Old Stock) UPS and has
not
seen any use before I powered it up last week.

Ideas?

Mac PowerBook; OS X 10.4.11
APC Backup-Pro 650 (model BP650S); APC serial cable #940-0095B
No-name USB-Serial adapter w/1.2.1r2 Prolific OS X driver

Thanks.


FAIK APC UPS communication should be started by sending a question mark to
it.


try: Y

But the BackUPS don't use APC's Smart protocol.

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

http://www.quirkfactory.com/popart/asskey/eqn2.png

"Well my son, life is like a beanstalk, isn't it?"
  #9   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 04:12:01 -0700, William Sommerwerck wrote
(in article ):

APC used to have an adapter cable. My guess is that a "standard"
USB-to-RS-232 cable is not likely to work.


I hope that's not so.

In my communications with APC tech support they have not yet mentioned this
requirement in my setup. Not that they're infallible, but I'd think that they
would point out this obvious mistake in reply to my first e-mail describing
my setup.

As another person said, I don't see the point for a notebook, even a desktop
replacement. I assume the Mac has some system for automatic shutdown as the
batteries are drained. (Windows does.) So, simply set it and the computer
will shut down gracefully is power is lost.


The laptop is just a convenient test mule. The system that will benefit from
the UPS' communication (hopefully) is a desktop system..

  #10   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 04:52:56 -0700, VAXman- @SendSpamHere.ORG wrote
(in article ):

try: Y

But the BackUPS don't use APC's Smart protocol.


If I had an APC Smart-UPS with both RS232 and a Smart Slot, the serial port
on the Smart-UPS would have a better chance of working with my USB-serial
adapter?

Thanks.



  #11   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 3,833
Default APC UPS won't talk to me

APC used to have an adapter cable. My guess is that a "standard"
USB-to-RS-232 cable is not likely to work.


In my communications with APC tech support they have not yet mentioned
this requirement in my setup. Not that they're infallible, but I'd think

that they
would point out this obvious mistake in reply to my first e-mail

describing
my setup.


Well, they did it to me. I was told I needed a special cable, but it didn't
work. Turned out that when I directly connected the standard cable to the
computer (running W2K), the machine immediately recognized the UPC.


  #12   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 03:45:10 -0700, petrus bitbyter wrote
(in article l):

FAIK APC UPS communication should be started by sending a question mark to
it.

petrus bitbyter


For troubleshooting purposes, what settings should the terminal program use?
- VT100 or PC-ANSI?
- High bit stripped?
- Drop DTR on exit?
- Auto line-feed?

Thanks.

  #13   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 33
Default APC UPS won't talk to me

In article ,
Nobody wrote:
On Wed, 22 Jul 2009 23:17:52 -0700, notme wrote:

[Re-posted with new subject and more appropriate NG's)

Using a USB-to-Serial adapter to connect a laptop to APC UPS' RS232 serial
port.

No signs of communication from the UPS. The laptop's OS has an
auto-recognition feature that enables built-in power-down options if/when the
UPS communicates its presence.


Ideas?


UPSes don't normally speak serial. More often, they simply connect two
pins together, treating the serial port as a general-purpose I/O port.
This won't work with a USB-to-serial converter, as there is no serial data
to convert.


Depends on if the converter supports the handshake lines. Some of
them do.
--
It's times like these which make me glad my bank is Dial-a-Mattress
  #14   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 08:07:40 -0700, William Sommerwerck wrote
(in article ):

Well, they did it to me. I was told I needed a special cable, but it didn't
work. Turned out that when I directly connected the standard cable to the
computer (running W2K), the machine immediately recognized the UPC.


I tried both (with & without special cable). No joy.

Thanks.

  #15   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 08:07:40 -0700, William Sommerwerck wrote
(in article ):

Well, they did it to me. I was told I needed a special cable, but it didn't
work. Turned out that when I directly connected the standard cable to the
computer (running W2K), the machine immediately recognized the UPC.


APC Tech Support's final solution: Plug the UPS into a PC and see if it
recognizes it.

Being a Mac guy, don't know much about the Win world. Is there UPS
communication & recognition features built into Win XP? Or do I need to have
APC management software installed?

Thanks.



  #16   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 3,833
Default APC UPS won't talk to me

Being a Mac guy, don't know much about the Win world. Is there
UPS communication & recognition features built into Win XP?
Or do I need to have APC management software installed?


If it's in W2K, it should also be in XP.

The supplied cable has a J connector on one end, USB on the other. A few
seconds after both ends are plugged in, the OS recognizes that a UPS
(strictly speaking, an SPS) is connected and opens the Power Options
Properties tab. Couldn't be simpler.

There is no need to use APC's PowerChute, unless it has a specific feature
no in the Windows OS.


  #18   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 13:50:27 -0700, Andrew Rossmann wrote
(in article ):

To add in: Many of the basic APC UPS's don't use true serial
communications. They just use some of the control lines to signify power
out, low battery, and to signal the UPS to do a shutdown. I don't know
if it will work correctly through a USB-to-serial adapter.


This has been said a few times here. Until I get a breakout box and look at a
few of the lines on that connector to see if it's actually data or just
pulling lines high or low, I won't know.

My work computer has a BP650M with a self-made cable. It's just a
standard 9-pin serial cable, but the UPS end is slightly rewired, and I
think there is also a resistor. It's just using the stock Win2K support.


I know that APC says that a standard serial cable won't work. I'm using their
p/n cable that came with the UPS.

Thanks for your input.

  #19   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 48
Default APC UPS won't talk to me

I recommend you check out:

http://www.apcupsd.com/

I tried to get APC:s software to run on a Solaris x86 system, but gave
up. apcupsd works fine, even through a prolific based usb-serial
adapter.

I haven't tried it on MacOS though.

I have an APC Smart UPS 700, which speaks serial, not some status port
wiggle. It does require a APC specific cable though.

The link above contains references to simple commands that can be
issued through a terminal emulator to verify that the communication
works.
  #20   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 106
Default APC UPS won't talk to me


"notme" schreef in bericht
...
On Thu, 23 Jul 2009 03:45:10 -0700, petrus bitbyter wrote
(in article l):

FAIK APC UPS communication should be started by sending a question mark
to
it.

petrus bitbyter


For troubleshooting purposes, what settings should the terminal program
use?
- VT100 or PC-ANSI?
- High bit stripped?
- Drop DTR on exit?
- Auto line-feed?

Thanks.


First: I was mistaken about the question mark. You should send a Y.

You should use a normal ANSI terminal set to: 2400,n,8,1

APC is known for using non-standard cables. The one I saw had the next
connections:

PC(DE9F) UPS(DE9M)
2------------------2
3------------------1
5------------------9
1-4
7-8

But there sure are other ones depending on the UPS-type. This one is for the
APC Smart UPSs.
No need to say there's no hardware handshake in this one.

But... Does your UPS talk RS232 anyway? I seem to remember that BackupPro
types are rather dumb things that only do some signaling i.e. using pin 2 to
tell the UPS is on battery. Guess on the PC side this should be considered a
"break" and that's all.

petrus bitbyter




  #21   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 14:24:01 -0700, Thomas Tornblom wrote
(in article ):

http://www.apcupsd.com/


Thanks for that. A great resource for APC owners who want to hack the device.


The commands you speak of are commands sent through the apcupsd daemon, not
thorough a terminal program. Building the daemon for OS X and installing it
is a (to me) monumental task.

But I think joining the support mailing list could prove helpful.

Thanks again.

  #22   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 34
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 14:24:01 -0700, Thomas Tornblom wrote
(in article ):

http://www.apcupsd.com/


This site has much information about communication with the APC UPS's.

This is a diagram of the cable that came with my Backup-Pro UPS 650 (model
BP650S):

APC Part# - 940-0095B
Signal Computer UPS
DB9F DB9M
DTR 4 ----*
CTS 8 ----|
DSR 6 ----|
DCD 1 ----*
GND 5 ---------------*---- 4 Ground
|
*---- 9 Common
RI 9 ----*
|
RxD 2 ----*--------------- 2 On Battery
TxD 3 ----------[####]---- 1 Kill UPS Power
4.7K ohm

Apparently it uses voltage-level signaling not serial communication.

But I see no reason this won't work via a USB-serial adapter. When the RxD or
TxD line is brought low, a bit is set or cleared in the buffer in the
USB-serial driver.

It's a whole other story whether OS X will recognize such signals.

Why wouldn't this work with the USB-serial adapter?

Thanks.






  #23   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 488
Default APC UPS won't talk to me

notme wrote:
So you know the cable is OK via APC support .AND. that loopback works OK.
Loopback working OK also indicates that at least that part of the
converter is working properly.
So, take a small step of faith and assume the whole converter can
work OK (ie: nothing wrong with it).
Therefore, it is the softwa either the USB driver (most likely)


If data is going out and coming in, that means the USB driver works. Yes?

** Good point; YES would be the logical conclusion.


or the application.


It's not a stand-alone app. It's part of the System Preferences of Mac OS X.

And Googling a bit, I've seen no evidence that the UPS monitoring feature has
been an issue with other models of UPS.

So, I suspect it's a non-standard spec of the APC UPS communication spec for
this model. Worst case.

** Seems that is what is left, Mr. Occam.


N.

  #24   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 2
Default APC UPS won't talk to me

In article , Andrew Rossmann writes:
In article ,
says...
[Re-posted with new subject and more appropriate NG's)

Using a USB-to-Serial adapter to connect a laptop to APC UPS' RS232 serial
port.

No signs of communication from the UPS. The laptop's OS has an
auto-recognition feature that enables built-in power-down options if/when the
UPS communicates its presence.


To add in: Many of the basic APC UPS's don't use true serial
communications. They just use some of the control lines to signify power
out, low battery, and to signal the UPS to do a shutdown. I don't know
if it will work correctly through a USB-to-serial adapter.

My work computer has a BP650M with a self-made cable. It's just a
standard 9-pin serial cable, but the UPS end is slightly rewired, and I
think there is also a resistor. It's just using the stock Win2K support.


That's correct. The basic model simply toggle the equivalent of DTR high
or log to signal that the UPS is or is not providing power from battery.

An AC UPS that speaks their (not so incredibly) "Smart" prototcol, namely
the SmartUPS and more expensive APC UPS options, uses a serial cable that
is wired:

APC UPS
1 == 3
2 == 2
9 == 5

In fact, if you plug in a standard, full-signal, 9 pin cable to both the
APC and CPU, you run the risk of powering down the APC real fast.

FWIW, I sell an APC US solution in the OpenVMS space. I have seen this
communications problem with APC UPSs all too many times.

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

http://www.quirkfactory.com/popart/asskey/eqn2.png

"Well my son, life is like a beanstalk, isn't it?"
  #25   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 331
Default APC UPS won't talk to me

On 2009-07-23, Nobody wrote:
On Wed, 22 Jul 2009 23:17:52 -0700, notme wrote:

[Re-posted with new subject and more appropriate NG's)

Using a USB-to-Serial adapter to connect a laptop to APC UPS' RS232 serial
port.

No signs of communication from the UPS. The laptop's OS has an
auto-recognition feature that enables built-in power-down options if/when the
UPS communicates its presence.


Ideas?


UPSes don't normally speak serial. More often, they simply connect two
pins together, treating the serial port as a general-purpose I/O port.
This won't work with a USB-to-serial converter, as there is no serial data
to convert.


yeah it will, usb-to-serial adaptors duplicate the same modem control
pins and signals, applications that don't do direct IO port access
will work just fine on usb-serial adaptors.

I did that myself last month.




  #26   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 200
Default APC UPS won't talk to me

On 24 Jul, 05:09, notme wrote:
Apparently it uses voltage-level signaling not serial communication.

But I see no reason this won't work via a USB-serial adapter. When the RxD or
TxD line is brought low, a bit is set or cleared in the buffer in the
USB-serial driver.

It's a whole other story whether OS X will recognize such signals.

Why wouldn't this work with the USB-serial adapter?


These converters are known to cause trouble if used with anything
other than standard terminal communication. They might be designed for
data transfer only or they might add a delay in the signals that
causes havoc. Anyway they were useless to use chip programmers on
laptops without serial port.

  #27   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 182
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 11:43:34 +0100, Nobody wrote:

On Wed, 22 Jul 2009 23:17:52 -0700, notme wrote:

[Re-posted with new subject and more appropriate NG's)

Using a USB-to-Serial adapter to connect a laptop to APC UPS' RS232 serial
port.

No signs of communication from the UPS. The laptop's OS has an
auto-recognition feature that enables built-in power-down options if/when the
UPS communicates its presence.


Ideas?


UPSes don't normally speak serial. More often, they simply connect two
pins together, treating the serial port as a general-purpose I/O port.
This won't work with a USB-to-serial converter, as there is no serial data
to convert.


I have seen UPSs that talk contact closures, EIA-232, EIA-485, and
even Ethernet. It varies by make model and options. I have seen them
in power ranges from 50 W to 500,000 W with appropriate VA and surge
ratings.
  #28   Report Post  
Posted to sci.electronics.repair,comp.sys.mac.system,sci.electronics.design,sci.electronics.equipment
external usenet poster
 
Posts: 27
Default APC UPS won't talk to me

On Thu, 23 Jul 2009 20:09:16 -0700, notme wrote:

Apparently it uses voltage-level signaling not serial communication.

But I see no reason this won't work via a USB-serial adapter. When the RxD or
TxD line is brought low, a bit is set or cleared in the buffer in the
USB-serial driver.


A USB-to-serial-adaptor is not a DAQ interface. It doesn't simply send a
stream of pin states or state-change events directly to the host.

A typical USB-to-serial adaptor[1] will expect a sequence consisting of a
start bit, 8 data bits, an optional parity bit and 1 or 2 stop bits, all
occurring at the configured (or auto-detected) baud rate.

[1] CDC, ACM = Communication Device Class, Abstract Control Model.

When it sees such a signal (IOW, when the UART says "a byte has been
received"), it will queue the the received byte to be sent to the host.

It may also inform the host if the control lines (DCD, DSR, RI) change,
but this feature (SERIAL_STATE notification) is optional.

Based upon your wiring diagram, if you can find a USB-to-serial adaptor
which supports the Ring Indicator (RI) line, you should be okay. Or if you
can find one which supports DSR or DCD, you can make your own cable which
uses this line instead.

You may have better luck with DSR or DCD. RI is the least useful signal,
as you can just have the modem driver listen for a "RING" response from
the modem. If the RS-232 driver is 4-in-4-out (e.g. MAX238), it's likely
that RI is the one which will be ignored.

Also, note that you can't directly query the state of CTS (the device just
NAKs Tx packets if the Tx buffer is full), so if the RS-232 driver is
2-in-2-out (e.g. MAX232), you're out of luck, as none of DCD, DSR or RI
will be monitored.

FWIW, the USB CDC specification is at:

http://www.usb.org/developers/devcla...s/usbcdc11.pdf

  #29   Report Post  
Posted to sci.electronics.repair
external usenet poster
 
Posts: 21
Default APC UPS won't talk to me

do you have PowerChute installed??????

I had this problem on a windows system.

I think it had to do with a setting in Powerchute OR in the UPS
interface settings of windows.

There was a place to set a rising or falling signal - either pos or
neg logic.

if the comm is working I suspect this is the issue.

I think the OS just looks for a logic change and runs the shutdown
from there. The UPS doesn't actually send code to the OS just a logic
change.

Windows shows an APC UPS attached in device manager. If MAC has a
similar function it should show that to otherwise it won't know what
to do with the signal.

It was a long time ago and memory is foggy so take it as a hint.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Well, let's talk about my new DVR LBledsoe Woodturning 10 May 8th 09 07:46 PM
Talk the torque. The Medway Handyman UK diy 134 November 11th 08 03:52 PM
Talk me out of it tommyboy Woodworking 16 July 11th 08 06:02 PM
Talk Talk ? the_constructor UK diy 21 July 25th 07 10:24 AM


All times are GMT +1. The time now is 03:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"