473,466 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Detect power redirection to ups

Is there a way I can detect in vb.Net the power has switched to a UPS
unit in case of power failure?

Thanks
Jul 21 '05 #1
6 3962
Most UPS vendors support a method for communicating the status of their
devices and the power supply. Most of them even have software that they
sell or give away that will monitor your UPS device for power failure, so
that you can shut down a machine.

For large networked systems, you'd use a MIB and SNMP, because the larger
UPS devices can speak over a network. The smaller devices, for personal
computers, often hook up over USB. For that, you will probably be best off
using the software that comes with the UPS. For example, if you have an APC
device, you would use Personal PowerChute, which is a free download from
their web site www.apcc.com

So, I ask, are you trying to do this for a server-sized UPS device that you
can hook to your network, or a smaller unit that you will hook to a
particular machine? If the former, SNMP is your method. If the latter, you
are doing either USB programming (proprietary, in all liklihood) or you can
configure the tools that come with the device to call your app.

Good Luck,

--- Nick

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
Is there a way I can detect in vb.Net the power has switched to a UPS
unit in case of power failure?

Thanks

Jul 21 '05 #2
Thank you Nick

Actually, I'm developping a device that will be connected to the
serial port of thousands of cash registers all over the country. In
fact, I don't know which UPS unit will be in used if there is any.
Since I'm dealing with very sensitive data, I don't want to loose
anything in case of a power failure. I'm know the OS gets notified
when the UPS unit start to deliver the power after a power failure
(You confirmed that). And I'm pretty sure that the OS must send a
message to all running application to let them know. My question is,
how can I pick up this message when it happens or when the power comes
back?

"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message news:<qKw9d.435291$8_6.368115@attbi_s04>...
Most UPS vendors support a method for communicating the status of their
devices and the power supply. Most of them even have software that they
sell or give away that will monitor your UPS device for power failure, so
that you can shut down a machine.

For large networked systems, you'd use a MIB and SNMP, because the larger
UPS devices can speak over a network. The smaller devices, for personal
computers, often hook up over USB. For that, you will probably be best off
using the software that comes with the UPS. For example, if you have an APC
device, you would use Personal PowerChute, which is a free download from
their web site www.apcc.com

So, I ask, are you trying to do this for a server-sized UPS device that you
can hook to your network, or a smaller unit that you will hook to a
particular machine? If the former, SNMP is your method. If the latter, you
are doing either USB programming (proprietary, in all liklihood) or you can
configure the tools that come with the device to call your app.

Good Luck,

--- Nick

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
Is there a way I can detect in vb.Net the power has switched to a UPS
unit in case of power failure?

Thanks

Jul 21 '05 #3
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

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
Thank you Nick

Actually, I'm developping a device that will be connected to the
serial port of thousands of cash registers all over the country. In
fact, I don't know which UPS unit will be in used if there is any.
Since I'm dealing with very sensitive data, I don't want to loose
anything in case of a power failure. I'm know the OS gets notified
when the UPS unit start to deliver the power after a power failure
(You confirmed that). And I'm pretty sure that the OS must send a
message to all running application to let them know. My question is,
how can I pick up this message when it happens or when the power comes
back?

"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message

news:<qKw9d.435291$8_6.368115@attbi_s04>...
Most UPS vendors support a method for communicating the status of their
devices and the power supply. Most of them even have software that they
sell or give away that will monitor your UPS device for power failure, so that you can shut down a machine.

For large networked systems, you'd use a MIB and SNMP, because the larger UPS devices can speak over a network. The smaller devices, for personal
computers, often hook up over USB. For that, you will probably be best off using the software that comes with the UPS. For example, if you have an APC device, you would use Personal PowerChute, which is a free download from
their web site www.apcc.com

So, I ask, are you trying to do this for a server-sized UPS device that you can hook to your network, or a smaller unit that you will hook to a
particular machine? If the former, SNMP is your method. If the latter, you are doing either USB programming (proprietary, in all liklihood) or you can configure the tools that come with the device to call your app.

Good Luck,

--- Nick

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
Is there a way I can detect in vb.Net the power has switched to a UPS
unit in case of power failure?

Thanks

Jul 21 '05 #4
Hi Nick,

