My Data connection turn offf automatically every 30/40 minutes - Tasker Tips & Tricks

My network provider turn off Data connectivity every 40 minutes..so i need to turn off data+turn on data everytime during download...that means if i didn't check my phone..download will pause..,until i restart data
So in Tasker...how do i disable data and enable it ...after every 30 minutes automatically

Create a Profile using time clock as the trigger to turn Off your mobile data then On again after a few seconds.

GrippingSphere said:
Create a Profile using time clock as the trigger to turn Off your mobile data then On again after a few seconds.
Click to expand...
Click to collapse
I use the time clock from 12 am to 12 pm.Then i set turn data off ...and then turn data on...how to set variable to 10seconds...i dont know that...in notification... no active profiles is shown

what happens when you lose connection? disconnected? or just no more data gets download?
if the data speed drops, you can try to watch this and have Tasker re connecting when that happens
if you are disconnected, use that as trigger.
I would prefer this over time schedule.

SduosGt7562 said:
I use the time clock from 12 am to 12 pm.Then i set turn data off ...and then turn data on...how to set variable to 10seconds...i dont know that...in notification... no active profiles is shown
Click to expand...
Click to collapse
You can try creating a Task to turn-on mobile data that will be triggered by the opening of an application (i.e. your browser or your download app). Within this Task there's a 30 min or so delay to turn-off your mobile data then On again after 10 sec or so. Create a loop to repeat this process until you close your app.
If you're not yet familiar with creating Tasks and Profiles., I suggest you learn first from examples in YouTube. There are many tutorials on YouTube about Tasker.

alienyd said:
what happens when you lose connection? disconnected? or just no more data gets download?
if the data speed drops, you can try to watch this and have Tasker re connecting when that happens
if you are disconnected, use that as trigger.
I would prefer this over time schedule.
Click to expand...
Click to collapse
when i lose connection..data doesnt actually turn off....instead speed reduced to 0..ie no upload or download arrows shown

alienyd said:
what happens when you lose connection? disconnected? or just no more data gets download?
if the data speed drops, you can try to watch this and have Tasker re connecting when that happens
if you are disconnected, use that as trigger.
I would prefer this over time schedule.
Click to expand...
Click to collapse
my speed drops to 0.help me make a profile pls

sorry, my bad, it turns out the speed monitoring is more complicating than I expect.
maybe you can try this:
every x minute, do a http get of some simple page, than check for its %HTTPR, if this equals -1 then your connection is down.
I don't know how your connecting works, so I can't help you there.

Related

Disconnect data connection

Hi,
Anyone know how to set so the data connection will be disconnected automaticaly if there is no activity after certain times?
gogol said:
Hi,
Anyone know how to set so the data connection will be disconnected automaticaly if there is no activity after certain times?
Click to expand...
Click to collapse
there might be a program for this however you can also use the built in function in your phone. If you go to settings.. click phone and than go to the data tab and check the box that says "disable data connection when device enters sleep mode". This way everytime you press the power button to turn screen off data connection will disconnect or whenever device automatically enters sleep data will disconnect.
Kaiser Tweak
has an option that u can set to automatically disconnect a data session after a certain amount of inactive time
Open up your REG editing software
Navigate to (HKLM>Comm>ConnMgr>Planner>Settings)
Click on (SuspendResume)
Change Value Data to: GPRS_bye_if_device_off
Click OK
Soft Reset
By changing this value, your phones data connection will automatically disconnect after closing an app that uses your data connection about 30sec-1min, or if your phone goes to sleep. Whichever comes first.
Be warned though that some programs for some reason are not visible as keeping an active GPRS connection so it will disconnect while in use. THe only one that I encountered was youtubeplay. After about a minute, the video was freezing and I didnt know why. Well it was because my phone was automatically disconnecting. So before I would use youtubeplay I would just open skyfire then minimize it to keep the connection open. Youtube play was the only program that I found had this problem.

How to stop internet connection

