Qmobile A6 Poor GPS Fixed - Upgrading, Modifying and Unlocking

Qmobile A6 have Poor GPS because
1 ) Take long time for cold start
2) GPS crashes sometime during cold start, as GPS Beacon disappears but the App keep running.
The 1st issue regarding long cold start is fixed,
The reason was Mobile could only utilize GPS (StandAlone) and unable to Utilize Assited GPS because it is unable to connect to the Supl.Google.com Due to invalid SSL certificates at PATH /SYSTEM/ETC/SECURITY, i have tried various SSL certificates (SuplRootCert) but the output was same and counter productive.
Disappointed by google i experimented other SUPL servers as
#SUPL_HOST= glsupltls.glpals.com
#SUPL_HOST=www.spirent-lcs.com
#SUPL_HOST= supl.sonyerricson.com
some were working but slow but SUPL.NOKIA found best, and now using GPRS/WIFI connection my gps fix is less then 10 sec (skyfacing) once locked it will continue to be locked and you could use Sygic for Turn by turn navigation.
simply put the attached files at the path /system/etc/ of your mobile,
Note : The mobile should be rooted.
For Rooting use script Bin4ry.7z and follow steps at path given in the web link below, it will work both for A6 as well S2
http://forum.xda-developers.com/showthread.php?p=31545729
The Files are gps.txt and gpsconfig.txt: Plz rename these files to gps.conf and gpsconfig.xml before putting them at path.
You could use Es File Explorer for this purpose
Note : Plz take a backup copy of Orignal gps.conf and gpsconfig.xml before replacing them with new as a precautionary measure only.
After that reboot your phone and connect it to internet (wifi/gprs) and open GPS STATUS or GPS Test App (Sky facing) it will be have to fix within a few Seconds.
Note : In GPS Becon Disappears , restart App, this is a hardware problem which only occurs sometime during cold Start only.

Yes.its working
Sent from my A6 using xda app-developers app

I have bought Noir A6 a week before and I am disappointed to find the GPS issue. I have still not used your method. I am confused because with WI-FI it showed my location on Google maps immediately within few seconds. So that means that issue with A-GPS is only with GPRS data connection??.
I have tested Noir A6 and my old Huawei Ideos with GPS Test utility both indoor and outdoor without data connections. Here indoor means single story building.
In out door test Noir A6 acquired satellite more than 5 folds time it took to Huawei Ideos. Also the signal strength showed poor on Noir A6.
In indoor test Noir A6 completely failed to perform test after waiting for 15 minutes where as Huawei Immediately acquired satellites with reasonable sginal strength.
In nut shell it is clear that GPS CHIP used in Noir A6 is very inferior and it is insensitive to low signal that is why it takes ages to lock on to satellites where as Huawei Ideos acquire satellites immediately.
Unfortunately I can not post images now to show screen of GPS TEST

greatanjum said:
Qmobile A6 have Poor GPS because
1 ) Take long time for cold start
2) GPS crashes sometime during cold start, as GPS Beacon disappears but the App keep running.
The 1st issue regarding long cold start is fixed,
The reason was Mobile could only utilize GPS (StandAlone) and unable to Utilize Assited GPS because it is unable to connect to the Supl.Google.com Due to invalid SSL certificates at PATH /SYSTEM/ETC/SECURITY, i have tried various SSL certificates (SuplRootCert) but the output was same and counter productive.
Disappointed by google i experimented other SUPL servers as
#SUPL_HOST= glsupltls.glpals.com
#SUPL_HOST=www.spirent-lcs.com
#SUPL_HOST= supl.sonyerricson.com
some were working but slow but SUPL.NOKIA found best, and now using GPRS/WIFI connection my gps fix is less then 10 sec (skyfacing) once locked it will continue to be locked and you could use Sygic for Turn by turn navigation.
simply put the attached files at the path /system/etc/ of your mobile,
Note : The mobile should be rooted.
For Rooting use script Bin4ry.7z and follow steps at path given in the web link below, it will work both for A6 as well S2
http://forum.xda-developers.com/showthread.php?p=31545729
The Files are gps.txt and gpsconfig.txt: Plz rename these files to gps.conf and gpsconfig.xml before putting them at path.
You could use Es File Explorer for this purpose
Note : Plz take a backup copy of Orignal gps.conf and gpsconfig.xml before replacing them with new as a precautionary measure only.
After that reboot your phone and connect it to internet (wifi/gprs) and open GPS STATUS or GPS Test App (Sky facing) it will be have to fix within a few Seconds.
Note : In GPS Becon Disappears , restart App, this is a hardware problem which only occurs sometime during cold Start only.
Click to expand...
Click to collapse
with ES File Explorer i can't find the system files well i manage to see system folders by astro file explorer but unable to copy or move the required files and also can't rename the original files as bak files
Regards

Afzaal said:
with ES File Explorer i can't find the system files well i manage to see system folders by astro file explorer but unable to copy or move the required files and also can't rename the original files as bak files
Regards
Click to expand...
Click to collapse
Well you will have to root mobile to get access to system files. I have rooted and change the files but I don't think that there
Is significant difference. Further I have used some utilities that directly modify .conf file but the problem is almost there. A6 uses inferior GPS chip set which is not sensitive and is cause of problem.
Sent from my A6 using Tapatalk 2

