User Guides The Perfect BSNL Night Unlimited Solution

Here is the trick which i have almost perfected.

The Scenario.

As we all know the night unlimited starts from 2:00 AM and remains active with 8:00 AM. But the catch is that you need to disconnect and reconnect at 2:00 and 8:00 for the billing software of BSNL to register your free night unlimited downloads correctly. For this the best solution is to physically turn off and then turn on the modem @ 2:00 AM and again @ 8:00 AM. But that’s too much of a pain and also "What are comps for!!! ". The other way to do it is logging on to the router and then rebooting it @ 2:00 AM and 8:00 PM. As we all know the Beetel 220BX does reconnect automatically if you set it on the PPPoE mode. We will try to do automate the second process so that we can have our peace of mind during late nights.

The Hardware, The Software and The Settings:

Hardware:

Beetel 220BX Modem
Netgear WGR614 Wireless router
I am making this a little tricky for the simple reason that everybody today has a Wi-Fi router connected to their ADSL modems for ease of use with Notebooks. So the automation has to be done in such a way that all the aspects are taken care of.

Software:

Mozilla Firefox Browser
Notepad :p
utorrent

Settings:

220BX Modem having IP as 192.168.1.1
Router having a static/dymaic IP between 192.168.1.2 – 192.168.1.255
Desktop/Laptops taking Dynamic IP’s from the router between 192.168.1.2 – 192.168.1.255
(Note that if you are not having a Wi-Fi router in between then also it does not make a difference. Only difference will be your Desktop will have a Static IP between 192.168.1.2 - 192.168.1.255. You have dynamic IP’s but I’ll be testing the same with static IP’s.)

Procedure:

First things first. Fire up utorrent and then click on Options>Preferences>Scheduler
Next click on enable Scheduler and then colour the slots between 2:00 – 8:00 to dark green and rest as white(Where Dark Green is full speed and White is Turn off Downloading).
Click on ok. You should see that all the downloading has been stopped (Considering the time is not between 2:00 and 8:00)
Now your utorrent is scheduled.

Next step is to fire up Notepad. Put in this line in the notepad
Code:
 C:\Progra~1\Mozill~1\firefox.exe -new-tab [URL]http://admin:password@192.168.1.1/rebootinfo.cgi[/URL]
Where your username and password for the modem is admin and password. If not then change the username and password with the ones you have saved in your modem.
Save the file as Reboot.bat at a convenient location. Best place is directly in C:\ or your Windows installation partition.
Run it. For the first time your browser will give you an alert message that you are trying to logon to a website with the admin username. Click on ok. Wait for around 1 Min. Your modem should reboot during this time. If not then there is something wrong somewhere. Check everything from the beginning again. And do not proceed further till your modem starts rebooting.

Now that your modem has started rebooting all you need to do is run this file at the desired time of yours. My guess is that about 2:05 AM is a good time to run this file, and again at 7:55 AM. The reason for that is that your PC time is not in sync with BSNL server’s and the 5 minutes rush will save you from those embarrassing bills.
To automate the whole process you need windows task scheduler. While writing this guide i am giving a example of Windows Vista OS and i guess Windows XP will work the same ways. I will try this same thing again at my home and post back if there are any necessary changes which have to me made.

