GPS Registry Setting - Touch CDMA Windows Mobile ROM Development

I know that there are many different configurations out there. I had to hard reset my vogue about three weeks, not a big deal. As I have done this countless times. On this particular occasion it was taking extremely long for my GPS to lock. Last week I changed [HKLM\Software\HTC\SUPL GPS]
\EnableAGPS = 1 setting. I changed it to a 0. Know i am getting super fast locks in under 30 secs. After my phone has been off or gone to suspend mode it usually lock in 5 secs.
I never let the customizations run with the stock ROM
ROM - NFSFAN's 1.15 VZW
Radio - 3.37.78
Using TomTom
No Data Plan

That will work as long as you don't go more than 20 or so miles from your last lock. Beyond that you will still need to re-lock. Agps just looks at the towers in the area you are in to tell your device to "where" to look for satalites.

re:
i have found the telus server ip: 216.198.139.92 port:8889 to work for me. i usually get a lock in about 5-10 seconds. post back if this works for you

jamezelle said:
i have found the telus server ip: 216.198.139.92 port:8889 to work for me. i usually get a lock in about 5-10 seconds. post back if this works for you
Click to expand...
Click to collapse
that is for "aGPS" (i.e. requires a data plan), not "GPS" - he has no data plan, just like me, so QPST/IP settings are irrelevant and useless
-C

crobs808 said:
that is for "aGPS" (i.e. requires a data plan), not "GPS" - he has no data plan, just like me, so QPST/IP settings are irrelevant and useless
-C
Click to expand...
Click to collapse
sorry. i didnt see that in his signature. i hope it helps others out though.

If you have an activeSync connection to your phone, and the PC with activeSync has an internet connection you can use
http://forum.ppcgeeks.com/showthread.php?p=1018930
in theory this helps the phone find your location quicker without a data plan. The stored locations are good for 7 days before the satellites move so much you need to update the phone file again.
Some folks say it helpd a lot, others say not all. Might work for you.

Related

Tomtom 6