A silly question by a new user: how is it possible to stop an internet or data connection (no matter if hsdpa, edge, gprs) once started?
Thanks
use 'long key press' in settings, can be set to disconnect a data connection (sdpa, edge, gprs)
Use this program:
http://rapidshare.com/files/173250379/GPRS...onnect.CAB.html
The connection stop after 1 minutes of inactivity
jack1985 said:
Use this program:
http://rapidshare.com/files/173250379/GPRS...onnect.CAB.html
The connection stop after 1 minutes of inactivity
Click to expand...
Click to collapse
faulty url!
take this one:
GB-SOFT GPRS-UMTS_Tweak_WM6.1_Diamond
there you can choose the idle-time for disconnect
Anyway the manual stopping mode is to tap the bar that is on the top of the sceen...than tap the G E 3G or U icon and so you can tap disconnect.
Poker85 said:
Anyway the manual stopping mode is to tap the bar that is on the top of the sceen...than tap the G E 3G or U icon and so you can tap disconnect.
Click to expand...
Click to collapse
Cool, also in stead of holding the end call button, wich locks the phone in my case,
Dubbelclicking the end call button alse ends my edge connection.
In order for your end key to stop the connection, you have to go to Settings>System>Long Press End Key>Select Terminate data connection
Then when you press and hold your end key, it will end the connection
if you prefer to stop internetconnection by shortcut, try VJKeyPress.exe 126
this one toggles internet connection
i've searched and i've searched and i cant find the resolve!
after retrieving hotmail, the connection stays active, meaning bars are lit up. for HOURS after unless i long-press-end key or something like that. even when i am surfing the web, after a page is fully loaded, the bars stay lit. on my old diamond, the bars used to go gray or "dormant" etc. therefore no tweaks i have found help (i.e. most operate with this rule "if the connection is dormant/inactive for xx minutes, turn off data" etc. well my connection remains ACTIVE unless i manually intervene)
what is causing this??? i only have spb mobile shell and spb phone suite installed. stock ROM.
hello? anyone? NO one is having the same issue or can help with this??? at this point i'd even be happy with a rude comment about how i should learn how to search coupled with a few links to threads which contain the answers! :\
I'm not sure I understand your question.
You're saying the connection stays alive after using mail or opera?
By default, WMo does not turn off data connection, so once you've made a data connection, it stays on.
Now, there are lots of programs out there that turns off data connection after a pre-set time. If you have Advanced Config on your Diamond, it's somewhere in there as well (I use SKTools and not Advacned Config so I can't point you exactly where, but it's there)
That said, many have tested battery drain and find that leaving the data connection ON or OFF makes absolutely no difference on the battery drain. It's only when you're transmitting data that drains more battery. Not sure if that's where you're coming from to want to turn off data connection
number16 said:
I'm not sure I understand your question.
You're saying the connection stays alive after using mail or opera?
By default, WMo does not turn off data connection, so once you've made a data connection, it stays on.
Now, there are lots of programs out there that turns off data connection after a pre-set time. If you have Advanced Config on your Diamond, it's somewhere in there as well (I use SKTools and not Advacned Config so I can't point you exactly where, but it's there)
That said, many have tested battery drain and find that leaving the data connection ON or OFF makes absolutely no difference on the battery drain. It's only when you're transmitting data that drains more battery. Not sure if that's where you're coming from to want to turn off data connection
Click to expand...
Click to collapse
number16, my savior! i'll try to explain as best i can: when the data connection is started/being used, those left-right arrows appear above the signal strength, correct? what i call "active" is when those arrows are lit (presumably when data is actually being transferred). what i call "dormant" is when the arrows are still there but are gray/not lit (i.e. connection is still open, but not currently transferring data). well, up until a 2 wks ago, all seemed fine - the arrows would briefly stay lit when downloading a page, connecting to hotmail, etc, but then would go gray once the transfer was complete. now however, the arrows stay lit. sometimes for hours at a time even tho nothing is running, no data (that i know of) is being transferred, etc.
so what i was saying is that, yes, i know i can long-press-end key to shut it down, but that only works if i notice it otherwise it's just draining my battery. (most times it is in my pocket, and since it checks hotmail periodically, the data connection may open and stay on without me noticing). and yes, i know about advanced config setting (and actually, i DO have it set to turn off after a minute) BUT that only applies if "connection is not active for more than a minute". i.e. since my whole problem is that my data connection technically stays active, that advanced config setting doesnt work.
so my question is, what is keeping the connection active? why is it doing this? i am running stock ROM and only have spb mobile shell and spb phone suite loaded. and a few other minor tweaks via advanced config/regedit. i even tried spb wireless monitor to see what was active after a data transfer was complete (as far as i could tell) but it didnt really tell me anything.
does all that make sense?
thanks for any help you can provide...

