yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] reaper1412:
I'm planning to buy this one to pair with my SGS.

http://www.globalsat.com.tw/products-page.php?menu=2&gs_en_product_id=2&gs_en_product_cnt_id=23

It is cheap and from what I've read it has a good performance.

Do you ave another recommendation?
[Galaxy S I9000 Android Development] gekkekoe123:
Yes that one should work fine according to the spec.

btw, updated release http://iloki.nl/2011/07/27/update-27072011-android-235/

now with android 2.3.5
[Galaxy S I9000 Android Development] xavivars:
Do you think this feature will be ever merged on official CM7 kernel?
[Galaxy S I9000 Android Development] gekkekoe123:
I sure hope so. Would hate the idea that i've spent all that time for nothing...

When it will be merged, It will be merged in the framework not kernel ;-) It's under review now. you can follow status here: http://review.cyanogenmod.com/#change,6908

OTOH. CM is RC phase, so I don't know when it will be merged or what I need to modify. I've been using it for the last month now and it is working well. If more ppl are interested I could put up a prebuilt i9000 rom synced with the nightlies more often. Since I haven't received any feedbacks/bugs (Although I couldn't find any issues myself after a month of heavy usage) yet, I didn't bother putting up new roms.
[Galaxy S I9000 Android Development] gekkekoe123:
synced with latest patches.

(yes has GB bootloader stuff in it)
[Galaxy S I9000 Android Development] arj03:
Awesome stuff! I still have an old external nokia GPS lying around. Might just give this rom a go :)
[Galaxy S I9000 Android Development] SkOrPn:
I think this is a great project. Since the Sammy phones have awful GPS for the most part, I also got the GlobalSat BT-359 in the hopes it would improve my GPS situation. The problem is that it requires 3rd party apps like "Bluetooth GPS Provider" from the market and well I am finding out that these apps do not work so great. I cant even get any Satellites to show up in GPS Test Plus. And Google Maps has me all over the place, not exactly where I am walking at the time. It shows me walking through solid brick walls etc, lol. I'm wondering if this will improve that situation, or if its just my GPS receiver that is not very accurate.

Oh and didn't Ricardo Cerqueira approve this code for implementation into CM source?

Thanks for your hard work on this project. Its much appreciated.

SkOrPn
[Galaxy S I9000 Android Development] gekkekoe123:
It's the way the mock provider interface is designed that doesn't allow it to send gps sats information.

The BT gps provider has a sat view built in. But it cannot send the data to other listeners. With regard to accuracy, there should be no difference between my implementation and that of the mock providers.

Try to record a track with mytracks and see if it is ok. I have a qstarz 818 and that one is performing very well. Remember that weather, urban area with loads of tall buildings affect your gps performance.

To answer your last question, the source code review status hasn't changed yet. The devs are probably busy with the 7.1 release.

Just updated build again. Try this build with a GB bootloader. It gave me great battery life!
[Galaxy S I9000 Android Development] SkOrPn:
Wow, Ok, well my bad then. It was terrible weather out at the time, very dark heavy clouds everywhere with heavy rain just a few miles from me, and I was walking around a 3 story building. So now that I think about it your right, I was probably getting pretty descent results then. Back in late 2010 I was on a TW rom that would have kept my position almost perfectly (the little blue arrow would be pegged on my body while I was sitting on the couch), but every since real froyo builds and especially GB builds came along, it has been dismal at best and if I get any position report at all it says Im like 50 or more feet away. I even did the soldering thing to my antenna last year, lol, which was easy for me considering Im a electronics tech... I almost feel that something has gone wrong with my GPS radio, burnt out or damaged from so much flashing or something, but it never see's more than three sats no matter what rom I try these days. Im really hoping this BT gps thing changes all that tho. Or someone finally writes excellent drivers for the internal gps chip.

Birgertime is a friend of mine, so he said he will try and find time to include this into one of his future builds if its Ok with you. He ONLY uses cm source though, so I need it included into the source commits in order to spare him the extra work. Here's to hoping

EDIT: And I don't think I can use your rom build because its for the i9000 and I have the T959. Or can I? lol
[Galaxy S I9000 Android Development] gekkekoe123:
Thats the whole idea behind the release of the patch :) so that ppl with other phones could build it. I cannot build vibrant rom because i'm not owning one. Your friend only needs to apply 2 additional patches. Would be nice to have a solution for the vibrant users. Let me know if it works out. My prebuilt rom is for the i9000 only, so don't flash that on your vibrant.

