[IDEA] Improving GPS accuracy - Galaxy S I9000 General

Our Developers are making great work, now we even have dedicated TEAM
But sadly revision after revision we all getting them more and more faster, stable...
But can we do something about GPS ?
I was forced to install GB because of badly accuracy with CM10 GPS. I know you can change NTP server or use other stuffs. But could we have official GUIDE for making GPS on JB better? Its sad because after installing GB alot of apps dont work because they need android 4.0+
Ultimate guide for getting our GPS better.
When im using bus and have hand to hand GB and JB on both i9001, GB have no problem with getting Fix when JB can't get one.
Using Maps JB look like im flying above the city, and GB is tracking me fine with little errors.
Ever played Ingress with that kind of GPS ?

I had the same problem, but in my opinion noone can fix it, because of on JB we using GB libs, which are not fully compatible

There is a post were someone used some specific gps.config file and his/hers GPS is working better then before. If i only could find the post

Code:
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
NTP_SERVER=0.pl.pool.ntp.org
NTP_SERVER=1.pl.pool.ntp.org
NTP_SERVER=2.pl.pool.ntp.org
NTP_SERVER=3.pl.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
SUPL_TLS_HOST=lbs.geo.t-mobile.com
SUPL_TLS_CERT=/etc/SuplRootCert
INTERMEDIATE_POS=1
ACCURACY_THRES=2500
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_USER_PLANE=FALSE
Using Brood GPS tool dedicated to GB I got a gps.conf file looking like this
(its for Europe > Poland)
Will try that on CM10 mayby that will help, a bit. Any more teaks/tips ?

przemekamag said:
because of on JB we using GB libs
Click to expand...
Click to collapse
say what
---------- Post added at 04:18 PM ---------- Previous post was at 04:16 PM ----------
sapsa said:
Using Brood GPS tool dedicated to GB
Click to expand...
Click to collapse
or You can simply use FasterFix from android market
lol why would anyone complicate that simple process so much? hmm i think i know - for donations sad

somator said:
say what
---------- Post added at 04:18 PM ---------- Previous post was at 04:16 PM ----------
or You can simply use FasterFix from android market
lol why would anyone complicate that simple process so much? hmm i think i know - for donations sad
Click to expand...
Click to collapse
FasterFix dose the same as GPS Tool.

sapsa said:
FasterFix dose the same as GPS Tool.
Click to expand...
Click to collapse
but from app level (market) - you do not have to enable debbuging and connect dvice to pc
so in other words faster and safer

somator said:
but from app level (market) - you do not have to enable debbuging and connect dvice to pc
so in other words faster and safer
Click to expand...
Click to collapse
but it dosn't use all the commands from gps.conf file, it only set ntp

SUPL_TLS_HOST=lbs.geo.t-mobile.com
Click to expand...
Click to collapse
why tmobile not google, is this correct ?
SUPL_TLS_CERT=/etc/SuplRootCert
Click to expand...
Click to collapse
no such file in stock, and you need this cert to use SUPL_TLS_HOST
SUPL - Secure User Plane Location
- In reference to SUPL_HOST and SUPL_TLS_HOST
The values can either be in FQDN (www .blahblahblah.com) or a direct IP address. They are both ways of retrieving AGPS data, and while both methods are secure to prevent anyone tracking you** the difference lies in the source. SUPL_HOST can be any open server such as Google's or any network your phone can register to, SUPL_TLS requires a security certificate to connect to the site (hence, SUPL_Transport Layer Security). The downside to the SUPL_HOST is that the requests can get flooded or can go down, and with SUPL_TLS the certificates can expire (think expired security certs for webpages). All current information I can find says that only ONE of each SUPL location service is supported by Android.
Furthermore, in the field for SUPL_TLS_CERT you can't just arbitrarily input the value "SuplRootCert." There has to actually be a cert already there for the conf file to call upon. Some SUPL_TLS connections have multiple certificates such as seen in the MyTouch 4G (no slide).
no comment
INTERMEDIATE_POS=1
Click to expand...
Click to collapse
INTERMEDIATE_POS - Intermediate position
Values are 1 for on, 0 for off
This will give a jumpoff location for giving a rough estimate of your location based off cell tower registration. For instance, let's say you live in Dallas and you're driving to Austin. You turn on your GPS mid trip, and the last time you had it on was back home. By default the Dallas location will be loaded, and if this is turned on when you first fire up Maps you should see the map rapidly zoom to an approximate location. This switch is used in conjunction with ACCURACY_THRES.
unrelated to speed or accuracy
ACCURACY_THRES=2500
Click to expand...
Click to collapse
ACCURACY_THRES - Accuracy threshold
Values are numerical, 0 disables the switch
This value is measured in meters(need confirm?), and for the intermediate location you want a pretty large net. The intermediate position gets you a quick and dirty estimate of where you're at while the AGPS/Satellite location data is syncing, and pulls information off what towers you're registered to. A value of 5000 gives you a larger net than 3000, and while 5000 is less accurate the 3000 value will take longer to get you a position.
self explained above - seen 2,5 km accuracy first fix ? if anything this should be set to idk 20000
DEFAULT_AGPS_ENABLE=TRUE
Click to expand...
Click to collapse
it is disaabled ?!
DEFAULT_USER_PLANE=FALSE
Click to expand...
Click to collapse
# TRUE for "User Plane", FALSE for "Control Plane"
Explained #1
Explained #2
PLEASE DO YOUR RESEARCH PRIOR POSTING SOMETHING YOU DO NOT UNDERSTAND
btw NTP_SERVER's are doubled

