[Q] Turn off data connection automatically after automatic emailcheck ? - Touch Pro2, Tilt 2 Windows Mobile ROM Development

I just created my live emailaccount on the email tab in one of the latest Energy roms and when you choose to check your email automatically every 30min for example, the data connection stays on, which uses a lot of battery offcourse. I think this is probably with all roms.
Isn't there any trick or tool, when the emailprogram in the hometab checks for emails that it disconnects automatically after the emails have been transfered to your phone ? This would save a lot of battery, I searched for an option but didn't find anything.
Thanks!

You can try "Manila Dial-up Enabler/Disabler"
http://forum.xda-developers.com/showthread.php?t=610657

Hi
If you're not squeamish with registry editing, look here
HKLM\Comm\ConnMgr\Planner\Settings\
Change CacheTime to 60
In SuspendResume replace ~GPRS! with GPRS_bye_if_device_off
Then soft reset
your device will disconnect teh data connection after 60s of idle time
source
http://forum.xda-developers.com/showthread.php?t=305332
see post #9
I've used these for close to 16 months now.

Related

Need an automatic ping tool for keeping network connection alive

Hello,
i have a data option at vodafone germany with 200 MB Traffic inclusive. But there is a problem: Vodafone counts the traffic in 100kb Parts and terminates the connection if there is no data transfer for some minutes (mostly about 8 minutes)
I use the exchage Email push and there is no constand data traffic. Only when an email arrives or when the exchange sends a timeout.
So Vodafone terminates the internet connection, active sync recognized it and starts the connection again. That would be no real problem, but every connection is a new 100kb part.
So i've got about 30MB Traffic after 2 days only for reconnecting. That is not really good for my inclusive traffic.
So i need a tool like an automatic ping. A program, which sends every x minutes a ping so that there is a minimal traffic and vodafone keeps the connection alive.
Is there such a tool? It could also be a tool, which looks for updates every 5 minutes The program only have to do a little traffic.
Because the connection is termindated by vodafone, no kaiser reg tweak is working.
I hope you can help me.
Thank you in advance
Special2k3
It's well known that Windows Mobile cuts off the connection after some minutes. But I've never heared that a provider cuts off the connection after some minutes without data. Are you really sure about that? A good provider wouldn't do that... ;-)
I've already had a similar problem with my old S200. It disconnected after some hours. But that wasn't a problem with the provider. It was a problem with the ROM update.
Nevertheless at that time I've also searched for a ping tool. I wrote a little Mort-Script (with logging feature) and executed it with SkSchema every hour. Since you are needing smaller intervals this could be a problem. It is a little bit hard to use SkSchema for small intervals. Here is the script:
Code:
If( InternetConnected("http://www.google.de/") )
Chk = "OK"
Else
Chk = "Off"
EndIf
FmDate = FormatTime( "Y-m-d" )
FmTime = FormatTime( "H:i:s" )
FmName = FormatTime( "ymd" )
LogText = FmDate & ", " & FmTime & ", " & Chk & ", time^NL^"
LogFile = "\My Documents\MortScript\Conn\Conn_" & FmName & ".log"
WriteFile( LogFile, LogText, 1 )
Exit
Another solution could be this tool:
http://www.wizcode.com/products/view/gprs_keep_alive
or, use vxUtil. see the Wiki for my related mass Ping tutorial
So, up again.
Is there no real solution for my problem?
No little simple program?
Special2k3
Special2k3 said:
So, up again.
Is there no real solution for my problem?
No little simple program?
Special2k3
Click to expand...
Click to collapse
http://wiki.xda-developers.com/inde...ng from the Net When I Don't Actively Use It?
Hi. Use Bandswitch to keep your connection "always-on".
Dani
Menneisyys said:
http://wiki.xda-developers.com/inde...ng from the Net When I Don't Actively Use It?
Click to expand...
Click to collapse
Thank you, nice program, but i have a problem: When the TyTn II is in standby mode (after pushing the power button once) the programs stops sending pings. When i turn on the tytn again, the ping sending continuous.
Is it possible to send also pings when the device is in standby?
Special2k3
Have you already tried the program I've mentioned in the post #2?
http://www.wizcode.com/products/view/gprs_keep_alive
Exact the program i was thinking about. But i have the same problem: The program works great if the kaiser is on. But when it is in standby mode (about 80 % of the day) the program stops to work as long as the kaiser is in standby.
Is there a way to define if a program should stop at standby or not? I mean the HTC Music Player also works in standby mode.
Thank you
Special2K3

