Hi
i have no issues with wifi but
i am on android 2.2.1 cyanogen rom on htc magic 32B.. sometime 2G connection gets silenced. any ping thing using less data to keep it alive ?pinging every 10-20 seconds or similar? how can i keep 2G awake with least data traffic used and least battery usage. any app out there for 2G?
P.S. not asking about wifi.
irisiris said:
Hi
i have no issues with wifi but
i am on android 2.2.1 cyanogen rom on htc magic 32B.. sometime 2G connection gets silenced. any ping thing using less data to keep it alive ?pinging every 10-20 seconds or similar? how can i keep 2G awake with least data traffic used and least battery usage. any app out there for 2G?
P.S. not asking about wifi.
Click to expand...
Click to collapse
I've never heard of a cellular connection having such issues, but I guess it'll drop after a while with no traffic. I personally have email on IMAP idle going all of the time so I guess I'd never have this problem. What's the issue, it takes a second to reconnect?
I am also looking for an app to do this. my epic touch data connection keeps dying. once I get it if I keep using it its fine. but if i let it go idle it won't "reconnect" I can turn off 3g and then turn it back on and usually get it back as long as I keep it active.
SO also looking for a background "pinger" to keep the data connection alive till I get a fix for the connection issues.
DRiVER_helsinki said:
that "3G reconnet" - app didnt work as required...
i found solution:
"Android Terminal Emulator" , from google play.
Type in “ping -i5 www,google.com” , to start pinging with 5 second interval.
Press Home button and the Terminal Emulator will run in the background until you decide to stop it manually.
(Do this only if you have Unlimited Data Usage plan ofc )
[ps. i replaced first dot in the ping address with comma ,because xda think i as new member , are linking outside and complains. )
____________________________________________________
Shoutout to Kimi Räikkönen !
Click to expand...
Click to collapse
Clearing this up...
type:
Code:
ping -i 5 8.8.8.8
Where:
-i = interval of the address to be pinged with.
5 = number of seconds after a successful/unsuccessful ping.
8.8.8.8. = Address to be pinged onto.
So by that command, you'll ping the Google Server (8.8.8.8) within every 5 seconds...
Oh yeah, by the way, after you exit the Terminal Emulator, the pinging stops. So just run TermEmu on background (Home)...
Great tip. Thank you.
Related
I'm sure this is a noob question, but I can't find the answer on the forum.
I've seen a couple people reference automatically ending the data connections when they're idle. Can someone explain how this is done?
Is the desire to disconnect the data to save on battery life? Just curious. Thanks.
That's the main reason I want to do it...not sure about others...
I figured out two ways to do this for anyone else that's interested.
1) Using Advanced Config Tool (V3.3): Menu > More Settings > Connections. Check "Disconnect After" and set the timeout you want. This seems to work well for activesync connections (my mail is set to recieve every 5 min), but doesn't always work for on demand connections (Internet).
2) Comm Manager Pro. No instructions for this since I'm not using it (yet). But everything I've read looks like it does it.
Like I mentioned, I've got my email configured to sync every 5 minutes and I have a connection timeout of 30 seconds set in Advanced Config. This setup has drastically improved my battery life. Before this change, I got maybe 12 hours on a good day. With this timeout set, I could probably get 2 solid days. The only thing I haven't figured out is if the timeout is and idle timeout or an overall timeout. What I mean, is will the connection end after 30 seconds even if it's in use?
I'm interested in this as well, it would be even better if outlook or msn live would make a connection and disconnect after synchronizing.
I've been looking for the same solution. So far using advanced config settings will force disconnect no matter if it was idle or not. I'm looking for a solution to disconnect only when idle.
As of proof, set auto disconnect to 1 minute and using latest skype v3.0 start transferring a large file. After 1 minute data connection will be forcibly disconnected.
Any solutions for this?
Thank you.
Can someone help me find the timing setting in Advanced Config? I've looked through everything - using Energy 3.0 Rom (WM6.5) and don't see anything related to data disconnect other than under "Data Connections:" "GPRS disconnect:" and my settings are "Enable button and timer"
I don't see where the timer comes into play; don't really care if the connection gets cut off - I'd rather see a battery life improvement.....
I'm an absolute idiot. I just skimmed through the thread and didn't read the post above... *smacks forehead*
Its been posted in this very topic, and its only 5 replies long
xawen said:
I figured out two ways to do this for anyone else that's interested.
1) Using Advanced Config Tool (V3.3): Menu > More Settings > Connections. Check "Disconnect After" and set the timeout you want. This seems to work well for activesync connections (my mail is set to recieve every 5 min), but doesn't always work for on demand connections (Internet).
2) Comm Manager Pro. No instructions for this since I'm not using it (yet). But everything I've read looks like it does it.
Like I mentioned, I've got my email configured to sync every 5 minutes and I have a connection timeout of 30 seconds set in Advanced Config. This setup has drastically improved my battery life. Before this change, I got maybe 12 hours on a good day. With this timeout set, I could probably get 2 solid days. The only thing I haven't figured out is if the timeout is and idle timeout or an overall timeout. What I mean, is will the connection end after 30 seconds even if it's in use?
Click to expand...
Click to collapse
In advanced config the settings you are looking are not located in the list on first screen, the are in separate menu as described above.
And now I'll quote myself so my question will not get burred:
[email protected] said:
I've been looking for the same solution. So far using advanced config settings will force disconnect no matter if it was idle or not. I'm looking for a solution to disconnect only when idle.
As of proof, set auto disconnect to 1 minute and using latest skype v3.0 start transferring a large file. After 1 minute data connection will be forcibly disconnected.
Any solutions for this?
Thank you.
Click to expand...
Click to collapse
guys, found this
http://www.andrewsayshello.com/windows-mobile/auto-disconnecting-idle-data-connections-in-wm6/
hope this helps in some way
Thanks for the link, unfortunately it still disconnects even if data connection is in use.
WMLongLife can do this for you.
About the registry tweak that does this, I must warn you: it disables the ability to do voice and data simultaneously.
Chainfire said:
WMLongLife can do this for you.
Click to expand...
Click to collapse
Just checked WMLongLife and it seems that program does not quiet work if one doesn't use opera or wifirouter...
Chainfire said:
About the registry tweak that does this, I must warn you: it disables the ability to do voice and data simultaneously.
Click to expand...
Click to collapse
This is new for me...I thought that data connection cannot co-exist with phone call, period..
[email protected] said:
Just checked WMLongLife and it seems that program does not quiet work if one doesn't use opera or wifirouter...
Click to expand...
Click to collapse
Yes it does require a certain way of using your phone (current test version has specific settings - you can change this in next version). Just saying.
This is new for me...I thought that data connection cannot co-exist with phone call, period..
Click to expand...
Click to collapse
Yes it can, but it depends on several factors. Under ideal (and never actually occuring) conditions it can be done with 2G GSM (GPRS/EDGE). Normally, however, either GPRS/EDGE connection suspends ('pauses') during voice call, or with 2G CDMA voice call may not work at all while data connection active (depends on exact 2G CDMA network type).
With 3G GSM (UMTS/HSPA) it is quite possible (and normal) to do data and voice simultaneously, however for some reason the auto data disconnect registry tweak breaks it. I'm not quite sure why, but it does.
3G CDMA (EV-DO) behaves the same as 2G GSM with regards to simultaneous voice and data (data drops), however, EV-DO Rev. A behaves the same as 3G GSM (possible but broken by registry tweak)
Aside from this, it is also needed that your provider/network has the correct hardware to handle this. I'm not sure how common it is for this properly operating on EV-DO Rev. A, but for UMTS/HSPA early tower equipment was bugged and did not allow this. In Europe, most UMTS/HSPA towers have since been upgraded to allow simultaneous voice and data (and HTC handsets support this perfectly), but how this is in the USA I cannot say.
Hope that explains it (it is a bit messy explenation I know)
if this dowsn't work then i have no ideea what will )
http://forum.xda-developers.com/showthread.php?t=484084
tell me if worked for you
!!!!!
I had it set to disconnect (via Diamond Tweak software) after 1 minute of activity. I did this to preserve battery life, BUT BUT BUT
With 3g on, and even with 3g disabled all day and edge on, the battery still died in 8, 12 hours (3g, edge) with the connection disabling. i use the phone for a good number of calls, text, and some data every day.
AFTER i reenabled it to NOT disconnect after every 1 minute, i pulled over 24 hours on a SINGLE charge.
am i the only one that's experienced this??
I used an iphone for some days. I've ever used nokia phones. Each day I use a blackberry. All devices seems to use internet connection better than Android, using that only when needed and starting/stopping it automatically.
What I don't like about Android is that you can't set device to enable internet connection only when needed. What I understood is that if you like to sync mails every 5 minutes, for example, you have to take internet connection always on.
I don't like this because mainly it's battery consuming.
Is there any way to set Android (I've a Desire but I think it could be the same for each device) to automatically turns on internet connection just before syncing an app and turns off just when finished?
i agree... any hints and helps here? my experience in winmo is much better as it connects only on need.
especially now my Galaxy S battery life is so short
this app might help.
mensa07 said:
this app might help.
Click to expand...
Click to collapse
Yes, thank you.
I already tried it but if I configured it right it manages only sync operations and no internet connection. So internet connection must be taken ON (on the screen you continue to see arrows) and it stop only sync traffic.
Right?
I mean to stop internet connection at all and enable it only at a specific frequency (so on the screen arrows should appear and disappear when needed). Is it possible?
If you live in an area where a WiMax signal is available but not yet official, you may experience this situation:
- 4g scans
- 4g connects.....wahoo!....but wait....
- 4g transmission sits idle for 10 seconds (you didn't use the internet at all for 10 secs.
- 4g disconnects and begins the whole connection process over and over again.
The constant disconnecting/reconnecting to 4g sucks for three reasons:
1. It slows the phone down like a mofo.
2. It drains the battery like a mofo.
3. Makes the battery get as hot as a milf.
SO....
I wrote a small batch file (MS Dos only) that will ping Google every 9.9 seconds (not exactly sure about the time frame, but it's close to 10 seconds). The script is below:
Code:
@echo off
:RENEW
cls
ping www.google.com
ping -n 13 -w 332 www.google.com >nul
goto :RENEW
Just paste that into a text file, save as a .bat, run it, and you're good to go. No more disconnecting/reconnecting to an unofficial 4g signal.
To stop the script, just hold ctrl and press 'C' and then follow the directions to terminate the batch.
For clarification:
1. Obviously, you must be tethered to a windows device for this script to work, it will not magically keep your phone connected to 4g if your phone is not tethered to the computer running the batch file.
2. This script will constantly send and receive data (a very small amount...it's just a ping), so don't leave it on all the time or overnight. I'm not responsible for you busting up your 5gb data cap, although it would be insane if this method did so. You'd have to ping google a "google" amount of times.
3. I know there is a way to change the 4g connection time-out from 10 secs to a higher interval, but I didn't want to modify something on my phone for an unofficial connection. My phone works fine on an official 4g connection.
I'm not sure if anyone will actually use this, but I thought I'd post my "work around" in case anyone faces the same issue as me.
Chris
Hi all
Thinking about the Wifi Sleep Policy settings:
I could not find the exact details of what the different options mean, but with a little common sense:
a) When screen turns off :
- if you have a wifi connection established : When the screen times out, it will turn off wifi and swith to mobile data.
- if you do not have a wifi connection established : The phone is constantly scanning for known wifi networks. When the screen times out, it will turn off wifi and stop all scanning.
b) Never :
- if you have a wifi connection established : when the screen times out the phone will keep that connection.
- if you do not have a wifi connection established : The phone is scanning. When the screen times out, it will keep wifi ON and continue to scan permanently for known networks.
c) Never when plugged in: it is not very clear, but would say its b) if the phone is charging, and a) if the phone is not charging.
Thinking a bit about this, it appears to me that none of this options is the ideal situation.
I would say that the ideal situation is that if I have a wifi connection established, then keep wifi on and the connection for as long as the network is there.
But if I do not have a connection established, I would like the phone to turn off the wifi interface, and turn off all scanning so as not to drain the battery while I am on the streets away from home. Then only begin scanning when I turn the screen back on, and if it no wifi network to connect, then turn off wifi again when the screen times out.
In other words, I think the best situation is a mix of behaviours of a) when there is no wifi connection established, and b) if there is a wifi connection established.
Does this make sense ? or am I crazy? I'd like your opinions please.
Anybody thought about this before? Is there any app or mod that will implement this behavior ?
Thanks
Gonzalo
gbalerdi said:
Hi all
Thinking about the Wifi Sleep Policy settings:
I could not find the exact details of what the different options mean, but with a little common sense:
a) When screen turns off :
- if you have a wifi connection established : When the screen times out, it will turn off wifi and swith to mobile data.
- if you do not have a wifi connection established : The phone is constantly scanning for known wifi networks. When the screen times out, it will turn off wifi and stop all scanning.
b) Never :
- if you have a wifi connection established : when the screen times out the phone will keep that connection.
- if you do not have a wifi connection established : The phone is scanning. When the screen times out, it will keep wifi ON and continue to scan permanently for known networks.
c) Never when plugged in: it is not very clear, but would say its b) if the phone is charging, and a) if the phone is not charging.
Thinking a bit about this, it appears to me that none of this options is the ideal situation.
I would say that the ideal situation is that if I have a wifi connection established, then keep wifi on and the connection for as long as the network is there.
But if I do not have a connection established, I would like the phone to turn off the wifi interface, and turn off all scanning so as not to drain the battery while I am on the streets away from home. Then only begin scanning when I turn the screen back on, and if it no wifi network to connect, then turn off wifi again when the screen times out.
In other words, I think the best situation is a mix of behaviours of a) when there is no wifi connection established, and b) if there is a wifi connection established.
Does this make sense ? or am I crazy? I'd like your opinions please.
Anybody thought about this before? Is there any app or mod that will implement this behavior ?
Thanks
Gonzalo
Click to expand...
Click to collapse
Sleep Policy is pretty simple:
Never means the wifi radio is never turned off. This is default now on Honeycomb and up, with fairly good reason.
When screen is off means.. the radio is turned off when the screen goes off regardless of whether you have a connection.
Only when plugged in means that the wifi radio is only turned off when the screen is off and it's not plugged in.
Sounds like you want Tasker http://tasker.dinglisch.net/
It will let you do what you describe.
Juice Defender will, as well, but it's terrible terrible software.
As to your problem, on most devices, scanning is usually reduced quite a bit when the screen is off. It's not as much of a battery drain as people think.
I'm in the habit of disabling wifi when I'm not at home or in the office. There's really no reason to leave it on when you're not going to be using it unless you want open network notification.
Thank you , I didn't know that the default is now Never. I'll set it this way.
And I guess I don't really have a real life problem, it's just that it got me thinking and came to the conclusions above.
And thanks for the link to the app, I will check it out.
Gonza
edit: oh I see you are the wifi fixer dev. Thanks so much for both replies.
Is your phone rooted? Do you have root explorer and sqlite installed. Then you can have more control over the time wifi goes to sleep after screen is turned off.
BUT: it remains on for 15 minutes by default.
Now start root explorer. Navigate to
/data/data/com.android.providers.settings/databases and open settings.db
If you have sqlite installed you seesome tables. Open secure table.
Add New record. name is wifi_idle_ms and give it a value in milliseconds you want.
Default (if wifi_idle_ms is not present) is 15*60*1000 ms. I have 60000 (1 minute)
Cheers
I use juice defender. Why is it such a terrible software? I've not used others, so I have no means of comparison. Perhaps you can enlighten me?
ZanshinG1 said:
Sleep Policy is pretty simple:
Never means the wifi radio is never turned off. This is default now on Honeycomb and up, with fairly good reason.
When screen is off means.. the radio is turned off when the screen goes off regardless of whether you have a connection.
Only when plugged in means that the wifi radio is only turned off when the screen is off and it's not plugged in.
Sounds like you want Tasker http://tasker.dinglisch.net/
It will let you do what you describe.
Juice Defender will, as well, but it's terrible terrible software.
As to your problem, on most devices, scanning is usually reduced quite a bit when the screen is off. It's not as much of a battery drain as people think.
I'm in the habit of disabling wifi when I'm not at home or in the office. There's really no reason to leave it on when you're not going to be using it unless you want open network notification.
Click to expand...
Click to collapse
androidapk.net said:
I use juice defender. Why is it such a terrible software? I've not used others, so I have no means of comparison. Perhaps you can enlighten me?
Click to expand...
Click to collapse
I'd like to hear that opinion too
JD is not terrible terrible. It is terrific terrific. Honest, it really work flawlessy and it does pretty well what the OP wants. Just for the sake of it, I'm trying to replicate with tasker what JD does, but, you know... it just does it better.
tweakradje said:
Is your phone rooted? Do you have root explorer and sqlite installed. Then you can have more control over the time wifi goes to sleep after screen is turned off.
BUT: it remains on for 15 minutes by default.
Now start root explorer. Navigate to
/data/data/com.android.providers.settings/databases and open settings.db
If you have sqlite installed you seesome tables. Open secure table.
Add New record. name is wifi_idle_ms and give it a value in milliseconds you want.
Default (if wifi_idle_ms is not present) is 15*60*1000 ms. I have 60000 (1 minute)
Cheers
Click to expand...
Click to collapse
Thank you! Yes I am rooted, I am running CM7 latest kang, but I did not know all this.
Gonna give it a try
Interesting. It works indeed! If one knows a bit about Unix shell, I did the modification via adb shell. Obviously the phone must be rooted and have sqlite3 (the binary) installed.
This is how to do it:
- connect the phone via USB to the PC
- execute "adb shell" (adb must be installed) from the DOS prompt. You are into the phone
Then execute the following steps:
Code:
su
cd /data/data/com.android.providers.settings/databases
cp settings.db settings.db.ORIG
sqlite3 settings.db
Now you are "inside" the db. Type ("sqlite>" is just the prompt):
Code:
sqlite> select * from secure;
and check if wifi_idle_ms is not present. If it isn't, as it shouldn't, type:
Code:
sqlite> insert into secure values(60,'wifi_idle_ms',30000);
where instead of 60 you can write any number that is not used already in the list, being that the unique key in the table.
I used 30000 (30000 microseconds = 30 ms) but one can put the value s/he prefers.
Miche1asso said:
Interesting. It works indeed! If one knows a bit about Unix shell, I did the modification via adb shell. Obviously the phone must be rooted and have sqlite3 (the binary) installed.
This is how to do it:
- connect the phone via USB to the PC
- execute "adb shell" (adb must be installed) from the DOS prompt. You are into the phone
Then execute the following steps:
Code:
su
cd /data/data/com.android.providers.settings/databases
cp settings.db settings.db.ORIG
sqlite3 settings.db
Now you are "inside" the db. Type ("sqlite>" is just the prompt):
Code:
sqlite> select * from secure;
and check if wifi_idle_ms is not present. If it isn't, as it shouldn't, type:
Code:
sqlite> insert into secure values(60,'wifi_idle_ms',30000);
where instead of 60 you can write any number that is not used already in the list, being that the unique key in the table.
I used 30000 (30000 microseconds = 30 ms) but one can put the value s/he prefers.
Click to expand...
Click to collapse
Thanks to Miche1asso for the commands, you've made my day :good::fingers-crossed:
This thread is good, useful, it did help up reduce the default wifi idle timeout :good: Just tested on xperia sola, perfect on my custom idea idle timeout (to 120000ms)
Please excuse my french (aka slightly annoyed words), but this is more than annoying...
This has been pissing me off lately. I've had many androids in my lifetime and they all have one annoying bug/feature/whateveryouwanttocallit - when a WiFi network is in range, it connects straight to it, regardless of what's going on my 2G/3G/4G connection. My iPhone 4 won't do this if it detects I'm doing heavy download/upload usage, it waits until the connection is idle and then switches.
I've also stated this frustration on Twitter.
For example:
I am downloading a 100MB file. It is 75MB and I'm almost in the office. When at the office my Note connects to the WiFi WHILE the file is downloading, and the file fails downloading, wasting 75MB of my 3G Data Quota.
What should happen, and I'll buy the developer of the app/patch/whatever a beer if they make this, is:
Android detects WiFi.
- Am I using 2G/3G/4G - Yes: Wait until data is finished being transferred, then switch.
- Am I using 2G/3G/4G - No: Switch over to WiFi.
Basically, I do not want "sudden d/c" because Android decided "Herp derp wifi in range, let's be an asshole and switch to it". Don't give me any "LOL use wifi and don't use mobile data for downloads" responses because they aren't constructive. And more likely to make me .
I'm sure others will be able to understand my concern.
Cheers!
This is something i would pay for. It has happened to me a few times lately.
IcedCube said:
Please excuse my french (aka slightly annoyed words), but this is more than annoying...
This has been pissing me off lately. I've had many androids in my lifetime and they all have one annoying bug/feature/whateveryouwanttocallit - when a WiFi network is in range, it connects straight to it, regardless of what's going on my 2G/3G/4G connection. My iPhone 4 won't do this if it detects I'm doing heavy download/upload usage, it waits until the connection is idle and then switches.
I've also stated this frustration on Twitter.
For example:
I am downloading a 100MB file. It is 75MB and I'm almost in the office. When at the office my Note connects to the WiFi WHILE the file is downloading, and the file fails downloading, wasting 75MB of my 3G Data Quota.
What should happen, and I'll buy the developer of the app/patch/whatever a beer if they make this, is:
Android detects WiFi.
- Am I using 2G/3G/4G - Yes: Wait until data is finished being transferred, then switch.
- Am I using 2G/3G/4G - No: Switch over to WiFi.
Basically, I do not want "sudden d/c" because Android decided "Herp derp wifi in range, let's be an asshole and switch to it". Don't give me any "LOL use wifi and don't use mobile data for downloads" responses because they aren't constructive. And more likely to make me .
I'm sure others will be able to understand my concern.
Cheers!
Click to expand...
Click to collapse
all i'm aware you could really do is keep wifi turned off until the download completes. there's a possibility that tasker could automatically turn it on for you when the download is done, but i'm not sure as i've never used it.
Strange
Sent from my Xperia Mini using xda premium