somator said:
PLEASE DO YOUR RESEARCH PRIOR POSTING SOMETHING YOU DO NOT UNDERSTAND
btw NTP_SERVER's are doubled
Click to expand...
Click to collapse
This is a output from Brood GPS tool that was here from long long time
But with your comments we can optimize this a bit now

daj sobie z tym spokój i popraw lepiej połączenie gps<->płyta główna
tym kupisz sobie najwięcej sekund i dokładności w fiksie

English please
Verstuurd van mijn GT-I9001 met Tapatalk

Maybe someone here would like to try out my Faster*** like app on the play store called TopNTP. The app is developed by me in cooperation with RC @crypted. He maintains an excellent NTP server. All parameters of the gps.conf can be modified. If someone comes up with the most efficient gps.conf for the SGS1 I can update the app with a profile for this device (my first android ever, SGS1 rocks!)
An expert on this matter, @FadeFx once told me to lower ACCURACY_THRES to 500, might be a tip for thos who try.
Link to the app thread: http://forum.xda-developers.com/showthread.php?t=2198319
Link to the app on the play store: https://play.google.com/store/apps/details?id=by.zatta.agps

@Zatta you got me wrong, i did lower accuracy threashold to 20 or 15 even, which did actually help me a lot...
_________________________
tapatalked from GalaxyS3

Zatta said:
like app on the play store called TopNTP.
Click to expand...
Click to collapse
Sadly it dosn't support i9001 and/or GB

you got me wrong, i was typing fast - i ment the donations for the server of derek gordon ...
about NTP:
closer the server, lower the the chance and level of assymetry, thus lower the error
Click to expand...
Click to collapse
source: http://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_synchronization_algorithm
so how to hell server located somewhere in the world will help me obtain a better fix ???!!!
then the one actualy closest to my location (ping)
as for the xtra.bin
Click to expand...
Click to collapse
so basicly our gordon guy downloads xtra and puts it at own server - WHY ?!?! how is that speeding up the process ?!?!?!
was commenting earlier on other switches he proposed in cfg file - doubtable that they help at all, just allow less accurate first fix if so ... thats not good
and what is most fun that is not only place that we could do some GPS cfg - but no word on that ;]
and you can o real magic there to gps cfg =]
will say it againg - funny anyone that thinks he will do better job on GPS then Googlers on Nexus S GPS files

somator said:
you got me wrong, i was typing fast - i ment the donations for the server of derek gordon ...
about NTP:
source: http://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_synchronization_algorithm
so how to hell server located somewhere in the world will help me obtain a better fix ???!!!
then the one actualy closest to my location (ping)
as for the xtra.bin
so basicly our gordon guy downloads xtra and puts it at own server - WHY ?!?! how is that speeding up the process ?!?!?!
was commenting earlier on other switches he proposed in cfg file - doubtable that they help at all, just allow less accurate first fix if so ... thats not good
and what is most fun that is not only place that we could do some GPS cfg - but no word on that ;]
and you can o real magic there to gps cfg =]
will say it againg - funny anyone that thinks he will do better job on GPS then Googlers on Nexus S GPS files
Click to expand...
Click to collapse
You, sir, are ignorant. You rehash discussions over two years old. And, instead of reviewing those many discussions I openly had, you decided to defame me.
Thank you for showing why XDA is becoming worthless to DEV communities.
NTP.ORG has a lot of cable modems and other overloaded and poorly networked time servers. I use Stratum II time servers (look it up). Further, I calculated NETWORK HOPS AND LATENCY from many locations to mobile data connection points. Learn that a little bit and you'll be much better off.
If I'm sitting in Caen, France and my carrier (Orange) has its outpoint for my mobile data traffic as London, England, then using a server near me is nonsense. Further, NTP does not rely on your physical location or timezone. It's absolute time for the almanac data.
XTRA data is a funny one. Let us assume I just copy data. Do a MTR monitoring from about 20 global locations and write a script to pull xtra data to those same 20 locations. See the great latency that occurs through the reliance on the original servers. Then, do the same for mine. You will see a huge decrease in latency and procurement time across almost every mobile carrier I was able to get tests ran on.
Now I don't feel like going on to much more to try to educate someone who refuses to read my previous long postings on these subjects...
But hey, I'm an asshole as you indicated. I did nothing of use. Sadly, over 10 million query's a day say differently.

i am not into the mood tp discus that with you. best latency is something your server IS NOT providing for me so i see no point in using it.
as for the milions of querries
XDA is becoming worthless to DEV communities
Click to expand...
Click to collapse
most developement here is made using other work as own and offering features tweaks and files without proper understanding of the process
fact of changing something is more important than the real impact of it on the system
untill proven otherwise i still think that stock settings and servers are best gps solution

I didn't want to get involved in any discussion and I won't.
Leaves me to say, try the app and use the ntp server, use the app and use one of the xx other servers out there or don't use the app at all.
Some report great results, others don't report anything. We hardly get any negative results reported.
The service is offered for free and remember, if you don't like it eventually, the app backs up your old configuration and is able to restore it also.
I'm always open for suggestions to improve the app or the database. I would love to include an entry special for the gt-i9000 as this device has brought me into android app development.
Taptalked u see .. əəs n pəʞlɐʇdɐʇ

somator said:
i am not into the mood tp discus that with you. best latency is something your server IS NOT providing for me so i see no point in using it.
as for the milions of querries
most developement here is made using other work as own and offering features tweaks and files without proper understanding of the process
fact of changing something is more important than the real impact of it on the system
untill proven otherwise i still think that stock settings and servers are best gps solution
Click to expand...
Click to collapse
I cannot solve every persons issues. Read my threads. I provide default Ntp servers and the like in the 2.x variant. It stays updated to the 3.x. So your point is still null.
Sent from my Galaxy Nexus using xda app-developers app

