[DEV][PORT]GLONASS Support - better accuracy of navigation![REACTIVATION]

Search This thread

BzArEx

Senior Member
Nov 30, 2011
306
77
Rzeszow
I'm going to test on ivendor's CM9 3.1. But first i have to backup my Shadow0 Rom and install CM9 ;) I use navigation with GLONASS support so it will be useful.
So after first test accuracy is a little bit worse than stock gb. Also I don't see any new satellites. Screen included.
e5anumep.jpg
 
Last edited:
  • Like
Reactions: Karls0

BzArEx

Senior Member
Nov 30, 2011
306
77
Rzeszow
Yes, only GPS satelites but it mean i didn't break GPS... still good ;)
Second try, I renamed one library and now it may work.

Ok now I tried inside building no change strange things with accuracy meter are happening.

Sent from my GT-I9001 using xda premium
 

Attachments

  • uploadfromtaptalk1348759936914.jpg
    uploadfromtaptalk1348759936914.jpg
    63.7 KB · Views: 536

Karls0

Senior Member
Apr 9, 2012
921
302
Here is 3rd version for test, I hope it will works. If not it may mean that it's kernel related.
Now the name of lib is correct and it will replace default.
 

Attachments

  • GLONASS_ALPHA3.zip
    167.5 KB · Views: 103

Karls0

Senior Member
Apr 9, 2012
921
302
I think it's better to format system, in last try i wrote wrong name of one lib and now ii can do problems if is not deleted
 

Karls0

Senior Member
Apr 9, 2012
921
302
If it will not change anything I will be confused - I'm starting thinking that this zip doesn't install.
 

Karls0

Senior Member
Apr 9, 2012
921
302
@ BzArEx
Put this files(unzip) in system/lib/hw, i rather expect that it will brake gps or enable glonass than don't do anything.

@Up - I will update when it starts work ;)
 

Attachments

  • TEST.zip
    28.7 KB · Views: 73
  • Like
Reactions: Skar3 and BzArEx

BzArEx

Senior Member
Nov 30, 2011
306
77
Rzeszow
@ BzArEx
Put this files(unzip) in system/lib/hw, i rather expect that it will brake gps or enable glonass than don't do anything.

@Up - I will update when it starts work ;)

I've put those files manually restarted phone and I can't see any change besides faster fix (last satellite number is still 32).
5apejyqu.jpg

Even in bad conditions like in building Glonass satellites aren't visible.
Wysyłane z mojego GT-I9001 za pomocą Tapatalk 2

---------- Post added at 08:17 PM ---------- Previous post was at 07:52 PM ----------

So if I decided to test some things on my phone let's try Jelly Bean. Maybe this will make the difference :)

Wysyłane z mojego GT-I9001 za pomocą Tapatalk 2
 
Last edited:
  • Like
Reactions: XeLLaR* and Karls0

Karls0

Senior Member
Apr 9, 2012
921
302
Ok, Thank you. I think it's another lib for gps and glonass. So far I worked only with gps libs. It's time to do bigger research. It may be too kernel releated - if it is i have problem. I never build kernel before. I have ready environment on my ubuntu 12.04 but i tried to build only full rom. I hope it works similar.

Regarding faster fix - maybe this arc S lib have better optimalization?

Edit:
Ok another try: Now with totally different gps lib
 

Attachments

  • GLONASS_ALPHA4.zip
    156.7 KB · Views: 189
Last edited:
  • Like
Reactions: BzArEx

BzArEx

Senior Member
Nov 30, 2011
306
77
Rzeszow
OK it's just bad time to test. Now my phone connected to one satellite no. 31. Maybe weather conditions are to poor.


Old answer:

OK I've tested alpha 4. Something happened GPS can't fix now. Above me are very high clouds and I am in building but I'm sure that phone now can't fix position.
 
Last edited:

Karls0

Senior Member
Apr 9, 2012
921
302
If alpha4 doesn't work i found one solution. We need to created modified libgps.so library which force chipe to ues GLONASS (this trick was used to enable AGPS in one HTC phone). But I'm not a programmer, so I need help.
 

oisis

Senior Member
Oct 9, 2008
1,251
2,095
Out of nowhere
If alpha4 doesn't work i found one solution. We need to created modified libgps.so library which force chipe to ues GLONASS (this trick was used to enable AGPS in one HTC phone). But I'm not a programmer, so I need help.

