Wireless inactive ? - Nexus S General

Hey guys,
Nexus S stock 2.3.4 Gingerbread here.
I have my Wireless sleep policy set to never. Indeed, the battery graph tells me that the wifi is constantly there. However if I leave my phone idle for some 30 minutes and then when I turn the screen on, I realize the wireless and signal strength icons are grey. However, during these 30 minutes, my K-9 client which is set to PUSH idle on gmail, stops pushing emails. I can receive emails on my laptop with Thunderbird but these don't pop up in K-9.
Using aLogCat I can see that when the phone is idle, K-9 complains of a connection reset by peer. Also I get other connection exceptions, such as the G talk service unable to connect. However they don't permanently fail... eventually in the logs they can connect... but later on fail to connect again.
Turning the phone on and using the internet for a bit seems to bring the wireless back to those services.
At first you could think the problem is with K-9 but the fact that other synchronizing applications fail to connect hints at a problem at OS level.
I've got K-9 set to re-establish the PUSH idle connection every 25 mins if broken.. so maybe it's K-9 that's actually forcing the wireless to come back or something after this 25 mins threshold has been reached.
Anyone experiencing something similar ?

Related

Push Mail

Hi guys
quick question ..
I would like to have Microsoft Push mail activated on my phone however I ve noticed that if I do, it keeps me connected to the internet throughout the entire day... now I am on data flat so I m not worried about costs however, I figured that being constantly online drains the battery pretty much ..
so .. is there a way of dealing with problem? can I have the phone check for emails and automatically disconnect after it has done so?
thxx
Amanox said:
can I have the phone check for emails and automatically disconnect after it has done so?
Click to expand...
Click to collapse
I'm just an amateur and I certainly cannot pretend to know everything, but it seems to me that what you're asking for isn't really what Push is about.
You might be better off simply configuring the default mail programme to check for mail at short intervals.
You can set when to pull email from your ActiveSync Menu. This way it only connects to ActiveSync over the air when you specify.
as they said, just go to activesync ->menu-> schedule change to every hour or whatever
pushmail (as items arrive) requires an active connection between the phone and the mail server so gprs must be connected all the time
If you pull every 15 minutes you'll probably end up using more battery (connecting, checking, disconnecting).
My phone is always connect to GPRS/HSDPA and I've not had any real issue with the battery life.
Agree with Artesea.
My data connection is better when left on. I found a heavy use of battery, in the early days, when i used to have it connect when it needed.
If you are on a flat data plan, i advise leave it on.

email retrieval in standby

Hi
i have only had my g1 a few days, i have set up 2 email accounts to check every 5 mins.
but the phone does not check for the emails until i press the menu and come out of standby!?
I am using the latest tmobile uk standard rom not rooted or anything
does anyone have any idea what i might be doing wrong?
cheers
Are you connecting via wifi? If yes, the default behavior is to disconnect wifi when the screen goes blank. This can be configured at Settings -- Wireless -- wifi settings -- {menu}/advanced -- wifi sleep policy. Note that leaving wifi on all the time will dry up your battery. I like to set it to keep wifi always on, but only when plugged in, default behavior when on battery.

[IDEA][APP] Push Mail Wifi

Hello,
I dont know if this has been brought up. But I dont have a data plan but I would like to have push mail which I know is not possible with Wifi. As far as I know, push mail sends a message to the phone and tells it to connect to server to DL message.
Is there any way to intercept that message and have Wifi turn on to download the message?
Thanks
If you turn on the wifi before launching the email doesn't it use it instead? this does not solve the problem as you mentioned but at least you get the email via wifi...
pushmail and wifi is just a bad idea. pushmail only works properly with an "always on" connection. wifi sucks way too much power and i doubt and device can stay on for more than 6 hours. also wifi it turned off as soon as the device goes into sleep mode to save power
that said, i game across cooked roms in the past that had pushmail enabled on wifi

Exchange emails in standby