Change WiFi scanning duration??

I saw a thread about change the duration for WiFi scanning when not connected to WiFi. I know it scans every 30 seconds to see what networks are available for use, i think this will have a huge impact on battery for user that want to keep WiFi enabled all day, which is what i would like to do if there is a fix rather then turning it on when i get home off when on the train and on again when at work and off on the train and on at home
I know draky ROM has this set to like 2 minutes, so is there a way we can change it on Doc 9.6.6 speedmod K13C??
EDIT:
just went in the WiFi setting even after connecting to my home network with full bars and everything works fast, it still seems to scan for networks every 5 seconds. Is there a way to disable the scans? It should only scan when not connected to a network and continue after a network is connected.
jebise101 said:
I saw a thread about change the duration for WiFi scanning when not connected to WiFi. I know it scans every 30 seconds to see what networks are available for use, i think this will have a huge impact on battery for user that want to keep WiFi enabled all day, which is what i would like to do if there is a fix rather then turning it on when i get home off when on the train and on again when at work and off on the train and on at home
I know draky ROM has this set to like 2 minutes, so is there a way we can change it on Doc 9.6.6 speedmod K13C??
EDIT:
just went in the WiFi setting even after connecting to my home network with full bars and everything works fast, it still seems to scan for networks every 5 seconds. Is there a way to disable the scans? It should only scan when not connected to a network and continue after a network is connected.
Click to expand...
Click to collapse
Not sure if its clear- Your phone will not scan for WIFI networks if its connected to a WIFI network already. It is not possible to scan while connected unless you explicitly go to WIFI settings and check there- then the phone will scan for you because you are asking it to scan.
On the other hand, you can modify the WIFI ON time using this thread http://forum.xda-developers.com/showthread.php?t=774507&highlight=wifi+timeout
Hope this helps.
No im in the wifi settings and am for sure connected to my home network and i can see the scanning and the circle come up every 5 seconds. So it is scanning every 5 seconds even after connecting, i think it maybe a bug coz your right there is no reason for scanning to occur when already connected.
I'm not talking about the wifi sleep policy. In darky's ROm he has scanning set to 2 minutes so it will scan for networks every 2 minutes when its not connected to a network, for me i would like to change that to 15 - 30 minutes. I don't need it to connect right away when i get home or at work and find it stupid that it scans every 5 seconds for a network. If i really want wifi that badly i will do a manual scan and connect.
it will always refresh more frequently in the settings to let you know what is available to connect to... as soon as you close settings it will refresh less often.
i highly recommend juice defender... it will automatically turn off your wifi when disconnected for a while and connect it again later on. im pritty sure it checks when u turn the screen on. there are other settings and widgets that come with to control your 3g when its not needed to save battery
Haviic said:
it will always refresh more frequently in the settings to let you know what is available to connect to... as soon as you close settings it will refresh less often.
i highly recommend juice defender... it will automatically turn off your wifi when disconnected for a while and connect it again later on. im pritty sure it checks when u turn the screen on. there are other settings and widgets that come with to control your 3g when its not needed to save battery
Click to expand...
Click to collapse
Pls help, my TF101 is one day old, it was connected to my work wifi network that my X10 is connected to.
I mistakenly pressed on "forget network" and now it just scans but cant find the network. pls help me
khakhi said:
Pls help, my TF101 is one day old, it was connected to my work wifi network that my X10 is connected to.
I mistakenly pressed on "forget network" and now it just scans but cant find the network. pls help me
Click to expand...
Click to collapse
Maybe your work network doesn't broadcast ssid? You have to configure the connection manually if that is the case.
Sent from my GT-I9000 using Tapatalk
Herman76 said:
Maybe your work network doesn't broadcast ssid? You have to configure the connection manually if that is the case.
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
I have tried but still nothing...