wlan turning on automatically, need to stop it

i have search high and low today for this, and i don't recall if i did something before to shut this down. i just did a hard reset and now i've got this problem.
direct push / activesync seems to be forcing my WLAN connection on automatically. prior to my hard reset, this wasn't happening.
basically, when i put my phone in flight mode, or if the phone is off and i'm using the WLAN connection then turn it off, it pops back on w/in a few seconds or a few minutes. it seems to occur when activesync attempts to do a sync w/ my exchange server.
can't seem to find much on this subject, but is there some setting i've forgotten to make after my hard reset, or a registry tweak to set this so that if my phone is off and WLAN is off, that activesync and direct push cannot turn it back on...i want it to be manual only, nothing automatic.
thanks,
chris
EDIT...sorry...AT&T Tilt, Stock ROM (update from earlier this year). I'm running Schap's Comm Manager as well, but can't see how that would matter.
Also made some changes using Schaps Adv Config tool, but nothing to the activesync / direct push / wlan entries that I recall...

Messaging doesn't disconnect internet

My phone has been draining battery very quickly, and I think I found the root of the problem The Orange Internet, once connected, doesn't disconnect itself automatically anymore.
I've just updated to panosha 2.6, so I wonder where can I find option like "Disconnect after x mins of idle" for Orange Internet? I remember seeing something in the Advance Config Tool, but now I can't find it anymore, only found for Wi-Fi...?
Or have the Messaging (I.e. my Yahoo email account) to disconnect Orange Internet after it done the sync?
Could it be a ROM problem? I think before it disconnected automatically after it finish downloading emails
Thanks
You can use HD Tweak or Advanced Config to do it.

Inbox crashes when disconnecting or power ON

Hi!
I have a strange problem. Each time I power on my device, if inbox was previously opened, after a few seconds it disappears. The same thing happens when there is an ongoing network connection (3G or Activesync etc), and the connection ends (disconnect 3G or plug out the USB). If I was in the middle of something it gets lost.
This also means that if I send or receive an MMS and it starts to upload/download it, after the transfer it disconnects --> Inbox crashes immediately.
So it is somehow related to network disconnections, but I cannot figure out more. I am on Nataly 2.6, but I am not sure if that matters. I really would not like to do a hard reset
I tried killing all the running processes, it didn't help. There is something with the Inbox, maybe it glues itself immediately to any active connection and crashes if that connection is closed while it still uses it.
Any clues?
Solution
I found out that mortscript was runing in the background after each disconnect and wakeup. It executed a script that kiled tmail.exe. I never personally installed mortscript so I guess it is included by default in Nataly 2.6 ROM. It is kind of stupid so I suggest removing the respective line from the ROM (files netshut.mscr and wakeup.mscr).
how can we remove that files (netshut.mscr and wakeup.mscr)?

Why all WM6.5 ROM Autoconnect to the Internet Service

