Automatic cable modem power cycling
posted Jun 22nd 2007 5:44pm by Will O'Brienfiled under: misc hacks, peripherals hacks

If you’ve got a cable modem, you know the drill when it goes offline. Unplug it, wait 30 seconds, plug it back in, reset your dhcp request. I’m pretty sure that [brian] mentioned this in a comment a while back, but now he’s written it up. He’s using a cron job on his linux box to check the internet connection, and if the test fails, power cycle the hardware with some X10 hardware and a little scripting. (Just don’t tell your friends or they’ll be outside trying to guess the code.)





I actually did something similar some time ago with my ancient 3Com homeconnect DSL modem. The device has a serial port that was password protected; a simple hardware hack to get the password and a serial cable connected to the linux box serves the same purpose. With the added bonus that I set up a simple web page to check the modem’s status, current link rate and the option to manually resync the link or reboot the modem.
Luckily when it dies, the link goes down but the software is still running so the serial interface is sufficient.
I wrote up the hardware bit ages ago if anyone’s got one of these from their provider and wants to get the password:
http://404.gotroot.ca/index.php?/archives/10-3Com-HomeConnect-ADSL-Password-Recovery.html
Posted at 6:58 pm on Jun 22nd, 2007 by error404