RE: detecting UPS activation

"Richard Howells" <[email protected]>
Newsgroups gmane.comp.windows.off-topic
Message-ID <[email protected]>
AIUI a UPS usually has a serial (or USB) line that you connect to the
protected computer.  The proprietary software that comes with the UPS then
arranges for an orderly shutdown when the UPS battery is getting weak.

 

So I guess you need to talk to your UPS vendor.

 

I think the whole point of a UPS is for the protected equipment to carry on
business-as-usual.  So (excluding the proprietary software) I'd EXPECT the
protected computer to be completely unaware.

 

Cheers,

 

Richard

 <mailto:richard-yP/[email protected]> richard-yP/[email protected]

www.dynamisys.co.uk

L: (+44) (0)1793 731225

M: (+44) (0)7732 971786

 

Dynamisys Ltd is registered, No 4152561, in the UK

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Eric Strain
Sent: 16 August 2009 16:59
To: [email protected]
Subject: [OT] detecting UPS activation

 

  


Hi All,
  Is there a way to programatically detect when the Uninterruptable Power
Supply or battery backup kicks on? Such as when the power fails and the
battery or backup generator kicks in. I've tried using the
GetSystemPowerStatus( ) to detect when the ACLineStatus changes but when I
unplug my battery backup from the wall and have the machine running from the
battery those functions report that the system is still running on AC. What
I need is an event handler or function that will fire as soon as the power
source for the machine changes. 

 I've also tried using the WM_POWERBROADCAST event message to flag when the
power source changes but that didn't work either. I'm looking for something
written in C++ that I can incorporate into my project. Any ideas? In the
mean time, I'll keep looking. Thanks guys.

-Eric
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.