Our unit is designed to be placed between the cash register and the
printer. It has to listen on the serial communication port of the cash
register to record every transactions that are processed, record it
into a database and send it to the printer with a unique identifier
and a legal stamp. Since it will be used in thousands of stores all
over the country, we will have to support a wide variety of cash
registers models. Using regular expressions specific to each models,
we can easily understand which information is sent to the printer
through the serial port. We don't have to bother over which OS is used
inside the cash register at all. The store manager will have to make
sure his cash register and his printer are supported by our unit. If
the store has a UPS, our unit will have to be connected to it as well
as the cash register.
Since the store owner won't be forced to use a UPS and because he can
use wathever UPS unit he wants if he desires to have one, I can only
rely on my own OS (Win CE or Xp Embedded) running in my Unit to notify
my program that the UPS has started.
The best solution for us would be as you said to put in our module our
own UPS device or battery. In fact, we only need just a few seconds,
not minutes or hours, to make sure we backup everything and shut down
the process properly.
Wether we use a own power backup system or the store owner's ups, we
would like to intercept any notifications from the OS that the power
had been lost.

Stephane
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message news:<iFRad.459378$8_6.264122@attbi_s04>...
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

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
Thank you Nick

Actually, I'm developping a device that will be connected to the
serial port of thousands of cash registers all over the country. In
fact, I don't know which UPS unit will be in used if there is any.
Since I'm dealing with very sensitive data, I don't want to loose
anything in case of a power failure. I'm know the OS gets notified
when the UPS unit start to deliver the power after a power failure
(You confirmed that). And I'm pretty sure that the OS must send a
message to all running application to let them know. My question is,
how can I pick up this message when it happens or when the power comes
back?

"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message

news:<qKw9d.435291$8_6.368115@attbi_s04>...
Most UPS vendors support a method for communicating the status of their
devices and the power supply. Most of them even have software that they
sell or give away that will monitor your UPS device for power failure, so that you can shut down a machine.

For large networked systems, you'd use a MIB and SNMP, because the larger UPS devices can speak over a network. The smaller devices, for personal
computers, often hook up over USB. For that, you will probably be best off using the software that comes with the UPS. For example, if you have an APC device, you would use Personal PowerChute, which is a free download from
their web site www.apcc.com

So, I ask, are you trying to do this for a server-sized UPS device that you can hook to your network, or a smaller unit that you will hook to a
particular machine? If the former, SNMP is your method. If the latter, you are doing either USB programming (proprietary, in all liklihood) or you can configure the tools that come with the device to call your app.

Good Luck,

--- Nick

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
> Is there a way I can detect in vb.Net the power has switched to a UPS
> unit in case of power failure?
>
> Thanks

Jul 21 '05 #5
Hello Stephane,

Your store owner would need to be CERTAIN that his register and printer are
supported, but will also be BETTER OFF if his UPS is also supported, because
you will have to write software to listen to each potentially different
message from a UPS.

So, call up your market base and find out what are the top one or two UPS
devices in use in the stores, and write support for them directly. I would
suggest using a "driver" software model, where your app simply registers an
event and you install a driver specific to the UPS to raise that event.
That way, you can write drivers for more UPS devices as time goes on.

You will want to get specs from the UPS manufacturers themselves. I do not
believe that there is a uniform protocol for communicating these messages.

Note: there are three hardware implications that may affect you:
(1) does the UPS actually send a data signal at all? The UPS may have no
port to send it on (smaller UPS devices, and those more than a few years
old, largely have no data message at all),
(2) what port will you receive the message on? Does your device have a type
A USB port? Most newer UPS devices, the ones with USB ports, have a type B
connection. Note that type A and type B are DIFFERENT. There are no
adapters for one to another, because the type A end, expected to appear on
computers, must provide electricity to the type B end. Therefore, your
device will need to have a type A port if you expect to communicate directly
with the USB port on the UPS.
(3) Most UPS devices have one and only one USB port. If that port is
already connected to the register (as it will be in some turn-key
installations), then you cannot connect to it. In a USB communication,
there is one A and one B. That's it. You cannot have two As and one B. It
would be irresponsible for you to tell a store owner to move the connection
from the register to your device. While you only need a second or two to
store everything, the register may need much longer than that. In this
configuration, you simply cannot succeed by directly connecting to the UPS.

In a traditional IT setting, a central computer would query individual
systems using SNMP (Simple Network Monitoring Protocol). Each system that
participates in SNMP would have a driver (usually called a MIB) that
responds to messages, gathers local events, and transmits them upstream.
The central system has the logic to send out messages when specific events
occur.

