[GPS/AGPS] REAL solution analysis thread (Jupiter Tweaks) - v006! - Froyo JI6

CLShortFuse

Retired Recognized Developer
Feb 28, 2007
684
942
0
I NEED A TESTER!!! I found what they use for blackberry GPS with the 4751 chipset.

<gll
LogPriMask="LOG_DEBUG"
LogFacMask="LOG_GLLAPI | LOG_NMEA | LOG_RAWDATA | LOG_DEVMS | LOG_DEVET | LOG_DEVKF | LOG_DEVMR | LOG_DEVCV"


FrqPlan="FRQ_PLAN_26MHZ_2PPM_10MHZ_100PPB"
RfType="GL_RF_4751_DANUBE_EXT_LNA"
BrcmRFwildBase="0x1E2D6409"
BrcmRFclkDiv="21"
BrcmRFclkRefHz="26000000"
/>

Who wants to test???
 

cesierra

Senior Member
May 16, 2008
216
10
38
Miami
Why does everytime I exit Google map and then I go back to the map I have to wait for the gps to get a lock again? Thats not the way it worked on my HTC Tilt. The lock remained in place.

Is this normal?
 

Joe1981AL

Senior Member
Apr 12, 2008
96
1
0
Noticed you updated the OP, and how the hell did you find info on glgps I could not find it anywhere...

The extra jobs that made up the rest of the file are for debugging, but only run if manually ran, the glgps daemon only parses the file as "/system/bin/gpsd/glgps_samsungJupiter -c /system/etc/jupiter.xml" so it just opens the ctrl pipe to the chip for access.

I did change the log location to the sdcard and enabled logging just to get some info, and looks like SBAS is turned on with high priority unless you modify and use feature sbas_priority=disabled

PM me, i'm willing to try anything to try and improve tracking.

Right now I have GPS Plus OFF in the lbstestmode to check but doubt will see improvement. I've made post a month ago saying that it must be something driver related or in jupiter.xml that samsung screwed up in implementation, if it is samsungs fault.

I do think samsung may be moving away from jupiter.xml and glgps interface, the vibrant doesn't use the glgps or jupiter.xml, it is commented out in their init.rc file. I don't have a full vibrant dump to go by just the GPS fix from their JI2 update.
 

Joe1981AL

Senior Member
Apr 12, 2008
96
1
0
I'll give it a try, I was looking for something like that, cause did you notice the big kicker on our RfType... It ends with "UNSTABLE"...

edit: the Log* lines don't matter unless you turn on logging in the "hal" section, only functional differences is the FrqPlan and RfType

I NEED A TESTER!!! I found what they use for blackberry GPS with the 4751 chipset.

<gll
LogPriMask="LOG_DEBUG"
LogFacMask="LOG_GLLAPI | LOG_NMEA | LOG_RAWDATA | LOG_DEVMS | LOG_DEVET | LOG_DEVKF | LOG_DEVMR | LOG_DEVCV"


FrqPlan="FRQ_PLAN_26MHZ_2PPM_10MHZ_100PPB"
RfType="GL_RF_4751_DANUBE_EXT_LNA"
BrcmRFwildBase="0x1E2D6409"
BrcmRFclkDiv="21"
BrcmRFclkRefHz="26000000"
/>

Who wants to test???
 
Last edited:

Dani897

Senior Member
Aug 16, 2010
3,613
670
0
Can sombody test this new jupiter.xml file i made. replace the existing one in /etc/jupiter.xml
I'm willing to try it, how do I install it, is it an update.zip? Signed/unsigned? Or is it just a compressed version of jupiter.xml? And meant to overwrite/replace the original manually after its extracted?

Sent from my SAMSUNG-SGH-I897 using Tapatalk
 

CLShortFuse

Retired Recognized Developer
Feb 28, 2007
684
942
0
I'm willing to try it, how do I install it, is it an update.zip? Signed/unsigned? Or is it just a compressed version of jupiter.xml? And meant to overwrite/replace the original manually after its extracted?

Sent from my SAMSUNG-SGH-I897 using Tapatalk
it's not an update. unzip the file to /etc/jupiter.xml

or with debug

extract the file
browse to where you downloaded it with command prompt
(or if you use win7 - start, run, cmd /k CD %userprofile%\Downloads\jupiter )
adb push jupiter.xml /sdcard/jupiter.xml
adb shell
su
cp /sdcard/jupiter.xml /etc/jupiter.xml
exit
exit
adb reboot

I don't expect you to get AGPS but I do expect the HARDWARE GPS to be more accurate.
 
Last edited:

Joe1981AL

Senior Member
Apr 12, 2008
96
1
0
I had made changes before you posted your jupiter file. I kept the stock file and modified the FrqPlan and RfType, didn't see any major errors in my log though I didn't dig deep. Did take a while but I did get a lock in my apartment by a window which shows I still get a lock. Had 3 high sats around 33-34 and a few lower ones that kept popping in and out. One few occasions where my palm treo pro wouldn't lock but the captivate did. I will drive around when I get a chance to log tracking.
 

