Related
I updated to EnergyROM about a week ago, and my GPS only works in Google Maps. The GPS Test and other utilities do not see satellites.
1. I have run HTC GPS Test tool, and the $GPGSV info shows 16 satellites in view (I believe this comes from aGPS), but the 3 coordinate pieces of data are ,,, - meaning no data coming in. GPSTest also shows no satellites.
2. $GPGSA in HTC GPS Test second argument is 1, "fix not available"
3. I am on the latest EnergyROM. I have tried 2 radios, my original one that was in the stock ROM (4.48.25.20), and 4.49.25.95. I have tried with and without aGPS. I have tried some of the tweaks of the Intermediate driver settings:
A. With Advanced config: Start/Tools/Adv Config/GPS:
disable GPS logging
logfile name must be empty
old logfile name must be empty
maximum size of logfile must be 0
(soft reset, then...) delete the files :
\windows\GPSLogFile.txt and \windows\GPSLogFileBack.txt
B. Then edit registry
Under: HKLM\SYSTEM\CurrentControlSet\GPS Intermediate Driver\
Drivers\GpsOneDevice\PollInterval -> 100 (default is 1000)
Drivers\InputBufferSize -> 1024 (default is 4096)
Drivers\OutputBufferSize -> 1024 (default is 4096)
Drivers\SleepOnNoData -> 100 (default is 1000)
Multiplexer\MaxBufferSize -> 512 (by default not present, you have to create it as a New Value)
4. I have 2 AT&T HTC Tilt 2 phones, both configured identically (I move SIM card between them). Both are on the same ROM and Radio, and both act exactly the same - no GPS signals. So I don't think the GPS has failed, as it's two different phones.
5. External GPS set to COM4 (which appears correct based on the HTC tool seeing NMEA info on that port), hardware is set to No Port, 4800 baud. I also have it set to let Windows manage the GPS.
6. I have tried two versions of the Energy ROM, doing a Task29 in between; Feb 12 and Feb 27. No difference.
7. I run Bing, and it never gets a location. I do see my location in Weather though. Today Google only senses location to within 3500 meters; earlier this week it was 100 meters.
I am trying to be exhaustive and deliberate in finding the problem, but I have run out of ideas. Something must have changed, as I used this GPS all the time with Bing for voice navigation, and it was 100% reliable. Can anyone help with what could be the problem?
Thanks for your help!
One additional piece of info, I just did a hard reset of one of the two Tilt 2's, tested without agps, no lock on satellites. I then turned on agps, downloaded data, tried again, still no lock. I am outside on a gorgeous day with hardly a cloud in the sky too.
Thanks for your help - I am just out of ideas...
Is it possible there is some program in the cooked ROM conflicting with the GPS? Anyone with an idea?
Try it with the stock ROMs and see if it works there. If it doesn't then it might be hardware related.
HTCTilt2ATTOriginalShipROM.exe
RUU_Rhodium_S2_ATT_US_2.10.502.4_Radio_Rhodium_4.49.25.95_Signed_Ship.exe
If you have the program "QuickGPS", check if your satellite list expired. If it did, update and try your GPS program again.
com4 for software, none for hardware, BAUDRATE 57600. this works for me. and for some reason this gets set back to 4800 sometimes and that does not work.
tpc tp2, tmobile stock, sense turned off, wm 6.1
well, not so sure about my previous response. might have been a coincidence. i go back to external gps and cannot get it to stay at 57600.
i did download htc gps tools and found that if i had it in airplane mode it took seconds to find the satellite. if i had data communications enabled it took about 1.5 minutes. this was consistent.
Though I'd share this for ones that have this device. Bout it off of Woot about a month ago thinking it would be a great replacement for my Garmin Nav. Big screen, runs Android, surf the web, use it as a media player, blah, blah, blah...But the main reason was to use it as a Nav unit. My only problem was that it would take forever to lock on to satellites. Sometimes a few minutes and sometimes close to about 8 minutes or so. Pretty bad if my intention was to use it as a nav unit.
Came across this forum tonight and tried it.
No luck. Still taking forever to lock on. But it got me thinking. I just picked up a T-Mobile SGS2 and that thing locks on in a matter of a second or two. I took what was in the gps.conf and stuck it in the Galaxy S Wifi and low and behold, I get lock on satellites in less than 15-20 seconds. Now I'm glad I got this for as little as I got it
I'm sure there's other ways you can do this, but these are the steps I took...
I take no credit for this and thank the OP from above in sending me in the right direction. Majority of the directions are from there.
This is with the assumption the Galaxy S Wifi is rooted. You should be able to use SuperOneClick.
1. Open up notepad on your PC and copy the code below
Code:
#Test NTP_SERVER=xtra1.gpsonextra.net
#Asia
# NTP_SERVER=asia.pool.ntp.org
#Europe
# NTP_SERVER=europe.pool.ntp.org
#North America
# NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 5
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# GPS Capabilities bit mask
# SCHEDULING = 1
# MSB = 2
# MSA = 4
# default = MSA | MSB | SCHEDULING
CAPABILITIES=0X7
2. Save As and name it gps.conf
3. Copy the file over to the Galaxy S Wifi (I put it on my external microSD)
4. Open up Root Explorer and go to /etc (make sure to mount R/W)
5. Look for gps.conf and long press to get the Options menu and select copy. Navigate to somewhere on your SD card or external SD card and paste (make sure it's not the same location as the file you created.
I did this rather than renaming it cause it shows 0K free in the /etc directory.
6. Navigate to the location of the file you created. Long press to get the Options menu and select Copy.
7. Navigate to /etc (make sure it's still mounted as R/W) and paste the file. You'll get a prompt saying the file already exist. Select Yes.
8. Long press on the file you pasted (gps.conf) to get the Options. Select Permissions, set it to rw-r--r-- and click ok
9. Exit out of Root Explorer
10. Go into settings and select Location and security. Check User wireless networks, Use GPS satellites, Use sensor aiding
11. Reboot the device. Long press the power button.
12. Once rebooted, go into the market and and download GPS Status and GpsFix.
13. Once installed, launch GPS Status. Click Menu > Tools > Manage A-GPS state > Reset
14. Click Menu > Tools > Manage A-GPS state > Download
15. Reboot (you may or may not have to do this. I did.)
16. Once rebooted, launch GPS Status and let it lock on the satellites. You can also use GpsFix to lock on to the satellites.
Don't know if the outcome will be the same for all, but mine locked on in about 10 seconds. Screenshot of GPS Status was it locked on while I was inside.
thx for your effort. please read this too http://forum.xda-developers.com/showthread.php?t=1239713
cya around
Worked for me, thanks for the post!
I deleted the gps.conf completely and now I get a lock in 5 seconds try it.
Wich one you think it's better? This one or these
Cheers
corgar said:
thx for your effort. please read this too http://forum.xda-developers.com/showthread.php?t=1239713
cya around
Click to expand...
Click to collapse
I will try this method this weekend.
I am so frustrated with this device. some members complain about it takes a long time to get a gps fix, well I don't get a gps fix at all. Gps was one of the main reason I bought it and the powerful music player. regular 3.5mm headphone jack don't fit properly in the headphone jack. I assume because the port is design with a mic contact. when I hook it up to my stereo I have to back out the jack slightly for it to play. these are the two main reason I bought it.
I order this to fix the headphone jack issue.
http://www.ebay.com/itm/13059319830...X:IT&_trksid=p3984.m1497.l2649#ht_3788wt_1185
I will search now on how to root it
My GPS sucks and I remember the vibrant also had problems with GPS.
I am running beast mod 4.2
Does our phone have any GPS fix?
Any tips to help get location?
Thanks
Sent from my SGH-T989 using Tapatalk
Im on the same rom and never had a problem getting a lock. Its pretty fast.
Maybe ur connection, location, or phone
Sent from my SGH-T989 using xda premium
this phone has THE BEST gps of ANY phone on the market right now.. it is the first phone to have dual core gps activated even
my phone takes only seconds to lock on and navigate and find places... best GPS i have ever used on any cell phone
im on stock rom
I had crappy GPS when I used beastmod
Sent from my SGH-T989 using Tapatalk
Had this phone for a day....due to T-Mobile issues I sent it back to delete the line they added on...
First thing I did tho is check GPS( coming from the vibrant)... I was inside opened GPS test and had 23 in view and 13 locked almost instantly....
Try going back to stock if that fixes it it's the rom not playing well with your phone if not get a replacement
Sent from my T959 using XDA App
clninja said:
this phone has THE BEST gps of ANY phone on the market right now.. it is the first phone to have dual core gps activated even
my phone takes only seconds to lock on and navigate and find places... best GPS i have ever used on any cell phone
im on stock rom
Click to expand...
Click to collapse
100 times this. Of any phone I've ever owned, this phone has the best GPS hands down.
My experience when flashing custom roms is that GPS signal and data signal always suffer. Coming from a Sensation, the same exact thing happened. I flashed a custom ROM, and my GPS went to ****. I think that's one of the downsides of flashing custom roms. And it's the only reason why I'm still on stock.
My GPS sucks. It points 90 degrees in the wrong direction, unless I'm moving then it points in the right direction. I have stock Android, should I get a replacement?
Sent from my SGH-T989 using XDA App
Does anyone know how to acess the gps settings? Is there a hidden menu like the g2x? If so what doo you have to enter into the dialer? I am curios to see what server the gps uses and what the slp settings are. On my g2x I had to manually add googles slp servers and tell it to use that server and to no be ms assisted. My gps went from taking bet 5 and 10 minutes to get a lock and after that I got instant locks. It picked up 47 sattalites or something crazy like that. So if someone can tell me how to get there I can check to see if it uses googlles slp servers.
Charlie
the gitel said:
My GPS sucks. It points 90 degrees in the wrong direction, unless I'm moving then it points in the right direction. I have stock Android, should I get a replacement?
Sent from my SGH-T989 using XDA App
Click to expand...
Click to collapse
GPS tracks your location, not your direction. I think the Compass is in charge of direction.
clninja said:
this phone has THE BEST gps of ANY phone on the market right now.. it is the first phone to have dual core gps activated even
my phone takes only seconds to lock on and navigate and find places... best GPS i have ever used on any cell phone
im on stock rom
Click to expand...
Click to collapse
highly disagree aas saying anything is the best over all is purely opinionated. sure the GPS on the TMo SGS2 is lightyears better than the vibrant and works well,but my g1 still has more accurate locks...down to 1-3 meter accuracy. side-by-side test in same lpcation and conditions.
brian_v3ntura said:
highly disagree aas saying anything is the best over all is purely opinionated. sure the GPS on the TMo SGS2 is lightyears better than the vibrant and works well,but my g1 still has more accurate locks...down to 1-3 meter accuracy. side-by-side test in same lpcation and conditions.
Click to expand...
Click to collapse
My GPS in my SGS2 locks down to 6 feet most of the time ...
This is one of the best GPS chips on the market from a tech point of view , it is the ONLY gps chip in commercial cell phones, currently, that can not only access the US-GPS system but also the Russian GLONAS system , I have 19 Sats in view and am currently locking 11 and I am inside my house with an accuracy of 9ft, INSIDE...
tcboo said:
My GPS in my SGS2 locks down to 6 feet most of the time ...
This is one of the best GPS chips on the market from a tech point of view , it is the ONLY gps chip in commercial cell phones, currently, that can not only access the US-GPS system but also the Russian GLONAS system , I have 19 Sats in view and am currently locking 11 and I am inside my house with an accuracy of 9ft, INSIDE...
Click to expand...
Click to collapse
yes one of the best chipset technology wise,but not THE best. How ggood something is depends on well its used.
1 meter = 3.3ft and my g1 accuracy is 1-3meter in my house. I only used my g1 for fun or whenever I am doing(or going somewhere) where I don't want to bring nice things. like camping, beach, etc.
My T989's GPS is also problematical.
On both the stock ROM and on Juggernaut, it often refuses to see satellites. In addition to the map sitting there dumbly, the GPS Status app will show no satellites, and this will go on for dozens of minutes. Rebooting seems to help.
Those of you with no problems, what ROM are you on?
no problems on Stock or Jugs
brian_v3ntura said:
yes one of the best chipset technology wise,but not THE best. How ggood something is depends on well its used.
1 meter = 3.3ft and my g1 accuracy is 1-3meter in my house. I only used my g1 for fun or whenever I am doing(or going somewhere) where I don't want to bring nice things. like camping, beach, etc.
Click to expand...
Click to collapse
I agree with you , but since my lock is 9 feet, which is under the 3m mark, and depending on where I am at in the house it gets better and outside is usually around 1-2 meters, it seems that it is at least as good as the g1. It could be better, but if you want better GPS buy a standalone GPS, if it locks under 10m and you still can't figure out where you are, you need more than GPS .
Different areas have different satellites you can connect to. It is also random what satellites you connect to. Assuming you can actually connect to all the satellites and the glonass ones the galaxy s2 would be better. But it all depends what area your in etc.
Over at a vodafone forum, users seem to trace down possible GPS problems in the i9100 to bad information in /etc/../gps.conf. As UK customers, they are upset that their gps.conf seems to reference servers in North America.
http://forum.vodafone.co.uk/t5/Sams...es-taking-ages-to-get-a-lock/m-p/926413#M6151
So using root explorer and sshdroid, I find that on my T989 using Juggernaut-v4.1 there is a file, /etc/gps.conf that contains:
/system/etc # find . -name gps.conf
./gps.conf
/system/etc # more gps.conf
#Test
NTP_SERVER=xtra1.gpsonextra.net
#Asia
# NTP_SERVER=asia.pool.ntp.org
#Europe
# NTP_SERVER=europe.pool.ntp.org
#North America
# NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 5
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# GPS Capabilities bit mask
# SCHEDULING = 1
# MSB = 2
# MSA = 4
# default = MSA | MSB | SCHEDULING
CAPABILITIES=0x7
/system/etc #
Click to expand...
Click to collapse
In the meantime, this thread
http://www.darkyrom.com/community/index.php?threads/guide-gps-quickest-fix-solution.2022/
gives a list of "correct" gps.conf files for the I9100.
The North American one can be found here: http://www.multiupload.com/IE16Y7MU5P and contains this:
NTP_SERVER=north-america.pool.ntp.org
NTP_SERVER=0.north-america.pool.ntp.org
NTP_SERVER=1.north-america.pool.ntp.org
NTP_SERVER=2.north-america.pool.ntp.org
NTP_SERVER=3.north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 5
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=1
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=0
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.host.com or IP
# SUPL_PORT=1234
SUPL_HOST=supl.google.com
SUPL_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
#################################
##### EXTRA SETTINGS #####
#################################
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
#################################
##### AGPS Carrier settings #####
#################################
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE
#########################################
##### GPS QUICKEST FIX V1.3 By RJLM #####
#########################################
Click to expand...
Click to collapse
So the two files seem very different. I would go so far as to say that the T989 Juggernaut file looks wrong, in that the NTP_SERVER certainly seems to have a bad value.
Is this the right, or only gps.conf file on the T989?
Is the DarkyROM I9100 North American file correct?
I edited my gps.conf but mine looks different then the above, I have north-america and us, one for region and one for country and my gps works great with juggs 4.1
clninja said:
this phone has THE BEST gps of ANY phone on the market right now.. it is the first phone to have dual core gps activated even
my phone takes only seconds to lock on and navigate and find places... best GPS i have ever used on any cell phone
im on stock rom
Click to expand...
Click to collapse
in addition to the US's GPS satellite array, we now also have access to GLONASS (Russian array).
Sent from my SGH-T989 using XDA App
Hi
I have issues with my data, is intermittent going on and off like for periods of one second each(seems that restarting solve this, but then again the issue), and the GPS never locks, i was on KK1 baseband, then changed to kk6, then KL1, and now im on UGkk7, and now im on UGKL1... same thing
Im with franco kernel 14.4 and AOKP 21... dont know whre is the issue...
I have wiped cache and davilk, also re-flashed AOKP 21 and gapps, so now im with the custom kernel.... and the same thing.
I have downloaded GPS test and sometimes find some satelites and sometimes dont. I have cleared AGPS and updated AGPS aswell (i dont even know what this **** does)... same thing
Note: this issue began suddenly 3 days ago, with no apparent reason when i was on KK1... i think i never did something to provoke this issue.
I have checked my gps.conf under /system/etc and found that i have this:
Code:
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Maybe we can share our logs and find whats wrong?
Also here is a gps.conf file that one user told me that this fix the issue, but i will try it in a moment:
Code:
#NTP_SERVER=xtra1.gpsonextra.net
NTP_SERVER=us.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin[/B]
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
#Div6-PT1-GPS-LNA_LDO-00*{
#DEBUG_LEVEL = 3
DEBUG_LEVEL = 5
#Div6-PT1-GPS-LNA_LDO-00*}
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
#INTERMEDIATE_POS=1
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
# ACCURACY_THRES=5000
#ACCURACY_THRES=100
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.host.com or IP
# SUPL_PORT=1234
# Add Google SUPL server and port for Huawei(FB0.B-3409)
SUPL_HOST=supl.google.com
SUPL_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
################################
# EXTRA SETTINGS
################################
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
Please feel free to share your results.
I have tried some of the settings mentioned and seems that is not a fix---
Ok seems that with Fasterfix app is locking finally, and the first time take some time to lock in but after the first time is faster, i will keep testing and let you know.
I experienced an issue with AOKP 21 where GPS would not lock. It didn't resolve until I installed AOKP Milestone 3 and turned GPS off and on again. I have a feeling it was toggling GPS that resolved it, not upgrading AOKP. Either way, I would recommend you make a backup and try the M3 release, it's working really well for me with Franco-15.2 kernel.
jdk82 said:
I experienced an issue with AOKP 21 where GPS would not lock. It didn't resolve until I installed AOKP Milestone 3 and turned GPS off and on again. I have a feeling it was toggling GPS that resolved it, not upgrading AOKP. Either way, I would recommend you make a backup and try the M3 release, it's working really well for me with Franco-15.2 kernel.
Click to expand...
Click to collapse
Thanks for your advise... so i will try milstone 3 then right now in order to see if this makes my GPS better, but Franco 15.3 is underclocked? i dont like that.
I haven't had any issues with the underclocking in Franco 15.3, if it bothers you you can always set it back to stock.
jdk82 said:
I haven't had any issues with the underclocking in Franco 15.3, if it bothers you you can always set it back to stock.
Click to expand...
Click to collapse
Ok i flashed milestone 3 from a fresh start, the GPS is working much better man! also the data.
I will keep testing, but at least fianlly is working, im on UGKL1 radio.
But about the turtle kernel, i dont see the point of having double core at 1.2Hz if you are not using it at all... im oon 14.4 franco kernel @1350Hz witch is better.
Well, over/under clocking is really a matter of preference. If you overclock your device runs faster but uses more battery. If you underclock your device runs slower (somewhat) but uses less battery. IMHO, the governor (code that decides which speed to run the CPU at) is more important than over/under clocking. I run with max=1000 min=700, never notice any lag and easily get a full days worth of somewhat heavy usage. Of course YMMV and it really depends on what you value more, speed or battery life.
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.