Related

Location based reminders (Shopping List?)

Have you ever told yourself "The next time I'm at the shops, I better pick up XYZ", but then you get the shops and completely forget about it? It could be any variant, like:
"The next time I'm at the bank..."
"The next time I go to Mom's place..."
Etc.
Imagine having a GPS powered application that popped up a reminder the next time you were within X metres of a pre-saved location. That would kill the battery, wouldn't it, because you'd have to leave the GPS on the whole time.
I like what Google Maps have done to their latest edition which can show you an estimate of your location based on Cell Info. Can this be used to make a location based reminder application?
Perfection would be if the application could pickup the location of an Outlook Task as well, and if it recognises a saved location in the text of the Task, it would pop up. Just a thought...more likely wishful thinking
I've search the net, but I don't think an application with this capability exists. If anyone knows of one, please do let me know. If someone thinks they can make one, that would be great too. I'm not a programmer, but I would willing be a tester or provide creative/functionality input, if you like.
Thanks,
K
Please be encouraged
This is a great idea...and if we dont do it here we will wish we had....one of those things that just makes life simpler and once we implement it wont know how we got by without it....let's say you have something in the trunk or back seat that you keep meaning to drop off...say the dry cleaning or the computer you promised your neice or church....but you never remember obviously till you get home and see it while grabbing your things out of the car...well this type of service would go a long way to help you look like you're not the absent minded geek that we all know we really are!!.......while we're dreaming it up...how about a part of it functions like this...lets say you're driving out and about and see say a house you like...cause maybe you're in the market... a few taps would bookmark your location within a few hundred meters....and the next time or every time depending on how you have it set up...you'd be alerted that you were near your bookmarked location...sweet
Well apps like SKScheMA and PhoneAlarm allow system changes based on cellid so it should certainly be possible to set up a pop up box with a todo based on cell id. I guess the tricky part would be a nice gui.
you'll need to have gps on all the time, so your ppc won't last half a day !
lastnikita said:
you'll need to have gps on all the time, so your ppc won't last half a day !
Click to expand...
Click to collapse
You obviously didn't read the entire post. I already mentioned the battery drain issue if the GPS was used. The alternative was CellID. Thanks for taking an interest though.
That's a great idea. Phonealarm has location based profiles using cell ID. I'm sure that a skilled developer could use that to make an app that does what you offer...
TrackMe offers this feature
kishengajjar said:
You obviously didn't read the entire post. I already mentioned the battery drain issue if the GPS was used. The alternative was CellID. Thanks for taking an interest though.
Click to expand...
Click to collapse
sorry I replied too fast
now another problem is, from what I've seen on my device, tri-positionning was not accurate at all, around 500m accuracy as opposed to few meters of GPS. That could still be useful from town to town needs, though (like "go see your mother !" )
pmcall said:
TrackMe offers this feature
Click to expand...
Click to collapse
I followed the link to the App you suggested. Although the main page for the app doesn't talk about this CellID feature and the reminders, it looks like the update logs have them mentioned, and the screenshots look like the reminders must work the way I'd like.
UNFORTUNATELY, I've got an HTC TyTN which doesn't have a lot of memory for me to install .NET Compact 3.5 (I've got other required apps installed which I can't remove) so I can test the darn thing.
Perhaps if some of the other contributors to this thread would like to try it out and let me know, please?
I'm going to buy a Touch Pro next month (when they finally release an Invisible Shield for it) and I'm going to officially love this program, it it does what I want it to.
Ciao
K
lastnikita said:
sorry I replied too fast
now another problem is, from what I've seen on my device, tri-positionning was not accurate at all, around 500m accuracy as opposed to few meters of GPS. That could still be useful from town to town needs, though (like "go see your mother !" )
Click to expand...
Click to collapse
Don't worry about it. We all skim through sometimes. In fact, when I first mentioned the idea to my brother, he barged in with the same comment, just as I was getting to it
I think 300 - 500M would be sufficient if you needed to remind yourself to pickup a tub of your favorite coffee then ext time you were at your supermarket (unless you live next door to the supermarket).
lastnikita said:
sorry I replied too fast
now another problem is, from what I've seen on my device, tri-positionning was not accurate at all, around 500m accuracy as opposed to few meters of GPS. That could still be useful from town to town needs, though (like "go see your mother !" )
Click to expand...
Click to collapse
For those of us that live in relatively big cities, 500m is usually enough for those things...
pmcall said:
TrackMe offers this feature
Click to expand...
Click to collapse
I took another look at the app you suggested (Is it the one by Espinosa?). It looks like it's a full featured location tracking application, but I don't think it has the specific feature discussed in this thread.
In fact, the app seems to be way too big to be practical for everyday use anyway.
If I'm looking at the wrong TrackMe, do let me know.
K
kramerica2 said:
For those of us that live in relatively big cities, 500m is usually enough for those things...
Click to expand...
Click to collapse
Here here. Or is it hear hear?. Not sure, but what the hell...I agree with you
I've installed TrackME. seems that it doesn't have the required feature...
kramerica2 said:
I've installed TrackME. seems that it doesn't have the required feature...
Click to expand...
Click to collapse
Yes, I noticed. So I see we're still looking for an app that does this. If anyone finds one, do post
Android
Funny this came up because I was checking google android last night and noticed that someone won 250,000 with an app that does exactly this as well as lets you price check other stores in the area
Here is the link:
http://code.google.com/android/adc_gallery/
hmmmm....just looking again and its not there. I know I seen something just like what you are talking about on andriod yesterdy
kishengajjar said:
Yes, I noticed. So I see we're still looking for an app that does this. If anyone finds one, do post
Click to expand...
Click to collapse
In TrackMe -> yes the one by Espinoza -> Menu|Tools|Geofence|ShowAlerts|Add|General
where you have the option of specifying a Latitude and Longitude the distance from the lat and long, and whether to fire an event based on if you are in the area or not. In the NotificationsTab you can specify if an e-mail or sms is to be sent, and what address/number to send the notification too.
pmcall said:
In TrackMe -> yes the one by Espinoza -> Menu|Tools|Geofence|ShowAlerts|Add|General
where you have the option of specifying a Latitude and Longitude the distance from the lat and long, and whether to fire an event based on if you are in the area or not. In the NotificationsTab you can specify if an e-mail or sms is to be sent, and what address/number to send the notification too.
Click to expand...
Click to collapse
I don't want a SMS or an e-mail. I want that the application will open a specific note when I reach a certain place. Or a pop-up reminder.
PhoneAlarm would be the best. It does not have the exact feature you are looking for, but you can ask it to run certain program/application when you are within a certain CellID choosen by you. You can also label the CellID to your liking.
If you buy the software, you can actually ask the author to add the feature you want. He is very open to suggestions. And if you do, you can also ask him to monitor the CellID first, and if you are in the CellID, then the GPS can be used to track the range of the specified point.
Good luck.
Edit: I just checked the software, it has the feature of using the GPS for location detection.
PhoneAlarm can indeed solve the problem. You need to make permanent notes for each location, and then tell PhoneAlarm to open the specific note for your location.
For example: you make a shopping list note, create a profile on PhoneAlarm that's called Shopping, and tell it to open that note when switching to Shopping profile. You can keep the note itself, just change it's content. The same thing can be done for the bank, parents' house, etc...
My only problem with PhoneAlarm is major battery drain...