[Q] Wifi and 4g at the same time

I have been searching for a way to do this for months. I have a gopro that has WiFi to broadcast the picture to my phone. The problem is that it turns off the data on my phone so I receive no messages and can do nothing with data. I have root, and am willing to test apps, but i need to be able to use both local wifi for the video and 4G/3G for internet usage. Thanks for anybody to help me out.
-Nagas
I don't get it? Anything that uses data, normally uses WiFi too. Either or.
And no...the two can't be on at the same time.
---------- Post added at 11:51 PM ---------- Previous post was at 11:50 PM ----------
Oh...so you mean the WiFi has no internet connected. I get it.
Sorry though....never heard of such a thing as you're asking. Perhaps someone else has.
Good luck!
I'm confused. Why can't you tether the GoPro to your phone using the hotspot? Still connected through wifi but you don't lose data.
nhizzat said:
I'm confused. Why can't you tether the GoPro to your phone using the hotspot? Still connected through wifi but you don't lose data.
Click to expand...
Click to collapse
The Gopro acts like a seperate wireless accesspoint. With that said, the Gopro does not connect to a wireless network when I am traveling in a car. My phone does not have a hotspot option. I have a modified version on my phone. So when i connect to the camera it completely disconnects from everything. I do have root though. But if it is just not possible then so be it.
Thanks for Everybody's help
Nagas
vagh_nagas said:
I have been searching for a way to do this for months. I have a gopro that has WiFi to broadcast the picture to my phone. The problem is that it turns off the data on my phone so I receive no messages and can do nothing with data. I have root, and am willing to test apps, but i need to be able to use both local wifi for the video and 4G/3G for internet usage. Thanks for anybody to help me out.
-Nagas
Click to expand...
Click to collapse
something like this?
http://www.xda-developers.com/andro...s-mobile-data-wifi-for-faster-internet-speed/
1ad_m12 said:
something like this?
http://www.xda-developers.com/andro...s-mobile-data-wifi-for-faster-internet-speed/
Click to expand...
Click to collapse
Yes much like that, but i need it for all data not just downloading files. if it can do it for one application, it should be able to do it for all of them. or at least select ones. I do have root so i would be able to select which apps have and do not have the access to 4G all the time.
Any thoughts are appreciated.
-Nagas
Well if you have tasker you can have a profile for when you're connected with your gopro and a task that disconnects, polls for messages, then reconnects. You could poll for a minute every 10 minutes as to not obstruct work flow. Or even longer if you want. I think what you want to happen is a limitation of android itself and for good reason. You'd burn through your battery on accident all the time if you could do that natively. Or run up your data.
At any rate I'd go with tasker. There's so much you can do with that it's ridiculous.
1ad_m12 said:
Well if you have tasker you can have a profile for when you're connected with your gopro and a task that disconnects, polls for messages, then reconnects. You could poll for a minute every 10 minutes as to not obstruct work flow. Or even longer if you want. I think what you want to happen is a limitation of android itself and for good reason. You'd burn through your battery on accident all the time if you could do that natively. Or run up your data.
At any rate I'd go with tasker. There's so much you can do with that it's ridiculous.
Click to expand...
Click to collapse
How would I do that. I am Very new with scripts.
vagh_nagas said:
How would I do that. I am Very new with scripts.
Click to expand...
Click to collapse
Tasker is an automation application found on the Play Store for about $3.00... In my opinion it is worth far more than that. It does have a bit of a learning curve but the benefits of what it can do are amazing. https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm
You can use scripts in it but I was suggesting something different. Using Tasker you should be able to set up a profile for whenever you are tethered to your GoPro so that every so often Tasker will automatically turn off WiFi for a length of time of your choosing and then reactivate WiFi and the connection to your GoPro. This process could be set on a loop every time you connect to your GoPro; this way you won't miss any pending notifications that are trying to be pushed through without having to manually disable and re enable WiFi. You would only have to take note of when it would disable the WiFi so that your pictures can be transferred through to your phone properly.
New Profile= State> Net> Wifi Connected> Your GoPro's SSID or MAC address
Task Actions= Task> Wait> 10min (or however long you figure is a good time between cycles)
Net> WiFi> Set off
Task> Wait> 1min (or however long you want it to poll for notifications)
Net> WiFi> Set on
I know this isn't a perfect solution to your problem but it should, in theory, work.
1ad_m12 said:
Tasker is an automation application found on the Play Store for about $3.00... In my opinion it is worth far more than that. It does have a bit of a learning curve but the benefits of what it can do are amazing.
You can use scripts in it but I was suggesting something different. Using Tasker you should be able to set up a profile for whenever you are tethered to your GoPro so that every so often Tasker will automatically turn off WiFi for a length of time of your choosing and then reactivate WiFi and the connection to your GoPro. This process could be set on a loop every time you connect to your GoPro; this way you won't miss any pending notifications that are trying to be pushed through without having to manually disable and re enable WiFi. You would only have to take note of when it would disable the WiFi so that your pictures can be transferred through to your phone properly.
New Profile= State> Net> Wifi Connected> Your GoPro's SSID or MAC address
Task Actions= Task> Wait> 10min (or however long you figure is a good time between cycles)
Net> WiFi> Set off
Task> Wait> 1min (or however long you want it to poll for notifications)
Net> WiFi> Set on
I know this isn't a perfect solution to your problem but it should, in theory, work.
Click to expand...
Click to collapse
You know what, That worked perfectly. until the app tried to auto reconnect. then my phone seemed to get stuck in a loop. it kept turning the wifi on then off then on then off. it was strange. I am attempting to find a setting for it to auto reconnect and turn it off but there has been no luck so far. Thanks for your help so far.

