In one of my other post in General, I found that 3G data is turning on when it is set to disable in the settings on the Dell Streak 5,(Android 2.2 AT&T Locked US version) using 3G watchdog, I noticed I was using 3G data when I was supposed to be using only a WiFi connection. This occurs when on a WiFi connection and you access the Google Market Place.
Accessing the Market Place will turn on and activate and transfer 3G data to and from Google Market.
Turning off background data will cause the 3G data connection to not turn on.
This also cause Google Market Place to not function and states it needs the background data connection to be turned on.
Am I reading the coding wrong below?
Why am I incurring data charges when set to WiFi Only?
Why does Google Market Place need to open a 3G data connection when using WiFi?
Has anyone else noticed this?
Have you went over your data allotment and wondered why?
--------------------------------------------
public static final int TYPE_WIFI
Since: API Level 1
The Default WIFI data connection. When active, all data traffic will use this connection by default. Should not coexist with other default connections.
Constant Value: 1 (0x00000001)
---------------------------------------------
public static final int TYPE_MOBILE
Since: API Level 1
The Default Mobile data connection. When active, all data traffic will use this connection by default. Should not coexist with other default connections.
Constant Value: 0 (0x00000000)
----------------------------------------------
public static final int TYPE_MOBILE_HIPRI
Since: API Level 8
A High Priority Mobile data connection. This connection is typically the same as TYPE_MOBILE but the routing setup is different. Only requesting processes will have access to the Mobile DNS servers and only IP's explicitly requested via requestRouteToHost(int, int) will route over this interface if a default route exists.
Constant Value: 5 (0x00000005)
-------------------------------------------------
public boolean requestRouteToHost (int networkType, int hostAddress)
Since: API Level 1
Ensure that a network route exists to deliver traffic to the specified host via the specified network interface. An attempt to add a route that already exists is ignored, but treated as successful.
Parameters
networkType : the type of the network over which traffic to the specified host is to be routed
hostAddress: the IP address of the host to which the route is desired
Returns
• true on success, false on failure
Related
I need to implement a GPRS byte counter in my code. Currently I'm using the GetIfTable Function API function. It seems to work for GPRS only some times. It the only network adapter it finds is TNETW12511. I can point to it and as long as wifi has previously been enabled (but not currently running), this api returns GPRS bytes properly. Every once in a while however it keeps returning zero bytes even though I know GPRS is being transmitted and received.
Is there a better way to monitor GPRS traffic statistics?
I have enabled multiple APN's in my ROM (Vodafone UK SIM) by changing the registry entries:
Code:
HKEY_LOCAL_MACHINE\Software\OEM\RIL\OperatorContexts\23415] ;Vodafone UK
"GPRSContextNumber"=dword:3
"UMTSContextNumber"=dword:3
This allows me to have two simultaneous data connections (HSDPA/3G/GPRS). I noticed yesterday that when a voice call is made or received the 2nd data connection is disconnected and then reestablished when the call has ended. I changed each of the registry entries to 5 but the behaviour is still the same.
Is this a limitation of the ROM or the mobile contract? Is it possible to have two data connections as well as a voice call active at the same time? I use BlackBerry Connect and this keeps its data connection permanently active, if I browse the web or open another application that uses the Internet then the Vodafone GPRS connection gets established. I have now started to use Office Communicator Mobile 2007 R2 quite a lot and this uses the Internet data connection, however if a voice call is established then the OC 2007 R2 connection gets broken since the 2nd data connection is disconnected. This then screws up the presence status of OC 2007 R2.
Cheers
Andy
Solved....
I have now been moved over to Exchange ActiveSync and have removed BlackBerry Connect (thankfully..). However I am still having an issue
With BlackBerry Connect there was always a permanent data connection to the BlackBerry APN. Opening an Internet connection would cause a 2nd data connection to be made (to Vodafone APN). However if a voice call was made the Internet connection was dropped for the duration of the voice call. Now I have removed BlackBerry Connect I assumed that the data call would no longer disconnect as there is now only ever one active data connection. It seems I was wrong?
I have verified the GPRSContextNumber & UMTSContextNumber values in the registry for the Vodafone UK OperatorContexts are set to 3 (as they were previously) but the data connection is dropped when a voice call is made?
Solved it now after a bit more searching
There is a registry value that can be changed 'AllwaysOn' for each of the data connections that are configured on your device. On mine it was this:
Code:
[HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections\Vodafone GPRS]
"AlwaysOn"=dword:00000001
Some of the tweak utilities allow you to change this as well.
I assume on other devices the GUID will vary as well as the name you gave the connection settings - I used Vodafone GPRS.
Cheers
Andy
Andy,
Thanks for sharing your findings!
7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA is the default GUID for ConnMgr providers, will be the same on all devices. Connection names will vary indeed.
As regards your original problem, I think there could be several causes:
1. Concurrent PDP contexts limit in hardware, see
http://www.qualcomm.com/common/documents/white_papers/Multiple_PDP_Contexts_UMTS.pdf
2. ConnMgr is dropping insecure connection(s) when a connection to a secure network is required
I'm afraid your Internet APN may still go down when you place a phone call, however due to AlwaysOn it's reactivated instantly. Personally I never played with 2 contexts, but I've seen this behavior with AlwaysOn VPN connections.
stepw said:
Andy,
Thanks for sharing your findings!
7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA is the default GUID for ConnMgr providers, will be the same on all devices. Connection names will vary indeed.
As regards your original problem, I think there could be several causes:
1. Concurrent PDP contexts limit in hardware, see
http://www.qualcomm.com/common/documents/white_papers/Multiple_PDP_Contexts_UMTS.pdf
2. ConnMgr is dropping insecure connection(s) when a connection to a secure network is required
I'm afraid your Internet APN may still go down when you place a phone call, however due to AlwaysOn it's reactivated instantly. Personally I never played with 2 contexts, but I've seen this behavior with AlwaysOn VPN connections.
Click to expand...
Click to collapse
What about the value under \HKLM\Software\OEM\RIL\SAPOperatorList? Can this be trusted to be my providers OperatorContext number(s)?
Rob
Rob
stepw said:
Andy,
Thanks for sharing your findings!
7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA is the default GUID for ConnMgr providers, will be the same on all devices. Connection names will vary indeed.
As regards your original problem, I think there could be several causes:
1. Concurrent PDP contexts limit in hardware, see
http://www.qualcomm.com/common/documents/white_papers/Multiple_PDP_Contexts_UMTS.pdf
2. ConnMgr is dropping insecure connection(s) when a connection to a secure network is required
I'm afraid your Internet APN may still go down when you place a phone call, however due to AlwaysOn it's reactivated instantly. Personally I never played with 2 contexts, but I've seen this behavior with AlwaysOn VPN connections.
Click to expand...
Click to collapse
As I said it is now fixed as I only ever have a single APN connection as I have moved over to Exchange ActiveSync and have also changed the 'AllwaysOn' registry value for the default GPRS connection.
Andy
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
Hello:
Hoping for some help here, as I'm out of ideas.
I a running CM7 7.1 stable release on my nook color. Ever since I rooted to CM7 several months ago, I've been unable to maintain a stable connection to my university's 802.1x network. Here's what happens, from the beginning:
NC finds the signal, and I enter in my credentials as per these instructions from the university website:
"Configuration settings for BU (802.1x)
Your device may not require all of the settings included below.
Connect to: BU (802.1x)
EAP method: PEAP
Phase 2 Authentication: None (if available) or MSCHAPV2
CA Certificate: N/A (only option)
Client Certificate: N/A (only option)
Identity: <BU login name>
Anonymous Identity: <BU login name>
Wireless Password: <Kerberos password>
Related: use Automatic IP for your BU network connections
When you use BU wireless (or any BU network connection), your device should be set to use an automatic (dynamic) IP address — never use a static IP. This setting is usually already chosen on your Android device, but should you ever want to check it, here is the sequence of commands to use.
To make sure you are using Auto IP, go to:
Settings,
Wireless & Networks,
Wi-Fi Settings
Click the ‘Settings’ button
Choose Advanced Settings
And enable Auto IP"
Doing so will establish a connection. I'll get a couple of bars, but not full strength wireless. Eventually at some point, as I move from one app requiring wireless to another--let's say I switch from Pulse to the browser, or just change pages on my browser--the connection drops. I go back to the wifi settings and attempt to reconnect to the network. Sometimes it works, but eventually it will start refusing to connect, and I'll have to forget the network, restart wifi and add the network again. But the drops are so frequent that it's not even worth it since they constantly interrupt browsing, etc. So I've been just been tethering off my cell phone.
Stock nook had no problem holding a connection, hp touchpad (webOS) has no problem, nor does the laptop. I've researched here and other forums and haven't found a worthwhile solution. I know other people are having no problems maintaining a connection at their schools. I ran wifi ace and saw that there are multiple channels broadcasting BU's wifi signal--my guess is that the nook is jumping from one channel to another and losing connection along the way, perhaps? I'm no tech guru so it's just a guess.
I'm at my wits end and have exhausted all options I could access before posting here. Any help/advice/assistance to help me hold a stable connection to this 802.1x connection is MUCH APPRECIATED!
Hi,
I'm building an app for controlling an interactive digital sculpture installation. The idea is that users connect to the sculpture with WiFi so the app can send sensor data that's used to generate the appearance of the installation. This WiFi network has no Internet access.
My problem is that Android would not use the WiFi network at all. The user either has to disable cellular data or confirm that the device should stay connected to the network regardless of the absence of Internet connectivity. Then it works, but I want to avoid these extra steps as they are confusing the users and can be sources for all kinds of problems.
I expected this to be handled according to standard IP routing and longest prefix match, but apparently Android doesn't work that way. I tried explicitly setting the source IP address of the outgoing packets, but that made no difference.
Any ideas how it would be possible to talk to the sculpture over the WiFi without those extra steps?
Thanks!