Therefore, if you were to follow standards, you would provide a MIB, for
your device, that runs on the register (you will need one for each major OS
of the registers). The MIB would query your device for status and send the
status messages to a registered listener (usually a network management
application like CA Unicenter or HP Openview). Also, the MIB would get
messages from the management application and relay them to your device.
That could be done by connecting another port from the register to your
device, or it can be done using some special interrupt sequence that the MIB
sends out by intercepting the data stream travelling over the printer port
(may not be easy to do the latter, but it costs less to manufacture the
device).

Your device can listen for the signals from the MIB, which can give
instructions like "backup now" and "systems initialization test" as relayed
from the management application.

That's the traditional way to do this. Sounds like this may be difficult in
your setting. I don't know. I'm not involved in the retail POS market.

There is another way to look at this, which is much simpler.

Let's stipulate that the power goes off and your device has a small battery
backup capability. The register will shut down. Three causes: (a) the
power went out to the register and no UPS was present... it simply quit.
(b) the register got a signal from a UPS or a MIB telling it to power down
immediately, (c) a frantic store clerk responds to the fact that she is
standing in a dark room with puzzled customers by shutting down the register
(as she was trained to do).

Once the register goes down, assuming you are still running on battery, the
register will stop sending data to the printer. If you have enough battery
to last for 15 minutes, you will last longer than the register would, which
means that the register will quit before you do. In this case, printing
will become idle.

If printing goes idle for more than 30 seconds, then you should simply save
everything, because there is a possibility that the power has gone off and
the register has gone offline.

That's as good a logic as you will likely get without installing software on
the register.

Good Luck,
--- Nick

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
Hi Nick,

Our unit is designed to be placed between the cash register and the
printer. It has to listen on the serial communication port of the cash
register to record every transactions that are processed, record it
into a database and send it to the printer with a unique identifier
and a legal stamp. Since it will be used in thousands of stores all
over the country, we will have to support a wide variety of cash
registers models. Using regular expressions specific to each models,
we can easily understand which information is sent to the printer
through the serial port. We don't have to bother over which OS is used
inside the cash register at all. The store manager will have to make
sure his cash register and his printer are supported by our unit. If
the store has a UPS, our unit will have to be connected to it as well
as the cash register.
Since the store owner won't be forced to use a UPS and because he can
use wathever UPS unit he wants if he desires to have one, I can only
rely on my own OS (Win CE or Xp Embedded) running in my Unit to notify
my program that the UPS has started.
The best solution for us would be as you said to put in our module our
own UPS device or battery. In fact, we only need just a few seconds,
not minutes or hours, to make sure we backup everything and shut down
the process properly.
Wether we use a own power backup system or the store owner's ups, we
would like to intercept any notifications from the OS that the power
had been lost.

Stephane
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message

news:<iFRad.459378$8_6.264122@attbi_s04>...
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

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
Thank you Nick

Actually, I'm developping a device that will be connected to the
serial port of thousands of cash registers all over the country. In
fact, I don't know which UPS unit will be in used if there is any.
Since I'm dealing with very sensitive data, I don't want to loose
anything in case of a power failure. I'm know the OS gets notified
when the UPS unit start to deliver the power after a power failure
(You confirmed that). And I'm pretty sure that the OS must send a
message to all running application to let them know. My question is,
how can I pick up this message when it happens or when the power comes
back?

"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message

news:<qKw9d.435291$8_6.368115@attbi_s04>...
> Most UPS vendors support a method for communicating the status of their > devices and the power supply. Most of them even have software that they > sell or give away that will monitor your UPS device for power failure,
so
> that you can shut down a machine.
>
> For large networked systems, you'd use a MIB and SNMP, because the

larger
> UPS devices can speak over a network. The smaller devices, for
personal > computers, often hook up over USB. For that, you will probably be best off
> using the software that comes with the UPS. For example, if you
have an APC
> device, you would use Personal PowerChute, which is a free download
from > their web site www.apcc.com
>
> So, I ask, are you trying to do this for a server-sized UPS device that you
> can hook to your network, or a smaller unit that you will hook to a
> particular machine? If the former, SNMP is your method. If the
latter, you
> are doing either USB programming (proprietary, in all liklihood) or
you can
> configure the tools that come with the device to call your app.
>
> Good Luck,
>
> --- Nick
>
> "Stephane Belzile" <st*************@cgi.com> wrote in message
> news:60**************************@posting.google.c om...
> > Is there a way I can detect in vb.Net the power has switched to a

UPS > > unit in case of power failure?
> >
> > Thanks

Jul 21 '05 #6
Hi Nick,

