Maker Pro
Maker Pro

APC UPS won't talk to me

N

notme

Jan 1, 1970
0
[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.
 
M

Michael Vilain

Jan 1, 1970
0
notme said:
[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.

http://www.apc.com/resource/include/techspec_index.cfm?base_sku=BP650S&CF
ID=20442563&CFTOKEN=64258989

says this product is discontinued. It also says there's a DB-9 RS-232
port for signaling a power outage. Usually these sorts of signals tell
the attached system to "power down gracefully" with the aid of software
running on the system. Solaris used to use Powerchute with APC backups
to do this sort of shutdown. According to the Wikipedia page, the
RS-232 pin-outs are non-standard and proprietary to APC. APC makes a
version of Powerchute for MacOS X:

http://www.apcmedia.com/salestools/JMIS-6KSRLT_R0_EN.pdf

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.

Seems like a lot to go through for a laptop. If this was going on a
server system, I could see where this would be nice hackware project.
Don't know what APC would do to you if they found you reverse
engineering their product, but that's your problem.

Have fun.
 
N

notme

Jan 1, 1970
0
http://www.apc.com/resource/include/techspec_index.cfm?base_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/JMIS-6KSRLT_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.
 
N

notme

Jan 1, 1970
0
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 software: 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.
 
M

Michael Vilain

Jan 1, 1970
0
notme said:
If data is going out and coming in, that means the USB driver works. Yes?


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.

That's what the Wikipedia article on Powerchute said. The serial
pinouts are non-standard and the signals coming out are proprietary.

Start by buying a break-out box to test the signals in the RS-232
interface to see what they do when the power is cut. Then see what the
USB converter does with that. If it doesn't see anything, you'll have
to craft your own converter.

Given you're lack of maker-ethic (e.g. you won't "figure it out for
yourself"), my guess is you'll have to either pay someone else to do it
or wait until someone with identical UPS and Macintosh get it running or
retire the unit to paperweight duty until your wife says to clean up
your mess. Either way, unless you figure it out and get it working,
it's not going to be doing much of anything right now.
 
N

Nobody

Jan 1, 1970
0
[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.

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.
 
P

petrus bitbyter

Jan 1, 1970
0
notme said:
[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
 
W

William Sommerwerck

Jan 1, 1970
0
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.
 
V

VAXman- @SendSpamHere.ORG

Jan 1, 1970
0
notme said:
[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?"
 
N

notme

Jan 1, 1970
0
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.
 
W

William Sommerwerck

Jan 1, 1970
0
APC used to have an adapter cable. My guess is that a "standard"
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.
 
N

notme

Jan 1, 1970
0
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.
 
N

notme

Jan 1, 1970
0
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.
 
N

notme

Jan 1, 1970
0
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.
 
W

William Sommerwerck

Jan 1, 1970
0
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.
 
A

Andrew Rossmann

Jan 1, 1970
0
[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.
 
N

notme

Jan 1, 1970
0
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.
 
T

Thomas Tornblom

Jan 1, 1970
0
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.
 
P

petrus bitbyter

Jan 1, 1970
0
notme said:
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
 
N

notme

Jan 1, 1970
0

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.
 
Top