GPRS timeout shorter - Windows Mobile Development and Hacking General

Hello together!
I'm using the ConnectionMannager of OpenNETCF to get a GPRS connection and it works just fine. But does anyone know how to make the timeout shorter before it says that the connection failes if there is no reception?
It takes up to 30 seconds until the connection fails and in this time my complete application hangs. Perhaps you know a way how to make this timeout shorter.
Thanks
Andreas
AB-Archive.com

I dont know how to shorten the gprs time out. I assume it is either a registry setting or a you would have to edit the TAPI settings. I dont understand why you need to change this functionality anyway. The code attempting to connect should be in a thread on its own to avoid the "main" app thread hanging..

Hello HickHack!
Of course, I use a separat thread for the GPRS operation, but the problem is as following:
I'm using a transponder scanner within the SDIO slot of our device (MDA II) and - I don't know why - but that doesn't like to scan when the GPRS connection is being established. As soon as the GPRS is ready it can scan again, no problem, but if I let it scan for transponder cards while establishing the GPRS connection the complete application will hang or exit with an error message (I also tested this with an barcode scanner in the SDIO slot and it was just the same problem). To me it seems as if the device in the SDIO slot doesn't get enough energy to work while GPRS is beeing established, because the control LED of the scanners goes out and on again before throwing with error messages... :-((
So I havo to SYCNLOCK the two threads so that the scanner does not scan while establishing the GPRS connection. But now when there is a temporary problem with the reception the application will always stop scanning for about 30 seconds (or even more), because the timeout of the GPRS connection is that high.
Because of that it would be really important for me to set the timeout to a much smaller value. Hopefully you have an idea what exactly to change that this is smaller.
Thank you very much in advance
Andreas
http://www.ab-archive.com

I see...
I am uncertain whether it is a power issue. I have not had enough experience with XDA's device drivers to comment. My opinion is that it might be something to do with device.exe resource sharing??
As for shortening the GPRS I cant help you. Either way it would most defitnitly be a OEM implementation you would think so you may get varying results per device.
Is it acceptable for your device driver to receive GPRS state notifications through the RIL interface? And base your scanning logic on that state?
Sorry I couldnt help anymore...

Related

Turning GPRS off after a session

Being the tight wad that I am, I wanted to know how I turn off the GPRS after a session on my K-JAM. I've noticed that after I've been on internet explorer for example, the little G icon with the opposing arrows stays there, where the big [G] icon normally is.
I'm concerned that this might cost me money, and/or battery life by leaving it on, but I can't seem to find an option where I can terminate the GPRS..
1st post, so please excuse my ignorance - never used GPRS before. :wink:
Just keep your finger on the red end key when you have finished browsing.
Just keep your finger pressed on the red end key when you have finished browsing.
Excellent - such a good tip, you posted it twice
I shall try that next time I'm browsing. Taa
Mine seems to re-enable - any way to disable completly ?
Terran
It's probably re-enabling because something's requesting an internet connection. I get that when I lose connection to my WLAN at home. It drops the WLAN and then dials up GPRS. I suppose the only way of stopping this happening would be to delete the connection from your settings. Not something you should approach light-heartedly however....
mikeiw said:
It's probably re-enabling because something's requesting an internet connection. I get that when I lose connection to my WLAN at home. It drops the WLAN and then dials up GPRS. I suppose the only way of stopping this happening would be to delete the connection from your settings. Not something you should approach light-heartedly however....
Click to expand...
Click to collapse
Thats exactly it....
Not a bug but a design pain...
Terran
...especially when you're on a pay-as-you-go basis for GPRS
mikeiw said:
It's probably re-enabling because something's requesting an internet connection. I get that when I lose connection to my WLAN at home. It drops the WLAN and then dials up GPRS. I suppose the only way of stopping this happening would be to delete the connection from your settings. Not something you should approach light-heartedly however....
Click to expand...
Click to collapse
What about re-assiging the default GPRS connection - that was some thing else I was looking for ?
Terran
Just done this.. under start / settings / connections / connections - changed mine to dial com1 with the number 1 instead of GPRS... should work for the mo - quick change.
Although not neat it works - I just hope a better solution is found.
Terran
I did the same thing, just corrupt your gprs connection settings by inserting an extra digit or something, then it won't connect up. This could probably be toggled by a shortcut to a registry setting.
This is useful with Newsbreak, since it attempts to download pictures from the connection on every story (on Gizmodo). So, I made a new net setting, VJSpoof, and just use that when i'm offline. No more bleating.
V
vijay555 said:
I did the same thing, just corrupt your gprs connection settings by inserting an extra digit or something, then it won't connect up. This could probably be toggled by a shortcut to a registry setting.
This is useful with Newsbreak, since it attempts to download pictures from the connection on every story (on Gizmodo). So, I made a new net setting, VJSpoof, and just use that when i'm offline. No more bleating.
V
Click to expand...
Click to collapse
Any one fany writing a today plugin ?
Terran

Programs running vs stopping in STANDBY?

Here's a question I've had since WM2003.
How and where is determined, which programs (tasks, threads) CONTINUE to be executed (and at what speed?) when the PDA is put into standby mode?
There are a few programs out there who promise to keep the GPRS / 3G connection alive by sending out a PING every 5 min or so. How is that supposed to work if the program stops being executed?
I still have the bad unreliable GPRS connection issue and am trying to figure out a way to force the phone to keep the connection alive, just like a blackberry.
Any ideas?

Mystery Data Connection???

Hey,
I'm experiencing a strange problem with my hermes.
The device wakes up often without a reason. The effect is the following:
. device wakes up
. the connectivity icon changes from 3G to H, means HSDPA connection built up
. spb gprs monitor shows different amount of data transfers
If I close the data connection manually with the red hook on button, the effect doesnt appear any more. So I guess this in an inbound connection made to my device. But how can that be???
Does WM wakes up on inbound connections? How can I find out, which data is being transfered? Are there any network monitoring tools for WM?
Is it right, that to wake up the device from a program that makes an outbound connection an entry in the notification list has to exist? There is nothing. No notification that could wake up the device.
Need help!
Device seeks automatically the strongest signal around. If you stay in an area with both types of signal you will find frquent flipping in and out of 3g UMTS. You may not have experienced this but it can also lead to the dropping of calls also.
You can use Danielherrerro's bandswitch application aka commmgrpro that allows you to easily choose which bands to turn on off.
Mike
I think you misunderstood.
Chaning the band doesnt normaly lead to download traffic.
Btw. I selected gsm instead of gms & umts in the phone options, so the device cant switch. Still waking up and producing some traffic. This effect wasnt there til last week.
Mine does this because it checks for mail every 15 minutes, do you have mail scheduled???
good luck.
Oggy.
LaroCroft said:
I think you misunderstood.
Chaning the band doesnt normaly lead to download traffic.
Btw. I selected gsm instead of gms & umts in the phone options, so the device cant switch. Still waking up and producing some traffic. This effect wasnt there til last week.
Click to expand...
Click to collapse
My bad. Ogier is right, it must be an app. that's connecting - possibles include:
Mail
Weather apps
Sync apps - time sync etc
Mike
Gprs Today Plugin
<seems like an 'in-topic' post>
anyone have any good suggestions on a today-plugin that shows wifi/gprs connection? My theme does not show the connection icon (3g,g,e,etc.), so I was looking for somethig that would show with conenction I was using as a today plugin. Something like the one shoen here in custels rom.
I would use spb gprs monitor, but for some reason all spb applications show this really annoying this line at the top of my screen, so I have given up on spb. any other ideas short of dumping custels ROM? thanks
Definitly dont think thats an application
Problem occurs only if a data connection is still active. If I disconnect manually no wake up occurs.
Seems device is waken up from an external source?!

Choosing between WiFi, GPRS, VPN etc. - any simple utility outthere? plz...

Is there a kind of utility that if a connection is required, asks user how to connect? Something like there use to be on a PC, when You start IE? I don't remember which version of IE/Windows it was but it looks something like this - http://support.bee.net/dial/email/outlook6.gif
The problem is, selecting manually how to connect is very much pain in the ass, I am wondering that if there isn't a software already written for this, why is that. It would be a simple yet very usable - You start IE for example, and the phone asks you how to connect, via WLAN or GPRS or whatever. OR maybe even over BT if You have a BT device for connection over PC or smth.
The second option would be to prioritize the connection list - like tell the PDA that first try WLAN, if it fails then try GPRS etc.
The third option would be somehow to use MortScript for this. It's still better than going to Connection Manager through tens of taps.
Been searching the forums. Looked through at least all threads' titles under networking. But no solution so far.
Any ideas? I would appreciate any help. And still wondering why someone hasn't already solved this... Maybe they have, but cannot find it then
So nobody has ever heard of anything like this? Would there be an enthusiast who would program such utility? It would not be a major application...
How do you manually choose connection?
I have HTC Diamond with Windows Mobile 6. I connect it to my work computer to synchronise with Outlook but I want to use my 3G (or GPRS) connection for internet. What should I do?
i really dislike the way the WM6 autoamatically chooses GPRS has its first connection type.. but then if WIFI is turned off it has no choice
An option to possible enable Wifi rather than GPRS would be nice
Windows mobile's connection manager is horrible. I suspect the group assigned to WM networking at microsoft had little (or no) prior experience and didn't really understand how IP routing, interface stacking, etc. works.
We sorely need some kind of end-to-end communications manager that is aware of all network devices (GPRS, CF wireless/ethernet cards, onboard wireless, bluetooth, USB, etc) and virtual devices (all forms of VPN), and how they interoperate. Something that allows editing of routing rules, per-connection DNS servers, gateway priorities, preferred devices, timeouts, connection persistence, etc.
Worry about things like "dial-on-demand" after the basics are covered.
Today it's virtually impossible to keep a WM device on a VPN connection and even harder when you've got phone calls and wifi to deal with. I have my activesync configured through a PPTP VPN and at least 5 times a day it loses its connection and requires me to manually press "sync." Sometimes that doesn't even work, requiring a reboot. Usually there will be some vague and unhelpful error message like "waiting for network" or "could not connect for an unknown reason."
In fact while I'm on a bit of a rant, is anyone else infuriated by error messages like that?
Obviously there was an error - you don't need to tell the user that. If there was no error, you'd be connected! What is the purpose of telling the user there was an error? There is always an "error" unless there is success. TELL THE USER WHAT THE ERROR WAS. Anything else is useless and frustrating.
The device should also absolutely freak out if it ever loses any connection. If the phone loses anything.. the GSM signal, activesync's connection to the exchange server, the VPN... it should beep, vibrate, flash, and refuse to do anything (sleep, power off, etc) until either one of two conditions is true:
1. The error is no longer present (the phone was able to reestablish the connection), or
2. The user has acknowledged and dismissed the error.
It should never be the case that the phone is disconnected and not attempting to reconnect, unless the user chooses that mode of operation. Anything else leads to lost email, missed meetings, and high blood pressure.
Ugh.
Anyway, I think there's a lot of money to be made by a company that can put together a properly functioning WM connection management system. I'm still looking...
This might help, I've not tried it yet but it looks promising....
http://www.iaccarino.de/silvio/ppcstuff.htm#MobileProfiler
That is a much needed program. WM 6.1 does an awful job with GPRS, WiFi,
Phone, etc.
Thanks joemanb, somehow I missed Your reply. But this isn't exactly what I'm looking for. But thanks anyway. I understand that this proggy would be very useful for many people but I don't understand why somebody with programming skills doesn't want to do it...
I have the very same problem.
I have both symbian and WM phones.
Nokia have had this right since my 9500 when you check email or go on the Internet it prompts you for the connection to use. I got a Imate-Kjam and was shocked that it did not do this. It was subsequently replaced with a E90 that still does it the right way and very well. I just got a Samsung SGH-i780 and it is great but it still has no Idea of how to connect to the Internet the way I would like. having 3g makes it less of a problem as I simply don't use the wi-fi but this bugs me that I can't.
All they need to do is have the phone prompt you when you open a Internet app for the connection to use. How hard can that be to realize ?
Bump bump bump
Um... Bump?
Come on developers, You cannot say You don't miss something like that already...
Bandswitch
I hope too in the developers. While waiting I found "Bandswitch" which make something similar...
http://www.freewarepocketpc.net/ppc-download-bandswitch-v1-2-3.html
Disable GPRS connections
Try this. Works fine on my Herald/P4350.
http://www.modaco.com/content/pocket-pc-software/246171/new-free-utility/
Thanks for the suggestions but as far as I can tell, these apps only handle mobile data connections and now Wi-Fi. You can easily disable GPRS by creating a fake GPRS connection with no real access point. That is not what I am trying to accomplish here. But thanks anyway.

.NET CF 2.0 Determining mobile connection type

Hello there. I was wondering if there's a way to inquire the phone in order to determine what connection type is active at that specific moment (3G/EDGE/GPRS).
Thanks in advance.
I search the same thing if anyone know how to i'm interested.
Bye
Using the class Microsoft.WindowsMobile.Status.SystemState you have access to CellularSystemConnectedEdge, Gprs, etc. and WiFiStateConnected. To get notified about changes create an instance of SystemState with the desired property as argument and add the changed event.
Wow, thanks. I got so much more than I bargained for within that class.
If I could upvote you, I would.
Hello!
Is there a way to determine, which connection interface is used for a specific connection? If my TCP connection was established, using GPRS and I switch on WLAN, then it will be kept alive on GPRS until a reconnection.
I currently use ConnMgrQueryDetailedStatus but it returns strange results - tells me, that I use GPRS when the connection is established in WLAN.
I need to get the connection type for changing the ping-durations and data volume depending on the connection channel.
Maybe someone of you has the answer - I would be happy about it
Thanks
/Daniel

Categories

Resources