Its takes like over 5 mins (probably longer)to lock on to the gps and thats when you stay still dont know if you can get a lock while moving, i put the setting on other gps device on tomtom itself and com 4 as the gps programme port is on com4 on the gps menu settings.
Question is do i have to live with that or is their some way of speeding it up. Any help given will be very appreaciative.
Another question is will it help if i put the programme on the device itself or leave it on the sorage card and then some how tell the programme the maps are on the memory card.
badman112 said:
Another question is will it help if i put the programme on the device itself or leave it on the sorage card and then some how tell the programme the maps are on the memory card.
Click to expand...
Click to collapse
I would suggest you install the program itself on the device rather than on the storage card. I don't know whether or not does this affect the time it will take to lock to some satellites though. Five minutes or more seems to be on the long side, on average it takes about 1-3 minutes in my experience. There is an application called QuickGPS which claimes to speed up things, however, I have to admit that I didn't notice any difference, to be honest.
grun said:
There is an application called QuickGPS which claimes to speed up things, however, I have to admit that I didn't notice any difference, to be honest.
Click to expand...
Click to collapse
Im using TomTom from StorageCard (not for the first time...) and with default settings it don't takes long time to find satellites. i would suggest running QuickGPS could help you...or a faster SDcard....not all of the storage cards are equal in speed....
petervbeck said:
Im using TomTom from StorageCard (not for the first time...) and with default settings it don't takes long time to find satellites. i would suggest running QuickGPS could help you...or a faster SDcard....not all of the storage cards are equal in speed....
Click to expand...
Click to collapse
Hi Guys,
i have this problem a few times and all i had done was to re-write the filepackedephemeris file to the windows directory, do one time update for Quick gps and your problems will go away, there is a thread here about the file.
trust me download it and throw it at the windows folder.
Do you have the link to that thread Neil?
Cheers
I have had this problem before sometimes where it is very difficult to pick up a gps signal. I attributed it to bad gps signal strength as it works fine at other times.
Sometimes resetting tom tom made a difference but not enough that I would do it all the time though.
iamholam said:
I have had this problem before sometimes where it is very difficult to pick up a gps signal. I attributed it to bad gps signal strength as it works fine at other times.
Sometimes resetting tom tom made a difference but not enough that I would do it all the time though.
Click to expand...
Click to collapse
I also had long connection times and also a week signal, Got TMO-UK to swap the phone will see if this makes for a better reception
Same problem to me... but now I update QuickGPS every day....
now with an actuall QuickGPS it takes about 15-20 seconds to get a gps signal...
So I think an updated QuickGPS is the right way...
Can someone tell me how to do quickgps method, I dont know how to reg edit and not sure what programe does it and please can someone give me a noobs guide to doing quickgps. I have read a couple of threads and cant seem to make heads and tails it either says that does not work anymore this one does and the method just changes a few times. Can someone give me the correct way in here to do it as i am majorly confused.
quickgps is a program that is installed on b&b 4.0, and some other roms too.
Click: Start-Programs-Connections and click on quickgps.
Connect to the web either via wifi or through activesync and then click download button in quickgps and the data will update.
What does it mean by valid time?? on the quick gps..
Have to admit it is quite faster.
thats just how long the gps data is valid for, when you update it, it lasts for about 3 days. Be careful with the quickgps options, if you're not on an unlimited gprs data tariff then uncheck the box labelled autodownload when data expires, otherwise you could be in for some hefty bills mate.
The best is to disable the automatic update in QuickGPS.
You only have to sync your Artemis every second day... so the QuickGPS data will always be valid...
Have you tried to change the transmission rate in Parameter/System/GPS/Hardware?
I do not use QuickGPS.
I set the transmission rate to 33600 bauds and my PDA needs less than 2 minutes to lock on.
GPS Slow Startup solved
garymeg said:
I also had long connection times and also a week signal, Got TMO-UK to swap the phone will see if this makes for a better reception
Click to expand...
Click to collapse
OK Got my new phone friday had change to test, Now first power up of tomtom (on sd card) took about 2.5 mins, i did not use quickGPS this morning i fired it up, it took 25 seconds to get signal closed down gps reciver, fired back up, 15 seconds, off for about 3.5 - 4 hours signal in 30 seconds so i would say that the GPS was defernetly faulty on my phone, ps my phone is a stock Rom customized to hell (only about 7mb of storage space left on device
Just loaded Tomtom6 on my Orbit after WM6 upgrade and it took an absolute age to lock-onto a GPS signal here too. I did run QuickGPS yeaterday. I think it's an issue with WM6 rather than a fault with your GPS receiver.

Data connection keeps turning on?

the Data connection is turning on on a regular basis and I can't find any scheduled tasks set up to access the Internet, but some rogue program is? any ideas any one and/or any way I get find out what is causing this.
I have the same problem.. And I'm a little bit tired!
I wrote on this thread with no answer: http://forum.xda-developers.com/showthread.php?t=529622
I have a flat data plane but I don't like that PDA face things on his own initiative!!
me neither, I'm in charge - not my new toy! Lets hope someone helps us out this time round.
I had the same problem. In my case the 2 apps connecting to the net were Google Maps and Funambol.
itm said:
I had the same problem. In my case the 2 apps connecting to the net were Google Maps and Funambol.
Click to expand...
Click to collapse
Well, I don't use funambol.. And anyway: there are no program in task manamager! So: something is going wrong with manila..
I had the same 'problem', but my brother suggested to turn it off and on again. It did work as far as I could see.
I think it may be google maps causing this, but I'm not sure (and don't really care, since this 'solution' worked).
Any number of added apps can be doing this (Worldmate live is a bad one for example) or any apps still running and not shut down.
Obvious things to check first are:
Do you have automatic email check set?
Have you disabled auto-update in weather and stock quotes?
This drives me crazy too, afaik I have turned off everything yet it keeps turning on... A fix would be highly appreciated!
its the activesync...
turn it off, i mean, delete the settings and you'll be fine. activesync triggers automatic data sync, hence turning on the data connection
I use ActiveSync and don't have this problem. If it was ActiveSync, why would it cause the problem for some and not others ?
itm said:
2 apps connecting to the net were Google Maps and Funambol.
Click to expand...
Click to collapse
Well.. I tested all day.. And I can say that I solved the problem!!!
I think that last time I closed gmaps.. I answered in a bad way to the question about updating Glatitude..
So: Gmaps seemed close but it was updating my position on the net!!!
When i opened gmaps i could see my avatar in the map.. So i understand that it was still online..
So.. I think I've solved!
Anyway we need a "netstat" on pocket pc...
Thank you for your advices.
Glad you worked it out.
I put this in the developers forum a while back. Maybe someone smarter than me will work out a solution to this sort of problem:
http://forum.xda-developers.com/showthread.php?t=530634
As with the poster here. You will have an application that you have inadvertently set to autoupdate. The only thorough solution is to go through every program on your phone and check each setting meticulously. Alternatively. Back up your personal data and hard reset. Then reinstall your apps one by one, testing for an hour after each one. Eventually, you will find the offending app and can work on finding the setting in it to stop it connecting to the net.
Hi all,
the thing is there are dozen possibilities: activesync, alle gps-stuff, all auto-updates. So instead off looking up all these settings, you could also use the nodata.cab - works fine (phone need to be unlocked!)
greetz to all
Kjoere
thanks for all the posts, haven't checked for a while. I have checked everything and noting is set to auto update so very strange and annoying. Will try the nodata.cab - if I can find it?
DJ Palmis said:
Anyway we need a "netstat" on pocket pc...
Click to expand...
Click to collapse
Look at "TaskManager 3.1" that has a Netstat tab
Tom
download Modaco Nodata
frogfoot said:
Look at "TaskManager 3.1" that has a Netstat tab
Tom
Click to expand...
Click to collapse
Thank you! That is very interesting.
It also can be the build-in Facebook app in Contacts in manila. It has feature to automaticly update in 2 hours. At least, I had mine turned on as default.
The only reliable and "ultimate" solution is really Modaco NoData as mentioned above.
On the other hand not taking third party apps in count, basic traffic of HTC device is nothing to be scared of. Updates for weather, stocks and A-GPS are just few bytes in size... Obviously, GMaps, mail autocheck, Messenger etc. are different story, but none of these are started on their own... BTW, ActiveSync has nothing to do with Internet with one exception - Exchange mail sync, if you have any.
What you have to understand, is behaviour of the active data indicator (small G, E or H next to signal strength). If it's there does not mean, that any data are transferred at the moment. It just indicates opened data slot with current brodcasting tower in the cell. It could stay opened for hours after trasfer even just of few bytes. It closes usually only for two reasons - your phone switches to another cell (and has no reason to open data slot again) or the tower is busy and closes inactive slots to gain more capacity.
Except few rare cases in some coutries you're charged only for data transferred, not for time of the connection and therefore it doesn't matter. In Europe from 1st of July (some new EU limit) one Mb shouldn't cost more than 50 cents and with these basic updates you will NEVER reach it in one month...
Obviously, roaming is another story, but in settings of the standard services you can limit updates just for your country.