Now click on Start>All Programs>Accessories>System Tools>Task Scheduler
In the Task scheduler on the right hand side in the actions pane click on “Create a basic taskâ€
A new window will pop up. Here in the name field just write “Modem Reboot at 2.05†and in the description field just write â€Take that you BSNL Suckersâ€.
Click on next and select Daily.
Click on next and select the start date as the present date and time as 2:05 AM (Don’t mess up the time. Don’t touch any thing else and click on next.
Click on start a programme and click on next. In this window browse for the reboot.bat file which we have saved earlier in the c:\ or any other desired location where you had saved it earlier. Click on next and then followed by finish.
Now repeat the entire task scheduler process from the beginning for rebooting the modem @ 7:55.
And now you are done. To do a test run you can either change your system time to 2:04 or create a test task scheduler 2 minutes from the present time and run it. But don’t forget to revert back the changes.
All this is fairly simple and almost foolproof. Just to be extra sure you can make the modem reboot @ 2.15AM and schedule a shutdown of windows @ 8:00 AM in the morning. Hopefully this trick should work with every other modem which is available in the market. If not then you need to find out the command to reboot the modem and put it in the bat file.
I found this single command to be a blessing in disguise and hopefully this guide will help quite a few of you in avoiding some billing nightmares.
Switch
Notes:
This guide assumes your modem is set to PPPoE mode and you don’t need to dial manually to connect to the net.
You are using utorrent as your P2P software.
You are on BSNL Night Unlimited and not on MTNL Night Unlimited.
You don’t work on your comp during the night unlimited hours. :bleh:
You don’t have a very big bank balance.

===================================================================

Added later. Suggestion by ..:: Free Radical ::.. for people who use there modem in Bridged mode.

You can simply use rasdial if you are in Bridge mode

copy this into a text file and save it has a .CMD batch file

CONNECT.CMD
Code:
@ECHO OFF

:CONNECT
rasdial <Connection Name> <Phone Number> <Password>
if NOT %ERRORLEVEL% ==0 GOTO FAILED
EXIT

:FAILED
GOTO CONNECT
DISCONNECT.CMD
Code:
rasdial <Connection Name> /DISCONNECT
Where <Connection Name> = Name of the bridge Mode WAN Miniport PPPoE dialer connection in your Network connections folder.
And use task scheduler to run each whenever you desire.
Better than using a browser.
 
lide said:
Hence given a choice the best option is to get a router like WRT54GL or a buffalo router (which is the VFM option) flash with Tomato or DD-WRT and use that to dial the PPPoE connection and reboot itself as per the required schedule.

+1

This is a reliable option and I have it set up and working fine
 
what r u saying?? i have set it up in the bios to wake up the computer, that means i can sleep whole night. as far as i know those vista gadget rocks. no failure rates yet.
 
what r u saying?? i have set it up in the bios to wake up the computer, that means i can sleep whole night. as far as i know those vista gadget rocks. no failure rates yet.
 
i have buffalo whr-g125 router and ut-starcom modem connected to wan port of buffalo router and my pc is connected via wireless connection. there was some easy connection wizard through which i configured the connection. so now to connect/discooect, i have to log into the router and hit start/stop button.

so any way that i can automate it via some script or something?

thanks
 
@ yaju13385
Guys try NNCRON works, perfectly . I am using it from past 2 yrs.
using it from past few days after reading somewhere on TE dont remember in which thread :ashamed: !!!
It works like charm! absolutely perfectly!!:hap2:
 
GameNome said:
Not possible using torrents,isn't it?

PS...Anybody knows how i can start my PC automatically at a pre-defined time?:)

In bios, there is a option- Boot up using Alarm where you can switch on your PC at predefined time.
 
Thanks switch!

If its an MTNL supplied modem (white color, no brand name except MTNL), then use the below mentioned script to reboot.

Code:
C:\Program Files\Mozilla Firefox\firefox.exe [url]http://admin:admin@192.168.1.1/Action?id=152[/url]

PS :
To disable the forefox confirm prompt, add the following in the configuration of firefox

preference name : network.http.phishy-userpass-length
value : 1024
 
Hey bumping this thread...

I have a UT Starcom modem...

is it a modem or router..what are the diff between 2??..

and how can i schedule the download on that??...is is the same procedure??
 
to start connection type
rasdial bsnl <username> <password>
save it in notepad and then save the file as .bat file extension
and schedule it at 2am

to disconnect at 8:
rundll32 iedkcs32.dll,CloseRASConnections

it works fine for me
may have been discussed earlier
didnt see the earlier posts before posting mine:p
 
^^a lil correction.
Schedule connection @2:05 AM and disconnection @7:55 AM to prevent unnecessary billed usage since BSNL's time is not always matched with urs.
 
Here's the method to set up automatic connection and disconnection.
First open notepad:
There, type (excluding inverted commas): "rasdial dataone username password"
(type your actual username instead of "username" and actual internet password in place of "password" . (username and password of the BSNL dataone internet connection)
now go to file>>>>>save as>>>>>and save file as "connect.bat" (type connect.bat in the filename space and save)

now open notepad again and type (excluding inverted commas): "rasdial /disconnect"
now go to file>>>>>save as>>>>>and save file as "disconnect.bat" (type disconnect.bat in the filename space and save)

Now go to task scheduler , click add scheduled task, and on first prompt, click next
On next prompt , click browse and browse to the folder connect

On next prompt , select perform this task daily, click next
On next prompt, select start time as 2:15 AM to be on the safe side
On next prompt, enter the window login user password (if any on your system) and confirm again , click next
on next prompt, click finish
Now similarly
Now go to task scheduler , click add scheduled task, and on first prompt, click next
On next prompt , click browse and browse to the folder dissconnect
On next prompt , select perform this task daily, click next
On next prompt, select start time as 7:45 AM to be on the safe side
On next prompt, enter the windown login user password (if any on your system) and confirm again , click next
on next prompt, click finish
After this, test by disconnecting and setting system time to 2:14 am....if it connects automatically in one minute , you're set up nicely !!!!
also test by setting time to 7:44 am (after connecting) and wait for one minute to see if it disconnects to make sure that the Computer disconnects at 7:45 AM

cheers,
microsoft
 
Back
Top