Post Reply

Can someone support the USB GPS

OP liu2002

25th March 2012, 08:13 PM   |  #41  
Junior Member
Thanks Meter: 1
 
16 posts
Join Date:Joined: Jan 2009
Hi, just a little followup on UsbGPS4Droid_alpha3.apk. I was not able to run it successfully until I enabled GPS functionality in build.prop. Or, one can just enter setprop gps.enable true from command prompt to make it work.

Thanks for the prog btw. Will try alpha4 now! Have you by any chance added 'start on boot' option?
27th March 2012, 09:26 AM   |  #42  
Senior Member
Thanks Meter: 65
 
207 posts
Join Date:Joined: Jul 2007
Quote:
Originally Posted by liu2002

I have already use this app and this really worked and can find stars,but the only problem is should run the script I have posted in previous post.


su root
stty -F /dev/ttyUSB0 ispeed 4800

After the script you can use the app. I test it use the gps status and get many within 10s. And also use it to navigate in g-map. Though with this problem but I fell the usb-gps app is all I want to be.

Sent from my GT-N7000 using XDA

Just a little question ? I guess we can use the GPS device for input and output, so why do you only change the input speed ?
28th March 2012, 07:19 PM   |  #43  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jan 2011
Thumbs up
Quote:
Originally Posted by herbert1

Here is a quick and dirty adapted version of BlueGPS4droid in order to read NMEA data from a file/device.
Instead of giving the name of a bluetooth device you have to give the path of a file.
Don't know if it will work: since I don't have any usb Gps, I cannot test.
However it's working with plain files, so I hope it will also work with /dev/ttyUSB0.

You should be able to see on the logcat if it recognizes NMEA sentences or not.
If you can post a copy of the logcat it could be useful for me.

If it's working, I will put the code in a new repository (forked from BlueGps4Droid), clean the code, re-inject other languages and advanced functionalities we have inblueGPS4droid, etc.

How to use it :
0) plug the GPS usb device
1) allow GPS use, if possible (don't know if you can)
2) enable mock locations in "Settings/Applications/Development/Allow mock locations" (It's important !)
3) start UsbGps
4) choose a NMEA device (device path: ako /dev/ttyUSB0 - it has to be readable ! )
5) eventually activate "auto-enable location provider" in "location provider options" (useful if you cannot enable "Use GPS satellites" option (in step 1)
6) start the service using the start checkbox
7) look if something happens in the logcat...

I wish I could hit the Thank button for your post but I don't see one anywhere. Maybe I'm too new. In anycase thank-you. Before I came across your project I was using serial communication to get NMEA strings off the GPS. Makes it difficult for me to run multiple services dependent on location data due to I/O blocking. Your solution using mock providers is much superior.
Last edited by netglitch; 28th March 2012 at 07:32 PM. Reason: I accidentally a word
22nd May 2012, 11:11 PM   |  #44  
Senior Member
Thanks Meter: 65
 
207 posts
Join Date:Joined: Jul 2007
Hi,

Someone stated that I should call "busybox stty -F ..." instead of "stty -F ...", because, if busybox is installed, stty isn't a standalone binary.

For me it makes sense.

Are some of you using something else (than busybox) and, as I cannot test myself, can you confirm that it's working ?

Herbert
The Following User Says Thank You to herbert1 For This Useful Post: [ View ]
23rd May 2012, 08:20 AM   |  #45  
Junior Member
Thanks Meter: 1
 
16 posts
Join Date:Joined: Jan 2009
On my box both are working, but why don't you try it yourself anyway?
6th August 2012, 08:51 PM   |  #46  
KiLLWarez's Avatar
Junior Member
Thanks Meter: 0
 
24 posts
Join Date:Joined: Feb 2006
Anyone tried to connect USB GPS on ICS?

I want to connect MTK GPS bridged to USB with CP2102.
9th August 2012, 09:06 PM   |  #47  
Senior Member
Thanks Meter: 65
 
207 posts
Join Date:Joined: Jul 2007
Quote:
Originally Posted by KiLLWarez

Anyone tried to connect USB GPS on ICS?

I want to connect MTK GPS bridged to USB with CP2102.

blueGPS is working on ICS and Jelly Beans (galaxy nexus) , so I think USB GPS should work on ICS.

Herbert
17th August 2012, 12:41 PM   |  #48  
KiLLWarez's Avatar
Junior Member
Thanks Meter: 0
 
24 posts
Join Date:Joined: Feb 2006
Successfully connected MTK GPS device bridged to USB with CP2102 to today famous Mele A1000. It was flashed to ICS, then added CP210x module to kernel, then set speed manually in your app. After that my nav app found sattelites in seconds. herbert1, thank you for your app!
18th August 2012, 05:46 AM   |  #49  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Aug 2012
Quote:
Originally Posted by KiLLWarez

Successfully connected MTK GPS device bridged to USB with CP2102 to today famous Mele A1000. It was flashed to ICS, then added CP210x module to kernel, then set speed manually in your app. After that my nav app found sattelites in seconds. herbert1, thank you for your app!

Could you please explain how to add the cp210x module to the kernel! As I'm trying to get a cp2104 to work with a MK802..

Many thanks
Zero
18th August 2012, 02:01 PM   |  #50  
Senior Member
Thanks Meter: 65
 
207 posts
Join Date:Joined: Jul 2007
Quote:
Originally Posted by KiLLWarez

Successfully connected MTK GPS device bridged to USB with CP2102 to today famous Mele A1000. It was flashed to ICS, then added CP210x module to kernel, then set speed manually in your app. After that my nav app found sattelites in seconds. herbert1, thank you for your app!

Thanks for the feedback

Herbert

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes