Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
79260members
343896posts

Question about UPS software control

Solved
BlackHat_apc
Crewman
Crewman
0 Likes
3
119

Question about UPS software control

This was originally posted on APC forums on 6/22/2007


I'm planning to get an APC UPS so there's a question:
I want to write a program to monitor the power status of the computer, it has to determine whether there's an AC power connected and the time left for the computer to work if it's on battery power.
There's standard Win32 API function to do so (GetSystemPowerStatus()), what i want to know is whether the UPS reports to Windows about it's power status?


Accepted Solutions
BlackHat_apc
Crewman
Crewman
0 Likes
0
120

Question about UPS software control

This was originally posted on APC forums on 6/22/2007


I'm planning to get an APC UPS so there's a question:
I want to write a program to monitor the power status of the computer, it has to determine whether there's an AC power connected and the time left for the computer to work if it's on battery power.
There's standard Win32 API function to do so (GetSystemPowerStatus()), what i want to know is whether the UPS reports to Windows about it's power status?

See Answer In Context

3 Replies 3
BlackHat_apc
Crewman
Crewman
0 Likes
0
120

Re: Question about UPS software control

This was originally posted on APC forums on 6/23/2007


Thank you for your help.

KVAr_apc
Captain
Captain
0 Likes
0
120

Re: Question about UPS software control

This was originally posted on APC forums on 7/13/2007


I'm not sure about USB, but if it's on RS-232C, SmartUPS passively reports:
"!" when power is lost
"%" when battery is low

"j" inquiry to UPS brings back the time UPS thinks the load will run on battery
"f" brings back the UPS' estimate of battery capacity.
You'll have to set up the software to inquire the UPS every however many seconds you wish the information to be updated.

BlackHat_apc
Crewman
Crewman
0 Likes
0
121

Question about UPS software control

This was originally posted on APC forums on 6/22/2007


I'm planning to get an APC UPS so there's a question:
I want to write a program to monitor the power status of the computer, it has to determine whether there's an AC power connected and the time left for the computer to work if it's on battery power.
There's standard Win32 API function to do so (GetSystemPowerStatus()), what i want to know is whether the UPS reports to Windows about it's power status?