what app would you find useful ?

Hey guys.
I'm now looking for a bachelor thesis and I was thinking about writing an android application.
Preferably one of which aren't millions out there and a more complex one (using GPS and stuff).
So I'm hoping you could help me. Do you have any tips ?
Cool idea! good luck with this.
Unfortunately i can't think of anything my phone can't already do
May be some thing like an android firewall, which pops up when an applications initially try to connect to internet asking if we want to allow or reject the connection and remember the choice.. You know.. Much like an OS firewall. Something like littlesnitch (MacOS)
I dunno if this is possible, but would be great.
How about a GUI for bluetooth..
See what's connected and easily transfer files to another device..
I would double request for interactive firewall
Sent from my Legend using XDA App
Interactive firewall, that remembers your settings for each Application based on your GPS co-ordinates & the network you are connected to (Wifi, mobile and the IP range on the Wifi network - or options to that effect ) That's some advanced stuff to do!
Maybe build a complete network tool on top of the firewall? one that does subnet/CIDR calculating, pinging, MTR, tracerouting/pathping, SMTP/POP3 checker etc
I'd use it for sure!
Thanks for the ideas.
The BT GUI looks more interesting to me, but I see there's a bigger demand on the firewall.
Aren't there any similar firewall apps out there ?
I found Droid wall... Anyone tried it yet ?
On the other hand, I didn't find any BT app...
btw keep 'em comin'
grandioso said:
I found Droid wall... Anyone tried it yet ?
Click to expand...
Click to collapse
Yup, i'm using it, but... Always after installing new app i keep forgeting to set up rules for it on Droid Wall So interactive firewall would be awesome.
There are two apps I want that don't exist. One is dead simple - a timed SMS sender. How often have I thought "must text Mum about X" at past her bedtime, then forgot to send it come the morning. It would be well handy to be able to specify a send time for a message.
Other is location-aware to-do/reminder. Most "Remind Me" apps work on times - either set times or countdowns. That's not how I roll. I want reminding when I get somewhere, not at a time.
"Remind me of $message when I get [home|work]"
Where $home = joining wireless network "HomeNet" and $work = joining wireless network "Worknet"
You could also do notifications on leaving those networks - "When I leave work, remind me to pick up milk/eggs"
There are GPS versions of these, but I'm not leaving my GPS on all day just for one thing. Wifi is accurate enough for me (although you could build in GPS as well, for added accuracy if want/needed by the user)
Hand-written notes (a la Staesj) is good too. As is speech-to-text notes.
Those are all good ideas. I'd use all of 'em. Lol
Good luck mate!
johnnytruant - that is a BRILLIANT idea !!
Already contacted my professor.
If he won't agree with it, I think I'll stick with the firewall (if no one has a better idea).
johnnytruant said:
There are two apps I want that don't exist. One is dead simple - a timed SMS sender. How often have I thought "must text Mum about X" at past her bedtime, then forgot to send it come the morning. It would be well handy to be able to specify a send time for a message.
Other is location-aware to-do/reminder. Most "Remind Me" apps work on times - either set times or countdowns. That's not how I roll. I want reminding when I get somewhere, not at a time.
"Remind me of $message when I get [home|work]"
Where $home = joining wireless network "HomeNet" and $work = joining wireless network "Worknet"
You could also do notifications on leaving those networks - "When I leave work, remind me to pick up milk/eggs"
There are GPS versions of these, but I'm not leaving my GPS on all day just for one thing. Wifi is accurate enough for me (although you could build in GPS as well, for added accuracy if want/needed by the user)
Click to expand...
Click to collapse
These are pretty much all already covered by Tasker...
Ah. I didn't know about Tasker.
Still, an easy-to-use, single-purpose location-aware reminder/notes app is probably more useful to more people - plenty of non-techie types, who would likely be scared of Tasker - would definitely find such a thing useful.
So I finally got this app as my bc thesis.
Get ready for the best organizer ever
There's gonna be a usual calendar, plus location based reminders, plus friend location based reminders, notes (usual/voice, with/without notification) and alarms (with shake/flip/cover/voice-to-snooze), web-sync, and much more
Personally the main thing I've been dying for is SAMBA shares from my phone, but without having to root. If this was possible (or at least easy to do) I'm sure it would have been done by now, though.
Otherwise I think a facebook video uploader would be nice. I can't share more than 1 at a time with the onboard apps and have never found anything better, so I end up using Qik and sharing them to facebook from there.
Another idea (which has already been done, poorly) is to use your phone as a mouse/keyboard. I am not sure how many apps there are for this, but the last one I used (I forget the name) was pretty terrible. It's handy for HTPCs. The app itself wasn't the big problem, it was the Windows server program. It would take focus randomly, freeze, and there was no good way to hide it other than minimizing it.
grandioso said:
Hey guys.
I'm now looking for a bachelor thesis and I was thinking about writing an android application.
Preferably one of which aren't millions out there and a more complex one (using GPS and stuff).
So I'm hoping you could help me. Do you have any tips ?
Click to expand...
Click to collapse
No gps, but a video player (with flv support) that works on azure would be very useful to many people
grandioso said:
So I finally got this app as my bc thesis.
Get ready for the best organizer ever
There's gonna be a usual calendar, plus location based reminders, plus friend location based reminders, notes (usual/voice, with/without notification) and alarms (with shake/flip/cover/voice-to-snooze), web-sync, and much more
Click to expand...
Click to collapse
sounds great
what's the best music player ?
rewen said:
Personally the main thing I've been dying for is SAMBA shares from my phone, but without having to root. If this was possible (or at least easy to do) I'm sure it would have been done by now, though.
Click to expand...
Click to collapse
estrong file manager can access pc samba shares no problem...not sure if thats what your wanting to do though...
kazzaz said:
what's the best music player ?
Click to expand...
Click to collapse
I quite like Cubed.