I've learned so much with all your replies. Wow! Yesterday, I had a
meeting with my project manager and we discussed a lot about
everything that was in your message. I think the last solution, using
independant batteries inside the unit will do the job. It's fairly
easy to manage and most of all... simple and cheap to build!
That's what we thought a few weeks ago when we first put our hands on
the project and now, it seems that any effort aimed at trying to
manage every situation would be very risky. You've brought a few good
arguments to help them decide.
Some owners will have to update or change their equipment. We want to
limit as much as possible those impacts because of the costs. If we
add UPS restrictions...

Thank you very much for all your help.

Stephane Belzile

"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message news:<kC9dd.154318$He1.114374@attbi_s01>...
Hello Stephane,

Your store owner would need to be CERTAIN that his register and printer are
supported, but will also be BETTER OFF if his UPS is also supported, because
you will have to write software to listen to each potentially different
message from a UPS.

So, call up your market base and find out what are the top one or two UPS
devices in use in the stores, and write support for them directly. I would
suggest using a "driver" software model, where your app simply registers an
event and you install a driver specific to the UPS to raise that event.
That way, you can write drivers for more UPS devices as time goes on.

You will want to get specs from the UPS manufacturers themselves. I do not
believe that there is a uniform protocol for communicating these messages.

Note: there are three hardware implications that may affect you:
(1) does the UPS actually send a data signal at all? The UPS may have no
port to send it on (smaller UPS devices, and those more than a few years
old, largely have no data message at all),
(2) what port will you receive the message on? Does your device have a type
A USB port? Most newer UPS devices, the ones with USB ports, have a type B
connection. Note that type A and type B are DIFFERENT. There are no
adapters for one to another, because the type A end, expected to appear on
computers, must provide electricity to the type B end. Therefore, your
device will need to have a type A port if you expect to communicate directly
with the USB port on the UPS.
(3) Most UPS devices have one and only one USB port. If that port is
already connected to the register (as it will be in some turn-key
installations), then you cannot connect to it. In a USB communication,
there is one A and one B. That's it. You cannot have two As and one B. It
would be irresponsible for you to tell a store owner to move the connection
from the register to your device. While you only need a second or two to
store everything, the register may need much longer than that. In this
configuration, you simply cannot succeed by directly connecting to the UPS.

In a traditional IT setting, a central computer would query individual
systems using SNMP (Simple Network Monitoring Protocol). Each system that
participates in SNMP would have a driver (usually called a MIB) that
responds to messages, gathers local events, and transmits them upstream.
The central system has the logic to send out messages when specific events
occur.

Therefore, if you were to follow standards, you would provide a MIB, for
your device, that runs on the register (you will need one for each major OS
of the registers). The MIB would query your device for status and send the
status messages to a registered listener (usually a network management
application like CA Unicenter or HP Openview). Also, the MIB would get
messages from the management application and relay them to your device.
That could be done by connecting another port from the register to your
device, or it can be done using some special interrupt sequence that the MIB
sends out by intercepting the data stream travelling over the printer port
(may not be easy to do the latter, but it costs less to manufacture the
device).

Your device can listen for the signals from the MIB, which can give
instructions like "backup now" and "systems initialization test" as relayed
from the management application.

That's the traditional way to do this. Sounds like this may be difficult in
your setting. I don't know. I'm not involved in the retail POS market.

There is another way to look at this, which is much simpler.

Let's stipulate that the power goes off and your device has a small battery
backup capability. The register will shut down. Three causes: (a) the
power went out to the register and no UPS was present... it simply quit.
(b) the register got a signal from a UPS or a MIB telling it to power down
immediately, (c) a frantic store clerk responds to the fact that she is
standing in a dark room with puzzled customers by shutting down the register
(as she was trained to do).

Once the register goes down, assuming you are still running on battery, the
register will stop sending data to the printer. If you have enough battery
to last for 15 minutes, you will last longer than the register would, which
means that the register will quit before you do. In this case, printing
will become idle.

If printing goes idle for more than 30 seconds, then you should simply save
everything, because there is a possibility that the power has gone off and
the register has gone offline.

That's as good a logic as you will likely get without installing software on
the register.

Good Luck,
--- Nick

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
Hi Nick,

