hardware question
Jun. 12th, 2012 01:50 pmso I've decided I need a relay. The ideal/stupidest/most-versatile version I can think of would be a power strip that
Embellishments would include being able turn the various outlets on and off separately and the usual array of safety features like having the USB circuit optically isolated, so that if Something Bad happens with the wall power or one of the devices plugged into the strip (develops a short or whatever), nothing bad happens to my computer via the USB line.
I cannot imagine that I'm the first person ever to have thought of this. And, given the vagaries of certain devices I've had to deal with, notably DSL modems, that just periodically need to be power cycled just because, I cannot imagine how any IT shop or network outpost would retain its sanity without something like this to give them the ability to power cycle things remotely.
I know it has to exist. My only worry is that it's so simple it's only available as part of some more complex, hugely expensive thing that I don't need.
So what is it called?
- plugs into the wall
- has one or more outlets on it, and
- has a USB cable coming out of it
Embellishments would include being able turn the various outlets on and off separately and the usual array of safety features like having the USB circuit optically isolated, so that if Something Bad happens with the wall power or one of the devices plugged into the strip (develops a short or whatever), nothing bad happens to my computer via the USB line.
I cannot imagine that I'm the first person ever to have thought of this. And, given the vagaries of certain devices I've had to deal with, notably DSL modems, that just periodically need to be power cycled just because, I cannot imagine how any IT shop or network outpost would retain its sanity without something like this to give them the ability to power cycle things remotely.
I know it has to exist. My only worry is that it's so simple it's only available as part of some more complex, hugely expensive thing that I don't need.
So what is it called?
no subject
Date: 2012-06-12 10:13 pm (UTC)no subject
Date: 2012-06-12 11:09 pm (UTC)I suppose my real question is: What does one actually use in the machine room, when, say, you have a bank of modems, routers, DSLAMS, whatever, that periodically get wedged (*) and you just want to be able to power cycle them remotely. I'm guessing you're not paying $70 per modem. And I'm also guessing you're not soldering your own circuit boards together to attach USB relays to them. That's what I've been finding thus far.
(*) and yes I know they're really not supposed to get wedged, and the Correct thing do is debug them (**) or buy new ones ($), but if they work Well Enough then why bother...
(**) which is kind of hard to do on DSL modems that are basically black boxes and where the problem is just as likely to be at the other end of the phone line anyway
no subject
Date: 2012-06-13 01:38 am (UTC)... in other words just sufficiently weird that the Joe Consumer device is probably not going to do the Right Thing if all I can tell it to do is "powercycle" or if it insists on following its own watchdog script which is designed around rebooting servers and can't check for the things I want it to
What's annoying is I can do the software part; I just need the stupid device and don't want to spend more money than I have to on somebody else's b0rken UI (and then having to work around it).
no subject
Date: 2012-06-13 02:39 am (UTC)based on this looks pretty dirt simple.
$25 plus enclosure plus the effort of cutting apart an extension cord, slicing one of the wires, and hooking the two ends up to the relay.
so what goes wrong here?
no subject
Date: 2012-06-13 02:43 am (UTC)something like this.
no subject
Date: 2012-06-13 03:01 am (UTC)no subject
Date: 2012-06-12 11:16 pm (UTC)In the labs at Microsoft they were called "DRAC"s -- gave you a web-based interface to all the power supplies in a rack, with an opportunity to power down, power up, or power cycle each port.
no subject
Date: 2012-06-13 01:12 am (UTC)Also way too spiffy (http server and password features are massive overkill; I just want to be able to locally say "ON" or "OFF" down a serial line from a perl script... though I suppose a perl script can issue its own GET commands with the security cookies or Authentication: header set correctly, and then parse/screenscrape the responses, but argh...).
DRAC (which Wikipedia tells me is Dell Remote Access Controller) seems to depend on the target machine implementing some particular protocol on its motherboard. No good for controlling a DSL modem.
no subject
Date: 2012-06-13 02:51 am (UTC)For “what is it called”, one could look at this as a home automation problem — such systems include computer interfaces. (Perhaps you should ask Kenny!)
The one Thing I Know About That Is Vaguely Relevant is the PowerSwitch Tail which is intended for controlling line-voltage devices from microcontrollers and such; it's basically a relay in a nice box with isolation. (I've never used one and I have no affiliation; I just ran across it in a context now forgotten.) It isn't USB but you could perhaps wire it up to one of the control lines on a serial port or USB-serial adaptor — or a good ol' parallel port if you have one of those.
no subject
Date: 2012-06-13 03:34 am (UTC)