After some hours of searching a way to polling emails and update weather over GPRS connection even if the phone is on stand-by, I found a way that works (at least for me)!
It is a combination of tricks already posted on this forum but in a way that makes Outlook and Weather to update automatically at preseted intervals and after that to close the GPRS connection.
It is something like that:
GPRS off -> GPRS on -> Outlook/Weather update -> GPRS off
There are some registry settings:
HKEY_LOCAL_MACHINE\Comm\ConnMgr\Planner\Settings\
CacheTime = 120
SuspendResume = GPRS_bye_if_device_off
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Resuming\{98C5250D-C29A-4985-AE5F-AFE5367E5006}
Default: 1
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Resuming\{EB91C7C9-8BF6-4a2d-9AB8-69724EED97D1}
Default: 2
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Suspend\{98C5250D-C29A-4985-AE5F-AFE5367E5006}
Default: 1
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\State\Unattended\{98C5250D-C29A-4985-AE5F-AFE5367E5006}
Default: 1
Related
Hi
I wondered if anyone has any tips on using Wininet over GPRS. I'm currenct using eVc 4 to write an application that sends data to a web server using the Wininet HttpSendRequest or HttpSendRequestEx Functions. The problem I get is when I try to send more than about 10k of data I get a server timeout using the GPRS connection but everything seems fine when I have the XDAii in the cradle.
Ok so the problem seems to be GPRS being slow and unreliable but I have experimented with sending the data in 1k chunks and the problem comes when trying to end the http request with HttpEndRequest. I have checked the server timeouts on my IIS server and they are all set to 15 minutes.
Does anyone have any clues?
This is the code I use to do a similar thing with a photo which works quite well
Are you setting the response to nothing?
GPRS is very unreliable but I have managed to send 70k files over it.
==========
Private Function FileUpload(ByVal sURL As String, ByVal sFile As String) As String
On Error GoTo eh
Dim binReader As BinaryReader
Dim byteArray() As Byte
binReader = New BinaryReader(File.OpenRead(sFile))
byteArray = binReader.ReadBytes(binReader.BaseStream.Length)
Dim httpURI As New Uri(sURL & sFile)
Dim httpRequest As HttpWebRequest = httpRequest.Create(httpURI)
httpRequest.Method = "POST"
httpRequest.ContentLength = binReader.BaseStream.Length
Dim httpReqStream As Stream
httpReqStream = httpRequest.GetRequestStream
httpReqStream.Write(byteArray, 0, byteArray.Length)
httpReqStream.Close()
Dim httpResponse As HttpWebResponse
httpResponse = httpRequest.GetResponse
Dim sResponse As String
sResponse = CStr(httpResponse.StatusDescription)
FileUpload = "OK"
httpResponse.Close()
binReader.Close()
httpURI = Nothing
httpRequest = Nothing
httpReqStream = Nothing
binReader = Nothing
httpResponse = Nothing
byteArray = Nothing
Exit Function
eh:
MsgBox(Err.Description)
binReader.Close()
FileUpload = "ERROR"
httpURI = Nothing
httpRequest = Nothing
httpReqStream = Nothing
binReader = Nothing
httpResponse = Nothing
End Function
===================
My code seems to be fine as when I used my mates Vodafone sim in the Xda ii I was able to send a 40k file straight away. It seems there is a limit somewhere around the 8-9k mark in the O2 gprs apn. I have to now get on to 02 and find out how they will let me send more than 8k at a time.
There is a problem with O2. They had to give me a new username and password to log onto their network, which has different privileges, to get around it.
Good Luck
all im seeing is ways to keep it connected, i checked wiki and there is only ways to keep gprs on!
I don't think there is a way to make it automatically disconnect after sending an MMS. The only ways I've seen require user intervention, eg a button press or screen tap...
Add a 'Disconnect' button (and Timer) to the Connection List for GPRS
To add a Disconnect button:
HKLM\ControlPanel\Phone\Flags2 = 8 (DWORD decimal)
To add a Disconnect button and a timer display showing how long GRPS is in use for the session:
HKLM\ControlPanel\Phone\Flags2 = 16 (DWORD decimal)
To disable both the Disconnect button and the timer:
HKLM\ControlPanel\Phone\Flags2 = 0 (DWORD decimal)
Once you've done that, and soft reset etc, you can tap the G icon and press disconnect.
OR
Press and hold the red call-end hardware button for a few seconds and you'll see the GPRS icon change from connected to disconnected.
Check in MMS Settings->About if you are using ArcSoft MMS Composer. If so, go to HKLM\SOFTWARE\ArcSoft\ArcSoft MMS UA\Config\UI registry key and check if integer parameter called AutoDisconnect is present and set to 1. I guess it is auto disconnect after sending/receiving MMS. I have it already delivered in Extended Rom cab file containing MMS settings from my operator.
im using the default poutlook.exe app for my MMS
in the qtek 9100 external rom, there is a cab file called "MP_MMSAutoDisconnect_060106.CAB" that does this.
hmm ill check that out then
SkyyBoy said:
in the qtek 9100 external rom, there is a cab file called "MP_MMSAutoDisconnect_060106.CAB" that does this.
Click to expand...
Click to collapse
i dled the 3 ext_rom files on ftp not seeing this file.. can u post?
here it is!
This .cab does exactly the same in registry
Anyway, thanks for it, may be helpful to fast re-enable auto disconnect after HR.
i have set 1 but it doen't work
Try this, worked for me
http://www.gb-soft.cz/XDAII/product_gprs_tweak_wm5pe_en.htm
i forgot all bout that program i used it on my hp6515. thank you
Is there a way to turn GPRS off ? I tried registry tweaks but the GPRS off option will not stick for me everytime I reset and check it unchecked again.
A Shortcut or a simple app to turn off and on would be a godsend.
holding down the hang up button for awhile disable grps on at least himalaya
and there is a program which let you connect and disconnect in the same place you turn flight mode on and off
problem is this still allows gprs to connect when you use ie or sync email, I do not want it to connect auto to gprs unless I say so
then pick work rather then my isp under connections
I have a tmobile 'mda' in the us and I did a registry edit that made it so when i tap and hold the gprs icon at the top it has a timer and a disconnect button.
Add a 'Disconnect' button (and Timer) to the Connection List for GPRS
To add a Disconnect button:
HKLM\ControlPanel\Phone\Flags2 = 8 (DWORD decimal)
To add a Disconnect button and a timer display showing how long GRPS is in use for the session:
HKLM\ControlPanel\Phone\Flags2 = 16 (DWORD decimal)
To disable both the Disconnect button and the timer:
HKLM\ControlPanel\Phone\Flags2 = 0 (DWORD decimal)
from this page: http://wiki.xda-developers.com/index.php?pagename=WM5_Tweaks_Other
bendog that a very nice suggestion, thank you.
Lucky for me as part of the t-mobile uk phone you get sbp gprs monitor included, and this sits in the task bar and has a connect and disconnect button already.
Again it does help disable GPRS till I really want to use it.
Rudegar said:
then pick work rather then my isp under connections
Click to expand...
Click to collapse
Tried this also, it doesn't seem to care, it connects anyway whenever my email interval says so.
Is there any other APIs like connection manager,RAS to dis/establish GPRS on WM 2005?
this should do the trick
see:
http://www.gb-soft.cz/XDAII/product_gprs_tweak_en.htm
(haven't used it yet so no guarantee it works)
There is also a program called "NODATA" to disable (temporarily) GPRS...
Just need summat to log it now
try vjvolubilis. you can easily make shortcuts to toggle, bluetooth, wifi, gprs, audio, etc...
http://www.vijay555.com/?Releases:VJVolubilis
There you go.
NoData from Modaco. Does exactly what you want. Disables GPRS until you want to turn it on again. Overrides all programs that require access to the internet. Excellent for when you are on international roaming or when your battery is dying.
http://forum.xda-developers.com/showthread.php?t=286844
So far I've tried all these on my BA (XDA IIs) to no avail.
However, a rather dirty solution has been to set up a new 'dummy' modem connection dialling my own number or '0' and setting that as the default. I then need to change it back to the other settings to allow web access via the 'phone.
Would rather have a nice button though...
Hi *.
I have data connection called "Internet". Selected as default in Settings -> Connections -> Advanced -> Select Network and disabled with Enabled = 0 registry key. When I want to use it, I just change to Enabled = 1. Simple and fast.
But after I'm done with checking emails, disconnect "Internet" and change back to Enabled = 0, Windows still "remembers" that this connection is usable and ignores registry. I have to soft-reset to make it "forget".
Is there any way to avoid this?
You need to do a soft reset after registry changes to fully save the change.
If you don't want the data line to stay on then don't make that registry change. When you select "Send/Receive" in Outlook the data line will come on automatically. You can also turn the data line on by launching Internet Explorer.
That regsitry key is really for people who want the data line to stay on all the time.
When I want to change the GPRS Authentication method I do this:
Start - Settings - Connections - Advanced Network - GPRS (Or smthg like that, I have it in Spanish). In here I can change from default PAP to CHAP.
How can I do this through a registry key? I need to create a cab that does this amongst other things.
seroflorezm said:
When I want to change the GPRS Authentication method I do this:
Start - Settings - Connections - Advanced Network - GPRS (Or smthg like that, I have it in Spanish). In here I can change from default PAP to CHAP.
How can I do this through a registry key? I need to create a cab that does this amongst other things.
Click to expand...
Click to collapse
[HKEY_LOCAL_MACHINE\Software\Microsoft\RIL]
"SetGPRSAuthentication"=dword:1
with
0 = None
1 = PAP
2 = CHAP
3 = PAP/CHAP (default)