Activesync push email delay - Mogul, XV6800 ROM Development

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...

Related

WM6 problems so far

Hi everyone! I've read these forums for a long time but haven't posted much before. It was doing my research here that led me to buying my Prophet. It couldn't have been a better decision, so thank you! I owe you guys one.
So... I thought it might be helpful to list the issues people have been having with their WM6 builds so far, since right now the problems seem to be spread through other threads. I flashed the PDAViet 4.0.0.0.3 two days ago, and although it runs pretty well, I've run into a couple of problems that other people have seen too:
1. Wifi works only sometimes. I'm really not sure what causes it, but it will always work properly again after a soft reset. It doesn't seem to matter how long my Prophet is turned on - I soft reset last night, put my phone down, and tried the wifi again this morning, and it worked fine. I'm guessing that it might be some other program or system process that's interfering with the wifi/wlan.
2. MMS/SMS. Since I don't use MMS, I can't speak for myself, but I've read other people are having trouble getting their MMS to work properly. I've also read that a small minority of people are having trouble with their SMS. Can anyone confirm/deny this?
3. Missed calls. People have posted that their phones sometimes just won't ring, and they get missed calls. Some say that this can be fixed by downgrading to the 2.19 radio ROM. Has anyone tried this, and did it work?
4. Bluetooth. I haven't had any bluetooth problems, and the bluetooth keyboard I installed works great. However, I've read that other people have been having some problems. Anyone care to comment?
5. Battery troubles. People have said different things about whether or not their WM6 ROMs use more power than WM5; I'm not sure that it actually makes much of a difference. One thing I did notice, though: my Prophet will charge fine when attached to my PC's USB port, but not when plugged into the wall! The yellow light comes on, and it looks like it's charging, but the battery continues to drain. This is easily one of the weirdest problems I've had.
If you have other problems/errors using any WM6 ROM (not just PDAViet), please add on to the list! Say what the problem is and what ROM you're using. Also, if anyone knows fixes for any of the problems, add them here too!
TrueNeytral 1.4 MS BT.
Very few issues. No problems with Missed calls, MMS, BT or battery (10% per day with 2 calls each day). Wifi varies a bit - but no real problem.
Once I mistakenly pressed the flight-mode icon, then turned the phone back on - I didn't recieve SMS for two days, until I re-booted. Strange...
7. Sporadically missing email, wifi and bluetooth settings after soft-reset, even if we turn off the phone everytime a change is made.
Occasional missed calls; seems like they just go right to voice mail sometimes.
Battery life fair with Radio 1.40; it may be a little better with 1.38, hard to tell; definitely better life by turning off 3G
Some minor incompatibilities with BatteryPack Pro, mostly visual things, nothing functional so far
In Windows Live, when checking email if I close an email message Windows Live closes and sends me back to the Today Screen; if I 'reply' to an email, then 'cancel message', it will send me back to the email list, not close the program and return me to the Today page. This bug disappeared for a while and the email functioned properly until I flashed a new radio ROM(1.40), then bug returned
rjtd said:
7. Sporadically missing email, wifi and bluetooth settings after soft-reset, even if we turn off the phone everytime a change is made.
Click to expand...
Click to collapse
Yeah, me too. I didn't see it happen with my email, and I don't use the bluetooth too much, but it seems like the settings for my home router would mysteriously disappear whenever I soft reset, and I'd have to put in my password again.
Hi
Zoltair Wright said:
Yeah, me too. I didn't see it happen with my email, and I don't use the bluetooth too much, but it seems like the settings for my home router would mysteriously disappear whenever I soft reset, and I'd have to put in my password again.
Click to expand...
Click to collapse
I have the same problem. What I've seen: I only loose mails, internet settings, Windows Live Messenger settings, if I use soft reset harware button. Try to use an software program that allow you to soft reset device like XCPUScalar which put in system tray an icon for that function.
If you find something else to remedy that problem please anounce me
password
Don't forget the password issue.
An important feature for business users - I guess.

Mysteriously Switching to Vibrate Mode