I have a new AT&T Pure with an exchange email address set up to receive emails as they arrive. If the phone is not in standby mode the emails come in without a problem at the same time I receive them in Outlook. Once the phone is in standby mode (screen turns off) emails come in sporadically or not at all until I wake the phone up. If I just set it to dim and not turn screen off I am fine. Is anyone else having this issue?
I've found ActiveSync on my Touch Diamond2 very unreliable. It will work for a while but repllog.exe crashes at some point, usually overnight. Only fix is to restart the phone or manually kill the task - it's often doesn't respond to shutdown (indicating it's crashed) and has to be manually ended. Doing a sync immediately always works.
I'm hoping that they've fix this bug in WM 6.5...
Cheers, Rob.
This is a brand new phone with WM 6.5. Everything works finew when phone is not in standby. Once in standby emails don't come in when they should.
dwg44 said:
This is a brand new phone with WM 6.5. Everything works finew when phone is not in standby. Once in standby emails don't come in when they should.
Click to expand...
Click to collapse
You mean by standby, not cable/activesync attached?
I'm still wondering about gmail push, I set everything up as said, but when I'm cabled to my work computer, I don't get gmail.
I have to disconnect and then get gmail push. **sigh**
Ahh, isn't that a setting on ActiveSync? Something about allowing internet connection when docked. I think when a WM is connected via ActiveSync, the internet connection goes through your PC which sometimes is blocked.
munrobasher said:
Ahh, isn't that a setting on ActiveSync? Something about allowing internet connection when docked. I think when a WM is connected via ActiveSync, the internet connection goes through your PC which sometimes is blocked.
Click to expand...
Click to collapse
No, I unchecked that, same result, even after powering off/on. I think that option is misleading
some thoughts and my experience...
Do you expect emails to arrive over wifi, or gprs, The behavior is different by design.
As they arrive, in schedule settings for example only works as most people expected over gprs.( this is also called microsoft direct push) and can be toggled on/off in settings tab on most htc phones.
this also requires a constant open data connection over gprs. the phone will try to open it for you if you enable direct push option.
its also important that the carrier supports long http requests over grps for direct push to work correctly.(this is why gprs need to be open all the time)
if you deactivate the gprs-data connection, direct push will fail until it succeds a long http to the eas server again.(exchange active sync)
when i use direct push option over gprs, emails always arrive instantly (within a few sec.) to my phone regardless of standby or awake. 98% of the time anyway...
Now i have set mine to sync over wifi. however not pushed to my phone as it only works over gprs.i usually set schedule to 5 min.
if set direct push/as arrive over wifi the schedule seems to change depending on how often emails arrive. the polls seemes to be longer and longer apart if mailbox is idle. schedule a bit unclear...
i figured this out by setting a constant ping from pc to the phone and watched the response in standby mode.( wifi not set to always on even in standby) so i got response time out most of the time.
i noticed that after a certain time the phone began to respond to ping for a few seconds( active sync activated wifi in standby to check email according to my setting in schedule and then deactivated it).
if i had unread emails in my exchange mailbox they arrived in the phone as well.
i also read a paper where the direct push schedule where explained by microsoft. it is constructed that way to save as much bandwidh as possible,
i have based this on my observations only.
it would be nice if someone could find a technical paper explaining this further.
tests was done on htc p3600 and stock topaz. wm 6.1
i will do tests again on the 6.5 rom as they come online.
a
Phone is not docked nor am I connected with wifi. Just a GPRS connection. What I mean by standby is that I have the setting enabled to turn off screen after 1 minute.
I have no problem with push email from my exchange server. Remember Push email only works with cell data connection as pointed out. And if you establish ActiveSync connection with a desktop PC, it will be auto-disable and changed to polling instead regardless if you keep the data connection open or not.
I have never connected this phone to a PC.
exchange active sync and wifi
i previously had a TYTNii (Kaiser) which would exchange sync through my home and office wifi (over GPRS) when wifi was available and connected.... However on my Topaz i am unable to exchange sync through wifi when connected for some reason. it will only work through phone connection with wifi off. It appears there are additional connection settings with this WM6.1 device... (priority settings for one connection type over another) but im not sure how to set this up... Help on getting exchange sync working via wifi would be appreciated thanks..

Does the auto disconnect registry tweak affect push email?