Data connection on demand

Okay I am really starting to regret this phone as its being a pain. I have an ATT tilt2 on Rogers and settings all work.
On my Kaiser when an app needed the Data it would turn it on and all would be good. Then after a certain amt of time of non use it would disconnect the data. Is there a setting that allows the phone to turn on the data when its needed? It seems that its either on or off.
This leads me to the second issue. About 5 times a day I get a message that the connection failed. I can then go to the settings and turn on the data connection and the internet will work again. I have never turned it off nor do I have any programs that restrict it.
Lastly, I have a bunch of factory connections that I can not use as I am not on ATT's service plus a few I created when I was first setting up the phone. I can delete some of them in connection manager how do I get rid of them permanantly?
It seems to me that there is way less user configuration in 6.5 than in 6.1 yet thanks to ATT its 3 times as large. Can anyone suggest a work around for the Data on demand issue?
InRBigness said:
Okay I am really starting to regret this phone as its being a pain. I have an ATT tilt2 on Rogers and settings all work.
On my Kaiser when an app needed the Data it would turn it on and all would be good. Then after a certain amt of time of non use it would disconnect the data. Is there a setting that allows the phone to turn on the data when its needed? It seems that its either on or off.
This leads me to the second issue. About 5 times a day I get a message that the connection failed. I can then go to the settings and turn on the data connection and the internet will work again. I have never turned it off nor do I have any programs that restrict it.
Lastly, I have a bunch of factory connections that I can not use as I am not on ATT's service plus a few I created when I was first setting up the phone. I can delete some of them in connection manager how do I get rid of them permanantly?
It seems to me that there is way less user configuration in 6.5 than in 6.1 yet thanks to ATT its 3 times as large. Can anyone suggest a work around for the Data on demand issue?
Click to expand...
Click to collapse
I use HD Tweak and it works fairly well. Because the hardware is a little different, not all of the settings translate, but the things that are common between both phones works fine. You can find the link on this post:
http://forum.xda-developers.com/showthread.php?t=452505
Under section 6 (Data), there is a "Disconnect After", which I set for 2 minutes. Once the data is idle for 2 mins, it disconnects. The next time a program needs it again, the data connects again. Don't forget to soft reset after making changes.
Hope this helps
Okay got it working
Thanks its working now. I had installed that but there must have been somthing corrupt in my ROM as I was also unable to Harddpl it. I did two hard resets in a row, was able to flash then reistalled and now it seems to work fine.
Now if someone would make an app that uses different LED's for different notices similar to the Kaiser Notification app that was awsome.

