- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
So you mean you have a computer running only to reboot the other computer ? Sounds like a big waste of energy... :/ But I like the macgyver wire stuff
Admin
Just be careful not to run 1.21 gigawatts through the thing, or you might send all of your equipment back to 1985 (which, from the sound of things, may be 'when' it is from).
Admin
Parallel ports are sold as General-Purpose-IO-Ports (GPIO) with industrial PCs these days. After all they're just as good as any of the GPIO-ports of any micro-controller. Together with using sound-cards as analog outputs they provide the base to recycle any old desktop or server into a very, very powerful toy for any real-time application.
Admin
Ow. That hurt.
Admin
Admin
despairs at the state of humanity
Admin
The sad part is, we actually used a setup similar to this where I work. We plugged four external modems into a mostly-dead UPS (it would no longer charge a battery) and wired up a serial cable to a solid-state relay that would flip the power switch on the UPS whenever DTR was enabled on the serial line. The modems sometimes would fail and need to be power-cycled, and it was a lot easier to VPN into the network and click "Cycle Modems" than to drive all the way to the office and cycle them by hand.
Admin
Version 1 of the "Friendly URL" function. Guess what the following T-SQL prints out: PRINT REPLACE( N'Meaninglessness', N'ß', N'B')
Obviously, lesson learned.
Admin
Admin
np: The Notwist - Hands On Us (The Devil, You + Me)
Admin
You are missing the required bailing wire! Basically, just replace the contacts with some bailing wire and you'll have a true solution!
Admin
That's a bit microsoft-word-y, isn't it?
What, "Computers suck"? ;-)Admin
You really should consult some hardware designers - inductors have the bad habbit of "charging" up to a lot of volts after they are switched off - this could kill your parralel board or your computer - if nothing else you should add another transistor to do the switching and a clamp diode as well as some power supply other than the parallel port.
Admin
These ingenious solutions make me think of going all the way through, and set up a PLC controlling a solenoid put in front of the "reset" button. When the ping fails, send the appropiate signal to your PLC, and voila! Reset server!
Also, I'd wrap it all up inside a nice humanoid figure and put a USR logo on it. ;)
Admin
Admin
uhm, 8? try 12. and no card needed most of the time. plus usb.
Admin
(I'm a hardware engineer, I just do software/firmware as my day job...)
PS: my snide comment replying to some guy who suggested a direct connection above was mostly because that's pretty much forcing 5 or 12 volts (depending on design) from the CDROM drive motor controller straight into a logic input + pullup resistor that's expecting an open/closed connection. Not cool at all, which is why the relay and MOSFET are needed.
Admin
Yeah, I can see this failing when the wires get bent too far out of shape from being forced past eachother like that, or by being brushed against by a random piece of clothing passing by.
Admin
That was supposed to be a reply to this:
Admin
The safest method would be a optocoupling transistor. You can drive the LED with either a serial port's DTS line (add a 510 Ohms resistor) or one of the parallel port's lines (280 Ohms resistor). Use the transistor output for a open collector on the reset switch.
Using a NE555, three resistors and a capacitor you can build a simple watchdog timer. Set it in a way, that after 5 seconds without reseting the watchdog timer, the system reset is triggered. Then a little app (could be even a shell script) that sends a watchdog reset to /dev/lp0 every second. Add some capacitor, discharge resistor and rectifier diode into the line from the port line, so that a static line level wouldn't keep the watchdog reseted.
Admin
Did none of you guys ever hear of a power strip that runs linux? A hosting company I was with was using it, you could telnet to it and power cycle any port.
I bet if you tried hard enough you could write a script on it that would cycle the pc if it couldn't ping it.
I mean seriously...
Admin
Look, the operative word here is CHEAP. All the components here were obtained at NO cost to the maker. The wire is obviously some left over telco wire, and the computer is some rag-tag thing left over from an old upgrade. The total budget for all of this is NOTHING (zero, nada). That is what makes it so good. If there were a larger budget, the whole thing wouldn't be necessary. Also being no cost, it could be done without any approvals, probably after hours.
THAT is the beauty of this!
Admin
This website is the main reason I am doing a degree in astrophysics
Admin
Pedantry ahead...
As someone else pointed out, don't forget the diode across the relay coil. 1N4148 should work fine, and connect the striped end to the supply voltage. You're not using them to parasitically power a serial device? Bleh. Cathode's the end with the stripe. If you connect the stripe end to the lower voltage (probably the parallel port pin), the diode will conduct instead of the relay and the smoke comes out.Also, the body diode in a MOSFET is a side effect of the way they're built, and isn't really that good for protection. They're generally not very fast-recovery.
What wire is this? The CD drives I've messed with were pretty well sealed up due to the laser. No easily-accessible eject signal. DC-blocking caps. Decoupling caps are the ones connected across the power supply so the supply voltage stays put when all those transistors yank on it. This is the best idea in the bunch. No moving parts and you don't have to share grounds. I like the spirit of this, but a 555 circuit is complicated enough to be a project in itself, and your system will have to start hitting that watchdog before the 5 seconds is up after boot. I haven't seen anything with a BIOS boot that fast that wasn't some semi-custom embedded hardware.Admin
Admin
Admin
Run different server apps on both computers and have each computer reboot the other if it fails.
Admin
We use the terms in this manner to disambiguate these specific uses. There's already enough stuff in electrical engineering to make you go mad; creating ambiguity isn't going to help.
CAPTCHA: "refoveo"... where do you get these?
Admin
I see an infinite row of old-pc-with-wired-cd-tray robots, each guarding its predecessor...
Admin
The old fashioned way won't make it to dailywtf
Admin
"A little more complex and ... a little more elegant".
No, we don't do any oxymorons here, nosir.
Admin
reset button is similar to a soft reset, in that it doesn't necessarily reset peripheral cards. i had a coprocessor card that needed a power cycle when the POS locked up. it laughed at a software reboot, didn't even blink at the reset button. your kneejerk response could have been reworded to be informative, instead of just raining on the guy's idea. did you ever consider the merit in trying it first?
:loop ping wireless.address | find "100%" if errorlevel 1 goto pinged shutdown -r -f :pinged ping -n 10 127.0.0.1 goto loop
Admin
Admin
Admin
On most x86 machines, reset immediately power cycles the machine. Power off can be customized through the bios (depending on the bios) to either hard shutdown or soft shutdown.
Admin
(Yes, pet peeve!)
Admin
Virtually all new servers come with with out-of-band management console that accepts SNMP or IPMI commands to restart the box.
Admin
Doesn't it reset it twice? Once when the tray opens and once when it closes? Or do you keep the tray open until the next time its services are called upon?
Regardless... a very clever solution. I wish I had thought of something similar several years ago when I couldn't get that remote power switch approved. At least I got paid while driving in.
Admin
I had a similar problem a while ago. I had a homemade Debian Linux router/general server with wired and wireless network. Every once in a while, the wireless card would cause the system to kernel panic, and I had to manually reset. This CD-ROM solution would have worked fine, but I ended up just replacing the official drivers with an open source version (which had its own set of problems, but none of them included kernel panic).
Admin
that should be find "100%%"
otherwise the batch file only issues a 'find "100"' command.
a single % evaluates to a null command line argument when run in a batch file.
Admin
The other question is... why?
No, seriously, why?
Why not PRINT REPLACE( N'Meaninglessness', N'ß', N'ss') ?
Admin
seems like you're not THAT short of time over there, champ
Admin
Admin
Actually, if you use duct tape to hold this thing together, then you have to use bare wires. If you get more advanced and use tie wraps, then you are allowed to use a button.
Admin
Admin
Take that, VMWare Corporation!
Admin
"I'm good enough, I'm smart enough, and doggone, people aren't really people; just a conglomeration of individuals."
Apologies to Mr Smalley, but I don't see this one flying off the shelves any time soon.
Admin
That "old desktop PC" that "has performed flawlessly for 9 months" probably draws around 100W when idle... That's almost $100 wasted in electricity costs over 9 months assuming average SoCal prices of $.14/kWh.
Buying a remote-enabled power switch would have been cheaper overall !!
Admin
Right. so your plan is to power a relay directly from the parallel port? why not just use a simple transistor.. cheaper too
Admin
...and cron v0.001 was born