473,545 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ 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 3983
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.goo gle.com...
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*******@hotm ail.nospam.com> wrote in message news:<qKw9d.435 291$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.goo gle.com...
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.goo gle.com...
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*******@hotm ail.nospam.com> wrote in message

news:<qKw9d.435 291$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.goo gle.com...
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*******@hotm ail.nospam.com> wrote in message news:<iFRad.459 378$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.goo gle.com...
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*******@hotm ail.nospam.com> wrote in message

news:<qKw9d.435 291$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.goo gle.com...
> 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.goo gle.com...
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*******@hotm ail.nospam.com> wrote in message

news:<iFRad.459 378$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.goo gle.com...
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*******@hotm ail.nospam.com> wrote in message

news:<qKw9d.435 291$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.goo gle.com...
> > 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*******@hotm ail.nospam.com> wrote in message news:<kC9dd.154 318$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.goo gle.com...
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*******@hotm ail.nospam.com> wrote in message

news:<iFRad.459 378$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.goo gle.com...
> 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*******@hotm ail.nospam.com> wrote in message news:<qKw9d.435 291$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.goo gle.com...
> > > 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
1867
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
5396
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. Happy New Year -- Gerry
5
16909
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 server and recives data from server. If server application shuts down client immedeatly recieves disconnection or exception, but im not able to detect if...
5
15361
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
4752
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
358
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
2683
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, and also from a file conatining the commands 2- does the redirection of the input and output from and to files. 3- retrieve the environment variables...
1
3515
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, @filesize("$userPath/xml/redirect.xml")); @fclose($fileID); // XML PARSE
1
4666
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 thread: http://bytes.com/topic/net/answers/828133-c-net-detecting-socket-closed I have managed to detect disconnect by the client when the client...
0
7468
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7401
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7757
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4945
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3443
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1884
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 we have to send another system
0
704
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.