GPS Fix ... soooo slooowww...

Anyone know why my GPS fix is so slow? It takes at least 10 minutes to get a fix..
I'm running - VaniljEclair RLS6
TW,
It really depends on the weather. If you look up and see clouds, it's going to be a while. If it's raining then it may never connect.
It also helps the have the best tools for the job. Use kallt_kaffe's latest kernel, and download and use "GPS Test" for connecting your GPS.
Dukenukemx said:
It really depends on the weather. If you look up and see clouds, it's going to be a while. If it's raining then it may never connect.
It also helps the have the best tools for the job. Use kallt_kaffe's latest kernel, and download and use "GPS Test" for connecting your GPS.
Click to expand...
Click to collapse
It's clear outside so its not weather related.
I'm curious what the"GPS Test" tool actually does? and just exactly what the phone is doing causing it to take so long.
Thanks,
The way GPS works is as follows.
In order to know your position on a 2 dimensional plane, you need 2 coordinates, X and Y, however in order to know your position on a 3 dimensional object, you need 3 coordinates, X, Y and Z, what we need to know is our position in a 4 dimensional space, which requires not only X, Y Z and V, so that's a lot of data right there, and to further complicate things, the satellites themselves are in motion, also in 4 dimensions.
Ok if that hasn't messed with your head, consider this, your phone only receives GPS data from the satellites, it does not transmit anything, so how does your phone know where the satellites are? simple, the satellites transmit their position, the time, their velocity and heading, ( actually it's slightly more complicated, but I'm not getting into orbital mechanics, lol).
So in order to be able to fix a position, your phone must download this data from each satellite in view, process and compare it with all the other data in order to get an initial fix.
As if this was not complicated enough, you must also realise that the satellite data is continually transmitting in an updating loop, so if the receiver gets bad data from one sat, it must discard that set and start again.
Once the initial fix is made, it's a simple matter to continually update the devices position, but once the gps is turned off, it may take some time to resynchronise, especially if the user has moved to another location before restarting gps.
To operate with reasonable accuracy, (within a few tens of metres), you must have a good signal from at least 4 satellites, more just refines the accuracy.
So why ten minutes? Well there are a number of factors, weather does play a part, but not as much as some think, typically you will lose lock on the weaker satellites, giving less accuracy.
Surrounding buildings and trees are actually great at blocking GPS signals, so in wooded or built up areas, expect slower fixes, less accuracy, and dropped locks.
Movement, this is actually the biggest problem, if you are in motion during the initial fix period, there is a high probability that your own motion will cause problems, since the gps data may be changing too fast for the device to cope with, which will cause it to continually discard data that may be valid.
All in all, the best practice is to find somewhere stationary, away from buildings and trees, turn on GPS, and just wait for it to lock, it will usually take 5 minutes from cold start, perhaps up to 10 minutes in some cases.
Once the initial fix is established, it takes less time to refix after gps is turned off, since the last data is kept in the device for future reference, (which is why it can take more time to fix if you turn off gps and then move 10K or so before turning it on again).
Winmo has a few advantages over Android for gps, since on WM you can download a 'snapshot' of the satellite data in order to 'jump start' the gps to get a faster fix, that plus cell location and agps make it much faster to get up and running compared to Android on our hardware, which lacks cell location and agps.
What GPS Test does is simply show you a lot more data than you would normally see, satellite positions, signal strengths, number of sats visible, number in use by you. Basically it lets you see that some data is actually being received by your device, how strong the signal is, and if the device has locked to a satellite. I highly recommend getting GPS Test from market if you use gps, used it on WM, and the Android port is just as good, ( I got the paid version, but the free one is excellent too).
Any questions?
zenity said:
The way GPS works is as follows.
...
Winmo has a few advantages over Android for gps, since on WM you can download a 'snapshot' of the satellite data in order to 'jump start' the gps to get a faster fix, that plus cell location and agps make it much faster to get up and running compared to Android on our hardware, which lacks cell location and agps.
...
Click to expand...
Click to collapse
Terrific write up!
So, GPS Test won't help speed up the positioning so therefore there isn't a need to download it unless your curious about any of the other settings, thanks.
Since the WM version was a bit quicker in getting the position by downloading a file is there something in the works to try and incorporate this process into Droid?
After it finds a fix, if the handset suspends is there a need to re-aquire the sats or wait again for the same process?
Thanks,
Well GPS Test won't speed up the initial or subsequent fixes, but it does give a good indication that gps is actually working, and receiving/processing the data, and once fixed, you just close that and start your preferred gps app, which will fix almost instantly since the data is current.
I don't think we have anything for android that does the same as the WM gps app, could be wrong, but have not seen anything yet.
The slowest is the initial fix, after that it usually fixes faster, suspended or powered down, only reinstall/wipe data will usually require such a long fix time again, however as I said, there are a number of factors, movement being perhaps the biggest cause of delay.
However once fixed, Android is comparable to WM, even better in some cases, since I never could get my all time favourite GPS software (trekbuddy), to work in WM, it is great in Android though
I don't think we have anything for android that does the same as the WM gps app, could be wrong, but have not seen anything yet.
Click to expand...
Click to collapse
i also looked and found nothing
The slowest is the initial fix, after that it usually fixes faster, suspended or powered down, only reinstall/wipe data will usually require such a long fix time again, however as I said, there are a number of factors, movement being perhaps the biggest cause of delay.
Click to expand...
Click to collapse
mine also takes forever every time unless i havnt moved and switch apps within 10 minutes.
However once fixed, Android is comparable to WM, even better in some cases, since I never could get my all time favourite GPS software (trekbuddy), to work in WM, it is great in Android though
Click to expand...
Click to collapse
i lose gps on the highway, unlike when i had wimo
i still think its odd that i can see 6, 7, 8 sats for 2 or 3 minutes before getting a lock
Thinking about trying this on a friends Eris, but other android devices get a lock very quickly. The other devices have working tower location, so does the android gps system use the tower location to speed up gps lock?
I'm going to take my friends Eris and turn off all radio functions, then run GPS test to see what happens and how long a lock takes...
Ok, tried a few things on the Eris. In airplane mode, launched GPS test in a lock in under 10 seconds. Restarted the phone, still in airplane mode, and immediatly launch gps test and a lock in under 10 seconds.
Do these other phones have GPS chips have almanac caching or does the OS have some way of storing almanac data to assit the GPS.
As far as I am aware, from previous experience of GPS devices, the last ephemeris data is cached in the device chipset, allowing a faster start up, provided the user has not moved too far, or left gps off long enough to make the data too old. However I do not have enough information to make more than guess that it is hardware based rather than OS based caching.
Cell tower location allows GPS to establish a 3 dimensional fix, (remember gps needs more than 3 dimensions to establish a true fix), not enough to be totally accurate, but within 20-50 Metres, which is ideal for 'seeding' the incoming gps data from satellite, allowing even faster start up, since the gps chipset does not have to do nearly as much calculation and correlation on the data, since it already knows roughly where it is.
So the delay we experience in getting a gps fix with Android on our devices has one main cause, lack of cell tower location, and it's possible that the ephemeris data cache may not be getting processed, if this is indeed cached by the hardware, and not by the OS.
Some of you may have noticed a file called gps.conf in /system/etc
It looks like 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
NTP is a protocol for getting accurate time from servers on the internet.
xtra.bin is asfaik the satellite almanac.
SUPL_HOST is for AGPS.
My guess is that a "real" android libgps uses this information to do a few things to help the GPS out.
1. Give it the current time
2. Prime it with the almanac
3. Use the AGPS data to provide it with correction data etc.
We could do some HaRET magic to monitor what the QuickGPS software send to the GPS chip and make our own QuickGPS tool for android or even build that into libgps.so. It's possible but is it worth the time? I don't know. I would give it a go if I wasn't allready lacking time to do everything I want to do.
kallt_kaffe said:
Some of you may have noticed a file called gps.conf in /system/etc
It looks like 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
NTP is a protocol for getting accurate time from servers on the internet.
xtra.bin is asfaik the satellite almanac.
SUPL_HOST is for AGPS.
My guess is that a "real" android libgps uses this information to do a few things to help the GPS out.
1. Give it the current time
2. Prime it with the almanac
3. Use the AGPS data to provide it with correction data etc.
We could do some HaRET magic to monitor what the QuickGPS software send to the GPS chip and make our own QuickGPS tool for android or even build that into libgps.so. It's possible but is it worth the time? I don't know. I would give it a go if I wasn't allready lacking time to do everything I want to do.
Click to expand...
Click to collapse
Ah, that makes sense, since Agps uses an internet server to prime the gps chipset, and if I recall correctly QuickGPS is similar, but provides the weeks Ephemeris data. Ephemeris, Almanac and Time are the three main data components of GPS, ( almanac being the one I tend to forget about....).
Perhaps changing a few server addresses in gps.conf may provide us with some aggps functionality, but I am now wondering if perhaps agps is 'broken' in our builds, or perhaps I have never noticed any data activity.
Just had a look at the website address http://xtra1.gpsonextra.net/xtra.bin, which allows me to download what I assume is the data file, so what we need to complete the puzzle is, what uses gps.conf, and where does it put the data file?, Also does anything use that data file if present?
GPS is currently pretty much useless in that it just never gets a fix, today I waited 10 minutes and still nothing - I went back to WM to use GPS, so any development in this area would be sweet!
TW,
Not sure exactly what is going on there, last night I installed the latest nbh from kallt, plus his RLS7b eclair build, this morning I started gps for the first time, using gpstest I got a first fix in under 3 minutes, which is faster than average.
Sent from my HTC Kaiser using Tapatalk
zenity said:
Not sure exactly what is going on there, last night I installed the latest nbh from kallt, plus his RLS7b eclair build, this morning I started gps for the first time, using gpstest I got a first fix in under 3 minutes, which is faster than average.
Click to expand...
Click to collapse
I'm using the same setup at the minute, tried GPS this morning and it got a fix on the move in about 5mins which isn't bad, my girlfriends HTC Hero got a fix in under a minute though and it's the first time it has connected and it's true that WM is much faster when quickGPS is updated. Any improvements here are very welcome, maybe i'll have a look into it too.
you could edit gps.conf according to your own pool server
a list of these servers can be found here. May make a small difference for some people.
Please post if this helped getting a quicker fix
http://www.pool.ntp.org/en/
Update:
i used the appropriate time server for my country (netherlands),
i used a fresh device (android had never ran on it, though the android on sdcard has been used on other devices)
i went to the toilet very quick, when i came back there was a fix.
So please go see if this makes a difference for you, and post your experiences in here
I seriously don't think it will matter what you put in gps.conf at the moment. What we need to know is how this is used on a "real" android phone.
I've tried to find some GPS code in the Hero kernel source in the past but found almost nothing and the libgps for HTC devices are asfaik closed source so I guess it's in libgps all the "magic" takes place. (I fact, for Kaisers the it would be more "right" to do our NMEA parsing in libgps instead of doing it in the kernel but since libgps evolved around the Vogue it was made in the kernel to make it appear just like the vogue gps data to libgps.so.)
So I'm guessing that a "real" libgps.so reads gps.conf, get's some data and feeds it to the GPS. Likely with AT-commands. It is possible though that it is the ril interface that does it. We have the source for our ril lib and our gpslib and I know for sure we don't do any prime:ing in the our libgps. (The sources are here: http://androidhtc.git.sourceforge.net/git/gitweb-index.cgi?p=gitroot/androidhtc/bootenv/)
It is possible to do dump stuff with HaRET when you for example enable the GPS (I've done it in the past following instructions from dzo) and also when you run QuickGPS and try to match the information sent with the information in xtra.bin. I also expect we should find it sending the current UTC time which by it self propably could speed up fix times.
Once we know what to do we either build it into libgps or we make an Android app similar to QuickGPS.
In fact, I found some dumps laying around....
At boot WinMo sends the system time to the Radio with this command:
[email protected]=2,21,43,2010,5,12
I would say the format is H,M,S,YYYY,M,D even though values are a bit strange because the files are dated 2010-05-11 but it's possible that the WinMo clock was a bit f*cked up at the moment.
Perhaps our rild is allready sending this (someone should check the source)
Otherwise you could try this and se if it helps:
echo -e "[email protected]=x\r" > /dev/smd0
(replaceing the x with the current time and date of course)
Just tried and it was going on 10 minutes with no fix...
TW,
Have you tried gpstest to see if it's actually receiving a signal at all? It is possible that you have a hardware issue, perhaps a broken antenna connection?
If that were the case then it shouldn't work in Windows and it does... ???
Strange...
Does Android require a data connection when getting a GPS fix?
TW,

[Q] Wi-fi disconnecting on AOSP (Non-Sense) ROMs.

After trying out several ROMs I have noticed that my wi-fi randomly disconnects, but only for (Non-HTC/Sense) ROMs.
I'm running OpenDesire at the moment, which I really like, but the arbitrary disconnetion of wi-fi is driving me crazy.
As far as I can tell, it has done this with the other Non-Sense ROMs I have tried as well, and I have no idea why.
Wi-fi does switch on, but (part of) the problem _seems_ to be that the phone has trouble actually getting an IP; other than that, and why it does this, I have no idea.
The settings (in *#*#4636#*#* test mode) are basically the same as they are for, say, the official HTC Sense OTA or Pinky, for which wi-fi seems to work perfectly.
Although, to be honest, I'm not entirely sure what I'm looking at/for...
Anyone have any ideas?
Any help would be much appreciated
It's not having an issue with getting an IP, it's having an issue with authentication.
The first thing I noticed with these roms is they do not re-prompt to enter a password again if you have mis-typed it at all. This leads to wpa_supplicant client to effectively force a connection and get a refusal in quick succession. The wpa_supplicant client on the phone then disables the connection until you step in and either choose to reconnect or edit the password manually.
The issue we are having is related to this;
After being connected to WiFi for a fair period of time, it re-authenticates with the base station/router as it's supposed to do.
From memory, the re-auth happens every 60 minutes and most decent routers are able to change this.
At this point, the client (phone) tries to re-auth and fails (for whatever reason). Instead of prompting for a password (as it should do). It tries 3 times in total and stops.
After the last failed attempt, it disables the connection that it failed to connect to and jumps back to mobile data (if available).
So. Yes, there is a major issue with the wpa_supplicant in non-sense roms. Could we get the devs to investigate this, as it's really getting to be a major pain in the arse!
I see... Thanks for the clarification. Nicely explained.
So, short of jumping ship to Sense, there's really not much I can do then, other than wait for someone more skilled than me to come up with a solution?
No workaround, third party app, router setting or anything?
Unknown at this moment in time.
I'm investigating this in my own limited knowledge of Android and Linux systems, so far I've not come up with anything solid.
As far as settings you can change on your router, it all depends on your router and it's firmware.
I've got three different routers here:
A) Trendnet TEW-435BRM v4.00.07 : No way to change Key Renewal length
B) Linksys WRT160Nv2 v2.0.03 : Able to change Key Renewal length
C) MZK-MF150 v1.00.16 : Able to change Key Renewal length
Check your router, try increasing the length and have a play around. It's not a fix, the issue is either in the AOSP kernels or the wpa_supplicant module.
My NetGear WNR2000 does not seem to have any (easy) way of configuring Key Renewal Length, but I'll have a look around. Else, I guess I'll just have to bite the bullet and go with Sense for a while...
At least now I know it's not just me. That's always comforting.
Thanks for the help acolwill!
No problems at all.
I have been trying to locate an app that will automatically restart the WiFi if a disconnection takes place, however, I've yet to find one :|
Anyone out there know of one?
eham, there's an app on the market called "WiFi Auto ReEnabler"
Give it a try, as it may well be the answer you've been looking for!
Sounds very promising indeed. Will get right on that.
Tried an app called Wifi Fixer, but that was a bust. Actually somehow managed to make things worse (for me, anyway).
Thanks for the tip. I'll be back with an update...
Ok, so "WiFiReEnabler" does actually do just that; re-associate with the network everytime the screen wakes. Unfortunately, what it doesn't do is stay resident.
It will let itself get killed by the system very easily, so I still have had a few times where I had to manually deactivate and activate wifi because WiFiReEnabler didn't have my back.
If the developer could make this a helper app/system service, this seems like it could be a decent workaround though.
I did however find an app called "Fix My WiFi" (£0.99 in Market) that seems to take care of the problem nicely, and quietly, so far (about 16 hours and counting, fingers crossed).
It also has some options to set different levels of aggressiveness, and notifications, which I like.
I also found a free app called "Wifi Reassociate" that seems to address the same issue. Haven't gotten around to trying it yet, as Fix My Wifi still seems to be doing its job.
Still, a tip for anyone with the same problem.
With that (hopefully) outta the way, I'm off to celebrate the anniversary of my birth.
Be well, friends.

Categories

Resources