|
||||
[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 02-12 00:23:34.985 D/gps_msm7k( 1312): gps_xtra_inject_xtra_data: inject part = 58/100, len = 400 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 Last edited by detule; 03-08-2012 at 11:23 PM. |
This post has been thanked 3 times. |
This post has been thanked 2 times. |
|
||||
Re: [TESTING] CDMA rhod AGPS (XTRA) support
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 02-12 13:11:44.300 D/gps_msm7k( 121): gps_xtra_inject_xtra_data: inject part = 95/100, len = 400 02-12 13:11:44.300 D/gps_rpc ( 121): xdr_xtra_data_args() is called: 0x407d8640, 400, 95, 100 02-12 13:11:44.300 E/gps_rpc ( 121): dispatch_pdsm() received unknown procid: 5 02-12 13:11:44.310 D/gps_rpc ( 121): pdsm_xtra_set_data() is called: clnt_stat=0 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. Last edited by mbellot; 02-12-2012 at 04:51 PM. Reason: Fixing up quoted log info |
|
||||
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? Last edited by detule; 02-17-2012 at 11:23 AM. |
|
||||
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?
Last edited by wizardknight; 02-13-2012 at 06:16 PM. |
|
||||
Re: [TESTING] CDMA rhod AGPS (XTRA) support
Read the first post carefully. You need gps.xdandroid.so The app is just so you can control when xtra.bin is injected.
|
|
||||
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
Glad it's working for you. I suspect the SOD has nothing to do with the gps lib - ACL seems to be on top of it.
|
|
|
|