GPS SirfIV Tool Development - Disable Static Navigation / ...

Hello
I just stumbled over this document: micro-modular.com/docs/AddlRsrc/GSD4e OSP Manual (CS-129291-DC-9).pdf
So, for example on site 119 for example you can see that it is possible to disable the static navigation filter by sending the corresponding Payload Sequence to the SirfIV chipset. The only question which remains is "how can we send these strings to the chipset".
And this is the point where we need some really brilliant XDA developers. If someone would manage to open the communication way to the sirf IV chipset, it would be possible to reconfigure this chipset totaly free.
At the beginning it can be a really simple tool where you have to enter the Start sequence, payload and end sequence which should be send manually. This would be good enough. But the biggest part will be to find a way to communicate with the GPS chipset. Maybe someone knows some good tools to find out how to communicate with the GPS chipset.
I'm very curious on your suggestions.
Best regards,
Chris
And here we can see what static navigation is doing with our tracks. On the right side I was running (high speed) and on the left side I was walking (slow speed). You can see that the static navigation feature freezes the track if you do not move very wide within approx. 30 seconds and releases the freeze if you moved a certain distance. This continues until you are moving at higher speeds.
To generate the tracks the original NMEA data from the SirfIV GPS chipset was dumped every second.
Because of the zoom level you can not see every timestamp, but there IS a trackpoint every second. While at higher speeds they are aligned along the track (right side) the are lying at exactly the same place during the freeze on the left track.
Best regards,
Chris
Maybe an interesting place to search for is the file:
/system/lib/hw/gps.s5pc210.so
Inside this you will find strings like:
MI_SetStaticNav
NL_GetStaticNavMode
NL_SetStaticNavMode
NL_Get_StaticNav_Status
NL_GetStaticNavMode_NL3
NL_SetStaticNavMode_NL3
NL_StaticNav
MI_GetStaticNav
StaticNav: %s3SV
NL_SetStaticNavMode()
NL_StaticNav()
Seems to be interesting.
Best regards,
Chris
And for the usage of the "MI_GetStaticNav" and "MI_SetStaticNav" functions see:
read.pudn.com/downloads28/sourcecode/embed/88065/SDK%20Users%20Guide%20Part%201%20-%20Software.pdf
Page Nr. 196
Is it possible to use the functions defined within the .so file from your own programs???
segelfreak2 said:
Is it possible to use the functions defined within the .so file from your own programs???
Click to expand...
Click to collapse
Yes, it is possible and easily done.
segelfreak2 said:
Hello
I just stumbled over this document: micro-modular.com/docs/AddlRsrc/GSD4e OSP Manual (CS-129291-DC-9).pdf
So, for example on site 119 for example you can see that it is possible to disable the static navigation filter by sending the corresponding Payload Sequence to the SirfIV chipset. The only question which remains is "how can we send these strings to the chipset".
And this is the point where we need some really brilliant XDA developers. If someone would manage to open the communication way to the sirf IV chipset, it would be possible to reconfigure this chipset totaly free.
At the beginning it can be a really simple tool where you have to enter the Start sequence, payload and end sequence which should be send manually. This would be good enough. But the biggest part will be to find a way to communicate with the GPS chipset. Maybe someone knows some good tools to find out how to communicate with the GPS chipset.
I'm very curious on your suggestions.
Best regards,
Chris
Click to expand...
Click to collapse
Not Applicable.
The GS2 has a GSD4t, not a GSD4e. It's the "crippled" version of the Star IV that uses the host processor to do all the work.
Entropy512 said:
Not Applicable.
The GS2 has a GSD4t, not a GSD4e. It's the "crippled" version of the Star IV that uses the host processor to do all the work.
Click to expand...
Click to collapse
Hello Entropy512,
thank you for your comment. I know that the SGS2 has a GSD4t unit. But despite the document is named GSD4e OSP Manual... it is also applicable to the GSD4t version. So it is written in the document. And as I posted, there is a .so file who has all these functions in it. We just need to use it. And I think that the functions provided within gps.s5pc210.so are really worth a try.
aerobahn said:
Yes, it is possible and easily done.
Click to expand...
Click to collapse
Hello aerobahn,
many thanks also to you for your input. Your answer sounds great in my ears . I think it should be worth a try if it is really so easy to use functions defined within a .so library file. I do not have any experience in programming for android, but if someone who has would try it I would appreciate that. Because without static navigation the SGS2 would be a very good GPS logger too. And this can be somtimes very valuable, for geocaching, hiking tours, even low speed navigation...
Best regards,
Chris
No one who wants to try? Please. If you succeed I'm willing to honor your effort.
I have no programming skills at all but i am able to test whatever lib is generated
I can test daily in a 30 Km path (and 30 Km back).
segelfreak2, what you really want is to enable satic navigation and not disable it, as it is already disabled by Samsung. Static navigation disabled means filtering is ON. Static navigation enabled means filtering OFF. It is a common misconception.
Nevertheless, I have developed a tool called GPS Control for SGS2. You can check it out on market. It does exactly what you need. Just remember to reboot after changing Static Navigation config. It requires root access and works only on I9100.
You are welcome to propose any additions you might want in future versions.
The app doesn't work with CM7. I'd like to know if static navigation is enabled in CM7 by default.
Sent from my GT-I9100 using XDA App
Yes, it is not supposed to work with CM (yet). Just send me your gps library file (.so) and I can update the app so that it works with CM also. (or I'll just send you a modified .so)
It's not working with MIUI too. If you tell me which file(s) you need, I would give them to you. At the moment it just says unknown driver.
Sent from my GT-I(OVER 9000!!!!) using XDA App
In recent stock firmwares the file is /system/lib/hw/gps.s5pc210.so
In older ones the file was /system/lib/hw/gps.GT-I9100.so
steffato said:
segelfreak2, what you really want is to enable satic navigation and not disable it, as it is already disabled by Samsung. Static navigation disabled means filtering is ON. Static navigation enabled means filtering OFF. It is a common misconception.
Nevertheless, I have developed a tool called GPS Control for SGS2. You can check it out on market. It does exactly what you need. Just remember to reboot after changing Static Navigation config. It requires root access and works only on I9100.
You are welcome to propose any additions you might want in future versions.
Click to expand...
Click to collapse
I'm curious, why did Samsung disable static navigation by default?
I think this would be good for those who uses the phone to track their marathons etc
mengsuan said:
I'm curious, why did Samsung disable static navigation by default?
I think this would be good for those who uses the phone to track their marathons etc
Click to expand...
Click to collapse
As long as you don't walk the marathon, you should be fine
@ steffato: I've sent you a pm with the .so files​
Just updated the app in the market. It now should support both MIUI and CM. Try it and I 'm waiting for results. Thanks for your input.
Please be patient. The update may take some time to show up in the market.
Raudi1 said:
As long as you don't walk the marathon, you should be fine
@ steffato: I've sent you a pm with the .so files​
Click to expand...
Click to collapse
I tried endomondo on the phone. It does "pause" my location and then update seconds later. Average speed is 9-10km/h
Sent from my GT-I9100 using Tapatalk
Don't forget to reboot after changing setting. It's required or there will be no change. On some cases the phone may crash and reboot on its own, unless you rebooted after changing settings.
If you want to check your gps behaviour after enabling static navigation, you should try disabling any filtering options that you app might have. I test with locus after disabling filters.
Don't test it with googlemaps. There is filtering in that app, therefore gps behaves the same either with sn enabled or disabled.
Sent from my GT-I9100 using xda premium
thank you.
your program is working quite good.
mayby you should create a separate topic in the original dev forum?
the question is how it influence battery life?
Sent from my GT-I9100 using Tapatalk

Traffic Shaper for Android

Was wondering if anyone knew of an app for Android similar to Netlimiter (Windows) or Trickle (Linux), etc. I've looked but have not been able to find anything. Would be great if I could throttle my bandwidth in some way as I am usually on a shared WiFi connection. If an app similar to this does not exist, does anyone know if this is due to some sort of limitation of Android?
mfucci said:
Was wondering if anyone knew of an app for Android similar to Netlimiter (Windows) or Trickle (Linux), etc. I've looked but have not been able to find anything. Would be great if I could throttle my bandwidth in some way as I am usually on a shared WiFi connection. If an app similar to this does not exist, does anyone know if this is due to some sort of limitation of Android?
Click to expand...
Click to collapse
Look for /proc/net/psched in your device. If you got this (you probably have), the kernel is compiled with traffic shaping enabled (QoS) and you should be able to control it using the command "tc" in the iproute2 package (/system/bin/tc most likely). Its a bit tricky, but there's lots of howto's using tc on GNU/Linux.
- tldp.org/HOWTO/Traffic-Control-HOWTO/intro.html
- lartc.org/howto/
kuisma said:
Look for /proc/net/psched in your device. If you got this (you probably have), the kernel is compiled with traffic shaping enabled (QoS) and you should be able to control it using the command "tc" in the iproute2 package (/system/bin/tc most likely). Its a bit tricky, but there's lots of howto's using tc on GNU/Linux.
- tldp.org/HOWTO/Traffic-Control-HOWTO/intro.html
- lartc.org/howto/
Click to expand...
Click to collapse
Thank you. I will look into that. I do wonder why an app for this has not been released, though. Seems like it would be pretty useful.
mfucci said:
Thank you. I will look into that. I do wonder why an app for this has not been released, though. Seems like it would be pretty useful.
Click to expand...
Click to collapse
I really think the traffic shaping policy should be enforced by the router, and not in the Android device. A tc frontend app to Android I would say have quite limited use.
kuisma said:
I really think the traffic shaping policy should be enforced by the router, and not in the Android device. A tc frontend app to Android I would say have quite limited use.
Click to expand...
Click to collapse
I think that depends on if you have a router that has that functionality I know there are some apps on Android that have bandwidth throttling capabilities so to some extent it is already available.
kuisma said:
I really think the traffic shaping policy should be enforced by the router, and not in the Android device. A tc frontend app to Android I would say have quite limited use.
Click to expand...
Click to collapse
True, but what about the cases where you would like to conserve the bandwith you have using mobile data
shades3 said:
True, but what about the cases where you would like to conserve the bandwidth you have using mobile data
Click to expand...
Click to collapse
Not really. You don't save anything forcing your web page / mail / whatever to load at a slower pace. And if you want to disable some services, still using other, not disabling mobile data in all, netfilter (iptables) is the way to go, not traffic shaping (tc).
Contrary to first glance
kuisma said:
Not really. You don't save anything forcing your web page / mail / whatever to load at a slower pace. And if you want to disable some services, still using other, not disabling mobile data in all, netfilter (iptables) is the way to go, not traffic shaping (tc).
Click to expand...
Click to collapse
I'm guessing you didn't think about streaming video. Many content providers like Netflix and Amazon instant video stream higher quality video if it detects that you have sufficient bandwidth. My 4G LTE connection regularly exceeds 8 Mbps. Consequently, if I try to stream something, I get the highest quality video and eats through my data allotment like there is no tomorrow.
I would love to have a bandwidth limiter app.
I have been wondering why there's no app too, I use Netlimiter on all the pc's here, we don't have the greatest of bandwidth so when someone is downloading a game or something, I choke it down so it doesn't lag games we play like Blacklight or GRO. I would use it exactly the same way on our devices.
If anyone is interested in creating one, let me know. I'm a logo/graphic designer so we can make it look sweet
Still no way to do this?! Google play (on "low" quality) eats through my 5GB data at a ridiculous rate (100MB+/hour). Would love to limit it to 128kbs to get a little more mileage as I listen all day at work.
There is no way to do it. Next release Android L was commented to have bandwidth throttling, but is just a guess.
Google May Build Bandwidth Throttling Feature Into Android
This is something that I would be looking forward too, should it come with L. I'm an avid NetLimiter myself
Bandwidth ruler Free ( an Android bandwidth manager)
There is already an APP that implements bandwidth shaping /throttling for android .
you can download it via this link :
Also , you can find its description in the following xda thread :
http://forum.xda-developers.com/android/apps-games/app-bandwidth-manager-android-t2972889
franck.M said:
There is already an APP that implements bandwidth shaping /throttling for android .
you can download it via this link :
]
Also , you can find its description in the following xda thread :
http://forum.xda-developers.com/android/apps-games/app-bandwidth-manager-android-t2972889
Click to expand...
Click to collapse
I've just tried the free and pro version and don't work well with my device. I can't select the specific option for bandwith shaping, is enabled but the dropdown list doesn't work.
scandiun said:
I've just tried the free and pro version and don't work well with my device. I can't select the specific option for bandwith shaping, is enabled but the dropdown list doesn't work.
Click to expand...
Click to collapse
If speed limiting is set to None and desactivated , it means that either your device is not rooted or your device is not QOS capable.
Could you please click on help and tell what device capabilities outputs ?
@scandiun , for an uncovered use case, an update of the APP had been made , could you please update to latest version and see if it works for you , as your device is supposed to support the feature .
Thank you
would be great have such function integrated in the roms
You can give BradyBound a try. It limits/shapes the download speed at the OS level.
Disclaimer: I'm the author of this app.
oxplot said:
You can give BradyBound a try. It limits/shapes the download speed at the OS level.
Disclaimer: I'm the author of this app.
Click to expand...
Click to collapse
Does it require root?
scandiun said:
Does it require root?
Click to expand...
Click to collapse
Yes, and it's also open source.

