Tom,<div><br></div><div>If your budget extends to $109 or so, there are commercial solutions that would likely meet your need.  We use a Web Power Switch from Digital Loggers Inc. at several sites.  They have an auto-ping feature which can power cycle specific outlets (up to 8 separately addressible outlets) under various conditions.  See:</div>
<div>   <a href="http://www.digital-loggers.com/autoping.html">http://www.digital-loggers.com/autoping.html</a></div><div><br></div><div>If you connected the Web Power Switch on the downstream side of your router and had it pinging an address on the upstream side of your radio, then loss of connectivity could easily be programmed to power cycle both the router and the radio.<br clear="all">
<div><br clear="all">Thanks,<br>Brough Turner<br><br>Mobile: +1 617 285-0433   Skype: brough</div><div><span style="color:rgb(136, 136, 136)"><a href="http://broughturner.com/" target="_blank">Website</a> | <a href="https://plus.google.com/102447512447094746687/posts?hl=en" target="_blank">Google+</a> | <a href="https://twitter.com/#!/brough" target="_blank">Twitter</a> | <a href="http://www.linkedin.com/in/broughturner" target="_blank">LinkedIn</a> | <a href="http://www.facebook.com/brough.turner" target="_blank">Facebook</a> | <a href="http://blogs.broughturner.com/" target="_blank">Blog</a> | <a href="http://www.netblazr.com/" target="_blank">netBlazr Inc.</a></span></div>
<div><br></div><br>
<br><br><div class="gmail_quote">On Mon, Oct 24, 2011 at 11:43 AM, Tom Metro <span dir="ltr"><<a href="mailto:tmetro%2Bhhacking@gmail.com">tmetro+hhacking@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Tom Metro wrote:<br>
> Here's the challenge: I have available an ASUS RT-N16 router running<br>
> Tomato USB firmware attached to a fixed wireless receiver, and I'd like<br>
> to have a watchdog timer that resets both when there is a loss of<br>
> Internet connectivity.<br>
<br>
</div>A few years ago I searched for a commercial solution for this and didn't<br>
turn up much useful. (A few PCI cards designed for servers. Nothing that<br>
would work with a router.)<br>
<br>
I just ran another search and uncovered that Tripp Lite has a bunch of<br>
models that include a "Watchdog system service to restore operation to<br>
locked equipment through soft reboot of application/OS or hard power<br>
off/on reboot of connected equipment - ideal for unattended kiosk<br>
applications."<br>
<br>
Information about it is sparse, but they have some packaged software to<br>
support it (for Windows):<br>
<a href="http://www.tripplite.com/en/products/model.cfm?txtModelID=2590" target="_blank">http://www.tripplite.com/en/products/model.cfm?txtModelID=2590</a><br>
<br>
I called them and confirmed the hardware does implement a watchdog<br>
timer. It's just a matter of getting the necessary technical info to<br>
create some software to talk to it from the router. By this point I was<br>
over the heads of the 1st and 2nd level support people, so they asked<br>
that I email a description of the info I wanted and they'd research it<br>
and get back to me. Hopefully it isn't information they keep proprietary.<br>
<br>
Some of their inexpensive models (like the INTERNET350U <$50) support<br>
this. According to the marketing info it uses an "HID-compliant USB<br>
interface." I see both NUT (<a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a>) and libhid<br>
(<a href="http://libhid.alioth.debian.org/" target="_blank">http://libhid.alioth.debian.org/</a>) have been ported to similar router<br>
platforms.<br>
<br>
I expect the general UPS driver won't help with the watchdog feature,<br>
but the source could be illustrative.<br>
<div><div></div><div class="h5"><br>
 -Tom<br>
<br>
_______________________________________________<br>
Hardwarehacking mailing list<br>
<a href="mailto:Hardwarehacking@blu.org">Hardwarehacking@blu.org</a><br>
<a href="http://lists.blu.org/mailman/listinfo/hardwarehacking" target="_blank">http://lists.blu.org/mailman/listinfo/hardwarehacking</a><br>
</div></div></blockquote></div><br></div>