RE: detecting UPS activation

Eric Strain <eric_strain1-/[email protected]>
Newsgroups gmane.comp.windows.off-topic
Message-ID <[email protected]>
>So (excluding the proprietary software) I’d
EXPECT the protected computer to be >completely unaware.

Thanks Richard, 
   What I'm looking for is a way for the protected  computer to  detect when the power fails ( and (or) when the alternate power source has kicked on) and page me, or somehow let me know that something has gone wrong. I can't be the first person to think of this so there should be some way to do this right? I've been looking for a way, but I haven't had any luck yet. 


--- On Sun, 8/16/09, Richard Howells <[email protected]> wrote:

From: Richard Howells <[email protected]>
Subject: RE: [OT] detecting UPS activation
To: [email protected]
Date: Sunday, August 16, 2009, 9:21 AM










        


 
 
















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 

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.