• Networking
  • How to make router reboot automatically every 5 minutes

I know its a weird question, but here is the situation I am in:

I am subscribed with wise on 2mb unlimited (with fup kicking in when I pass 2GB of download)

Every time I restart my router my speed jumps to 400kb/s and stays like that for 5 minutes
after 5 minutes it goes down to:
-> 200kb/s if I am not under fup
-> 40kb/s if I am under fup

the time it takes for my router to reboot is about 2 min.

so according to my calculations, if I restart my router every 5 min:
In 1 hour I will have:
-> 40 minutes of 400kb/s download speed
-> 20 minutes router rebooting = 0kb/s

so, per hour:

downloading for 40 min at 400kb/s = 960 MB
downloading for 60 min at 200kb/s = 720 MB
downloading for 60 min at 40kb/s = 144 MB

a lot of times I am under FUP, and I constantly restart my router to have 5 minutes of 400kb/s
I need to know if there is a way I can make it do this on its own so I can leave it during the day when I am not at home

also, I am not doing anything illegal/immoral, I'm just restarting my router!
cheers!

edit: my router is technicolor tg582n
What's your router model ? Is it enough to unplug and replug the adsl cable instead of restating the whole modem ?
Adnan wroteWhat's your router model ? Is it enough to unplug and replug the adsl cable instead of restating the whole modem ?
router is technicolor tg582n

and I just tried what you suggested and it worked, the issue with this is that my router is in another room, and I'm too lazy to get up every 5 minutes! :p

other than that I am hoping to have something more automatic so I can leave it during the day...
Ok. Find if there is any telnet command that resets the adsl connection. On my tplink it's "wan adsl reset". Write a script that will periodically run this command.

Of course the only drawback is that you need to have a computer up and running.
This is genius actually.
Op even calculated every little detail lol, hats off.
Hoping someone will help you finding a solution
Hey, so here's my take on it:

I have an old laptop that I use for downloading stuff and that is plugged in to the router. I also have my router password saved on chrome so I don't need to type anything while doing this. I am using Move mouse (https://movemouse.codeplex.com/documentation) in order to time my mouse movements to login and reboot every 6 minutes and 30 seconds (needs around 1 min and 20 seconds for router to boot up). I close my laptop screen and keep it on when i leave the house and come back to around a gig an hour which is amazing. I have found some issues and fixed them, and sometimes I pity my router, but then I thing of all the graphic cards in the mines and tell it to suck it up and reboot.

Hope this helps.
P.S. Will be offline for about a week of camping.
There are two ways you can follow under the assumption that the router OS provides a command to reset the connection through CLI, it will most likely do.

- I am not sure what OS is the router running, I never used that brand, but I presume it is running some sort of Linux with Busybox. If this is the case, you can create a cronjob that will run the command every 5 minutes.

- Have an always on PC (like a raspberrypi for instance) that will execute that command through SSH/TELNET every 5 mins using a cronjob/scheduler.
NoReGreT wroteThere are two ways you can follow under the assumption that the router OS provides a command to reset the connection through CLI, it will most likely do.

- I am not sure what OS is the router running, I never used that brand, but I presume it is running some sort of Linux with Busybox. If this is the case, you can create a cronjob that will run the command every 5 minutes.

- Have an always on PC (like a raspberrypi for instance) that will execute that command through SSH/TELNET every 5 mins using a cronjob/scheduler.
Just to save time on OP, as far as I know, no modem+router combo runs a Linux flavor and at least not Technicolor. The second option is what will work.
thanks for all the suggestions guys,
I looked for a way to reset adsl wan connection but didn't find it in my router
so I am using "mouse recorder" to constantly restart my router during the day
Maybe some device that cuts the power every five minutes?
It should not be too hard to make, although I have not seen one yet.
Your solution sounds good, though.
rolf wroteMaybe some device that cuts the power every five minutes?
It should not be too hard to make, although I have not seen one yet.
Your solution sounds good, though.
This got me thinking. We installed a relay+timer system for our elevator to automatically switch between EDL and the Generator power. The system was made up of 2 relays and 2 delay timers, looked pretty straight forward.

If you're decent enough with electronics or curious enough to do your own research, i reckon you could draw up a schematic to a power system which cuts off the power to the modem (or it's adapter) every 5 mins. The timers are about 8$ each, and the relays are dirt cheap as well.

Here are the timers that the electrician used for my elevator from EKT: http://www.ekt2.com/products/productdetails/275_TIMER_8PIN__60_MINUTS_220V
10 days later
If you set your modem bridge mode and connect it to a dd-wrt router.

There is an option under the PPPoE username and password to force restart the connection with the values you want.

Hope this solves your issue
If you have telnet to the router, you can decrease the SN Margin to 4 dB and create an unstable connection. It will disconnect every couple of minutes. Not necessarily every 5 mins it could be 3 ,4 , 6 but you won't keep a connection alive for more than few minutes anyway.

Other option would be a script to write " adsl configure " in the modem terminal. That would force a resync with default values.