izkhan said:
Well you will have to root mobile to get access to system files. I have rooted and change the files but I don't think that there
Is significant difference. Further I have used some utilities that directly modify .conf file but the problem is almost there. A6 uses inferior GPS chip set which is not sensitive and is cause of problem.
Sent from my A6 using Tapatalk 2
Click to expand...
Click to collapse
well i rooted it before anything else and said problem was solved by root file manager but problem persist so i change the cheap thing no worries at all now coz i get rid of a6

Related

QuickGPS?

Are there any applications for Android that work similarly to QuickGPS (downloads a small data file which allows you to lock onto a GPS satellite much faster)?
Had a look around and can't find anything.
Any help would be appreciated!
I haven't used the GPS very much yet, however, when I did use it, I got a fix quite quickly, so I personaly do not require a sort of quickGPS.
Essentially the phone does this already. However instead of downloading the file once and for all it might contact a server using your data connection to update it whenever you launch a GPS-application.
See https : // secure.wikimedia.org/wikipedia/en/wiki/Assisted_GPS

[Q] GPS fix for galaxy w

i've noticed that our phone's specs says GPS, which means it is not Assisted-GPS (which, by the way, uses cellular network to aid GPS system).
but on the phone's settings, there is an option to enable 'use wireless networks'. is this an option to turn on 'A-GPS'?
if so, having turned that option on, my old sony ericsson x10 mini pro can still get a fix in under 5 minutes. the galaxy w on the other hand, takes forever to get a GPS fix, and has fewer satellites found that the small x10 mini pro.
can this be solved by a fix, or our phone never really has a-gps capabilities?
thanks in advance!
In specifying the website of Samsung Galaxy W has GPS and AGPS support.
I don't know what's wrong with so many people's phones, but I can get a GPS lock in under one minute.
Where do you live?
Sent from my GT-I8150 using XDA App
Happens to me sometimes, but this all depends on where and how this the weather.
i'm from the Philippines. must be the weather. i will give it a go later, once the sky cleared up.
Much like my SGS2, my wifes SGW took ages to get a lock (about 10-15 mins) the first time after purchase, but is much quicker (takes about 15 seconds) now.
I usually use AGPS and fix is almost immediate.
I however test the GPS only functionality while in Switzerland in the Christmas holidays and it never took me more than 3 minutes to have a GPS fix (using Google Maps with data cached and the pre cache function).
i am in the philippines atm and been testing it.... commonly it takes me less that 3 min
There is a problem with Samsung devices.
In Motorola Quench/Cliq XT, Defy and Milestone 1, GPS fix wait for 10 seconds.
Hi. Good news.
GSP fix indoor in 10 seconds in my device with TuxBrothers Rom.
I talked to him and wait autorization to release the rom link.
I dont know diference, but with KerzaV2, gsp wait many minutes to fix positon.
I got gps lock about one minute. Applied fasterfix gps fix to lock faster. U guys should try it too..
Sent from my GT-I8150 using xda premium
Guys, i use this version and GPS work fine, just fix position in Google Maps ins 10 seconds without A-GPS suport.
http://forum.xda-developers.com/showthread.php?t=1465563
robertomarconi1 said:
Guys, i use this version and GPS work fine, just fix position in Google Maps ins 10 seconds without A-GPS suport.
http://forum.xda-developers.com/showthread.php?t=1465563
Click to expand...
Click to collapse
Are using the OC version or the non-OC version?
gps.conf
I found that in the gps.conf file the NTP server is set to north-america, as i live in hungary i changed it to "hu.pool.ntp.org" and voila: i get a fix in 10 secs .
you have to be rooted to edit the file (system/etc)
magorgoth said:
I found that in the gps.conf file the NTP server is set to north-america, as i live in hungary i changed it to "hu.pool.ntp.org" and voila: i get a fix in 10 secs .
you have to be rooted to edit the file (system/etc)
Click to expand...
Click to collapse
'hu' is which country Magorgoth?
Hi Bro,
I get a lock in llike less than a minute. Faster even under clear skies. You might want to consider editing the gps.conf file as well (your phone must be rooted though). Haven't edited mine to point to something local but will do in a couple of days probably.
You are so lucky. I edited my gps.conf to nearly every countey but i never get a gps fix under a minute.
@mpbtejada ur from philippines ryt? u say ur gonna edit the gps.conf, how? im from ph too
Sent from my GT-I8150 using XDA App
^ you just have to pull the gps.conf file from /etc/gps.conf and edit the values. there's a link from a few post earlier on this thread.
btw, I've noticed that using gps status, my phone now can detect more gps satellites, but it still can not get a "fix" under 5 minutes. I've already edited the gps.conf file to point to asia servers.
I've read somewhere (galaxy tab) that they have to edit a file in /system/lib/.... Do you guys think that it can also be applied to our phone?
Sent from my GT-I8150 using XDA App
Same problem here.
Changing the gps.conf to europe NTP server makes detecting 7 or 8 satellites within 10 sec. but Fixing is still taking time ....

