View Full Version : How can i force disconnect umts after check mail??
dherrero
7th March 2006, 12:10 AM
Hi, i m very happy with the new rom but i have a problem.
I set my emails accounts to periodically (30 minutes) check the account. With other roms when the precess was done then the connection was closed. With the new ROM the UMTS connection keeps stablished and the battery is out in a few hours. Does somebody know how to avoid it??
Thanks...
slpro
7th March 2006, 02:16 AM
Same problem here... anybody??
Thanks in advance.
dherrero
7th March 2006, 08:09 AM
-......and the "always on" is set to 0.....
Churchill
7th March 2006, 12:08 PM
I am afraid that would undermine the whole definition of Push Mail. So it could very well be that it is impossible.
I remember reading an article about Push Mail and there one of the Microsoft engineers has been talking about that if you use GPRS the battery consumption is much and much less. But hey then whty buy a 3G phone. Also as I understand the GPRS is not able to properly handle the GSM simultaneously. At least I know in QTEK 110S when GPRS is actively downloading data you are unreachable for calls....:) UMTS makes that possible.
dherrero
7th March 2006, 12:44 PM
I suppose it...but now ...
1) I cant automatically check my email (the connection keeps on)
2) I cant automatillally download the weather forecast(the connection keeps on).
......
I cant schedule any application that uses any connection because it keeps on and it drains the battery very quickly.
What can i do? :cry:
thanks
Churchill
7th March 2006, 02:50 PM
the weather program should have a seeting to use an active connection if av ailable. At least I have seen it in some weather programs. And if yours does not have it then get another one. :)
About other progs that need a connection. If I start IE I can just start browsing and works fine.
About you not being able to automatically check e-mail? I thought you enabled the Push email so what are you talking abouy. It automatically pushes emails to you ?????
dherrero
7th March 2006, 03:02 PM
ye, yes but what i want is when the program (mail, pocket weather, etc) finishs to use the connection then it is shutted down by the OS.
My job is Windows CE software developer and this is a problem. BEFORE (with old roms) when a program needs a connection the it requests a connection to the Connection manager. Then after use it, the program usually release it (using the connection manager). When no programs needs a connection then the connection manager shutted down the connection (if it was GPRS or UMTS). With the new ROM the connection manager doesnt shut down the connection.....
Churchill
7th March 2006, 03:07 PM
Yea you are right....
It is the disconnect part.
Well the battery drain is more then.
But hey I am not so bothered because I can load the battery at home in the office and in the car and when I go on vacation I turn the Pushmail offf
dherrero
7th March 2006, 10:58 PM
Hi,
I ve wrote a little C program, 5 Kb. This program monitor any posible GPRS=UMTS connection. If it detects that this connection isnt used in 1 minute(no incoming bytes in one minute) then the connection will be closed.
this program hasnt UI so you will not see anything when you execute it. I will improve it adding a botton icon allowing the set the "one minute" parameter and the posibility to exit it....Obviously the program doesnt run when the device is suspended......
dherrero
7th March 2006, 11:00 PM
.. it should be placed in \windows\startup folder to run after each reset....
harryk1372
13th March 2006, 02:32 PM
Hi dherrero,
Thanks for posting a great program. I had exactly the same issue as this but your program works perfectly and it disconnects it when the connection is not used for a minute or so.
The only probelm I have now is I equally get disconnected by this program when I am browsing websites with PIE and that is very annoying. :( I would appreciate it if you could modify this program to make it work only for email checking.
Kind regards,
dherrero
13th March 2006, 02:57 PM
Hi,
I am improving this little program. it isnt finished but it solves your problem. I recommend you to put it in rom and put a link in windows\starup.
When the system boots you will see a little white-blue icon in the bottom-right.
If you click this icon you will see a screen that show:
1) Bytes received in current connection.
2) Connections that the program has closed.
3) Startup time.
4) Connections checks done. (one each 30 seconds)
5) Last check date
6) Last close date.
And 4 buttons .
1) Disable: It's interesting for you. It disables the action of closing the connections.
2) Enable. The opposite. (by default it is enabled)
3) OK. Hide this screen
4) Close: Close the program.....
I hope it is usefull to you....
slpro
13th March 2006, 03:13 PM
You can try also this: http://www.gb-soft.cz/XDAII/product_gprs_tweak_wm5pe_en.htm
vati
13th March 2006, 08:20 PM
hi dherrero
from where can I download your prog?
tx for help
dherrero
13th March 2006, 08:29 PM
You have to login, or register if you havent, and you will see the link.....
harryk1372
14th March 2006, 03:42 AM
Hi dherrero,
Thanks for getting back so promptly. It works nice on my device and now I can manually disable it directly from the Today screen when I need to.
A minor problem I found is that the characters on the Connection Manager control panel get truncated. This is probably due the fact that I have a Japanese ttc font installed to replace the default system font by tweaking the registry "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FontLink\Sys temLink\".
I hope this helps your development. Thanks again...
dherrero
14th March 2006, 09:58 AM
Hi again,
I always develop in VGA, using ozVGA. Now i ve changed the positions and now it looks correctly in vga and sevga.
harryk1372
14th March 2006, 10:23 AM
Hi dherrero,
Thanks a lot! :D
It now runs flawlessly...
vBulletin® v3.8.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.