What you or your friend could do is to supply me the following folders after executing extract-files.sh

DEVICE=vibrantmtd
COMMON=aries-common
MANUFACTURER=samsung

../../../vendor/$MANUFACTURER/$DEVICE/proprietary
../../../vendor/$MANUFACTURER/$COMMON/proprietary

substitue $MANUFACTURER, $DEVICE and $COMMON and zip the folder and send me the files.

I then can build a vibrant rom for you vibrant users...
[Galaxy S I9000 Android Development] gekkekoe123:
Uhm ;-) ignore previous post, I've downloaded a galaxy vibrant nightly and extracted the required files.

check http://iloki.nl/2011/08/06/update-06-08-2011/ for a prebuilt rom ;-)

Have fun
[Galaxy S I9000 Android Development] SkOrPn:
Ahh very cool. Sorry, you were doing this during my bed time, lol... In fact I went to bed just moments before you requested the files above. Again sorry...

Thanks for your hard work and I will see what I can do. P.S. I did find that thread you posted in the Vibrant section and I commented to let people understand that this does not improve the internal GPS, but rather allows us to use an external BT GPS device. I hope they realize this before downloading the rom, lol. Thanks again...
[Galaxy S I9000 Android Development] SkOrPn:
Ok, looks like I got the latest Trigger rom updated. Will flash and test later and let you know how it turns out. Thanks again
[Galaxy S I9000 Android Development] gekkekoe123:
Ah cool. Trigger merged my patch ? Nice!

Doesn't matter regarding files. I realize I could extract the required files myself after typing that message ;-)
[Galaxy S I9000 Android Development] SkOrPn:
No, not quite. He just patched the files in question "CMParts.apk" and "Framework.jar" and sent them to me to put into the latest rom.zip myself. I dont think he included it into Trigger yet, but might be on next build. He just did the patching for me and gave me the patched files I think...

I will let you know if Trigger gets this patch officially though. Would be nice since its one of the more heavily used Vibrant rom's...
[Galaxy S I9000 Android Development] gekkekoe123:
Let me know if this works, because if it does... then I can distribute next updates as the jar and apk only. This will results in support for All CM7 nightlies devices.

I had this idea of only distributing the patches files before but didn't test it. So i'm very curious.
[Galaxy S I9000 Android Development] Romanbb:
No no not quite. You could distribute it with just the jar/apk, but you'd have to update it every nightly update (wouldn't be hard, but just a pain).

I just did it this way so skorp can test it on his phone. If all goes well (Skorp is the test dummy) I'll definitely merge this in. No reason not to.
[Galaxy S I9000 Android Development] gekkekoe123:
Yes I know. Repackage after each nightly. But then I could have all CM devices that could help me testing...

I agree it is a pain since I have to control with changes i have to merge to be on par with the 'official nightlies'.
[Galaxy S I9000 Android Development] Romanbb:
Hardest part would be updating each thread haha
[Galaxy S I9000 Android Development] SkOrPn:
OK, so here is my screen shot with the new build rom flashed. This rom is not ready for upload as we are still testing it, but this external gps switch of yours is definitely there. Now I am going to uninstall the 3rd party app and get back with you in a few with my results... Thanks
[Galaxy S I9000 Android Development] gekkekoe123:
sigh...

I might do it when RC2 is released. But hopefully this stuff is merged by that time.
[Galaxy S I9000 Android Development] gekkekoe123:
You don't have to uninstall BT GPS provider. It can co-exists ;-). You can even use the 3rd party stuff with my stuff installed. But be sure that it is not running in the background. It will hold the connection and prevent my driver to setup a connection.
[Galaxy S I9000 Android Development] SkOrPn:
Ok, well lets go over this with a little more detail please. I have the switch now, and I have selected my device, but none of the apps are using GPS. GPS Test says that GPS is off, so I turned it on and it does not update, just stays yellow with it saying GPS is ON. So I restarted the device thinking I needed a restart after selecting my BT mouse as the gps receiver to use. This also did nothing.

What am I doing incorrectly? I have no SIM card, and I even turned off WiFi just incase that was the problem. Google Maps is cached so I do not need a data connection. Any Ideas?

EDIT: Im defo doing something wrong, it now shows me about 1000 feet north of my actual location, ouch... lol
[Galaxy S I9000 Android Development] gekkekoe123:
What does adb logcat says ?

Did you pair with your gps mouse ?