CLShortFuse

Retired Recognized Developer
Feb 28, 2007
684
942
0
I tested it. I got good strength (I had 38.0dbHz which I don't think I've ever had. Maybe now we have a low noise amplifier?). But I couldn't get a lock. It seems like i broke it. The good thing is, I'm doing something so modifying jupiter does have an effect.
 

Dani897

Senior Member
Aug 16, 2010
3,613
670
0
Network assist is not a problem. There is no need to disable it.

Just take a test drive using Google Navigation. Ignore the fact that it always seems to be dead on your position (because all navigation software snap you to the nearst road). Instead, pay close attention to:

1. Whether or not you see a blue circle surrounding your position. If you do see that, your GPS has failed at that time and the size of the circle is the estimated inaccuracy of the GPS. You need to be patient because blue circle comes and goes randomly.

2. Pay attetion to certain landmarks like bridges, overpasses and intersections. And compare that to your position on the map to see if you experience lags.

3. The navigation software snaps you to the wrong road nearby even though you didn't see the blue circle.

In my personally experience, all three showed up randomly. I have no problem getting a quick lock at all.
Well then my gps is working, even before "the fix" in worked as good or better than my iphone 3g which isn't saying much, but it would fail only during overcast conditions. Now I get no blue circle even in overcast conditions. Its been cloudy for a couple days and I can stand anywhere and put maps on satellite view and measure my position to a land mark and be within a couple feet. Driving it holds a fix with no blue circle no run on arrow when I stop or turn 90 deg as long as the skies are clear. I guess being that my gps works and always has I may not be of use testing stuff.

I wonder if its a hardware flaw present on some phones but not mine?

Sent from my SAMSUNG-SGH-I897 using Tapatalk
 

CLShortFuse

Retired Recognized Developer
Feb 28, 2007
684
942
0
spill the beans, what are you trying?
This is samsung's "normal" fix operation:

Code:
  <job id="normal">
      <task >
      	<startup ignore_osc="true"  ignore_rom_alm="true"  ignore_nav="true" ignore_pos="true" ignore_ram_alm="true" ignore_time="true"/>
      </task>
    </job>
That's what you should for a COLD fix, not normal. It's resetting it's values when it tries to find a fix (which it should only do for cold fixes). Also, it's missing the <req_pos /> meaning it's never told to get a position. GRRRR

http://openembed.com/files/pdk15_imx35__Linux_RM.pdf
Page 231
 
Last edited:

Joe1981AL

Senior Member
Apr 12, 2008
96
1
0
This is samsung's "normal" fix operation:

Code:
  <job id="normal">
      <task >
      	<startup ignore_osc="true"  ignore_rom_alm="true"  ignore_nav="true" ignore_pos="true" ignore_ram_alm="true" ignore_time="true"/>
      </task>
    </job>
That's what you should for a COLD fix, not normal. It's resetting it's values when it tries to find a fix (which it should only do for cold fixes). Also, it's missing the <req_pos /> meaning it's never told to get a position. GRRRR

http://openembed.com/files/pdk15_imx35__Linux_RM.pdf
Page 231
for some reason I don't think samsung uses normal.. I've manually executed normal and it creates a /data/gpspipe to stream nmea data thats why there isn't a req_pos because req_pos is for single shots, or the task that get position on specific intervals without hold lock.

when running a program like gps test and I have a lock, there is no pipe @ /data/gpspipe
 

CLShortFuse

Retired Recognized Developer
Feb 28, 2007
684
942
0
I tried it and I had 7 [*] Fixes and 10 meter accuracy. I'm going to try enabling the low noise amplication setting.


for some reason I don't think samsung uses normal.. I've manually executed normal and it creates a /data/gpspipe to stream nmea data thats why there isn't a req_pos because req_pos is for single shots, or the task that get position on specific intervals without hold lock.

when running a program like gps test and I have a lock, there is no pipe @ /data/gpspipe
Regardless if <req_pos /> is required or not, it's clearing values when it shouldn't.
 
Last edited:

CLShortFuse

Retired Recognized Developer
Feb 28, 2007
684
942
0
I'm really greedy though. I know I improved it but I want it perfect. I'm going to compare with my G1 on Wifi (only 1 sim card)
 

phr00t

Senior Member
Apr 28, 2008
354
143
0
I'm really greedy though. I know I improved it but I want it perfect. I'm going to compare with my G1 on Wifi (only 1 sim card)
I want it perfect too... keep us updated! I'm going on a ton of road trips this weekend and I'd love to test out some new GPS "fixes" ;)
 

andars05

Senior Member
Jul 15, 2010
99
0
0
Keep it up guys! I'd also be willing to test some GPS fixes. I drive 45mins-1hr everyday and could run some mytracks/navigation tests.