GPS and Wireless Network - G1 Android Development

I've searched and searched...
but does GPS and Wireless location / network continuously run if I have them on?
Or do they only run when I have an app that uses these functions?

They continuously run.
|Spike|

I don't know about the wireless part, I doubt that it uses any perceptible extra power anyways, but the GPS only runs when you are actually using a GPS program. You can tell because the GPS icon is on or blinking. If the icon isn't there, it isn't running.

Idk, I notice that if I turn GPS on and then immediately go into a program that uses it (like Maps) it will take 15-45 seconds to locate me. But if I activate it, let it sit for some time and then go into a program, it finds me almost immediately. That to me seems like its been working in the background on getting a signal.
|Spike|

Or that it simply caches your location.
Does your experience include a location change between these start and reuse periods?
-bZj

xdavidn88 said:
Or do they only run when I have an app that uses these functions?
Click to expand...
Click to collapse
Coarse location (using cell network tower) is passive and always running. Fine location (GPS) only powers up when a device asks for it. When you open your Maps application (and provided you have Enable GPS ticked) it will start up the GPS module. If its a cold start, it could take up to a minute. Apps can also call the GPS without your direct intervention, if for example they are coded to wake on a timed period and collect GPS data.

Related

Fuze GPS Data Stream Freezing: Possible Solution

Hi guys,
I thought I would share what I discovered today. If this solution has been found, I apologize. Most users have been trying to get their Fuze GPS to lock on to satellites. Having used several GPS phones and many Bluetooth GPS pucks, I would say I'm somewhat experienced with using GPS on the PPC platform.
I have no issues with getting a lock on my Fuze. My issue is with Fuze's GPS chip randomly stop streaming data to my GPS applications. This usually happens after the initial lock. So for example:
a) Get a lock using any GPS application (GPS Test for example)
b) Exit GPS application
c) Launch GPS application again. Fuze will take several seconds to regain lock.
d) Fuze will take several seconds again to lock in, THEN it just stop streaming data to the GPS application!
I was able to reproduce this consistently. If you're using Garmin or TomTom, they will indicate that GPS lock is lost or something to that effect.
THE SOLUTION: Turn OFF aGPS!
a) Start->Setting->System->AGPS Settings
b) Uncheck BOTH "Enable AGPS" and "Enable AGPS location information..." (under the Privacy tab)
I was able to show that this consistently resolved my GPS data stream stopping problem. I'm using the .28 radio, but try it on the stock radio to see if that works and let the community know. What about QuickGPS? AFAIK, it's not causing any problem at all.
I hope this is helpful.
After standing on my deck for 20mins last Friday waiting on locks, I follow above and get a lock in 10secs(in my living room).
Turned off AGPS was the only change
It looks like without AGPS, the GPS would just stream whatever info it had cached even if it lost signal.
AGPS would clear last state instead and so become highly sensitive to signal-loss on the next poll. It doesn't help that this device is weaker in picking up GPS signals.
Yes, turn off AGPS.
NuShrike said:
It looks like without AGPS, the GPS would just stream whatever info it had cached even if it lost signal.
AGPS would clear last state instead and so become highly sensitive to signal-loss on the next poll. It doesn't help that this device is weaker in picking up GPS signals.
Yes, turn off AGPS.
Click to expand...
Click to collapse
Indeed, that would be exactly how I like my GPS to behave (use the cached ephemeris data). In fact, that was how all Bluetooth GPS puck works before the advent of AGPS. I guess AGPS is a good concept, but its implementation needs to be further tweaked.
If you have not used your GPS in a week or so, then AGPS is an advantage. Daily use, perhaps not so much.

Is there any software to turn on/off GPS on WM6?

