Hello Stephane,
First off, will the device be directly connected to the UPS device, or just
to the cash register? If you are connected directly to the UPS, you can be
notified by it. Otherwise, this is not a UPS question, this is a question
of how you are notified by the OS.
Secondly, is your device designed to connect to many different cash
registers, or a specific model and type of cash register? If so, you may
know what version of the OS that the register is using, and what hardware
features you can count on. Note that there is no reason to believe that all
registers are actually notified by the OS. The fact that the OS *can* be
notified does NOT mean that the register *will* be notified. These are two
radically different things.
http://support.microsoft.com/kb/q310752/
Thirdly, can you put software on the register, or are you simply connecting
to the serial port? If you are not installing software on the register,
then none of this matters, because there would be no application running on
the pc to forward the message on to the serial port where you could detect
it.
It may make more sense for your device to use a simple Lion battery backup
or USB solid state hard drive for data backup than for your device to detect
if the UPS has switched power.
--- Nick