[TESTING] Rhod AGPS (XTRA) support
Update ( 03/08 ) Seems gsm rhod users are using the lib without any problems (per reports on xda) - changing the name and updating this post to reflect this - no longer specializing in CDMA.
************************************************** ************************************************** *** As the name suggests, this is a thread to test and develop aGPS support for RHOD. This is a testing thread, so please, only for users that have a working proficiency with adb. Do NOT post in this thread reporting a bug, unless you provide complete GetLogs output capturing the issue. In addition, please provide logcat output of the boot sequence (as this is when xtra_set_data is called by default, and when the data injections happens.) All other posts will be ignored. Q: What is XTRA? A: A collection of instructions that allow userland (Android) to communicate with the GPS engine in our devices. In particular, they allow for Android to inject data packets that contain satellite information, which in turn drastically reduces the time to get GPS lock. In short, without it, a GPS lock takes a long, long time from a "cold start". If it's working, with a "cold start" you should be able to get a GPS lock in less than 30 seconds (provided you are outside with clear skies). If you like to contribute to this thread, please do so only if you are using GBX0B since this is the build that I have and the only one that I can debug. Installation and download instructions follow. Please read the entire post carefully. First thing is first: These libs are stock xdandroid libs with tytung's aGPS patches from Leo ported over. He is to be credited, along with all other xdandroid developers who have put in work in the xdandroid stock libs. If you would like to redistribute or modify this lib, please read the disclaimer in tytung's post. In compliance with his request, the full source code for this lib can be found here. 0. You need a working data (3G) connection (this could possibly work over WiFi, I just haven't had time to check). 1. Download gps.xdandroid.so from the downloads section. This lib needs to go in /system/lib/hw . In gbx0b, this means, either a) Mount bind the lib in gingerbread.user.conf by adding the command Code:
mount --bind <path_to_lib_on_sdcard>/gps.xdandroid.so /system/lib/hw/gps.xdandroid.so b) Back up and replace the existing lib in system/lib/hw . Note first, you need to remount /system as rw. (In either case, verify that you have the correct lib in place (by running md5sum) BEFORE reporting an issue.) 2. Make sure GPS is on in Settings. Turn off the device. Pull the battery and wait at least 10 minutes (to ensure all information is cleared from the gps engine). 3. Boot back in xdandroid - xtra.bin is inserted automatically shortly after bootanimation is over. If you have booted with GPS on and this lib, and you run logcat, you should hopefully see something like this in your logcat: Code:
02-12 00:23:34.985 D/gps_rpc ( 1312): pdsm_xtra_set_data(0, 1f40, 0, 0x40b2b568, 400, 57, 100, 1)=1 Additional Information: Currently, xtra.bin is downloaded every time you reboot into Android provided that GPS was checked as ON when you were booting the device. If you would like to inject it manually, you can use tytung's excellent aGPS Injector App (again, need to make sure GPS is checked ON in Settings when trying to inject xtra.bin manually). Known issues: 1) I *think* currently accuracy is being computed incorrectly. Need to look into it a bit further, but yeah don't put too much stock in the accuracy information. Download: 02-12 gps.xdandroid.so |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Thanks man, will try this now.
Sweet! This works on OMGB as well. Just be sure to rename gps.rhodium.so to gps.rhodium.bak or whatever, then take gps.xdandroid.so and rename it to gps.rhodium.so. I also chmodded it to 644, to match the other files. |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Reserving in case thread becomes insanely popular.
|
Re: [TESTING] CDMA rhod AGPS (XTRA) support
1 Attachment(s)
Quote:
1. Will XTRA data get injected automatically if you boot with GPS off and then turn it on? Your explanation above seems to say "no", but I wanted to be certain. 2. I rebooted with GPS on and the new lib, I am seeing the two lines you posted, but it is followed by what appears to be a failure message. Code:
02-12 13:11:44.300 D/gps_rpc ( 121): pdsm_xtra_set_data(0, 1f40, 0, 0x407d84b0, 400, 94, 100, 1)=1 I'm running OMGB on a RHOD400 with Boost service, I'll try getting a position lock next, but wanted to post about the possible log issue. |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
Quote:
I just took a look at your log and I see the same sequence of trailing dispatches after the injection is over, so I assume the gps lock never worked for you. Could you try manually asking for the injection by using tytung's aGPS Injector? |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
Quote:
I tried another test this evening (no logs, sorry). Pulled the battery around 4:30pm. Took the phone out with me tonight around 5pm while doing some grilling in the snow, popped the battery in and booted the phone (left GPS on before I did the battery pull). The phone booted, I loaded Maps and had a lock in something like 15-20 seconds. Maps claimed +/- 10 meters accuracy. If a cold start set of logs while outside would be useful let me know and I'll do it up. I'm going to beat on it a little tomorrow, using it for navigation to and from work. |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Thank you so much for trying to get this working. It is one of the features I have missed sooooo much.Do you have to use gps.xdandroid.so , or can you just use the manual app Leo AGPS Injector?
|
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
|
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Missed yesterday, but ran navigation this morning and everything was flawless (minus the accuracy issues).
I had booted with GPS off, gave the system about a minute to try and lock with no luck so I rebooted with GPS on. It had lock within 10 seconds of rebooting and getting Maps loaded. I've downloaded the injector app so I don't have to do that any more. Only problem (possibly unrelated) is shortly after stopping navigation the phone had a full blown SOD. /proc/last_kmsg will be in the OMGB thread since that's my base distro, but I looked and didn't see anything obvious. |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
|
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Just a quick update, but this has worked flawlessly several times now.
Even more impressive is that I haven't experienced a single lockup while using Maps/Navigation. The previous version of the lib would reliably (50/50 or so) lock up my phone with more than 20 minutes of usage. And the injector works great for those times I forget to leave GPS on when rebooting. |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
|
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
|
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Hi detule, thanks for sharing this!
I'm running GBX0B on my RHOD500, and I've replaced the file correctly but I think there's something wrong with my phone or something else because I cannot get a gps lock. I ran a logcat and I noticed this around all the log: Code:
D/gps_msm7k( 1302): gps_state_init: done Code:
D/gps_msm7k( 1302): gps_xtra_inject_xtra_data: inject part = 97/97, len = 90 |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
|
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
Here's: Logcat BTW, I've found those things on the log (is not related to this thread, but it will be good if someone can point me to what does it means) Sorry for the off topic detule :-P Code:
D/RenderScript_jni( 1291): RenderScript JNI library not found! |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
Code:
D/gps_rpc ( 1302): pdsm_xtra_set_data() is called: clnt_stat=0 clnt_stat=0 is what you want, meaning RPC_SUCCESS, i.e. we hailed the rpc router with a correctly formatted message and it returned success. So looking at your log it *should* be working. I don't recognize your radio version and/or carrier. Is this a cdma operator? If so, I am not suggesting you do this, but perhaps the verizon radio (which I am using) makes a difference? Note I am not suggesting you do this, since I have no idea what kind of an effect flashing the verizon radio would have considering you are using the device abroad (could render it useless for all i know). |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
|
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
Tytung's app should work as well. However, there still are some things that are not implemented, so they might not work. What radio version are you running? It's quite possible the radio version is the culprit, as that also has GPS stuffs in it. |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
I also have heard that my city have some kind of problem with GPS system :D I know, it sounds weird but some people of the same carrier with the same phone reports biggest success getting a GPS lock outside of my city just using QuickGPS and Google Maps under Windows Phone. Anyway, GPS is not something that I use everyday...I will try again this week on my university since it has a perfect unobstructed view to the sky, maybe I'll get better luck ;-) |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
But you're already on a Verizon radio, so I would suggest upgrading to 2.37WV. Like I said, you're already on a WV radio. |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
OK, no visible improvement on my rhod210. Testing indoors tho, I suppose I ought to step outside where there's a better chance of seeing a satellite?
|
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Rhodium 100 log:
Code:
11:37:46.966 Debug gps_msm7k 128 gps_xtra_inject_xtra_data: inject part = 80/100, len = 400 Did work or not? |
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Quote:
|
Re: [TESTING] Rhod AGPS (XTRA) support
1 Attachment(s)
I finaly got droid explorer working, and tried this patch. I don't think it is working though. I have attached my logcat file here. Can someone with more experience take a look and see what they think. I am seeing a lot of
gps_rpc ( 219): dispatch_pdsm() received unknown procid: 5 Thoughts? |
Re: [TESTING] Rhod AGPS (XTRA) support
Quote:
The injection seems to have gone fine, but there's nothing in your logs about you trying to use GPS to get a lock (look for gps_start/gps_stop). |
Re: [TESTING] Rhod AGPS (XTRA) support
I've updated my device radio to version 2.37, but doesn't seems to improve the GPS on my Rhod...I left the phone on the window for about 30m but no luck getting a lock...I'm not posting logs this time because they looks like my previous log where detule said that it should be working...The only thing I noticed this time is that the radio log shows those lines when I'm using any GPS app...Don't know if this is relevant (probably not, excuse my ignorance)
Code:
04-05 20:38:10.775 D/AT ( 1284): AT< $HTC_PDSS: 1 |
Re: [TESTING] Rhod AGPS (XTRA) support
Quote:
What are you using to test getting a lock with it? GPS Status is good. Also, try it outside. Doesn't always work near a window (but should work better). |
Re: [TESTING] Rhod AGPS (XTRA) support
Quote:
Make sure to take out the battery when testing these things for 5-10mins after each GPS lock to ensure a cold start for the next testing run. Please do include a full GetLogs output. |
Re: [TESTING] Rhod AGPS (XTRA) support
Quote:
-----------------------17/04/2012 After testing the GPS for a few days, it definitely works for me now! |
Re: [TESTING] Rhod AGPS (XTRA) support
Testing is over -> this feature has been incorporated in GBX0C (or newer).
Mods please close this thread. Thanks to everyone who participated. |
Thread closed.
Sent from my PG86100 using Tapatalk 2 |
All times are GMT -4. The time now is 01:39 PM. |
Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com