Select the GPS device after pairing (in the cm menu/system setting). Only need to restart if you changed the device.

switch on your BT gps, en enable your gps on your phone.

adb logcat should show "waiting for fix" or other debug messages. If you have BT provider installed, be sure to force stop it.

If your GPS stays yellow, it might not have a fix yet (are you testing in doors?). But a adb logcat would be helpful :)

Does you gps unit have some status led that lndicates if it has a fix?
[Galaxy S I9000 Android Development] SkOrPn:
Yes, I followed your instructions to the letter. So, I installed the GB Bootloader, which is preferred for the Vibrant as it provides better battery and slightly improved stability, etc. The only thing we lose with GB Bootloaders is the external sdcard, no biggie.

After installing the GB Bootloader, I still can not get a fix. Yes, I am indoors but my mouse has a blinking green light which indicates it has a GPS fix and is receiving gps data. Sygic seems to show my location, not sure how, but the normally orangish colored person figure is greyed out, but still showing my location (I have no clue). The GPS Mouse says I am paired but not connected and so does the Bluetooth settings on the phone. The blue led on my mouse is blinking slowly which means it is not currently connected to any gps requesting app.

I tried with Birgertimes GPS fix both enabled and disabled, neither changes anything. Im now going to unpair and delete the mouse from the phone, and then try repairing it. maybe it did not like the original pairing? lol

Logcat posted below.
[Galaxy S I9000 Android Development] SkOrPn:
Oh here are the files I pushed into the rom, just in case you want to take a look at them. Thanks
[Galaxy S I9000 Android Development] gekkekoe123:
it sounds like no bt connection could be made. i will check the logs.

do you see that gps is enabled in power widget?

do you see a blinking gps icon in the menu or none at all?

if all fails try my vibrant rom. I am going to look into the logs
[Galaxy S I9000 Android Development] SkOrPn:
Yeah Im thinking bluetooth is broken on my rom I guess. GPS is enabled, BT is enabled, still showing me roughly 2000 feet north of my actual location. Mouse says it has a fix.

For reference, Im going to enable the Internal gps once again, and then re-try the GPS Provider from the market, that way we have more info. brb, will let you know what happens...

EDIT: Ok, what info would you like now? I just finished installing "Bluetooth GPS Provider" from the market and immediately got 8 sats tracking and Google Maps is showing my exact location again... Anything I can do to help you figure this out I can do, except I would prefer not running another ROM. I have to keep beta testing Trigger 806a before we can release it..
[Galaxy S I9000 Android Development] gekkekoe123:
you need to enable your gps via power widget after enabling the mouse. just treat ext bt gps as if it was your internal.

if it does not connect toggle gps enabling in power widget. it will retry connecting. It think that it fails to connect after booting.

i don't see any refs to my driver. you prob have not enabled the gps

The moment you enagle GPS you should see debugmessages like this:

D/BTGpsLocationProvider( 196): handleEnable
D/BTGpsLocationProvider( 196): mEnabled -> true
D/BTGpsLocationProvider( 196): mStatus -> temp unavailable
D/BTGpsLocationProvider( 196): btservice start
D/BTGPSService( 196): start
D/BTGPSService( 196): setState() 0 -> 1
D/BTGpsLocationProvider( 196): Connecting to saved pref: xx
D/BTGpsLocationProvider( 196): Connecting...
D/BTGPSService( 196): connect to: xx
D/BTGPSService( 196): setState() 1 -> 2
I/BTGPSService( 196): BEGIN mConnectThread

I don't see them in your log. This implies that the framework.jar is not ok or its using a cached version ? try clear dalvik cache. Bottom line, you need to see those debug messages.

edit: Ok figured it out. I decompiled the framework.jar and it doesn't have my classes. It should have the BTGpsservice, btgpslocationprovider and nmeaparser classes in the framework. They are missing. It seems that the framework patch was not applied :)

edit2: Ok my bad, the providers are in system/services.jar Your friend should give you the updated services.jar and then it should work
[Galaxy S I9000 Android Development] SkOrPn:
Ok cool, I will disable BT GPS Provider and try this again. I will wipe caches dalvik etc. will keep you posted. Do you know IRC by chance. It would be MUCH faster if we could IM through this process unless your too busy today. Im 24/7 hanging out in #teamwhiskey and #einherjar, on the popular freenode servers.

EDIT: Is it possible I installed the files incorrectly? All I did was use winrar "add files" feature and was done with it. Was there something else I needed to do with winrar that I perhaps missed? lol
[Galaxy S I9000 Android Development] gekkekoe123:
You need the following:

