New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
corrinti
Old
(Last edited by corrinti; 21st June 2012 at 11:34 PM.)
#1  
corrinti's Avatar
Senior Member - OP
Thanks Meter 232
Posts: 772
Join Date: Jun 2009
Location: Lublin
Question [Q] A-GPS in maniac's CM7

I start this thread as I would like to find out how it works and why I have a problem with it.
A-GPS in maniac's built CM7 nightly 20120616 seemed to me a great feature in case we have no data connection and need GPS.
It downloads lto.dat file to /data/location/

All other files, like gpsdata.nvs for ephemeries, LEARN_STORE.bin for last fixes, location.cfg are updated after each use of the GPS.

What I checked earlier with CM 7.2 official, with no data connection, it took ca 3 minutes for the fix (and it does not use lto.dat file)
With data connection for both builds it is only ca 10 s to fix.

But with no data connection and after downloading lto.dat file my defy with CM7 nightly 20120616 cannot fix at all - it shows up to 2 sattelites in the center of the radar, with almost the same position.

So my question would be: if there is no data connection is the device somehow forced to use lto.dat? Could be that lto.dat file somehow 'fools' the device for any reason?
PLK on modded atrix 4g - and my reborn defy
 
Unr3aL67
Old
(Last edited by Unr3aL67; 24th June 2012 at 03:52 PM.)
#2  
Unr3aL67's Avatar
Member
Thanks Meter 22
Posts: 31
Join Date: Jan 2012
You probably didn't initialize the lto.dat.
You have to do a fix after every lto-Download and after every reboot in order to initialize the lto.dat.

What i want to say is: The lto.dat doesn't work and also isn't used for the first fix after download or reboot.
You can do a fix with A-GPS (DATA ON) to speed up the process. After that, the lto.dat will be used in offline mode.

I don't know why you can't get an offline-fix after downloading as the lto-file isn't being used then. Could be coincidence.
It works for me in about 30 seconds although it is true that GPS Status shows the first 2-3 satellites in the middle with the same positions.

If you download the 30-day file and initialize it before leaving your country it should easily last for a vacation.

It works perfectly for me. After initializing an offline-fix usually takes about ten seconds...

Greetz, Unr3aL67

Sent from my Defy via Tapatalk
▬▬▬▬▬▬▬
Motorola DEFY @ CM7.2 nightly by maniac103
▬▬▬▬▬▬▬
The Following User Says Thank You to Unr3aL67 For This Useful Post: [ Click to Expand ]
 
ezantera
Old
#3  
Senior Member
Thanks Meter 17
Posts: 170
Join Date: Jan 2011
GPS is only reason I left cyanogen. I use car navigation often, in roaming too, and I run into BIG problems. Miui has maybe even bigger problems.

Interesting in every stock and derative ROMs GPS run perfect. Everything is is seconds, with or without data. And GPS status program find more satellites.

I would really love someone deal with this problem seriously. But I think, untill Quarx need GPS badly, this problem will not be solved completely
 
Step666
Old
#4  
Step666's Avatar
Retired Forum Moderator
Thanks Meter 1058
Posts: 3,789
Join Date: Jan 2009
Questions go in the Q&A section
 
corrinti
Old
(Last edited by corrinti; 25th June 2012 at 12:48 AM.)
#5  
corrinti's Avatar
Senior Member - OP
Thanks Meter 232
Posts: 772
Join Date: Jun 2009
Location: Lublin
Thanks a lot for some explanation. Problem is now solved and in my case it turned out that the main cause was use of GPSEssentilas to check how fast I can get a fix.
And after each start of the apk it stopped working and I had to start it second time but with no success in fixing the position (I was wiping its data, reinstalling, but nothing helped).
And when I forced it to close and checked with any other map apk I use, I get a fix quite fast.

I wouldn't say that stock ROMs find more sattelites, I usually have 6 - 8 in less then 30s, no matter now with or without data transfer on - the fact is that my MTK Qstarz module have cold start up to 1min 30s without any data preloaded, but it is a better chip than defy's Broadcom and what I observed its max sattelites found was 9.

And when driving I usually use a car navigation, but in many daily cases like looking for sg during a walk or trying to meet friends phone gps is a must ;)
PLK on modded atrix 4g - and my reborn defy
 
popcorn1122
Old
#6  
popcorn1122's Avatar
Senior Member
Thanks Meter 159
Posts: 414
Join Date: Nov 2011
Location: Mumbai
Check this link for automatic lto.dat download:
http://forum.xda-developers.com/show...7&postcount=54

It works well with froyo.
In cm7/9/10, insert the code to a right file.
Tags
a-gps, gps, maniac

XDA PORTAL POSTS

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more