In last/all zip you have wrong lib name, should be something like this: gps.ariesve.so if it is for ICS roms, i think that you need change/add libs and this:
NTP_SERVER=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
SUPL_HOST=supl.google.com
SUPL_PORT=7276
to this:
TP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://gllto.glpals.com/4day/glo/v2/latest/lto2.dat
XTRA_SERVER_2=http://gllto.glpals.com/4day/glo/v2/latest/lto2.dat
XTRA_SERVER_3=http://gllto.glpals.com/4day/glo/v2/latest/lto2.dat
SUPL_HOST=supl.google.com
SUPL_PORT=7276
don't remember file name :), and maybe needs some patch for kernel, not sure. If somebody will find way to port it(some good description) what needs to be changed then i can try to do it. I don't have time for research :(, sorry.
 
Last edited:

Karls0

Senior Member
Apr 9, 2012
921
302
Thank you for help ;)

I tested both names, and in ivendor cm9, and paranoidandroid, this libs is msm7x30. Ariesve was in old Arco builds.
The code you cited is in gps.conf. I doubt it is needed (i make only A-GPS and somethink like A-GLONASS) but i will test it. Alpha5 should be released soon.

I need help with this:
I think we need modified libgps.so file like in this patch to HD2 which add AGPS support:
http://xdaforums.com/showthread.php?t=1100114

Or we need to port all GPS modules with kernel changes, but i can't find anything about it so it will be blind tries.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    I created this thread because I found interesting thing about our devices. Many people complain about work of GPS in i9001. Slow fix, and disconnecting are only part of problems. Yesterday i was reading about navigation and found a solution. All Qualcomm Snapdragon S2(so our MSM8255T too) series chips support both GPS and GLONASS. GLONASS is russian system of satellite navigation. In GPS system are 27 satellites and in GLONASS we have extra 24. It look that our devices uses only half of power.

    More here:
    http://www.phonearena.com/news/All-...vices-supporting-both-GPS-and-GLONASS_id24830
    http://en.wikipedia.org/wiki/GLONASS

    EDIT[04.12.2012]:
    I reactivate this thread, I hope any real developer will port it. If you have any idea post it here, or just search this thread and look any of this *zip make it work even partially.
    6
    I use it for geocaching so good accuracy is priority. I'm working on port this from Xperia Arc S, hope I will release first .zip soon. I'm not sure it will worke but have some ideas ;)

    Edit:
    OK first test: I added some libraries, let's see what changed. I recommend to test it only on CM9-based roms. I'm almost sure it will not work on GB

    Instruction(remember to make backup):
    1. Reboot to recovery (CWM or TWRP)
    2. Wipe cache and dalvik (full wipe not needed)
    3. Install zip
    4. Wipe cach and dalvik
    5. Fix Permissions
    6. Test

    To test use one of this apps:
    1. https://play.google.com/store/apps/details?id=com.chartcross.gpstest&feature=search_result
    2. https://play.google.com/store/apps/details?id=com.gpsdatamonitor&feature=search_result

    Check PRN's number of satellites. GPS numbers are 1-32 and 65-92 are for Glonass. If you can see these higher numbers it means it works!

    WARNING! I'm not responsible for any damages or bricked phone ;)
    4
    Yes, only GPS satelites but it mean i didn't break GPS... still good ;)
    Second try, I renamed one library and now it may work.
    3
    Can you tell a little more why it's not possible?

    Software or Hardware related, in fact what GPS chip is used in the i9001 ?

    is not possible because we don't have hardware support, we have only gps support. the fact that ALL snapdragond S2 has hardware support for glonass is only a speculation, if you read the article linked in OP, it says that "Qualcomm has announced today that both its Snapdragon S2 and S3 chips now can use not only the 27 GPS satellites to narrow down your location, but also the Russian navigational system GLONASS and its 24 satellites."
    well, the article is from december 2011, our phone has been released in july 2011, so if the announcement is from december it is referred to only the snapdragon S2 models released AFTER december.
    3
    REACTIVATION!

    I want to start discussion and porting again. I tested system libs and it look it is not releated with it. Any ideas?