Since I've upgrade to DCD 3.2.x ROM's I've had a weird issue with my phone randomly switching itself into vibrate mode. I seems to occur less frequently with the 3.2.6 ROM, but in the last few days it has definitely switched into vibrate mode more than a few times. I've been unable to track down any more details as to why this is occurring (i.e. a program I'm using or something I'm doing and not realizing). I am using HTC Home, I doubt this has a bearing on the situation, but I thought I'd throw it out there. Has anyone else experienced this problem? More importantly has anyone found a fix to this annoying issue?
Thanks folks!
same here
I have had that same problem here recently along with the radio turning off periodicaly for no reason. Had DCD 3.2.6 installed since it came out. No new programs have been installed since the install so I don't think that is it.
HTC Home has a feature to switch your audio profile to vibrate when you have an appointment in your calendar. Ensure that you are not set to "automatic" on your sound tab.
Other than that, no ideas.
ande8150 said:
HTC Home has a feature to switch your audio profile to vibrate when you have an appointment in your calendar. Ensure that you are not set to "automatic" on your sound tab.
Other than that, no ideas.
Click to expand...
Click to collapse
I second the suggestion. I had accidentally put mine in automatic and every time an appointment reminder would go off, 10 minutes later it would go to vibrate... took me about 3 days to figure it out.
Now I use it all the time, if your calendar appointment is set to busy, with automatic it will do this. If you don't want the auto-vibrate, set your time to free (that is what I do with kids sports schedule's)...
Not Using Automatic Sound Setting
I'm certainly not using the automatic sound setting in HTC Home so it must be something else...

ActiveSync/Exchange Sending multiple copies of email

Hi,
After an upgrade (No2Chem 3.49 Radio 3.42.40) everything works really great!!! Except, I am having an issue with ActiveSync.
Intermittently, (sometimes every 3 seconds, sometimes every 10 minutes), a blank window covers the whole screen with a title of "ActiveSync" and an "ok" in the upper right corner. If I click ok, the ActiveSync main window appears. I believe everytime this happens, it is resending all of the email in my outbox and the message never gets removed from the outbox even though it is delivered to the recipient.
ActiveSync works fine with PC via USB and for all features besides the email. Also, SMS and Gmail correctly clear the inbox and send only the single email (this is what makes me think it is the ActiveSync).
TIA,
Brian.
I have seen that with the MR1 ROM while ActiveSync is doing its first sync with a large mailbox. (I've got a couple thousand messages from the past month that sync via Exchange.)
I've noticed intermittantly unreliable behavior of the Exchange mail client while it's still cranking away at the initial sync (failing to set message read flags server-side, to be specific).
Regardless, though, things worked fine for me after ActiveSync finished the big initial sync run.
Thanks Skywing,
That doesn't appear to be the case. I only have ~20 emails trying to sync. I did try re-flashing as well as reinstalling AS to no avail.
FYI to all --
I did just come across this thread on MS Mobile support forums...
https://forums.microsoft.com/window...1&siteid=65&sb=0&d=1&at=7&ft=11&tf=0&pageid=0
It appears that this is an issue with Exchange 2007 and WM6.1. It looks like there is a hotfix that needs to be installed on the server side (which I don't have control over). There is a chance this isn't the issue, but it certainly sounds like all of the same symptoms. Unfortunately, there is no apparent client-side fix.
-Brian.

ActiveSync Issue...Server Changed ReSync Required

Hello,
I was unsure of which thread category to post this, so I did a couple, Hacking and this ROM, sorry if this is misplaced. Correction and criticism welcomed.
Here is the issue...
Have a AT&T Fuze with the NRG v2.0 41609 ROM. Running MSO2007, specifically Outlook 2007 through Exchange on my company's network. I do not know what Exchange server version we are running.
On occasion, perhaps 1-2 times per day I must completely resync my Fuze contacts, calendar, etc, etc with Outlook 2007. Why? The "server" changed. Sorry, the error message I recently got and have gotten in the past essentially says the data on the server has changed and I must resync all of the data the Fuze. I do not recall the EXACT message. Bottom line though is nothing "changed" at least by me.
Also, under the Settings > Connections there is a "Edit my Proxy setting choice and it auto checks and completes an entry xxxxxxx.com for the server address. I have unchecked, rechecked, etc hoping this helps aovid this regular resync.
Lastly, the resync takes about 90 minutes given all of the contacts, calendar, email and if it did not take so long I would not fret about it.
So why and why might I change to avoid this.
Thanks in advance,
m0
P.S. I search but frankly was uncertain what to put as search words to increase the applicable hits
Picture has been added.
I had the same problem often with my previious phone Motorola Q6h. However, I don't remember how I have dealt with it. Try to syncronize by bluetooth...
This is an old bug. It is across XP, Vista, Vista 64 bit, WM 5.0, 6.1 & 6.5.
There are a couple of alternatives. Most report that using BlueTooth solves the problem. Another option is to use Emoze, but that is not flawless either. My fix is less friendly, but has worked for me 100% of the time. I do this every time I flash a new ROM.
Do the following:
1) Hard Reset - I know, a pain.
2) Set Owner information
3) delete old partnership on PC
4) reboot PC
5) connect phone to PC and select default sync options. After initial sync, with the phone still connected, on the PC go to ActiveSync or WM Device Center and change your sync options to your own liking; 2 weeks of email, notes etc...
6) let it fully sync
7) after it does the second full sync (still first connection) disconnect the phone
8) On the phone, Start>Settings>Connections>USB to PC> deselect "enable Faster transfer" or "Advanced Networking" depending on 6.5 or 6.1.
9) >OK - Soft reset
10) after phone comes back to life reconnect to PC and syncing should work fine.
I think the problem has to do with timing on the faster USB transfer rate. The PC is expecting a response and when the phone does not give it fast enough, it throws an error and you get to sync from scratch.
The only downside I have found for not having the faster transfer rate is it takes a bit longer to sync. That is why I like to change to my options (step 5) before I disconnect the first time. The big transfer is faster. After that it is just updates, so speed is not as important.
The only other down side is that if you own a RedFly, it requires the Advanced Connection which screws up your activesync. But the RedFly does not work well with the Touch Pro anyway and not at all with WM 6.5.
Hopefully this will work for you.
Doug M.
90 Mins for a sync? Crap... Do you have a large number of contacts (how many), or calandar items, or email? THe most mine has ever taken is about 2 minutes to do its initial sync OTA, not on a PC.
Are you syncing OTA or connecting to on a PC?
Guys, thanks of the help on the ActiveSync issue. I fashed a new NRG ROM and so far all is ok with thew sync. I do have some other OCD items that I am working on, like all blue highlights, blue / black Tachi phone, getting HTC Blue.task to be blue, EzInput 2.0 FULL (vs. compact) with arrows and blue character key press, etc, etc so so far no AS issues.
As far as how much stuff I have?
1600 contacts
2500 calendar items
100 emails (only Ocutlook IN and OUT boxes)
Again thanks.
If you have nay insight on the other items, please PM or post.
Best,
m0
i found a fix that works almost flawlessly. i get this problem maybe once a week and it's a pain in the ass.
go into activesync settings (when not connected) through your phone. uncheck email (hit yes if it promts you for deleting emails, etc). Re-check, connect, re-sync. That usually does it for me. If not, try syncing after deleting emails and then disconnecting, checking emails again then resyncing.
hope it works for you guys too!!