I've set up my Gmail account using activesync (as item arrives) and all is well. However, I performed a few tests (sending emails to myself from other accounts) and noticed that the emails don't actually get to my phone immediately. They arrive immediately on the mail client on my PC but arrive about 10 minutes later on my HD2. Is this normal? If not, does the auto disconnect registry tweak I performed have anything to do with it. I'm guessing for mail to reach my phone as they arrive, some sort of constant connection is required with the google server. So does the auto disconnect tweak disrupt this connection? Also, is this constant connection drain the battery significantly quicker. I don't mind sacrificing a small amount of battery life for the push email feature, but if we're talking big drains then I might have to reconsider the sync frequencies.
OK, emails have started arriving exactly the same time on my phone as my PC mail client now. I'm guessing the auto disconnect doesn't affect anything then. It would be nice to know if its draining my battery quicker though when set to sync as item arrives.
Thanks in advance.
I was experimenting today and found the same issue. I'm not convinced that google sync works correctly just yet given that it is in beta.
I have gone back to non push mail.
WB
So hows the pushmail going on with you ?
Does it receive mail instantly ? does it drain battery faster in that way ?
Autosync with gmail seems to be unstable. I usually get mail on my phone instantly, but sometimes it can take up to 15 minutes. It would probably be better to set the phone to check mail every fifth minute or so, but what about the battery?
Does the auto disconnect affect weather, twitter or facebook updates btw?
Genuine 'Push' email can't work if autodisconnect is enabled (and actually working!)
The message that a new item is available is 'pushed' to the device from the server, which requires an open data connection.
If the data connection is closed, the 'new item available' flags won't be received until either the next scheduled poll, or the next push 'heartbeat' connection from the device which reopens the data connection.
qweac said:
Does the auto disconnect affect weather, twitter or facebook updates btw?
Click to expand...
Click to collapse
Weather will be OK as it polls the server on a regular basis which reopens the data connection. I'm not sure about Twitter or FB- maybe having the programs open maintains the data connection?
shaliru said:
OK, emails have started arriving exactly the same time on my phone as my PC mail client now. I'm guessing the auto disconnect doesn't affect anything then.
Click to expand...
Click to collapse
Everything works fine for now (push wise) but as NeilM mentioned, I don't think its compatible with autodisconnect. In notifications, it shows that the connection (T-mobile internet in my case) is still active. And when I hold the call end button and 'Terminate Data Connection' the connection is re-established again immediately.
To disable this constant connection, I've set it to download every 30 mins peak, and 60 mins off peak -
I've never used push email before but I'm guessing it creates a constant connection between the phone and the server.
shaliru said:
I've never used push email before but I'm guessing it creates a constant connection between the phone and the server.
Click to expand...
Click to collapse
Thats correct- the phone sends a 'heartbeat' signal every so often (depending on the Exchange server settings, but usually every 15 minutes) just to refresh it's current IP address setting on the server. In practice, the IP address will rarely change as long as the data connection is maintained.
In this way, the server always knows where to send items as they arrive, and the action of sending resets the 'heartbeat' counter. Likewise any item sent from the phone resets the 'heartbeat'
The data involved in the heartbeat process is around 4MB per month, which is similar to the amount used in the handshaking when polling at 30 minute intervals.
If you have auto-disconnect active, then the server won't be able to send new items, so they will only get sent when a new connection is established by the heartbeat process, or when a connection is forced by a send/receive operation.
shaliru said:
I've set up my Gmail account using activesync (as item arrives) and all is well. However, I performed a few tests (sending emails to myself from other accounts) and noticed that the emails don't actually get to my phone immediately. They arrive immediately on the mail client on my PC but arrive about 10 minutes later on my HD2. Is this normal? If not, does the auto disconnect registry tweak I performed have anything to do with it. I'm guessing for mail to reach my phone as they arrive, some sort of constant connection is required with the google server. So does the auto disconnect tweak disrupt this connection? Also, is this constant connection drain the battery significantly quicker. I don't mind sacrificing a small amount of battery life for the push email feature, but if we're talking big drains then I might have to reconsider the sync frequencies.
Click to expand...
Click to collapse
Well, on my device, the auto disconnect never worked.
I set the values
HKLM\Comm\ConnMgr\Planner\Settings\CacheTime=60
HKLM\Comm\ConnMgr\Planner\Settings\VPNCacheTime=60
and set SuspendResume=""
And all the auto-updates are off (weather, stocks, etc)
and still - once I start a connection (Mostly if I do it for waether update, but sometimes even from SkyFire), it stays on, until I turn it off from the settings.
(Is there anything I missed in the settings to enable auto disconnect ?)

Categories

Resources