- CMParts.apk (adds option to switch GPS receiver)

- services.jar (adds BT gps location provider

- framework.jar (adds setting to remember BT receiver decision)

But I'm afraid my checkouts are from different commits than birgertimes. We checked out at the same date but different time ;-) But it's worth trying. The files linked above are mines.

Isn't it easier for birgertimes to pull my commits from review.cyanogenmod.com ?
[Galaxy S I9000 Android Development] gekkekoe123:
For ppl who whish to build the rom them self.

execute these 2 commands after repo sync:

-patch cmparts
cd packages/apps/CMParts
git pull http://review.cyanogenmod.com/p/CyanogenMod/android_packages_apps_CMParts refs/changes/09/6909/8

-patch framework
cd frameworks/base
git pull http://review.cyanogenmod.com/p/CyanogenMod/android_frameworks_base refs/changes/08/6908/8

and then build!
[Galaxy S I9000 Android Development] gekkekoe123:
I've made a movie to show how to use it since I got questions from users.

See it in action !

[YOUTUBE]WJBPoGQm20U[/YOUTUBE]
[Galaxy S I9000 Android Development] SkOrPn:
Wish my GPS Test would show that many sats for me. lol
[Galaxy S I9000 Android Development] gekkekoe123:
I've done some cosmetic tweaks. Doesn't affect gps performance. Only helps to display sats refresh (reduce blinking)

@scorpn: This was indoors ;-)
[Galaxy S I9000 Android Development] gekkekoe123:
I actually added some more features and fixed an orientation issue. Now it can automatically determine and set the refresh rate. I've only replaced the rom and md5 sum. Go download :)
[Galaxy S I9000 Android Development] SkOrPn:
Well I flashed the latest Trigger beta dated the 12th. This one has your BT GPS and it works this time. But I do have a problem, when using GPS Test the satellites come and go, but the data seems to remain. I mean it shows 10 sats for a second and then all ten disappear for a few seconds, and then they come back. On and Off, On and Off, on for a few seconds and off for a few seconds and it repeats endlessly. When I use Google Maps it is working now. The blue dot is not very accurate, but the mapping apps and directions etc seem spot on. Wanted to try Sygic but the lousy 7 day trial expired. Is there another worth while turn by turn app I can try to see how accurate it may be?

Any Ideas why GPS Test is showing sats coming and going? I tried to take video but my camera died in the middle of it and I dont have new batteries off hand... lol
[Galaxy S I9000 Android Development] gekkekoe123:
its cosmetic. but did trigger sync patchset 14?

it should have fix the sat flashing. i always cleared sat data before loading in new data.

if the mouse isn't fast enough, then a blank sat data can exist. though this doesn't affect gps performance. sats data info is just for the "show' ;-)

but trigger needs to sync latest patches. it will dynamically determine refresh rate and thus that flashing should be gone. or at least reduce it to a minimum. I don't rarely have flashing now. Only if i set to 10hz :)

if you are on latest patchset and still have flashing sat data, please send me logcat.

it could be that your mouse sends halve sentences or only sends in sats info once overy 2 or 3 seconds.

with regards to accuracy. i'm using an estimation now see review.cyanogenmod.com. bt gps provider uses hdop as accuracy which is too optimistic. It also has an option to correct it with base error factor of 3. the estimation is more realistic (4*HDOP), you can compare my numbers with the bt gps provider. other providers uses 5*HDOP or similar factor since we only have DOP values with NMEA.

hmm if you have the new estimation, then you have the latest patchset. it means that your sat info is only refreshed once a while ;-) get me a logcat and i can tell if this is the case. and double check if roman has last patchset.

Test navigation with actual driving, it will work. Navigon or google navigation should work fine. Or just record track with mytracks/endomondo
[Galaxy S I9000 Android Development] gekkekoe123:
I've done some more testing, especially with endomondo. Since this app and similar apps causes reboots in GB. I can inform that i've recorded a track for over 30 mins and this setup uses around 1% battery :) Oh it doesn't reboot and stuff, keeps working ;-)

Endomondo and other sport tracking software users please test and see if this solves reboots for you.
[Galaxy S I9000 Android Development] SkOrPn:
How do I go about verifying if I have patch 14?
[Galaxy S I9000 Android Development] gekkekoe123:
hmm do adb logcat, and see if you find any references to setting refreshrate

