Windows CE UPS software components - Reference

Configuration

The UPS function is deactivated at delivery state. The UPS activation and model configuration is executed using predefined registry files.

Predefined registry files are included in the "\Hard Disk\RegFiles\Samples\UPS" folder.

 

Model configuration and UPS function activation

Configuration of Battery driver for Windows CE 1:

 

Please execute the required file using double click. Finaly you have to reboot your device.

 

 

Registry files with special meaning:

 

Alarm configuration using Windows registry

In the event of a power failure the UPS automatically switches to battery operation. The device switches off after it has been running in battery mode for a configurable maximum time.

The maximum time for battery operation is set to 180 seconds by default. This time is configurable via a Windows registry entry.

 

Start the Registry Editor and search for the following key:

HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Battery\Config\

 

Search for the following value:

ShutdownOnBatteryWait  REG_DWORD 0x000000b4 (180)

The time is specified in seconds. Permitted range: <0..16200> seconds (corresponds to 270 minutes).

If the value is set, for example, to 0 the shutdown commences immediately in the event of a power failure. Older devices are switching off after a maximum of 20 seconds.

 

Newer version of UPS software allows configuration of minutes as time unit.

ShutdownOnBatteryWaitUnit  REG_DWORD 0x00000000 (0)

Permitted range := <0..1>.

 

Control panel UPS Configuration state information

Newer image includes simple control panel configuration applet. The dialog shows actual UPS configuration and state information.

It allows the configuraiton of max. time (seconds or minutes) on batteries before critical alarm. The UPS driver will issue a critical alarm after the set time, and will shut down the PC. The critical alarm may, however, be issued earlier if the battery capacity is exhausted

 

Configuration of Battery driver for Windows CE 2:

 

Configuration of Battery driver for Windows CE 3:

 

Status information at the Beckhoff UPS Configuration dialog:

Vendor: UPS vendor name.

Model: UPS/Power supply model string.

 

Current power source: Current power source. Permitted values: ONLINE, OFFLINE; BACKUP POWER, UNKNOWN.

Battery charge status: Current battery charge state. Permitted values: HIGH, LOW, CRITICAL, NO BATTERY, CHARGING, UNKNOWN.

Battery load level: Current percental battery charge state [%].

Estimated UPS runtime: Estimated/calculated remaining battery runtime.

Temperature: Temperature of UPS electronic circuit.

Voltage: Charge or discharge voltage [mV]

Current: Charge or discharge current [mA].

Flags: Additional information implemented in the dialog version >= 1.0.3. Permitted values (may occure simultaneously):

Power fail counter: Power fail counter. Implemented in the dialog version >= 1.0.3. Counts the power fails starting at device reset.

 

Max. time on battery before critical alarm: Max. time on battery before critical alarm. The UPS driver will issue a critical alarm after the set time, and will shut down the PC. The critical alarm may, however, be issued earlier if the battery capacity is exhausted

 

About: Shows dialog version information.