Monday, January 11, 2010

Restarting Your Modem / Router Automatically

Restarting Your Modem / Router Automatically

Nowadays exceeding the download limit is a major concern for the broadband users especially in volume based plans. Even most of the ISP’s provide free download period for the users; the inaccurate calculation of the free download period can impose a heavy toll on the users. It is also very inconvenient for the users to start downloads during the midnight.

The best way to overcome this problem is to reset your modem just before starting download in the free download period.

Here I am narrating two methods to overcome these problems. The combination of these two methods will be most effective to overcome inaccurate free download calculation.

It is always safe to start the download only after at least 10 minutes after the commencement of the free download period.

1. Resetting you modem using AutoHotKey script

AutoHotKey is free opensource macro creation toll that is very simple and easy to use. the autohotkey complier can be downloaded from following location. It is of very small size (barely 1.5 MB). Download the AutoHotKey and install it to your system. Type the following script into notepad and save it as .ahk file. Once the ahk file is created it can be executed directly by double clicking. User can create exe files from the script by right clicking the ahk file and selecting compile option. These exe files can be executed even in the systems where AutoHotKey program is not installed. Enter the following script into the notepad and save it as .ahk file after installing autohotkey.

*. Your modem should support telnet access

/////////////////////////////////////////////////////////////////////////

Run telnet.exe

WinWait C:\WINDOWS\system32\telnet.exe

WinActivate C:\WINDOWS\system32\telnet.exe

Send o{SPACE}192.168.1.1{ENTER}

Sleep 2000

WinActivate Telnet 192.168.1.1

Send admin{ENTER}

Sleep 2000

WinActivate Telnet 192.168.1.1

Send admin{ENTER}

Sleep 2000

WinActivate Telnet 192.168.1.1

Send reboot{ENTER}

Sleep 64000

WinActivate Telnet 192.168.1.1

Send user logout{ENTER}

Sleep 2000

WinActivate Telnet

WinClose Telnet

/////////////////////////////////////////////////////////////////////////////////////////////

Rebootrouter source script

Rebootrouter EXE File

The actions performed in the above script is quite simple it as narrated below.

  1. Starting Telnet program to access the router remotely
  2. Entering the address of the router ie. 192.168.1.1 (If there is any change, correct it accordingly)
  3. Enter user name and password here it is admin/admin
  4. Then issuing the reboot command to restart the router. For some routers “restart” command is used to restart the router so please accordingly.

I have included an exe version of this script with this page. Those who are not interested in coding can use the exe version of this script. If any problems occur please inform me and I am glad to solve your issue.

Rebootrouter source script

Rebootrouter EXE File

2. Hibernating and resuming the System automatically

The user can hibernate the system and wake up the system during the free download period. This not only saves power but also lot of time of yours. The user can hibernate and wake the system using a free utility program called WakeupOnStandBy . The user can simply schedule the system wakeup and standby using this free software. You can refer this page to know the steps to schedule the WakeupOnStandBy.

http://www.dennisbabkin.com/php/docs.php?what=WOSB

The combination of the above two program can be used to handle the free download period efficiently. ie first hibernate and wakeup system using WakeupOnStandBy and then restarting the modem by executing the script narrated above using windows scheduler.

If you got any problems in executing the above said steps please revert. Feed backs are appreciated.

Rebootrouter source script

Rebootrouter EXE File