Hi guys. I did quite some research on the forums, but have not found any software that can turn on/off GPS. When i'm saying turning on/off GPS, it means something like the wireless manager: when gps is is turned off, it simply is off so no software would be able to use it.
as i tried, software like gps switch does not do this job.
also, is there any software to show the current status of gps? And here i do not mean actively requesting for satellites information, but just to see the status whether the gps is currently being used by any software. so i guess it should not communicate to the intermediate driver itself, but has to work below it?
any suggestions? many thx.
caihongxu said:
Hi guys. I did quite some research on the forums, but have not found any software that can turn on/off GPS. When i'm saying turning on/off GPS, it means something like the wireless manager: when gps is is turned off, it simply is off so no software would be able to use it.
as i tried, software like gps switch does not do this job.
also, is there any software to show the current status of gps? And here i do not mean actively requesting for satellites information, but just to see the status whether the gps is currently being used by any software. so i guess it should not communicate to the intermediate driver itself, but has to work below it?
any suggestions? many thx.
Click to expand...
Click to collapse
Hi,
GPS is always OFF, unless a GPS-program opens the comm-port to fire it up. And as long you don't start such a program, GPS will stay off.
Dirk
Try GPS Test
dirlan2001 said:
Hi,
GPS is always OFF, unless a GPS-program opens the comm-port to fire it up. And as long you don't start such a program, GPS will stay off.
Dirk
Click to expand...
Click to collapse
I'm afraid it is not. It appeared clear to me that after close some gps app in a short period of time, the gps is still on (because the gps will soon find a lot of satellites if i open the gps app again, but this would not be the case after i close the gps for a long time)
joel2009 said:
Try GPS Test
Click to expand...
Click to collapse
Yeah i tried that. it is just another gps client which accesses the intermediate driver. It does not have the feature to turn off gps globally.
From WM5 sdk it appears that there is a "GPSGetDeviceState" method in intermediate driver interface. Can it be used to get the current state of gps? Isn't there any software making use of this function to display the current state of gps?
caihongxu said:
I'm afraid it is not. It appeared clear to me that after close some gps app in a short period of time, the gps is still on (because the gps will soon find a lot of satellites if i open the gps app again, but this would not be the case after i close the gps for a long time)
Click to expand...
Click to collapse
Hi,
That is due to the fact that GPS-programs like TT6 e.a. read out the ephemeris-data from the satellites and store it in the chip. but that data is only valid for a short period. After that the program needs to download the data again... hence a longer time to get a fix. Which also covers for the differences between (hardware) A-GPS and (software) QuickGPS.
Dirk
any new software found? I got a GPS software and the GPS is on after i exit the program and it drainĀ“s the battery.

[Q] Switch Wifi and 3G according to location?