HTC HD2 battery suspend problems

Hi, I've searched extensively on this and other forums about this issue with no luck...
My problem is my HD2 (1.72.841.0 telstra ROM) has stopped suspending when unplugged from AC power. Changing the backlight settings from sound & display doesn't help. This modifies HKLM/SYSTEM/CurrentControlSet/Control/Power/Timeouts/BattSuspendTimeout to the corresponding number of seconds. However, the phone stays on. I would have thought I have a hardware problem where it thinks it is still on AC power, but other battery-specific tmings, like dimming screen, are working.
Setting BattUserIdle to some values works (it either has to be <=120 or <= BattSuspendTimeout, haven't worked out which). However, something is resetting this to 0 after a while and I don't know what or when.
This is killing my battery life & driving me nuts. Manual suspend is not a good solution because it stops music playback after current song. Does anyone have any ideas what might be going on?
I've done a little extra testing on this problem. By setting the AC power suspend settings to five minutes I've been able to confirm that the HD2 isn't going into suspend from AC power, either. BattUserIdle, and the backlight dimming settings, must use a different set of rules to decide when the device has been idle. So I'm suspecting there is a process/service running on my HD2 that is keeping it awake. The question would be what? The only things I can think of that have changed just before the problem started is I installed Schap's Setup VoIP (v0.3), and I set up a push email account through windows live. I can't uninstall Schap's Setup VOIP (uninstall fails); I'll give disabling the push email a try...
Well, after trialling disabling Windows Live push email it looks like this is the culprit. I take it BattUserIdle must be the time from last user interaction to standby, while BattSuspendTimeout must be affected both by user interaction and by certain system activity. Push email keeping it awake must surely be a bug. Has anyone else been using Windows Live or other push email? I'd like to hear other people's experiences on this.

Categories

Resources