How to keep GPRS connection alive - Networking

We have a WinMob application that sends and receives data over GPRS; and it works.
The problem we have occurs when the vehicle based PDA goes into an area of poor reception and WinMob thinks the data connection is working but no data is being transmitted. The application currently issues a disconnect request to the WinMob connection manager but WM6.* keeps the data connection.
We would like the PDA to drop the data connection and re-connect automatically when the application resumes data transmission after a short programmed delay.
We have tried changing the PDA's registry setting from ~GPRS! to GPRS_bye_if_device_off and setting a (90 second) timeout and this works. Except that even though the PDA issues a UDP packet to one of our servers every minute to keep a push link alive, WinMob ignores this packet and drops the connection ~100 seconds after connecting.
What do we need to receive/transmit to convince WinMob that the data connection is active? DO we need to issue a http get request after sending the UDP? We don't want to send/receive more data than we need (large phone bills!).

keep alive
tracktrans said:
We have a WinMob application that sends and receives data over GPRS; and it works.
The problem we have occurs when the vehicle based PDA goes into an area of poor reception and WinMob thinks the data connection is working but no data is being transmitted. The application currently issues a disconnect request to the WinMob connection manager but WM6.* keeps the data connection.
We would like the PDA to drop the data connection and re-connect automatically when the application resumes data transmission after a short programmed delay.
We have tried changing the PDA's registry setting from ~GPRS! to GPRS_bye_if_device_off and setting a (90 second) timeout and this works. Except that even though the PDA issues a UDP packet to one of our servers every minute to keep a push link alive, WinMob ignores this packet and drops the connection ~100 seconds after connecting.
What do we need to receive/transmit to convince WinMob that the data connection is active? DO we need to issue a http get request after sending the UDP? We don't want to send/receive more data than we need (large phone bills!).
Click to expand...
Click to collapse
I use android emulator to ping a google
eg ping google.com

Terminal emulator app for android keeps connection alive. Go to playstore and get it
Sent from my GT-I8260 using XDA Premium 4 mobile app

Related

Connection fails after coverage loss during data exchange

Hello, all!
I'm writing a program which is supposed to work in background and synchronize data with server. I'm facing a problem which seems to appear on all 2002 and 2003 Phone Edition devices we have in the company (but not on Smartphone devices). The scenario is as follows:
- I establish a new connection via Connection Manager API.
- I start exchanging data with server using HTTP protocol.
- At some point GSM coverage is lost (for example I'm travalling in subway) and my HTTP request fails. I stop data exchange and schedule a retry sometime later.
- Coverage is good again, my program tries to reestablish the connection but this always fails.
Looks like the device gets into some state where radio stack is corrupted because other programs (such as PIE) cannot establish a connection as well and phone calls are no longer possible. On the other hand, cradle connection to Internet works just fine. Only soft reset helps to bring the device out of this state.
Also, looks like data exchange is not necessary to reproduce this problem - open GPRS connection is enough.
Any idea why this happens and how I can walkaround this? Thanks!

XDA2i auto connect GPRS

I have created a few apps using www.pocketpccreations.com (plug for an excelent product). The problem I am having is the GPRS connection drops every time the phone is used and thus the server loses the connection with the xda. My app needs a perminent connection so I can update Jobs, prices lists, program updates etc.
There is no wake up GPRS command available in pocketpccreations, is there a standalone app that will switch the GPRS back on (ie similar to doing a send and recive in messaging) whenever it drops?

Why can't some apps establish a gprs/umts connection ?

When I use total commander's ftp client to connect to an ftp server , total commander itself is not able to establish a gprs/umts connection. I must already be connected (for example open pocket ie before I start ftp) to get it to work. This strange behavior I have also seen in other applications (i.e. pocketirc cannot connect to an irc server if I don't start pocket IE before). Why is that so ? And what can I do about it ?
I had the same problem when I started using ThunderHawk. I had to open Pocket IE to get a connection, close it and then open ThunderHawwk.
Using the always-on GPRS in the wiki (http://wiki.xda-developers.com/index.php?pagename=Universal_Registry) solved that issue for me.
Hopefully, that will work for ftp, as well. Let us know.
Boinger
what does that always on registry hack REALLY do ? Does that mean my phone will have a constant GPRS connection ? Does that not mean I must not forget to disconnect manually when I close the phone? Will that not increase the traffic ?
It is kind of an all or nothing deal. If you have ANY programs that can access GPRS data, this hack will allow it. Also, be aware that if you manually disconnect, the connection will automatically re-establish 5-10 sec later while using this hack.
As an example, I use PocketWeather, which I have setup to update every hour. It will update using GPRS if it is not Activesync-ing, every single hour of every day. If you have to pay for data by the amount used, it may not be attractive. I have an unlimited use plan through T-mobile USA for $20/month, so I just don't have to worry.
Other than this hack, I believe you will have to connect the hard way.
Strangely enough, my old PDA phone (hp 6315) would connect just fine with ThunderHawk. It also had a choice under the taskbar 'Connectivity' pop-up bubble for 'GPRS (T-Mobile)' that I could use to easily connect or disconnect. My Jasjar only lists 'T-Zones GPRS (GPRS, 3G)' in the pop-up only when it is connected. So, I suspect that the issue is either with WM5 or T-Mobile added something to the ROM of the 6315 to make it more functional with their network.

GPRS

my gprs icon is permently on on my device G with the 2 arrows task manager says nothing running, will this use up my GPRS data?
Providing no app is accessing your GPRS then no. It's a bit like having your home PC connected to broadband ADSL but nothing actually downloading. The connection has been made but it's sat there idle.
Just ensure no application is running in the background.
You can, of course, click the "G" icon itself and then close the connection down.
F
but if the operator is billing out idle time (T-Mobile HUN rounds up every 5/15 mins the traffic to 10kB) it's not equal then, if there is an active conn or not.
Connection via a dial-up WAP connection take the form of an actual call and are thus are billed by time. But GPRS data calls, I thought, were billed by data transferred. I often leave my GPRS connection open all day and Orange UK certainly only bill per MB.
F

Connections Question

Hi All,
New to my fantastic HD Touch so apologise if this is an obvious question..
If I have wifi enabled and data connection enabled, if i go onto the internet or, say, Youtube for aguments sake, will it use the Wifi connection as a priority over the data connection?
I ask because i want to keep my bills down without having to manually keep turning the data connection off (it connects every 5 mins to check for email)
Thanks
Loving this forum by the way!!
Depends on how the connection is set up. You can check your config by going to settings->connections->connections->advanced->select networks
There is then a drop down under the heading "Programs that automatically connect to the internet should connect using:". When I bought mine this was set to "Contract Internet" which basically means my vodafone data connection. I managed to run up a bill of over £50 before I spotted this (this was before I moved to a decent data package).
I changed this setting to "My Work Network" and it then used the wifi in preference to the cell connection. However, I think (although haven't scientifically tested) that if a program gets a cell connection before the wifi is activated then it may not automatically switch over if wifi is subsequently enabled.
BTW I tested all this using a $10 app called GPRS Traffic Monitor (which can monitor HSDPA as well as GPRS) to see if the traffic figures rose while browsing the net with wifi on and off. After changing my settings the data usage figures only went up if wifi was off.

Categories

Resources