Our unit is designed to be placed between the cash register and the
printer. It has to listen on the serial communication port of the cash
register to record every transactions that are processed, record it
into a database and send it to the printer with a unique identifier
and a legal stamp. Since it will be used in thousands of stores all
over the country, we will have to support a wide variety of cash
registers models. Using regular expressions specific to each models,
we can easily understand which information is sent to the printer
through the serial port. We don't have to bother over which OS is used
inside the cash register at all. The store manager will have to make
sure his cash register and his printer are supported by our unit. If
the store has a UPS, our unit will have to be connected to it as well
as the cash register.
Since the store owner won't be forced to use a UPS and because he can
use wathever UPS unit he wants if he desires to have one, I can only
rely on my own OS (Win CE or Xp Embedded) running in my Unit to notify
my program that the UPS has started.
The best solution for us would be as you said to put in our module our
own UPS device or battery. In fact, we only need just a few seconds,
not minutes or hours, to make sure we backup everything and shut down
the process properly.
Wether we use a own power backup system or the store owner's ups, we
would like to intercept any notifications from the OS that the power
had been lost.

Stephane
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message

news:<iFRad.459378$8_6.264122@attbi_s04>...
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

"Stephane Belzile" <st*************@cgi.com> wrote in message
news:60**************************@posting.google.c om...
> Thank you Nick
>
> Actually, I'm developping a device that will be connected to the
> serial port of thousands of cash registers all over the country. In
> fact, I don't know which UPS unit will be in used if there is any.
> Since I'm dealing with very sensitive data, I don't want to loose
> anything in case of a power failure. I'm know the OS gets notified
> when the UPS unit start to deliver the power after a power failure
> (You confirmed that). And I'm pretty sure that the OS must send a
> message to all running application to let them know. My question is,
> how can I pick up this message when it happens or when the power comes
> back?
>
> "Nick Malik" <ni*******@hotmail.nospam.com> wrote in message news:<qKw9d.435291$8_6.368115@attbi_s04>... > > Most UPS vendors support a method for communicating the status of their > > devices and the power supply. Most of them even have software that they > > sell or give away that will monitor your UPS device for power failure,
so > > that you can shut down a machine.
> >
> > For large networked systems, you'd use a MIB and SNMP, because the larger > > UPS devices can speak over a network. The smaller devices, for personal > > computers, often hook up over USB. For that, you will probably be best
off > > using the software that comes with the UPS. For example, if you have an
APC > > device, you would use Personal PowerChute, which is a free download from > > their web site www.apcc.com
> >
> > So, I ask, are you trying to do this for a server-sized UPS device that
you > > can hook to your network, or a smaller unit that you will hook to a
> > particular machine? If the former, SNMP is your method. If the latter,
you > > are doing either USB programming (proprietary, in all liklihood) or you
can > > configure the tools that come with the device to call your app.
> >
> > Good Luck,
> >
> > --- Nick
> >
> > "Stephane Belzile" <st*************@cgi.com> wrote in message
> > news:60**************************@posting.google.c om...
> > > Is there a way I can detect in vb.Net the power has switched to a UPS > > > unit in case of power failure?
> > >
> > > Thanks

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Graham | last post by:
Can anyone tell me how to detect when a client socket connection has failed (ie remote equipment power failure) using VB.net. Thanks in advance
52
by: Gerard M Foley | last post by:
Can one write a webpage which is not displayed but which simply redirects the user to another page without any action by the user? Sorry if this is simple, but I am sometimes simple myself. ...
5
by: Vijay | last post by:
Hi all, i have TCP client server application written in C# using async socket methods, eg BeginReceive(), BeginEnd() etc server is continuesly running in the background, client connect to...
5
by: Daniel | last post by:
how to detect who redirects traffic to a aspx page? is this info passed along in request object or can sites anonymously redirect traffic to other sites?
4
by: Jacob Thastrup.com | last post by:
Hi How do I detect whether my laptop is running on battery or using the power outlet? Thanks Jacob Thastrup
6
by: Stephane Belzile | last post by:
Is there a way I can detect in vb.Net the power has switched to a UPS unit in case of power failure? Thanks
13
by: souissipro | last post by:
Hi, I have written a C program that does some of the functionalities mentionned in my previous topic posted some days ago. This shell should: 1- execute input commands from standard input,...
1
by: comp.lang.php | last post by:
require_once("/users/ppowell/web/php_global_vars.php"); if ($_GET) { // INITIALIZE VARS $fileID = @fopen("$userPath/xml/redirect.xml", 'r'); $stuff = @fread($fileID,...
1
by: s3raph | last post by:
Hi, I'm having trouble detecting the client machine connection lost when the client physically pushes the power or restart button on their computer. Using the code from Plater in the following...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.