Hey there, I'm looking for a little app on my Froyo that will turn on the WiFi and disable the 3G as soon as I reach my home (for example) and when I move outside again, that it'll disable the WiFi and enable the 3G.
Whether it's done by GPS or done simply by noticing if the WiFi signal is available, I don't mind. Does anyone have a clue about this?
I'm not sure if either can do it since I've yet to use them, but you may want to look into two programs, one called "Tasker" the other "Locale"
Both have the ability to execute location based tasks.
I've used both Tasker and Setting Profiles to accomplish this. Tasker is very powerful, but a bit fiddly to get working correctly.
SP is simpler, and works very well. The jury is still out.
There are a few apps that will do that like tasker and locale, but for my needs I use setting profiles.
Y5
Y5 do it great. remembers WIFI location acording to cell info (doesn't waist battery for GPS) and turn on and of.
only bug in my eyes it that in order to shut down WIFI on a remembered location, you need to disable app or forget location.
Thanks so far for the replies! Right now I'm trying Y5. The rest doesn't really work for me. I've tried Tasker, but no... then I've bought "Setting Profiles" as it seemed to be promising, but it doesn't recognize the places where I'm at. Both through GPS as well as cell towers... it knows where I am, but doesn't change my profile. Big pity!
So, now I'm trying Y5. Only down side is that so far none of the programs has the ability to disconnect the 3G upon activating WiFi.
akito said:
Thanks so far for the replies! Right now I'm trying Y5. The rest doesn't really work for me. I've tried Tasker, but no... then I've bought "Setting Profiles" as it seemed to be promising, but it doesn't recognize the places where I'm at. Both through GPS as well as cell towers... it knows where I am, but doesn't change my profile. Big pity!
So, now I'm trying Y5. Only down side is that so far none of the programs has the ability to disconnect the 3G upon activating WiFi.
Click to expand...
Click to collapse
i think it does!
at least in HTC DESIRE it turn 3G off
Locale can do the job. For example, you can set 3 situations.
Set 'At Home' Situation - Condition: Location plug in(any good location plug in)
- Settings: Locale variable plug-in, add, type 'Home', True.
Set at Defaults - Add Locale variable, add Home = False
Add Wifi - Off
Add 3G - ON
Set Wifi - Conditions: Home = True
Settings: Wifi on
3G off
For my case, I've added Appli Detection condition for the Wifi situation where it detect my browser, etc and perform the wifi on. Hope this helps. IMO, Locale does best and is simple.
I use Tasker to do exactly what you ask.
When I get home, Wifi turns on, 3G turns off. And vice versa when I leave.
Same when I get to work.
I do both of these without the need for GPS or even cell tower location..it's based on when I'm near my home wireless network.
Also turns off wifi, 3G and screen rotation when I'm in bed.
And then makes me breakfast in the morning (well, not quite, but it's almost that good! )
Okay guys, I have definitly uninstalled Setting Profiles. I can't seem to rely properly on it. One time it works, the other time it doesn't. So, I simply don't want it anymore
Now I'm trying Tasker, seems promising. I have downloaded APNDroid next to it, as Tasker was notifying me about the fact it needs that program to be able to (dis)connect the 3G. Now.... I'm stuck for a bit. I have made tasks, but have trouble with the profile. The location, I would like that to be done as the scotsman has got it. According to if it finds your home as well as, in my case, work network. How to do that? Cause when I want to set my location, it takes me to google maps. And I take it that works by GPS. No problem neither, but drains the battery a bit more... Would anyone be so kind to give me quick and short step through?
akito said:
Okay guys, I have definitly uninstalled Setting Profiles. I can't seem to rely properly on it. One time it works, the other time it doesn't. So, I simply don't want it anymore
Now I'm trying Tasker, seems promising. I have downloaded APNDroid next to it, as Tasker was notifying me about the fact it needs that program to be able to (dis)connect the 3G. Now.... I'm stuck for a bit. I have made tasks, but have trouble with the profile. The location, I would like that to be done as the scotsman has got it. According to if it finds your home as well as, in my case, work network. How to do that? Cause when I want to set my location, it takes me to google maps. And I take it that works by GPS. No problem neither, but drains the battery a bit more... Would anyone be so kind to give me quick and short step through?
Click to expand...
Click to collapse
I use Tasker, but I do not believe you can use WiFi location if WiFi is off. Location base uses GPS. You can set an option to do tasks if the WiFi connects. 3G is automatically disabled on my Incredible when WiFi connects, so I do not have to implicitly set it off. Just be sure to adjust your radius when you use GPS location. You do not want to drive way down the street to have WiFi turn off and 3G come back on.
I use Tasker to also launch the car app when bluetooth connects in my truck. There are good examples on the Tasker Web site.

GPS connects instantly, but in Navigation it takes more than 10mins to connect??

Hey.
GPS connects instantly, but in Navigation it takes more than 10mins to connect?
I use GPS status app and it connects instantly, but when I open navigation it just says "Searching for gps" for 10mins before it connects and after that it starts working.
Does someone know how to fix it?
Is it just the Navigation app or is it Google maps or any other app? I just use Google Maps because I like the overhead view. I hardly use Navigation because Google Maps follows you on the map and works the way I need it to. I get a pretty fast lock and all is well when I used it. I didn't notice anything out of the ordinary.
I do know that Navigation, in the later versions, tries to download the entire route to the phone in case you lose your data connection. Perhaps this is causing the delay (slow data connection on the go).

Waze GPS issues

Hello,
after two days of good GPS working, today I had an issue. After setting up destination in Waze, it showed a message "GPS cannot connect" or similar. I restarted the phone but it was the same. I let the Waze run for 10 minutes, but nothing changed.
Then I started Google Maps. There was no GPS connection neither, but after couple of minutes it started to work. And then I was able also use the Waze as well.
Do you know guys what is the issue?
Thank a lot.
Sounds like an agps (assisted GPS) issue. Periodically most phones download a table of satellite locations to speed up getting a lock. Otherwise it can take some minutes and some apps don't seem to cause a proper initialization. There is often a system setting to also allow WiFi scanning to speed up a lock. This uses access point locations to get a quick fix using Google's database of WiFi locations. Lastly the phone can use cell tower locations also looked up from a database. If you've ever tried to get a lock while on an airplane, you will see this effect.
I'm short though, if the GPS ever gets stuck, there is a good app called GPS test from chartcross that always kick starts it again for me.
Sent from my GM1917 using Tapatalk
I don't know what the root cause is or the fix but I am able to use a free app called gps locker which locks gps then while running Waze I have few if any issues. It's also nice as it let's you create a shortcut for your home screen that you can tap, which launches gps locker , locks gps location, then auto launches Waze. Super handy. See attached.
Is anyone else having major GPS issues. Waze and Google Maps is having issues acquiring a GPS signal. I tried GPS lock but that doesn't seem to solve the problem for me either. It seems to work sometimes and gets a signal pretty quickly but other times it doesn't work at all. It's very frustrating.
Seems like Waze might be the issue.
I saw another post on t mobile support that suggested removing Waze clearing cache and restarting. This worked like a champ for me
Google maps works perfectly again. GPS locks immediately like it should.

Categories

Resources