India Broadband Forum


Auto Net Connect at 2.00 am using Task Scheduler

This is a discussion on Auto Net Connect at 2.00 am using Task Scheduler within the BSNL broadband forums, part of the Broadband Internet Service Providers category; Hey Guys, After fiddling with the various night download managers that are available in this forum, I got totally confused. ...

Go Back   India Broadband Forum > Indian Broadband Forums > Broadband Internet Service Providers > BSNL broadband

India Broadband Forum


BSNL broadband Bsnl broadband internet connection and modems, routers and other bsnl dataone related issues can be discussed here.

                      

Reply

 

LinkBack Thread Tools Display Modes
Old 01-28-09, 12:29 PM   #1
Junior Member
 
udayan's Avatar
 
Join Date: Dec 2008
Location: Within Earshot
Posts: 82
Rep Power: 1
udayan is on a distinguished road
Default Auto Net Connect at 2.00 am using Task Scheduler

Hey Guys,

After fiddling with the various night download managers that are available in this forum, I got totally confused. Most of them are for those internet connections which are "Always On". In such cases the router needs to be rebooted at 2 am to start a new session. But my connection is PPPoE with authentication (i.e. you have to submit username and password each time you want to connect). For this kind of router configuration, reboot is not necessary. You simply have to logout and login at 2 am again to BSNL servers to start a new session. After some trial and error I came upon the following solution:

My Setup: Laptop running Vista. Siemens ADSL router with WiFi. I have named my local WiFi connection as "Wireless" and is setup to connect automatically whenever the router is in range (You can enable this in the properties page of the wireless connection). My internet connection is named "Broadband" and requires input of username and password. I have configured it to redial automatically (say 20 attempts with 3 second intervals between attempts) whenever the line gets disconnected.I have also enabled "Save username and password only for me" on the dialer UI.

The Process:

1) Open Windows task scheduler (from System Tools) and create a new
task called "WakeUp".
Trigger it to start at 2.00 am everyday. Under the Actions tab select
"Start a Program" and click on browse for Program script.
The Windows/System32 directory will open. Find an executable called
"winresume" and select it. After that the program script would look like
this "C:\WINDOWS\System32\winresume.exe".
Under the Conditions tab select "Start the task only if computer is on
AC Power". I have selected this action because I'm not on UPS. In
case of a power cut, my router would be off and I would'nt like my
laptop to wake up on battery power. For those who have UPS etc.
they may modify this option.

2)Create another new task called "Connect Broadband". Select "Run with
highest priveleges" under General Tab. Trigger it to start at 2.05 am
daily. I have kept a 5 minute window between "Wakeup" and "Connect
Broadband" to give sufficient time for the wireless connection to be
established after the computer wakes up. (This may take more then a
minute, I've noticed)
Under the Actions tab select "Start a Program" and click on browse for
Program script.The Windows/System32 directory will open. Find an
executable called "rasdial" and select it. In the arguments field type in
as follows: broadband username password. Here broadband is the name
of your broadband connection. Username and pass word are the ones
which you use to login. After this the program script would look like
"C:\WINDOWS\System32\rasdial.exe broadband username password"
Under the Conditions tab enable "Start only if following network
connection is available" and choose the name of your wireless network
just below. This ensures that broadband will connect only if the wireless
connection has been priorly established. For ethernet users, similar
modifications can be made.
Under the Settings tab enable "Run task as soon as possible after a
scheduled start is missed".


3)Create another new task called "Disconnect Broadband". Select "Run
with highest priveleges" under General Tab. Trigger it to start at 7.55
am daily. Under the Actions tab select "Start a Program" and click on
browse for Program script.The Windows/System32 directory will open.
Find an executable called "rasdial" and select it. In the arguments field
type in as follows: broadband /disconnect. Here broadband is the name
of your broadband connection.(There is a space between broadband
and the slash" After this the program script would look like
"C:\WINDOWS\System32\rasdial.exe broadband /disconnect"
Under the conditions tab enable "Wake the computer to start this task".
(This is unnecessary but just as a precaution).
Under the Settings tab enable "Run task as soon as possible after a
scheduled start is missed" and also
"If the running task does not end force it to stop"(These are
precautions to ensure that BB disconects)

Usage:

1)Start your computer and router, say at about 10 pm. Run utorrent(or whatever) and load up a few torrents.Logoff the internet. Put your laptop to sleep(not shutoff or logout)but keep the router switched on.