or switch internal gps -> BT gps, you should see an alert box.

But with adb logcat i can also determine.
[Galaxy S I9000 Android Development] SkOrPn:
heres my logcat
[Galaxy S I9000 Android Development] SkOrPn:
By the way, what if I need a patch from you? how do I go about installing it? We only release Trigger once a week or so, so I cant be asking for patches and new builds from Roman just for myself. Im probably his only user with a external gps device, lol. So, I will need to learn how to patch it myself, if you understand where Im coming from ;)

Thanks
[Galaxy S I9000 Android Development] gekkekoe123:
I've seen your logcat and it is as I expected.

Your sat data is only sent in once every 2 seconds while fix information comes in every second. I will correct this, but for now its cosmetic and does not affect gps performance. Don't worry about it.

patching is really easy, just 2 commands if you want to do it yourself.
[Galaxy S I9000 Android Development] SkOrPn:
Ok thanks for that information. Yeah if its cosmetic it wont bother me none. Thanks
[Galaxy S I9000 Android Development] gekkekoe123:
Posted new build. processed all feedback received through gerrit.
[Galaxy S I9000 Android Development] gekkekoe123:
Posted new build.

- Synced with CM 16.08.2011

- Added Auto-reconnect feature when a BT connection is dropped. It will retry for 5 times.

- Proper detection lost of GPS activity. The GPS receiver has to report at least once every time frame of 5*refreshrate. Else it will be considered as connection lost and a reconnect attempt is initiated

- fixed sat flashing for certain gps receivers

Feature wise it has everything now that i planned for it. Will only do bugfixing. This should be it.
[Galaxy S I9000 Android Development] SkOrPn:
Ok, I flashed the latest Vibrant Trigger 816 and I no longer have GPS. The option under System is no longer present. Ive flashed twice now, and going to try a 3rd time for a charm, lol...

Will let you know. Thanks

EDIT: Ok, yeah the Internal BT option is no longer present, so I have no way to select my BT GPS. I guess that means CMParts is the wrong version?
[Galaxy S I9000 Android Development] gekkekoe123:
yes means roman forgot to patch cmparts.

i will upload my cmparts. dunno if it will work on your rom. it should be ok though.

But you should still be able to use the BT GPS. Since the setting is still there, you just cannot change it ;-)
[Galaxy S I9000 Android Development] zerozoneice:
how's the camera 720p video choppiness and lowlight stutter lately, haven't followed CM progress in a while.

thanks!
[Galaxy S I9000 Android Development] gekkekoe123:
Dunno ;-) Don't use it. Should be the same as CM nightly 16.08
[Galaxy S I9000 Android Development] SkOrPn:
Yeah I found out that roman did not forget to patch it, when he synced with cm it just got over written. He is releasing a new build in a few days with Patch 16. In the mean time it looks like your CMParts.apk worked just fine on my phone. Thanks

But now for what ever reason my puck is no longer locking onto sats. I need to investigate this further, go outside or something. will let you know. lol

EDIT: Ok, well its not working. CMParts.apk gave me the option to use internal, but maps and gps test no longer uses the puck. Maps claims there is no location service selected or something like that and claims no location data is being received at this time. GPS Test shows a yellow dot and flashes some satellites, but does not show any sat data or accuracy or any in use sats at all. When I reboot phone, the "Use GPS selection" under location section in menu defaults back to no selection at all, and I have to re-tick the option, but it does nothing after re-ticking it. And for what ever reason it just took 15 minutes or so to find some locks on the puck, so not sure whats up with that. Its almost like the sats have somehow moved away from view or something.

So, currently No its not working for me again, lol.... (Err after all that typing its just started working) Jeez wait a sec, just checked again and now after 30 minutes of messing with it its all of a sudden working again, but with 12 sats in view and only 4 sats in use with 605 foot accuracy??? Ok whats going on now? Solar activity maybe? lol
[Galaxy S I9000 Android Development] SkOrPn:
Ok, I recorded a track using My Tracks and well it seemed ok for the most part. I used a very specific track so I could judge how the phone records my movements. Its not very accurate in my opinion, but doable. I cant seem to get clear skies these days, so if I can remember I will do some more testing when theres not so much storm clouds going on. None of this explains why it was so badly off earlier though, and why it took almost 30 minutes to start functioning properly. Im thinking it was possibly to cloudy and or interference somehow, although its much more cloudy now yet working better.

Its a cheap puck, so what can I expect right? lol...