Related
I'm experiencing a ~15 minute delay on push email from my company's exchange server. I first noticed this a week or 2 after flashing to DCD 3.2.6. Yesterday, I flashed to DCD 3.3.4 in hopes that this would help to resolve the issue. Unfortunately, I am still experiencing the delay. Is this a known issue, and is there some way to tweak / fix this?
Rom: DCD 3.3.4
Radio: 3.42.50
Carrier: VZW
Many Variables
Hi c3rb3rus,
I actually found that DCD's and No2Chem's ROMs improved the push e-mail on my xv6800. I remember the dark ages, when the original, non-GPS VZW stock ROM had all those problems with missed alarms and notifications.
Having said that, I still get sporadic delays, via two mechanisms:
1) The rlToday plugin (using s2w blackdrop) shows that an e-mail has arrived, yet my xv6800 does not generate a notification. This happens more frequently when I have Messaging running in the background (as opposed to 'completely closed' with Quickmenu)
2) Activesync just does not fully 'check' enough times, even with the sync schedule set to "as items arrive" with "sync on roaming" enabled. I am playing around with the following registry key to see if things improve:
HKCU/Software/Microsoft/Activesync
In this key, you'll see settings like "InitialHeartBeat" and "Maxheartbeat." I am currently playing with these settings to see if my Activesync response time increases.
There is an MSDN article on the heartbeat settings. From what I understand, if the server has nothing new after eight minutes, the next "polling" time is delayed. It gets delayed more and more, when finally... Smack! An e-mail comes 15 minutes after it was originally set.
The link to the article is in the following thread (should be the first post):
http://www.ppcsg.com/lofiversion/index.php/t75611.html
I believe there are some nice XDA Threads that talk about this article, as well. I'll definitely search the archives when my schedule loosens up a bit.
I have only tested my new registry settings for a day -- I'll spam this thread like crazy if things significantly improve.
Sync Delay: Update!
I think there's an improvement. My registry settings follow below, and they drastically differ from the default values.
HKCU/Software/Microsoft/Activesync
MinHeartBeat = 120
InitialHeartBeat = 180
MaxHeartBeat = 420
HeartBeatIncrement = 60
My results so far, over the past 48 hours:
- I got 31 e-mails, 26 arrived instantly with proper notifications, 2 were delayed by a few minutes.
- 2 e-mails arrived on time but did not generate a proper notification.
- 1 e-mail was screwed up -- I got a proper notification, but it arrived nearly 40 minutes after it was sent! I don't know what happened here.
Overall, 1 out of 31 nerfed e-mails isn't that bad... Much better than the occasional 10-20 minute delays I had in the past.
It looks like the new registry settings have improved my Exchange sync issues, but I'll have to keep testing over the next few weeks to ensure that this isn't a placebo effect.
I haven't tried DCD's 3.3.4 ROM yet (I was using NueROM-M up to now). I've flashed with DCD's latest to see if there are any differences in e-mail sync. More updates to follow later on.
Spoke too soon
I see...
I think the Power Management of features of DCD 3.3.4 are a bit different from those in NueROM-M, as I am now experiencing the same delays you're getting.
With 3.3.4, Activesync does not like to sync when the phone is sleeping. If I uncheck the "turn off very x minutes" box in the power options, and just turn the screen off with Quickmenu, the e-mail 'delays' go away. This is not a huge issue for me, since I use an extended battery.
I'm sure the differences are limited to a few different registry settings between both ROMs. Perhaps I'll fiddle with the "DisablePowerManagement" settings in the registry to see if it changes anything.
I should add that I have experienced this issue with all Titan ROMs, custom or stock. However, in my experience, it happens to a lesser degree with DCD's WM6.1 ROMs and Pre3, and yet even moreso with NueROM-M.
I like the speed of 3.3.4, so I'll probably stick with that and turn off the screen via Quickmenu. I'm guessing it's not the solution you had in mind , but I am convinced that these e-mail delays are directly related to power management.
Wow, thanks for the indepth replies! By turning the screen off with the Quickmenu, do you mean the power button?
I'm going to give the disabling 'turn off every x minutes' a try to see how that effects things.
Strangely, I never noticed this issue on the stock ROMs, but there is no way I'm going back to them. I'll let you know how it turns out.
just to chime in. I've only used stock DCD roms for my phone and now on scott's M2D stock rom. we run an exchange 2007 server and i get emails to my phone a few seconds faster than my outlook 2007 and i'm on the same switch as my servers.
I seriously think it's an issue with the server unless you're the only winmo 6.1 user with this problem?
I've thought of that, and even asked other people at my company with win mobile phones if they have any kinda of delay. They all seem to be fine. I used to get emails on my phone before I did in outlook, but after going to a custom ROM this is what happened.
Maybe it had something to do with the radio version? I'm running 3.42.50
Another update
Unfortunately, I had some touchscreen lagging and stability issues with 3.3.4 (strange... probably a bad flash on my part), and decided to switch back to nueROM-M.
I haven't gotten many e-mails recently, but since switching back to nueROM-M, the delay seems to have vanished once again . I agree, this is really weird. When I get slammed with e-mails after the weekend, I'll confirm if this is indeed the case.
One thing I did notice is that the "DisablePowerManagement" registry settings are all "1" in DCD 3.3.4, but they are all "0" in nueROM-M. However, the fact that Jas0nMack is not getting any delays leads me to believe that these registry setings are not the key.
By the way, When I meant Quickmenu, I meant this app, which replaces your start menu with a cascading menu:
http://www.freewarepocketpc.net/ppc-download-quickmenu-v2-7.html
There's an option in QuickMenu to turn off the screen without turning off the phone. If you use this (in combination with disabling the "turn off in x minutes" option in the power settings), and the e-mail delays go away, then we'll know that it's a power issue. This is how I diagnosed the delays I was getting on my xv6800, during my stock ROM days...
HISTORY
V1.1 [2009-10-05]
1) Options dialog to change timeout to run the program automatically (10 by default) and web server to reach (www.google.com by default)
2) Option to reset statistics.
3) When the gui is opened its auto-refreshed automatically each 2 seconds
3) Minor fixes
V1.0[2009-10-04]
1) Initial release.
History
Hi
I ve developed a little program to solve a problem I ve many years ago. I use direct push so I need a permanent connection. This is achieved using activesync (direct push) or setting a connection as always on.
PROBLEM TO SOLVE:
Many times a connecion is stablished minutes or hours ago. But it doesnt work correctly. I dont know if the problem is in phone operator system, or in the device or some roms. Simply the connection is corrupted. If you try to suf a web it doesnt work. Clicking "sync" in activesync keeps rolling for ever. So I ve to close the connection manually (hang button long press) and stablishing a connection again. And then all works again
WHAT I SEARCHED AND DIDNT FIND:
1)A program that tries to reach a server (www.google.es) each x minutes. If there is an active connection but cant reach it then kill the connection and stablish it again. The program doesnt download the page content. Simply reach the server so very little data usage (a few bytes each time)
2) very little, no cpu consuming and no resident. Windows should run it each x minutes. Do its job in a few milliseconds and exit.
3) perform its job even if the device is suspended..
4) So I wrote my little program. It works correctly.
5) If the phone is in fly mode then it skip its job
USAGE:
Just install. No need to run it manually. It installs too a little GUI program (ConnectionStateCheckerGUI) to see some statistics (stored in the registry) like number of checks, corrupt connections, last check, etc. You can set the timeout (10 minutes) and server (http://www.google.com) in the registry.
My job needs a 100% safe real time mailing working. This little program guarantees it and maybe there are other people in my situation.
Greetings
Dani
pd: The black background is because of omnia2 skin. In other devices is a tipical white dialog.
OK. gracias nene.
all right!
Nice work buddy, a common problem that bugs a lot of people including you but you decided to do something about it and now we can all be happy.
May I redistribute this on my website?
thanks for that...
Thanks
Sure, you can use, upload, distribute or what you want with it
...and if someone has any suggestion....
First I was going to do icmp ping instead of http get but my phone company (and probably other) has blocked pings....
Greetings
Dani
Hi¡
New version on first post
greetings
Dani
Any chance of a Today screen icon? That would be more helpful than having to call the program in order to see connection status.
UncleBeer said:
Any chance of a Today screen icon? That would be more helpful than having to call the program in order to see connection status.
Click to expand...
Click to collapse
Good idea but MS says not to use Today plugins because arent used in WM6.5.....
The GUI only reads the statistics stored in the registry and refresh them each 2 seconds...
Dani
Thank you for this nice piece of software.
However I have few questions, right after installing and soft-resetting, then changed web reference to www.google.com and interval to 1 minute, it keeps saying that the Last Result is KO, and only Connection Fixed has the increment.
What makes it odd, is that the connection is actually OK, I can connect to www.google.com via UCWeb and Slick is running too.
This is quite bugging me, however since I only installed it for less than an hour, I'll report again whether my connection would be kept alive permanently or not by this program.
(Dopod 818Pro aka HTC Prophet/WM6.1/My Buble Blue ROM by varanusvincent)
Andi
cumisquid said:
Thank you for this nice piece of software.
However I have few questions, right after installing and soft-resetting, then changed web reference to www.google.com and interval to 1 minute, it keeps saying that the Last Result is KO, and only Connection Fixed has the increment.
What makes it odd, is that the connection is actually OK, I can connect to www.google.com via UCWeb and Slick is running too.
This is quite bugging me, however since I only installed it for less than an hour, I'll report again whether my connection would be kept alive permanently or not by this program.
Andi
Click to expand...
Click to collapse
Hi
Please dont remove "http://" because this is used by WinInet to choose the correct destination. Leave http://www.google.com (or any other site but using http://) and it will work again....
Dani
I did, it's http://www.google.com, with the http://
The connection is still KO (though Slick is up and running smoothly)
Does it matter if the GPRS connection has the proxy setup?
And when I tried disconnecting the GPRS, and then use the Check Now, it won't reconnect.
Oh, btw, the Last Check field is always empty.
Andi
cumisquid said:
I did, it's http://www.google.com, with the http://
The connection is still KO (though Slick is up and running smoothly)
Does it matter if the GPRS connection has the proxy setup?
And when I tried disconnecting the GPRS, and then use the Check Now, it won't reconnect.
Andi
Click to expand...
Click to collapse
Yes, for sure is related with GPRS Proxy. Let me take a look at this.....
Andi,
Could you test this version? I ve added support for GPRS proxy. It works in my network but I dont use proxy. Could you try it?
Thanks
Dani,
Sorry for the late reply. I have just finished installing and voila! The Last Check is not empty anymore. I have changed the web reference to http://www.google.com, and interval still to 1 minute, and guess what, now the Last Result is OK!! and Connections OK is now the one who gets the increment. So yes! It works! When WM finished loading up, and when I use the Check Now function, it is now connecting the GPRS automatically.
So I supposed it would close and then reconnect GPRS if ever the connection gets corrupted, right?
Once again, Bravo!
Andi
Just wondering really, if I can get it scheduled for certain time only? Or I can get it stop, perhaps? It would be better than filling in the interval time of 360 minutes every night?
Hi
It seems to work correctly. Tomorrow I will comvert the beta im release amd probably will add period of checking as I did in bandswitch
Dani
Dani,
Just find another thing here.
I did say it does make an automatic connection, it *is* connecting, however, i have just found out, it does *not* end up connected at all.
What I meant by connecting, the antenna icon is having two arrows and the small box with G in it, but it won't be connected at the end of the animation.
The Connection Fix number is added, but since there is no connection in real.
In the end, I still have to use UCWeb or Slick to get connected.
-------edited
Okay, strange enough, I changed the interval to 5 minutes, and after awaited for 2 times trial, it did finally made the connection. Hm.
-------edited again
I did try certain things again. I changed back the interval to 1 minute. Then I tried the following:
* Changed the web reference to http://wap.telkomsel.com (the provider's default wap page), 3 times trial, all failed.
* Changed the web reference to http://www.google.co.id, 2 times trial, finally connected.
* Changed the web reference to http://www.google.com, 3 times trial, all failed.
* Changed the web reference to http://208.67.219.230/ (www.google.com ip address), 3 times trial, very short timed trial, all failed. I supposed it does not accept IP address as a reference?
I'm not an expert in this area, however, it does seem to me that it's related to session time-out thing.
Once the time-out reached, it drops the on-going connection trial. I concluded this because I checked my Data plan's balance, and nothing's to be deducted during the failed session.
So the work around I finally do is to change the registry at HKLM/Comm/ConnMgr/Providers/{myGPRSconn-hash-number}/title_of_conn/AlwaysOn value to decimal 1.
After that, it would get the connection established, even if it seems it doesn't receive any reply from the referred web, get passed all the session time-out variable, until the complete handshake (if this is the correct term).
Andi
wow, that was a deep test. Thanks.
Tomorrow I will try to find a gprs server with proxy to do try/error system
danielherrero said:
Many times a connecion is stablished minutes or hours ago. But it doesnt work correctly. I dont know if the problem is in phone operator system, or in the device or some roms. Simply the connection is corrupted. If you try to suf a web it doesnt work. Clicking "sync" in activesync keeps rolling for ever. So I ve to close the connection manually (hang button long press) and stablishing a connection again. And then all works again
Click to expand...
Click to collapse
Hello Dani,
It has been some time since you posted here. Are you still supporting or working on this app? If you are I would like to ask a question or two having tried the app on a TMOUS HD2 recently.
A lot of the time the app works exactly as you intended - perhaps 50% or better improvement. But sometimes it is not able to disconnect and re-establish the connection for some reason. I find that it will end up in a near permanent KO result loop.
At these times the data connection is established (H or 3G) but no app can successfully connect (no email, no browser). Your app will continue trying but is not successful.
At such a time if I manually drop the data connection (via Touch X action screen, for example) the connection can be re-established within 15-30 seconds of an app trying for data. It is not immediate - some app will have to ask for a data connection and it takes some 15+ seconds before it can successfully continue.
What I am wondering is how your app is trying to do this and how is the data disconnect of Touch X different. I hope I explain it clearly.
.
ny_limited said:
Hello Dani,
It has been some time since you posted here. Are you still supporting or working on this app? If you are I would like to ask a question or two having tried the app on a TMOUS HD2 recently.
A lot of the time the app works exactly as you intended - perhaps 50% or better improvement. But sometimes it is not able to disconnect and re-establish the connection for some reason. I find that it will end up in a near permanent KO result loop.
At these times the data connection is established (H or 3G) but no app can successfully connect (no email, no browser). Your app will continue trying but is not successful.
At such a time if I manually drop the data connection (via Touch X action screen, for example) the connection can be re-established within 15-30 seconds of an app trying for data. It is not immediate - some app will have to ask for a data connection and it takes some 15+ seconds before it can successfully continue.
What I am wondering is how your app is trying to do this and how is the data disconnect of Touch X different. I hope I explain it clearly.
.
Click to expand...
Click to collapse
Hi
Let me took a look at this
So here is the thing. From time to time, mostly hour by hour, my Leo connects with internet and changes time one hour forward. Always, after I notice the change I turn the clock back, but it's not a solution. And one more thing, after that, in task manager, activesync is always present. I tried to decline Location service, tweaking the registry as advised few weeks ago on xda main page. I seroiusly need help in disableing activesync, because it really gets on my nerve. I have a data plan from my operator, but those constant time changes are annoying and confuseing sometimes (especcialy in the morning). Thank You for the solution (if there is any) in advance
as for time changes you'll find few threads on disabling the GSM time sync, also check in Settings / Data services if the internet time sync is disabled
for ActiveSync check here
hi there
i wanted to know what is the real reason for we have to use an app such as clocksync (great by the way).
for instance, my old 10 years nokia doesn't need "resync" and keeps the right timing while my smartphone now needs to have the time corrected otherwise it will drift away plenty of minutes.
and also, in order to sync with clock sync, i need a data connection, but if i travel overseas and i keep my data roaming disabled, i will never be able to do that, correct?
thanks
gabrio
Who says you have to use the app? I use it mainly on my touchpad because the clock gets reset sometimes and the market doesn't work because of it, unless this happens on your phone you don't need to use it. Yes you need a data connection for it, or wifi.
It is hardly ever really out on time but I like to be precise so even since the days of WM have used applications similar to clock sync and clock sync therefore is essential to me...
Sent from the valley of the shadows....
I'm ClockSync developer, your question is answered in the application FAQ:
Q: Why would I need ClockSync, Android already has Automatic setting for Date & time?
Not all the mobile operators support automatic time synchronization mechanism called Network Identity and Time Zone (NITZ), therefore this setting may have no effect at all. Even if your provider supports NITZ, the information it sends may be inaccurate. There are also devices without SIM card, especially tablets that have no access to the network time. If Android Automatic mode works fine for you, then you are lucky and probably don't need ClockSync, otherwise it's recommended to disable it to avoid conflicts and getting incorrect time, see also a question about wrong time after synchronization below.
Set up my works Exchange account on the S3 and suspected it was causing high battery drain.
Selected some 'sleep time' from within the application and then also selected Manual Update so I could save battery. It appears manual doesn't change anything though as my mail still comes through unless I deactivated the account completely?
Anyone else have this issue.?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
WhiteHartMart said:
Set up my works Exchange account on the S3 and suspected it was causing high battery drain.
Selected some 'sleep time' from within the application and then also selected Manual Update so I could save battery. It appears manual doesn't change anything though as my mail still comes through unless I deactivated the account completely?
Anyone else have this issue.?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
Click to expand...
Click to collapse
That wouldn't be a bug in Exchange causing the issue.
It is, most likely, because ActiveSync, which is what Exchange uses to communicate with your phone, is a server-side "push" technology. This means that your phone, most likely, has WiFi and/or your Internet services "always on" to accommodate ActiveSync. ActiveSync doesn't work like Blackberry where the client-side does all of the control/communication (pull technology). It is all done server-side, which means that the phone has to always have an Internet connection, either through WiFi or the phone Internet services, to be ready to accept incoming information from ActiveSync.
Thanks for the reply - so the option to manually retrieve mail is pointless then as it going to get pushed whether I want it or not?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
After posting my response, I decided that it could be a little bit clearer, so here goes.
Blackberry (BES specifically), IMAP, POP3, SMTP, etc, the client side, in this case the phone, is in control of all of the message synchronization. Meaning that every n number of minutes/hours/days it opens up an Internet connection and says, "Do you have anything for me? If so, send it now." That's client-side pull technology.
ActiveSync, on the other hand, the server (in this case the Exchange Client Access Server), sends out the info, via AvtiveSync, every time something new comes in to your Exchange mailbox. This happens "real-time" rather than every n number of minutes. This means that the client side, in this case the phone, must have an "always on" Internet connection, either via WiFi or the phone's Internet service, to accept these "real-time" updates. This is server-side push technology.
Server-side push technology, by its very nature, causes the client-side, in this case the phone, to consume more battery since the WiFi and Internet "radios" must always be on.
I hope that this makes more sense than my last post.
---------- Post added at 11:33 AM ---------- Previous post was at 11:28 AM ----------
WhiteHartMart said:
Thanks for the reply - so the option to manually retrieve mail is pointless then as it going to get pushed whether I want it or not?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
Click to expand...
Click to collapse
Correct. The server is the controlling "party" in the paired relationship.
WhiteHartMart said:
Set up my works Exchange account on the S3 and suspected it was causing high battery drain.
Selected some 'sleep time' from within the application and then also selected Manual Update so I could save battery. It appears manual doesn't change anything though as my mail still comes through unless I deactivated the account completely?
Anyone else have this issue.?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
Click to expand...
Click to collapse
I ran the same tests on the S3. I'm syncing 3 exchange accounts.
Email exchange service drains the battery really fast ...
Nearly half of the battery is used (battery stats) for this process only [47%].
My battery cannot last:
- on 3G networks, more than 5 hours.
- on WiFi, it goes up to 8 hours.
I used to sync the same exchange accounts on 2 other Samsung devices: Captivate Glide and Galaxy Note - both running Android 2.3.5/2.3.6
=> no issues with the sync services draining the battery.
IMHO, this is not only linked to the Activesync technology, it is also linked android release and the way email exchange service is made/configured (or runs).
There might be some tweaks or possible patch for this service...
But don't know what or where, yet ...
My 2 cents ...
The phone keeps at least one connection to Google open at all times (C2DM push) when it has a network connection.
Open and half-open connections do not really cause high battery drain since your device can (and will) go to lower power states and switch the network to fast dormancy which is a sort of periodic polling for new data.
A scientific article about the topic can be found here: Link (PDF)
The relevant part is in footnote 4 of paragraph 4.1.2
In fact, even at IDLE, a handset periodically wakes up to listen for incoming packets on the paging
channel. If a downlink packet happens to arrive between two paging occasions, it will be delayed until the next paging occasion
Click to expand...
Click to collapse
Additionally that IMAP is poll-only is not entirely correct. While IMAP itself is usually only used as PULL (client requests, receives, closes connection) many servers support the IMAP IDLE mode (client requests, receives, waits for new data, receives, waits, ...) which is a real push technology.
(Technically it differs from Google's C2DM which in fact is HTTP (Comet) long-polling and not true pushing)
I've noticed a high battery drain on Exchange too, even if the account was disabled. It's unrelated to how the phone is connected (Wifi,3G,2G) and _seems_ to get lower when no data connection is open.
It will only go away if the account is removed and seems to caused by the app waking up all the time even if not needed. Thirdparty apps and stock Android do not seem to have this issue - at least my S1 did not.
(I haven't tested on the S3 with a non-stock app yet)
Btw my Exchange server is a patched Z-Push IMAP/SMTP<->Activesync converter from their trunk with Exchange2007 capabilities.
Yes, there HAS to be a bug in the exchange app on this phone.
I got my phone a month ago, and have had no issues with battery drain and high data usage with Exchange what so ever. Until this weekend.
All of a sudden, with no change in the settings at all, my battery all of a sudden just lasted 5-6 hours. It got really warm too. Then after a day or so, I got a message that my monthly limit of data was reached. I didn´t believe this at all since I had more than 500 MB left on my limit the day before.
But when I checked the settings, I was shocked to see that this was true indeed. And it was "exchange services" that caused this. It had downloaded about 600-700 MBs over this short period, thus (of course) causing my battery to drain quickly, and I will now get a nice bill from my phone company for over use of data
As I said. No changes to the settings were done. This happened over night. And of course this has to be a bug in the app, not a server-issue. No one else in my company, as far as I have heard, had had this issue (yet), but after googling I can see that this actually is a problem for many, with different phone brands.
It seems like google has got complains about this, but there has not been released a fix, which is totally unacceptable. I now have had to turn of my mail sync to prevent the data usage to go insane, and my phone to get warm, slow and quick battery drain.
If this isn´t fixed quickly, I will uninstall Exchange services from my phone (have root), and install Touchdown instead.
Here is the problem discussed:
productforums.google.com/forum/#!topic/mobile/tCA92MdBTmc
- but with no solution.
Issue was resolved by deleting account and reinstalling it. But I had to do it twice before it worked.
I also cleand the Exchange Services App with the tool SD Maid before I reinstalled my account the second time.
My battery is back to normal, and no more crazy data usage.