2)At exactly 2.00 am the laptop will wake up and will establish wireless connection with your WiFi Router. This will certainly be established within 2 minutes.

3)At exactly 2.05 am the computer will check whether your wireless has been established. It will then try to connect to BSNL broadband using username and password. It it connects, its fine. If not, the dialer application will attempt to reconnect by itself at least 20 times after 3 second intervals.This is also true if the line drops at any other time before 8 am (when you are sleeping).

4)At exactly 7.55 am the computer will disconnect from BSNL broadband.

Note:
Instead of using the above mentioned "disconnect" script, you may also use a freeware called Auto Net Disconnector which cuts your internet connection at the scheduled time and also switches off your computer. You will find it here -- Auto Net Disconnector Download - Softpedia

I have used the above process for a couple of days and found it ok. I felt that when there is a built in task scheduler why not try to use it. The process I have described is for a wifi router and laptop. I think it can also be applied to desktop PCs and normal routers with a few modifications. However I don't know whether it will work with Win XP. I am no computer expert, just like fiddling a bit with system settings and all...therefore inputs and suggestions will be helpful and are most welcome.

Last edited by udayan; 01-28-09 at 12:57 PM.
udayan is offline   Reply With Quote
Old 01-28-09, 12:42 PM   #2
Amor vincit omnia
 
Join Date: Dec 2007
Posts: 2,682
Blog Entries: 4
Rep Power: 4
cool_techie_tvm will become famous soon enough
Default

Thanks for the info. I have always wondered about scheduling in Windows Vista in bridged mode* and router mode. I have saved the link for future reference.

*When u dial the connection manually it is known as bridge mode. When the modem dials the connection automatically it is termed as pppoe/router mode.
cool_techie_tvm is offline   Reply With Quote
Old 01-28-09, 01:24 PM   #3
saurav_k
Guest
 
Posts: n/a
Default

thanks a lot for the info ... repo added ...
  Reply With Quote
Old 01-28-09, 01:50 PM   #4
Junior Member
 
udayan's Avatar
 
Join Date: Dec 2008
Location: Within Earshot
Posts: 82
Rep Power: 1
udayan is on a distinguished road
Default

Quote:
Originally Posted by saurav_kataruka View Post
thanks a lot for the info ... repo added ...
Thanx man !
BTW why is ur signature blacked out ?
udayan is offline   Reply With Quote
Old 02-02-09, 11:21 AM   #5
Junior Member
 
Join Date: Jul 2008
Location: madurai
Age: 19
Posts: 15
Rep Power: 2
vigneshwaran is on a distinguished road
Default

Thanks.. I've been using Auto Power-on and Shut down to do the trick.
It's paid software though.
vigneshwaran is offline   Reply With Quote
Old 02-02-09, 02:05 PM   #6
Gold Member
 
Join Date: Apr 2007
Location: Jaipur
Posts: 775
Blog Entries: 1
Rep Power: 3
Gary4gar is on a distinguished road
Default

Thanks man!
Reps Added!
Gary4gar is offline   Reply With Quote
Old 02-02-09, 03:27 PM   #7
saurav_k
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by udayan View Post
Thanx man !
BTW why is ur signature blacked out ?
oh .... it was blacked out coz i did it. its ok now
  Reply With Quote
Old 05-08-09, 04:05 PM   #8
Junior Member
 
Join Date: Oct 2008
Location: manjapra
Age: 21
Posts: 26
Rep Power: 2
smartkc is on a distinguished road
Thumbs up

thnx man
smartkc is offline   Reply With Quote
Old 05-08-09, 04:25 PM   #9
meetdilip
Guest
 
Posts: n/a
Default

If you want to automate Night Unlimited Download process, try this

http://imran-utilities.synthasite.com/
  Reply With Quote
Reply

Tags
200, auto, connect, net

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Any way to auto connect? mickey Nokia 4 01-11-09 11:14 AM
Auto turn off ?? thats_me Nokia 0 10-08-08 09:02 PM
how can set modem to auto connect??? neil_x.rated BSNL broadband 3 03-06-08 12:19 PM
Auto dial up. agent BSNL broadband 1 11-10-07 12:33 PM
Auto Pc/connection On ashwinsid BSNL broadband 7 09-03-07 01:28 PM


All times are GMT +5.5. The time now is 05:01 AM.


India Broadband Forum