[HOWTO] GPS config file for HD2 on JB ROM, very fast fix for me

Hello all, I've been searching the forums for a similar thread but didn't find anything, so I'm going ahead and posting my advice, hope it can be useful to HD2 fellow owners. I came into possession of an euro HD2 one month ago (my mom didn't use it, it's practically new, lucky me), installed straight away an Android ROM, Tytung's "NexusHD2-JellyBean-4.1.2-CM10 V1.3a" (at http://forum.xda-developers.com/showthread.php?t=1930240).
Cool stuff, I was only pretty disappointed with the GPS fix times.
Then I learned about the gps.conf file, went on to open it, and was very surprised to find out that in this ROM it is very basic and short. I don't know about the situation with other ROMs and other Android versions, but the problem could possibly concern many HD2 users.
So I went for a search on XDA and on the general internet, got educated a bit on the matter, then I started experimenting and finally put together a file that's working very well for me - I'm getting cold fixes in under a minute, and warm fixes in seconds flat (all of this indoors, standing by a window). It was a long trial-and error work.
Hint: gps.conf is to be found in /system/etc directory. You'll need a rooted device to access it, and possibly to change permissions to the file to be able to modify it, I don't even remember if I did the latter :laugh:
Here's my take on the code:
#NTP_SERVER=ru.pool.ntp.org
NTP_SERVER=0.ru.pool.ntp.org
NTP_SERVER=1.ru.pool.ntp.org
NTP_SERVER=2.ru.pool.ntp.org
#NTP_SERVER=3.ru.pool.ntp.org
#NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
#NTP_SERVER=2.europe.pool.ntp.org
#NTP_SERVER=3.europe.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
DEFAULT_USER_PLANE=TRUE
DISABLE_AGPS_WHEN_ROAMING=true
REPORT_POSITION_USE_SUPL_REFLOC=1
AssistMethodType=1
AgpsUse=1
AgpsMtConf=0
AgpsMtResponseType=1
AgpsServerType=1
AgpsServerIp=3232235555
DEFAULT_SSL_ENABLE=FALSE
INTERMEDIATE_POS=1
QOS_ACCURACY=60
QOS_TIME_OUT_AGPS=120
QOS_TIME_OUT_STANDALONE=180
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
CURRENT_CARRIER=common
ENABLE_WIPER=1
I'll explain a little: NTP URLs are for getting the precise time from a special server, this is necessary for the A-GPS because location is tracked by estimating the time to reception of the satellite's signal (I'm no expert but I shouldn't be much off the mark). So you want to download the time with the shortest network ping (delay) or it will not be accurate, and in order to do this you need to choose a NTP server as close to you as possible. In fact, of all the code I posted, the only part you should personalize to your needs is the lines regarding the NTP servers. I live in Russia, so I have the letters "ru" in the domains. To find the active servers closest to you, go to:
http://www.pool.ntp.org/en/
Also, I added the European servers as a backup (because they are not too far away from Russia), as some people suggest, and I verified that in some cases they get used by my device, possibly because of an excessive delay in receiving an answer from the earlier-listed addresses.
So why did I comment out some of the servers in the code? Well, looks like a failure in receiving an answer from a server can lead to a waste of time because of longish timeouts. In any case, I found out that by using only three servers from my area (and a couple from Europe, not more) I'm getting better fix times. So I left out the others but did not erase them for good, in order to stress the fact that I found a difference from those who suggest to add some eight NTP addresses or more.
So to recap, say you're from Japan, you could use:
NTP_SERVER=0.jp.pool.ntp.org
NTP_SERVER=1.jp.pool.ntp.org
NTP_SERVER=2.jp.pool.ntp.org
and immediately below (optional):
NTP_SERVER=0.asia.pool.ntp.org
NTP_SERVER=1.asia.pool.ntp.org
Then there's the Xtra servers needed to get the satellites' updated position in a format recognized by our Qualcomm chip. One size fits for all, no need to change anything here. The Agps engine relies on them, or in case of necessity falls back on the SUPL hosts (in this case, google.com).
I found out that the SUPL TLS hosts are useless for me, so I erased the following lines, that some people included and some others say are malformed:
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
Also, the much advertised C2K host, and the following lines of code, did not work for me:
C2K_HOST=c2k.pde.com
C2K_PORT=1234
The last line,
ENABLE_WIPER=1
determines the persistence of the (AGPS?) position established by WIFI. It is not clear to me,though, if this is related to the AGPS data unloaded by WIFI, or the geographic position extrapolated by Google from a WIFI networks database (the fix you get when your WIFI is on even without GPS of AGPS). Anyway, 0 stands for inactive, as expected, and 1 for active. I believe modifying this line should not have any negative influence, make your tests.
I recommend you to:
1 - verify that you successfully saved the modified gps.conf file.
2 - reboot the phone (some say one should even turn it off, remove the battery and leave it off for minutes, in order to clean the cache) then use the app "GPS Status" to flush the Agps data and reload said data (and of course wait 1-2 min. the first time). Only then will the effects be visibile.
3 - needless to say, check that your data connection is active.
Also I recommend you not to use programs, like FasterGPS, that work by overwriting the contents of the gps.conf file, or you will have to start anew.
That's it. Please let me know how is your mileage, thanks for your attention.
March 5 edit:
The edited file described above works well until the ephemerides expire (after 2-3 hours from a cold fix). After that, fix times tend to rise, until the 6th hour from the last AGPS data download, at which point (at least on my phone) fresh data get downloaded as per GPS Status app settings (under "download GPS data at start"). My feeling is, since the script does not provide for a routine for assessing data age, and this JB ROM does not include a gpsconfig.xml file, this routine must be missing for good - so the phone tries a warm GPS start using data that are not valid anymore, thence the longer fix times (I may be totally wrong in my diagnosis, so commentaries from more tecnically savvy users are very welcome). I'm going to try and use chunks of a gpsconfig.xml from some other ROM, and see if the newly included gpsconfig.xml file gets recognized at all, to try and include a routine for discerning old from fresh data. Going to update this post further in case of progress.
March 7 note: this problem may be overcome by modifying the already mentioned option "download GPS data at start" choosing the suboption "download if data are older than one hour" under settings in the "GPS Status" app.
This solution is not very elegant from a developing standpoint, plus it involves using the network (and to have it available) more often than the normal ephemerides' expiry term, plus it forces you to use an external app, so I'm looking for a better solution anyway.
March 7 edit: slight modifications to the code. Also, erased the sentence "Important: if you use the app "GPS Status", remember to choose "weak" or "no filter" under "Sensors filter" in the settings" (as this seems to exert little influence with the use of QoS in the code).
Great info
Thanks a bunch, Luther. This helped for me as well. need to see if my cold fix times increase as you mention at the end. Good luck with the xml file development. Hope it works.
gprash said:
Thanks a bunch, Luther. This helped for me as well. need to see if my cold fix times increase as you mention at the end. Good luck with the xml file development. Hope it works.
Click to expand...
Click to collapse
You're welcome, Sir. Please check out the latest amendment to the code.

Categories

Resources