Author Topic: Rebooting router/modem  (Read 1392 times)

electroman

  • Newbie
  • *
  • Posts: 17
Rebooting router/modem
« on: October 28, 2009, 06:09:00 PM »
Hi,

I am using a wireless modem with router as my point of ethernet connection in a remote monitoring application (no land-line) using the IO-204.  I am not on-site to supervise the system and it must run automatically without long term dropouts.  The problem is that every now and then the modem hangs and I loose connection and it does not auto-reconnect.  I am not sure why but I know this can happen periodically even with land-line connected modem/routers.  The simplest solution is to switch power to the modem/router off wait a minute then power on again.  Wireless connection is re-established OK every time I have done this. My question is, what is the easiest way to have the system reboot itself without manual intervention?  I have a microcontroller connected to one channel through a serial smart board and I can easily switch the power to the modem/router on and off using a pin on the micro connected to a MOSFET. One possible solution I have thought of is to use a serial web service API to request every 10 minutes the  GMT time.  If the reply is not received within a couple of minutes then the mico will power the system off then on again.  Is this the best way to do it or is there a simpler solution?

Thanks

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: Rebooting router/modem
« Reply #1 on: October 28, 2009, 07:08:50 PM »
We are releasing some features that will be able to help. The IO-204 will get a new firmware that allows for on board logic. This means the IO-204 will be able know when it's offline or online and have rules and actions based off that status. Once this gets released (less than a month away) you will have no trouble restarting a modem by the IO-204 deciding when to turn on and off a relay. Please stay tuned!
ioBridge Support
Community Team

electroman

  • Newbie
  • *
  • Posts: 17
Re: Rebooting router/modem
« Reply #2 on: October 28, 2009, 07:19:37 PM »
Thanks for the prompt reply.  I look forward to the new firmware, it sounds like just what I am after.  Keep up the good work.

jason

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • ioBridge.com
Re: Rebooting router/modem
« Reply #3 on: October 28, 2009, 07:50:56 PM »
If you already have a microcontroller and MOSFET involved, you may be able to utilize the digital output failsafe settings.  You could set up one of the output pins to go high when the IO-204 gets knocked offline and trigger a modem/router power reset.
Jason Winters
ioBridge Developer

electroman

  • Newbie
  • *
  • Posts: 17
Re: Rebooting router/modem
« Reply #4 on: October 28, 2009, 09:24:57 PM »
Thanks Jason.  I should have thought of that.  I am still getting up to speed with all the features.  I can use the micro to poll one of the failsafe digital outputs and reboot whenever it goes high.



nick

  • Full Member
  • ***
  • Posts: 174
Re: Rebooting router/modem
« Reply #5 on: October 28, 2009, 11:27:01 PM »
You need to put in some sort of delay so that once you reboot you give it a minute or so to come back up, otherwise it will go into an endless loop.

eman5oh

  • Newbie
  • *
  • Posts: 22
Re: Rebooting router/modem
« Reply #6 on: October 30, 2009, 02:22:55 PM »
We are releasing some features that will be able to help. The IO-204 will get a new firmware that allows for on board logic. This means the IO-204 will be able know when it's offline or online and have rules and actions based off that status. Once this gets released (less than a month away) you will have no trouble restarting a modem by the IO-204 deciding when to turn on and off a relay. Please stay tuned!

This sounds great. Does this mean that actions like opening and closing relays based on analog inputs could be carried out by the io204 regardless of a network connection?

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: Rebooting router/modem
« Reply #7 on: October 30, 2009, 03:36:16 PM »
Yes!
ioBridge Support
Community Team

zedman

  • Newbie
  • *
  • Posts: 8
Re: Rebooting router/modem
« Reply #8 on: January 20, 2010, 09:02:47 PM »
We are releasing some features that will be able to help. The IO-204 will get a new firmware that allows for on board logic. This means the IO-204 will be able know when it's offline or online and have rules and actions based off that status. Once this gets released (less than a month away) you will have no trouble restarting a modem by the IO-204 deciding when to turn on and off a relay. Please stay tuned!

Has this firmware upgrade occurred, and is it available for download?

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: Rebooting router/modem
« Reply #9 on: January 20, 2010, 11:05:16 PM »
Yes, it's called C4. If you click on your settings settings tab, it will tell you the current firmware and if there is an upgrade available.
ioBridge Support
Community Team

scoopjones

  • Newbie
  • *
  • Posts: 5
Re: Rebooting router/modem
« Reply #10 on: December 27, 2010, 11:46:25 PM »
Simplest solution I've found is a cheap lamp timer. Set it to turn the power off for a few minutes and back on every night when it's not being used. I do this for some cheap web cams I have set up at our house in the mountains. They sometimes crash if the power gets glitchy, but within 24 hours, they'll be reset.