Motorola Defy GPS Problem Solved (to use offline LTO-AGPS) (updated 3 Aug 2012)

Firstly thanks popcorn1122 so much for amazing improvement of A/GPS here
For my findings, some parameters in the <hal> paragraph of /system/etc/gpsconfig.xml could also be added to enable the offline LTO-AGPS (Need rooting, and pls backup the file)
(red text for enabling LTO and blue text for optionally enabling logging for the first fix)
<hal
acPortName="/dev/ttyS0"
lBaudRate="115200"
cLogEnabled="true"
acLogDirectory="/data/location/com.broadcom.gps/logs/"
ltoFileName="/data/gps/lto2.dat"
acNvStoDir="/data/location/"
acCmdPipeName="/data/location/gpscmd"
bAllowIgnoreOsc="false"
bUseHalLogger="true"
/>
To get the LTO file, we could either:
(Method 1 using GPS Aids)
1. Create the folder /data/gps which GPS Aids puts the LTO file, and grant rmxrmxr-x permission
2. Install GPS Aids with both Data and GPS ENABLED, otherwise the Download LTO functions will be blocked and need re-configuration
3. Download the LTO file. GPS Aids shows how long since it has been downloaded
(Method 2 manually download)
1. Get lto.dat or lto2.dat from either : (7 days)
http://gllto.glpals.com/7day/latest/lto.dat
or (7 days)
http://gllto.glpals.com/7day/v2/latest/lto2.dat
or (30 days)
http://gllto.glpals.com/30day/v2/latest/lto2.dat
2. Rename and move the file which fits the setting of the modified ltoFileName parameter of gpsconfig.xml, granting sufficient permission for the folder like that in Method 1
(Method 3 auto download)
In the early time I developed a script to download the LTO file while mobile data switched on, and added service and trigger routines from the relevant system properties. Seeking advice by CM7 developer @maniac103, those triggering are not fully functional thus not recommended. Instead, pls try his latest build since June (here) with a marvelous settings UI for this case. Thanks Maniac for his kind concern and efforts on it.
Within the validity of the LTO file, the fix should be done in seconds even in limited open sky. We can download an updated LTO file anytime to keep the performance.
Reference:
http://www.htcmania.com/archive/index.php/t-151202.html
(sorry I cannot understand the language but thinking some param. may help)
http://forum.xda-developers.com/showthread.php?t=789383&page=4
(refer jupiter.xml from a model of SGS)
https://github.com/CyanogenMod/android_device_samsung_vibrantmtd/pull/3
(bash script for auto dowload)
https://github.com/jad3675/android_...283f4a26989dc07d45da8a8af580f51492d45f#L0R373
(init service for auto dowload)
Thanks folks for optimizing Defy for releasing its real performance!
I had tried all that before but had come to a conclusion that lto.dat never used or downloaded. The cellid are stored in learn_store.bin which is stored in /data/location
emphersis is downloaded and stored in gpsdata.nvs.It is used by motorola defy for a specified duration (seems 1 hour as per location.cfg - MIN_NAV_REQ_INTERVAL = 3600000 )which is updated in location.cfg if there is no gprs available.
I see... I also bear no hope originally just I think Defy uses BCM4750 and Broadcom promoted LTO years ago, and I found the params. like acLtoDir and lbsSyncLto from the htcmania.com thread last week, with referring other similar XML, and continue the trial-and-error. Hope this finding makes us feel our experiments worthy
manfifer said:
(Method 2 manually download)
1. Get lto.dat or lto2.dat from either :
http://gllto.glpals.com/7day/latest/lto.dat
or
http://gllto.glpals.com/7day/v2/latest/lto2.dat
2. Allocate the file which fits the setting of acLtoDir and ltoFileName parameter of gpsconfig.xml, granting sufficient permission for the folder like that in Method 1
Click to expand...
Click to collapse
What is the difference of lto.dat and lto2.dat? This files differ in size 65/39 kB.
popcorn1122 said:
I had tried all that before but had come to a conclusion that lto.dat is downloaded by the gpscmd file and converted into learn_store.bin which is stored in /data/location
learn_store.bin file is used by motorola defy for a specified duration which is updated in location.cfg if there is no gprs available.
Click to expand...
Click to collapse
I am confused. What I found is, that (without data connection on a CM7 ROM) learn_store.bin is updated, whenever GPS got a fix.
My assumption is, that this contains data that can help to get a quicker fix next time.
But I assume, that this contains only infos about the sats that has been involved in the last fix (which are only a few). Where else the Defy should now about the other satellites?
A downloaded lto.dat on the other hand probably contains information about all the satellites.
What do you think about my speculations?
PS: I found an interesting document:
The LTO data should be around 30kB and valid for around 4 days.
http://www.broadcom.com/collateral/tb/LTO-TB100-R.pdf
An indeed, the BCM whould support the LTO
http://www.google.de/url?sa=t&rct=j...sg=AFQjCNErL9qjljAhfOKhtIYORo_sn3BzDQ&cad=rja
You could use the LTO file from either URL, just rename it to be the same as the parameter "LtoFileName" and place it in any folder set by another parameter "acLtoDir". Both of them serve the purpose just the V2 version is smaller in size, similar to the one downloaded in GPS Aids. The app. downloads it as lto2.dat in /data/gps/, so I have to build this folder and set the above two parameters in gpsconfig.xml shown in the thread before installing the app.
Sorry I have no idea how LEARN_STORE.bin and gpsdata.nvs is created (thanks popcorn1122), just they would be expired and as you've raised in popcorn1122's thread, after 6 hrs or shorter time from a SUPL fix, apart from the birds with expired ephemeris (but coarse almanac data), there have other new birds visible without AGPS data in the last fix. When we are offline, the chip tends to fix them from scratch again gradually.
Like the Broadcom Technical Brief promoted, offline AGPS is useful while we are standing under dense skyscrapers without network assistance. It also expires after around 4 days, but its sufficient for me to update another LTO file. I keep turning off any data before testing LTO with GPS Status, and delete /data/location if I need restarting the phone. This is stubborn from normal application while I can easily get SUPL fix with my 3G data plan. But I'm eager to find the solution when one day I'd like to get a quick fix while travelling abroad. (time is valuable in the tour )
LTO files contain days of ephemeris data of all the birds, once the position is fixed, even some birds with weaker signals, whatever visible or obstructed, can aid the fixing. But it could not be applied properly in the stock or CM7 gpsconfig.xml settings.
I believe the Broadcom chips in this generation has this technology in their released chips as it has been applied since the era of WM phones. The key is just the implementation of the driver or configuration.
I did what you suggested in your first post, changed/added the red lines.
used "lto.dat" as filename and "/sdcard/download/" as dir.
I added a shortcut to the lto.dat (the bigger one) to my browser, so that is becomes easy to download (it will located that in the dir mentioned above.
But here I get some trouble with permissions. For a unknown reason, the permission is (after download) --xrwx--x .
Even with a terminal an su I can't change the permission to rw-rw-r--. Very strange, but OT here. ls -l show system / sdcard_r as owner.
(Edit: its because of the filesystem FAT: Can you test, whether it works from that folder despite the permissions as well?)
So I copied the file to /tmp and changed the permissions. You are mentioned
"rmxrmxr-x permission". Imho it is sufficient to be readable, at least x is not neccessary, as this is just data, right?
Reboot the phone with all data (WIFI/GPRS/EDGE/3G) DISABLED (for better testing, delete /data/location folder to clear all the GPS cache). Once again it needs some time for TTFF. Then we should notice the birds connected increased dramatically like fixing with SUPL. No need endless waiting of unassisted GPS for 3-4 days until next reboot. Of course we can download an updated LTO file anytime to keep the performance.
Click to expand...
Click to collapse
To clear the AGPS data it should be sufficient to use GPS Status. It can download and clear AGPS data.
Regarding deleting the files in /data/location:
-The gpscmd is an empty file (pipe?) so no need to delete.
-gpsdata.nvs and LEARN_STORE.BIN is recreated with a new call of GPSStatus
But the location.cfg is containing some settings and is not recreated. This is lost now. It will be created some location_tmp.cfg, but it is empty.
Regarding SUPL: Is this a service which runs with or without an DATA connection to the service provider? What I mean, do I have to enable data connection for this? Some data (like which cell, what time,..) are received without a data connection ...
I have come to a conclusion that lto.dat is not used by BCM4750 driver of defy.
Just check my post with updated information.
The driver brcm_guci_drv is the most important file which contains all details what the defy does and only takes port & speed & chip type & chip speed details from gpsconfig.xml at the startup.
The same case with location.cfg... half of the file is not used by defy. Only parts of SUPL in location.cfg are used by defy.
I tried every fix to improve offline GPS performance, but with no "visible" effect so far. But as some poeple like manfifer or popcorn told about improvements I did some test with initial state again - just to be able to make a real comparison.
The results are mixed. I did a initial download of a agps and get a fix in
Then I switched of gps and network. Every hour i enabled gps and checked with gpsstatus th ttff. It varies: 7, 100, 15, 10, 84, 74, 8, 62, 77s.
Than after 1.5h (i missed the 1h ): 758s
Again in 1h rythm: 60, 37, after midnight 445s(!!!).
At night I slept an started after 6.5h again more or less in 2h time distance:
26, 54, 221, 189, 859(!!!!) after 3.5h, 9s (after 1h:20min) ...
It is clear, that delay between GPS tests affects the ttff. But
@popcorn1122:
do we have a chance to get a driver that is compatible and handles lto data?
defy isn't the only phone with this broadcom chip, and froyo-kernel has been used in many devices.
how do you know about the driver brcm_guci_drv. I though this gps.jordan.so is responsible.
starbright_ said:
@popcorn1122:
do we have a chance to get a driver that is compatible and handles lto data?
defy isn't the only phone with this broadcom chip, and froyo-kernel has been used in many devices.
how do you know about the driver brcm_guci_drv. I though this gps.jordan.so is responsible.
Click to expand...
Click to collapse
Motorola Defy uses Broadcom GLCT ver. 2.1.3 79917, 2010/Jul/27, 09:21:25 driver. This is an old driver. Perhaps Motorola never bothered to update the driver to take real potential of the BCM4750 chip. The LTO.dat is not downloaded nor used. Also the settings of SUPL are left with basics and the fallback supl to google is disabled by default. The whole gps is dependent on MSA & MBS & SUPL. The fixes are possible without gprs or wifi or network towers. Hence the ephemeris data is straight downloaded from satellites. The GPS fixes & ephemeris data are stored in LEARN_STORE.BIN.
It is difficult to get the new driver for defy. LG , Iphone & Samsung have used BCM4750, but they have their own custom driver to meet their requirement. I have tried the LG driver called glgps , but the gps did not initialised even with the original defy config file.
gps.jordan.so file is not used by defy. The stock installation has no such file. Similar file was in Milestone and defy+. But not in defy. Hence brcm_guci_drv is the driver file and is the same MD5 as of defy+. Milestone brcm_guci_drv has a different MD5.
starbright, its great to make use of our browser downloading the LTO file instead of installing GPS Aids. Just for my CM7 browser, it won't overwrite the old file but rename the new one as "lto2-1", and I donno why it changes the extension to .txt , resulting lto2-1.txt. Anyway I tested changing the acLtoDir and LtoFileName param. to "/sdcard/download/" and "lto2.txt", the LTO is also effective after reboot and first lock. The permission of the downloaded file is --xrwxr-x, the same as the one in /data/gps from the app. I try bookmarking the whole URL but it won't download but view it, so I can only bookmark the path and download manually. Whether the LTO works is obvious. When 4-5 hrs after a SUPL locking, u need more than 1 min to lock, then the LTO is most probably failed. Normally its just several seconds, even no data for 3 days.
popcorn, I'm now using the 120304 build of CM7, attached my brcm_guci_drv, could u confirm if it has been replaced from the stock one. I tested both gps.jordan.so from CM7 and your thread, both work with SUPL and LTO, but after removing it and reboot, my GPS Status cannot view any birds and no more blinking GPS icon when enabled. If it dosen't exist in stock ROM, there should have some other libraries replaced by CM7, including brcm_guci_drv probably.
I attach the brcm_guci_drv from CM7 and the modified gpsconfig.xml early this thread.
I use Opera Mini and set the download-path as tile in start-page. Just open it an lto.dat will downoaded to the path. It keeps the *dat-extension, but make lto-2.dat, lto-3.dat ... if the old file isn't cleared.
manfifer said:
... the LTO is also effective after reboot and first lock. The permission of the downloaded file is --xrwxr-x, the same as the one in /data/gps from the app. I try bookmarking the whole URL but it won't download but view it, so I can only bookmark the path and download manually. Whether the LTO works is obvious. When 4-5 hrs after a SUPL locking, u need more than 1 min to lock, then the LTO is most probably failed. Normally its just several seconds, even no data for 3 days.
Click to expand...
Click to collapse
Sorry, have difficulties to understand this. You mean, LTO is working? No problems with the location and permission on /sdcard ? What is a SUPL lock? Does this data need a data connection or is it transferred (like clock or name of cell you are logged in without a data connection) just by login to a GSM network. (data connection active or not) Can you explain under wich circumstances the TTFF is so fast?
I couldn't see this helping effect, maybe have to test this again and compare your files.
I used lto.dat and CM 7.2.rc.
Sorry I should use "fix" instead of "lock", just mean "successful positioned"
Yes data (EDGE/GPRS/3G/WIFI) is needed to communicate with the SUPL servers
(supl.google.com, supl.nokia.com, etc.) to get a fast fix, just logon to GSM network does not work. So the use of LTO is to get rid of such network barrier, for several days.
In my testing whatever the file is in the phone (/data/gps/) or SD Card
(/sdcard/download/), it does works under --xrwxr-x , just I have to modify acLtoDir and LtoFileName param.
My TTFF (after restarting the phone) is around 30sec-2min., not fast as I keep data connection OFF for testing. The power of LTO comes with the 2nd fix and so on, whatever in open space or under dense buildings, whatever how long u restart GPS from the previous fix (good to test after we wake up as all fixes and cache should hv been expired.), usually the fix costs less than 5sec. The effect keeps until I restart the phone again (change SIM card, the phone hangs up ) or the LTO file is used more than 4 days around. But, if u move the file away, after say 3 hrs, the fix will take longer gradually, until costing more than a minute. So far, no data is allowed when GPS on.
I am just wondering why smartphones have to use A-GPS for fast fix? I own standalone gps device and hell there is a fix within 30-40sec or less without need of any data connection as on smartphones.
manfifer said:
For my findings, some parameters in the <hal> paragraph of /system/etc/gpsconfig.xml could also be added to enable the offline LTO-AGPS (Need rooting, and pls backup the file)
<hal
acPortName="/dev/ttyS0"
lBaudRate="115200"
cLogEnabled="false"
acLogDirectory="/data/location/com.broadcom.gps/logs/"
acLtoDir="/data/gps/"
ltoFileName="lto2.dat"
acNvStoDir="/data/location/"
acCmdPipeName="/data/location/gpscmd"
bAllowIgnoreOsc="false"
bUseHalLogger="false"
LbsEnable="false"
LbsLocal="true"
LbsSyncLto="true"
LbsSyncCells="true"
/>
Click to expand...
Click to collapse
My general impression is, it really helps.
Before clearing the AGPS data, TTFF takes just a few seconds, althought the last fix has been done >12h before.
But there is one thing, that let me doubt a bit. At least my understanding of lto (that is independend from AGPS) and AGPS seems to be not correct
My observation is the following:
- I start GPSStatus (without GPS and Data connection) and clear AGPS data.
- Close GPS status and wait a minute
- Enable GPSStatus and wait for TTFF - then it takes (lto.dat is around 1 day old) again very very long > 5min .
Do you know when the lto.dat will become active?
To summarize this (this is just what I currently assume):
a) With WLAN on and AGPS the fix is rather fast
b) after disabling WLAN, the once downloaded AGPS data seems to be helpful only for a very short time 1h...6h.
c) with lto-data it seems that the TTFF is fast again, although AGPS data is older than 12h
d) with cleared AGPS data, but with lto it need very long time (700s) for TTFF.
Can you do this test too?
Certainly... thanks for helping me to test this case so far.
I started the test without AGPS for 5 days. I started GPSStatus and cleared AGPS data (I hv to turn GPS ON else it'll be disabled) and turned them off for some minutes. When I start over again, it takes around a minute to have a fix, similar to the 1st fix after restarting the phone. The next fix is done in seconds in the next morning without data i.e. LTO works again.
Before this test, I tried modifying the xml to have the chip generate a log in each first fix after restart (blue words in my 1st post), but it doesn't carry on logging until the next restart. It states "Skip reading lto", imho it just indicates LTO doesn't help in the 1st fix.
Some findings I made...
the /system/bin/location file is responsible to generate LEARN_STORE.BIN
the /system/usr/bin/brcm_guci_drv is the gps driver which gets few parameters mentioned in gpsconfig.xml when the defy starts. Majority of parameters are already mentioned in the driver itself.
the /system/lib/libgps.so file is the run time file which has majority of parameters of location.cfg
location.cfg file has supl server location getting injected to gps for LBS functions. That file also has a fall back sulp server which by default is disabled. The last GPS time of a valid fix is stored in /data/location/location.cfg file
The question still remains unanswered:
Is lto.dat getting downloaded automatically?
Also I tried to get some files from motorola xoom (honeycomb), the driver(dec 2010) and other files mentioned above... but the radio and gps do not initialize with those new versions.
manfifer said:
I started GPSStatus and cleared AGPS data (I hv to turn GPS ON else it'll be disabled) and turned them off for some minutes. When I start over again, it takes around a minute to have a fix, similar to the 1st fix after restarting the phone. The next fix is done in seconds in the next morning without data i.e. LTO works again.
Click to expand...
Click to collapse
You can set GPS Status to be work even with GPS disabled (it just shows a warning than). And so it is possible to clear AGPS data, without enabling GPS.
After that I have problems to get a fix. (Have to test it again, currently heavy rain might influence the test)
This is a bit strange to me. From what I have heard, the AGPS data are injected into the chip. But how can they cleared if the chip is not powered?
It might have some low power standby, but who knows?
manfifer said:
Before this test, I tried modifying the xml to have the chip generate a log in each first fix after restart (blue words in my 1st post), but it doesn't carry on logging until the next restart. It states "Skip reading lto", imho it just indicates LTO doesn't help in the 1st fix.
Click to expand...
Click to collapse
Where does it write a log?
Good information.
Hope the defy can get fast GPS fixed.
starbright_ said:
Where does it write a log?
Click to expand...
Click to collapse
when you edit gpsconfig.xml with following lines, your logs are activated:
cLogEnabled="true"
bPrintToConsole="true"
acLogDirectory="/data/location/logs/"
bUseHalLogger="true"​
I am using this solution now for more than 2 weeks. Never need more than 120s (mostly less than a minute) to get position (without active data connection).
Just once I takes very long - that was the time, as lto.dat was more than 1 week old. Great job!!!!
The download of lto.dat could be optimised. With my fav in browser I need still a view actions:
- open filemanager
- delete old lto (to prevent to get an lto-1.dat, lto-2 dat ...)
- close filemanger
- open browser
- download by push a favorite on startscreen.
Best would be just one button/script, best running automatically every 5 days when WLAN/GPS connection is established.

[Q] HTC Desire HD GPS!

Hi,
Ok so quite a while ago I rooted my gf's HTC Desire HD, and installed the Cyanogenmod 7 then upgrade that to Advanced Revoluion HD,
now my problem is that for some reason her gps keeps losing its signal whilst driving even short distances, At first I thought it may have been the Cyanogenmod 7 rom but I was wrong it does it every five minutes after turning it on but it can't regain its signal but my Wildfire S gps Stock 2.3.5 Works Perfect
Is there anything I can do to fix it?
The DHD has a problem of the GPS antenna contacts becoming loose and not connecting with the motherboard properly. There are a few hardware fixes for this if you search around. I've been experiencing a similar problem, but I have yet to try one of those fixes. The GPS antenna is located under the black plastic piece beside the camera (the part with the LED flash). When you're searching for a signal, try lightly pressing this black piece into the phone. See if you get a quicker fix. Then release the piece and see if you lose the fix. If this occurs, then it's due to the hardware loose contact. You'll have to do one of the hardware hacks to fix it.
Also, you can try using a tight fitting silicone/hard case for the DHD, as the case will press tightly against the back of the phone and so push the GPS antenna module inside.
Before all that, here's another thing to try from the software side. Since your flag says you live in the UK, I've attached a specific UK gps.conf file. It contains specific server addresses for your country to download better AGPS data, rather than having a general country independent server like the default gps.conf.
Open a root file explorer such as Root Explorer/Slide Explorer, go to /system/etc/, find gps.conf, press and hold on it, view permissions, make note of the permissions, rename it to gps.conf.bak, copy the new gps.conf (remove the .txt at the end, .conf file upload wasn't allowed) that I've attached into that directory, and set the permissions of the new file as they were for the old one.
This gps.conf is out of the BlackICE v1.50 ROM which contains specific files for many countries, so it is thanks to the creators of that ROM.
Thank you very much I will try this later as not to piss her off anymore with the constant changing of her Rom
Sent from my HTC Wildfire S A510e using XDA
Haha I understand you dude. My best friend is getting the One X on my suggestion, and I can't wait to get my hands on it and start messing around, but man is she going to be pissed about it if I start changing ROMs every alternate week.
Sent from my Desire HD using xda premium
I have the same issue
The GPS signal keep dropping around every 2 or 5 minutes. I am living in Canada, do you have a config file for Canada? Thanks.
sashank said:
The DHD has a problem of the GPS antenna contacts becoming loose and not connecting with the motherboard properly. There are a few hardware fixes for this if you search around. I've been experiencing a similar problem, but I have yet to try one of those fixes. The GPS antenna is located under the black plastic piece beside the camera (the part with the LED flash). When you're searching for a signal, try lightly pressing this black piece into the phone. See if you get a quicker fix. Then release the piece and see if you lose the fix. If this occurs, then it's due to the hardware loose contact. You'll have to do one of the hardware hacks to fix it.
Also, you can try using a tight fitting silicone/hard case for the DHD, as the case will press tightly against the back of the phone and so push the GPS antenna module inside.
Before all that, here's another thing to try from the software side. Since your flag says you live in the UK, I've attached a specific UK gps.conf file. It contains specific server addresses for your country to download better AGPS data, rather than having a general country independent server like the default gps.conf.
Open a root file explorer such as Root Explorer/Slide Explorer, go to /system/etc/, find gps.conf, press and hold on it, view permissions, make note of the permissions, rename it to gps.conf.bak, copy the new gps.conf (remove the .txt at the end, .conf file upload wasn't allowed) that I've attached into that directory, and set the permissions of the new file as they were for the old one.
This gps.conf is out of the BlackICE v1.50 ROM which contains specific files for many countries, so it is thanks to the creators of that ROM.
Click to expand...
Click to collapse
gps dhd
sashank said:
The DHD has a problem of the GPS antenna contacts becoming loose and not connecting with the motherboard properly. There are a few hardware fixes for this if you search around. I've been experiencing a similar problem, but I have yet to try one of those fixes. The GPS antenna is located under the black plastic piece beside the camera (the part with the LED flash). When you're searching for a signal, try lightly pressing this black piece into the phone. See if you get a quicker fix. Then release the piece and see if you lose the fix. If this occurs, then it's due to the hardware loose contact. You'll have to do one of the hardware hacks to fix it.
Also, you can try using a tight fitting silicone/hard case for the DHD, as the case will press tightly against the back of the phone and so push the GPS antenna module inside.
Before all that, here's another thing to try from the software side. Since your flag says you live in the UK, I've attached a specific UK gps.conf file. It contains specific server addresses for your country to download better AGPS data, rather than having a general country independent server like the default gps.conf.
Open a root file explorer such as Root Explorer/Slide Explorer, go to /system/etc/, find gps.conf, press and hold on it, view permissions, make note of the permissions, rename it to gps.conf.bak, copy the new gps.conf (remove the .txt at the end, .conf file upload wasn't allowed) that I've attached into that directory, and set the permissions of the new file as they were for the old one.
This gps.conf is out of the BlackICE v1.50 ROM which contains specific files for many countries, so it is thanks to the creators of that ROM.
Click to expand...
Click to collapse
I tried to rename files but I'd no permissions even to copy...How can I get it?I use Astro File Manager. I,ve no gps signal on NDrive
Recently I instaled Jelly Bean 4.2.1 from Jelly Time
What can I do?
Thanks for your work.
Sent from my htc dhd
I fixed the GPS issue by updating the radio.
The first step is to S-OFF it. Here is what I used to do it: http://forum.xda-developers.com/showthread.php?t=2367322
The second step is to update radio: http://forum.xda-developers.com/showpost.php?p=9891581&postcount=2
After that, I used TopNTP, which is available from Google Play, to configure the GPS.
Now the GPS can fix my location in 10 seconds.

GPS workaround (applies to phones containing SiRFStar chipsets like SGH-I927)

I have been having the GPS problems that everyone have been complaining about.
Annoyed, I decided to google something regarding the GPS, and having narrowed
down the list of suspects, I decided to look in /system/etc and found "sirfgps . conf"
file to be the main interest: LNA_Enable was set to 1, thus the original problem.
I decided to try set it to 0, as well as Frequency_Aiding line to 1, and
since I am not on AT&T network, I set ATT_network to 0.
And I copied the well-know "gps . conf" file from another Android phone (try Samsung
Galaxy Precedent ROM zip - look into /system/etc then extract it and copy onto your
phone) to this phone. Waited for a while in GPS Status, then downloaded GPS aid -
it came up in less than a few minutes the next time I restarted GPS Status.
The files are down few posts - I have chose to post it to reduce the fingerworks somewhat. The reason for GPS lock failure is simple: I suspect three things, bad antenna placement, bad capacitor decoupling plans / noisy LNA and / or (gasp) the LNA chip simply doesn't exist. For the GPS to work, you're supposed to have clean 50-bit transponder data picked up from 1.85GHz radio (GPS band), however if you have rather noisy setup, the chance of accquiring the clean lock drops dramatically. This is certainly for the SGH-I927 (Samsung Galaxy Captivate Glide and even other phones are affected - you will never know unless you check). However, when I disabled the external LNA, the internal one, on the GPS transponder decoder die improve the quality of the lock due to the fact it operates off clean voltage rail, thus the shortened GPS lock time.
Here's the GPS configuration file I copied from Galaxy Precedent (USA GPS marker).
Unzip it with Zarchiver app (download from Google Play), then use ES Explorer
or your favorite root explorer, and set your firmware volume as writable
(Be sure you're rooted!) then copy the unzipped GPS config to /system/etc.
While you're at it, edit the sirfgps . conf file to the settings I posted.
(Frequency aiding seem to be optional, and would improve thing).
Tested this workaround again, it works. At first, it does take longer (160 seconds to GPS fix according to GPS status), but then I reloaded GPS status, the lock is accquired instantly (16 seconds).
There's difference between two same SGH-I927s, but still, it's even better than waiting for 15 minutes to get the first-time lock - this workaround I found out on my own did reduce the time to lock to 5 minutes max, then less than a minute on next lock.
Sent from my SGH-I927 using xda app-developers app
EDIT:
Here's the text file of sirfgps.conf file (rename from sirfgps_conf.txt to sirfgps.conf if you are running any flavor of ICS ROM on SGH-I927),
It gives you an example of what I did for my phone. The GPS-related settings are the same for Gingerbread (check your sirfgps.conf in Gingerbread ROM against this one, they're similar).
I found out about my mind-absentness.. My apology... It is EXTERNAL_LNA, not ENABLE_LNA... :silly: My brain must have taken a vacation... :silly: Otherwise, the instruction is still correct. If gps.conf isn't working for you guys, try pull from another phone.
Sent from my SGH-I927 using xda app-developers app
There´s a way to make a "flashable" zip?
Still troubleshooting, and once everyone's satisfied, I will pop in GPS fix zip. http://forum.xda-developers.com/showthread.php?p=24763092 - here's the GPS patch as well - I will integrate the entire GPS fix completely.
Sent from my SGH-I927 using xda app-developers app
Hi Dr. Mario,
Last post here was in Sept so wondering what the latest advice is ?
I just flashed my Rogers SGH-i927R unlocked in Australia to the Stock rooted ATT ICS 4.0.4.
It all seems good except I'm not getting a GPS lock, previously on the Rogers 2.3 ROM I got a lock with 15 secs.
You can try the link above, and then copy the gps.conf into /system/etc manually, you can also rip the same file from Rogers Gingerbread then pop it onto your ICS ROM. I will also try to create the update zip that works (the one in link doesn't get along with the CWMR 5 / 6, thus extracting it and copy the file over manually).
Sent from my SGH-I927 using xda app-developers app
Maruzko said:
Hi Dr. Mario,
Last post here was in Sept so wondering what the latest advice is ?
I just flashed my Rogers SGH-i927R unlocked in Australia to the Stock rooted ATT ICS 4.0.4.
It all seems good except I'm not getting a GPS lock, previously on the Rogers 2.3 ROM I got a lock with 15 secs.
Click to expand...
Click to collapse
Got the GPS to work with info from this thread and this other one:
http://forum.xda-developers.com/showthread.php?t=1239713
Essentially made the suggested changes to:
/etc/gps.conf
NTP_SERVER=0.oceania.pool.ntp.org [changed from: noth-america.pool.ntp.org]
/etc/sirfgps.conf
EXTERNAL_LNA=0 [changed from 1]
FREQUENCY_AIDING=1 [changed from 0]
ATT_NETWORK_OPERATOR=0 [changed from 1 since I'm not on AT&T]
Rebooted and ran GPS Test, once it found 8 satellites and locked onto 3 of them within a few minutes I then ran Google Maps while driving in the car and it stayed locked onto my position.
Coolio.
That's good.
Sent from my SGH-I927 using xda app-developers app

Categories

Resources