Auto Turn Off Mobile Data When Connected to WiFi

Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
If you're not happy with that, Automate It should be able to do something for you. I have Automate It Pro set to turn off wifi & data at midnight, for example, to avoid the nuisance of emails pinging me in the middle of the night. And it switches wifi & sync on at 09:00 each day. Very useful tool, simpler than Tasker, so no tutorial from me...
There are a few Automate apps in the Play Store - it's this one:
https://play.google.com/store/apps/details?id=AutomateIt.mainPackage
This free version allows you 3 (as I recall) triggers - if you need more it's not too expensive to buy Pro.
I use RadioControl to handle that for me.
https://play.google.com/store/apps/details?id=com.nikhilparanjape.radiocontrol&hl=en
It requires root, and it's not perfect. But it works well enough for me.
[NG]Owner
Try smart radio xposed module.
pr0ndigy said:
Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
Click to expand...
Click to collapse
Tasker does it pretty simply, but it needs root access..
Set up (2) tasks - I called mine Data Off & Data On. You will need to select "Net/Mobile Data" and then set "On" or "Off" respectively. Next set up your profile. Select "State/Net/Wifi Connected", and leave everything empty and save. This will trigger the profile when any wifi is connected. (Optionally, you could set it to your home or work wifi, etc). Your "task" will be "Data Off", then add an "exit task" for "Data On" (by long pressing the Data On and selecting "exit task").
dahawthorne said:
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
Click to expand...
Click to collapse
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Pkt_Lnt said:
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Click to expand...
Click to collapse
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
jbaumert said:
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
Click to expand...
Click to collapse
Do you have a ROM that has that option and it is enabled?
Pkt_Lnt said:
Do you have a ROM that has that option and it is enabled?
Click to expand...
Click to collapse
Running SIX ROM - Just checked, that option is disabled in the Dev Settings / connected to good wifi / and cellular is active...
¯\_(ツ)_/¯
Now it is a question for that rom dev.

Categories

Resources