Hi,
My blackstone connect to the internet service automatically draining my prepaid load.
Is this the same in all the WM 6.5?
WM6.1 doesnt do this. It only connects when I need it.
Does anyone have a fix on this. No push internet doesnt seem to solve this problem in my HTC BS.
Thanks
gilbert_xda said:
Hi,
My blackstone connect to the internet service automatically draining my prepaid load.
Is this the same in all the WM 6.5?
WM6.1 doesnt do this. It only connects when I need it.
Does anyone have a fix on this. No push internet doesnt seem to solve this problem in my HTC BS.
Thanks
Click to expand...
Click to collapse
try xannytecks 1.9
I found the problem finally.
Go to Setting -> Data Services -> Time Synchronization.
Just uncheck everything there.
Internet service connect
Hi,
Thank you for your help.
I will try it immedietely
thteong said:
I found the problem finally.
Go to Setting -> Data Services -> Time Synchronization.
Just uncheck everything there.
Click to expand...
Click to collapse
Seems like it doesn't work =(
The data connection still insist and consume the battery
sunnymiu said:
Seems like it doesn't work =(
The data connection still insist and consume the battery
Click to expand...
Click to collapse
Because that was not the root cause ...
Actually the cause of the so called problem is a lack of understanding of the basic WM and HTC data connection settings and more specifically the way the two operate together, or don't in this case. In fact there really is no problem and nothing specific to the WM6.5 ROMs. This auto data connection behavior existed in my stock WM6.1 ROM way back in the dim old days.
Let me try to explain it this way.
First thing to understand is that there are two controls for Data Connection. A HTC TF3D/Sense one which everyone knows as Comm Manager. The second deeper level one is the WM6.X one which you will find at Settings > Connections > Connections > Advanced > Select Networks > Your Cellular Operator Settings (GPRS Settings).
The second thing to understand is that when you do a hard reset as you must when you flash a ROM, the Auto Connection Setup process will automatically select for you and set the GPRS settings on by default. So, deep down there, WM6.x has set you up to use a data connection automatically whenever your mobile needs a data connection and your WiFi is disabled. This happens for example if your email is set to auto download every so many minutes. Remember, email is a WM6.X service.
The third thing to understand is that the HTC Comm Manager really only controls data connections from the HTC interface, ie. TF3D/Sense. For example, if you do a weather update, this is a TF3D/Sense service. So if you turn off Data Connection in Comm Manager it will just turn off data connections to the interface. But lets say your email does an auto send and receive, because the WM6.X GPRS setting is enabled, a data connection will take place regardless of what you did in the Comm Manager.
So how to get around this problem? Easy! Go to the WM6.X setting for Connections that I pointed out above. After entering 'Select Networks' use the drop down box to select 'My Work Network' in the upper setting for programs that automatically connect to the internet. This will totally disable your data connection and it will not turn on again until you do the reverse.
Now, to turn data back on, you don't need to go into WM settings. You will find that the Comm Manager is sort of connected to the WM6.X setting. Turn on Data Connection in Comm Manager and you will find that it brings up the WM6.X Connections settings so that you can go to the drop down box and re-enable your Cellular operator's settings for GPRS. After clicking OK a few times you will end up back at Comm Manager where you turn on Data Connections. If you skip this last step, it will turn on automatically anyway when a program calls for a data connection.
Now the quirk is that Comm Manager is not connected to the WM6.x settings in the same way when you want to turn Data Connection off in Comm Manager. In other words it does not take you back to the WM connection settings when you turn it off as it does when you turn it on. As I showed you above, you have to do it the long winded way and dig deep into WM6.x Connection settings to turn off your cellular data connection. Yes sure, Comm Manager could definitely have been better built in this regards. But it has been like this since day 1.
Programs such as NoData which some chefs cook into their ROMs provide shortcuts to reach those deep WM Connections settings. But frankly, once you know where to find the settings, it becomes second nature and I have never had the need to use NoData.
Anyway, hope this helps.
i loved yr explanation but: i had never this "problem" in WM6.1 even when i always kept the "programs that automatically connect to the Internet......" settings to "orange 3G" (my portal) and only the "programs that automatically connect to a private network..." on "My Work Network".
after 5-6 years of heavy WM use (look at my sig/list of devices) this is the first time i encounter this problem.
I think Clicking on a Nodata shortcut would be much faster than going through all those steps. I hope a solution is found soon. But all ROMs I have tried have this same problem. no mail accounts setup nothing. It still try's to connect.
Turn off my location settings. Also check if "automatically update weather" is turned off.
Did the trick for me on all 6.5 ROM's.
Workaround:
1. Before flashing any Rom, remove the Sim card.
2. After flashing, uncheck "Enable Auto Configuration" from connection setup.
3. Put Sim card back and have a peace of mind.
AbdullahSZ said:
Workaround:
1. Before flashing any Rom, remove the Sim card.
2. After flashing, uncheck "Enable Auto Configuration" from connection setup.
3. Put Sim card back and have a peace of mind.
Click to expand...
Click to collapse
Heh ... if you did it this way you won't have any MMS (unless you put it in manually) or Data connection when you want to turn it on.
bobsbbq said:
I think Clicking on a Nodata shortcut would be much faster than going through all those steps.
Click to expand...
Click to collapse
Yep ... NoData is a solution.
I kind of grew into the habit of drilling down for the GPRS setting from the days when ROMs were not cooked with NoData or equivalents. Problem with these shortcuts is that for some it meant that the basic WM settings were never learnt, so when something goes wrong or a chef does not cook it in, the user gets lost. This is the same problem with the MMS connection issue in M2.5. The cause of the problem here, from my own experience, is with the updated WM Connections Auto Config putting in the wrong MMS access point settings. So when that happens, those who never learnt how to do it manually in WM get stuck.
Imperium said:
Turn off my location settings. Also check if "automatically update weather" is turned off.
Did the trick for me on all 6.5 ROM's.
Click to expand...
Click to collapse
This does not work for me. I have tried any of the turn off methods and nothing has worked. Going to try what abwyatt has suggested and see if this helps. To me this is a real big problem for some people. Even for me I have a 20 hr data plan for 1 month for about 7.00 USD after that it charges by the mb. Just last night on my last flash I was tired and forgot to enable nodata and woke up this morning and the data connection had been active for 9 hrs.
Mod Edit
Moved to general discussion as not technically related to rom development
Fallen Spartan said:
Mod Edit
Moved to general discussion as not technically related to rom development
Click to expand...
Click to collapse
I would differ on that. It is directly related to problems with WM 6.5 ROM's. And not only as users but as cooks we are looking for answers as well. Moving to General section just assures the problem will not be addressed by our cooks here that may find a solution.
Just my opinion
bobsbbq said:
I would differ on that. It is directly related to problems with WM 6.5 ROM's. And not only as users but as cooks we are looking for answers as well. Moving to General section just assures the problem will not be addressed by our cooks here that may find a solution.
Just my opinion
Click to expand...
Click to collapse
Point taken and I agree with your comments above. To to show users that we Mod's do listen as well, I will happily move this thread back to rom development
Thank you, and it's good that you see both sides.
I disabled mine from Settings>Data Services>ActiveSync>Sync data automatically
Now I only get auto connected after soft reset, then just disable from Comm Manager>Data Connection>Off and it doesn't connect by itself anymore
But still works when needed for weather mail etc.
Just to put my 2 cents on the table here. All wm6.5 roms I've tried have had this and I generally install NoData for quick fix, but after a period of time it started to bug me. So upon further investigation it did turn out to be an app seeking automatic update, whether it was email, QuickGPS, weather, stock, facebook, activesync or some other app. Having gone through all these apps or whatever apps installed on rom and then disabling them, the problem seizes to exist. The confusing thing is that it is not consistent, i.e. with different rom's it appears to be a different app which caused the issue!!
I've tried ROM like PhamQhuang, MaryOne etc. I think the problem is from HTC sense, if we switch to HTC sense off or set to windows default the auto connection working well (not reconnect when we off data connection)

Categories

Resources