• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Can someone support the USB GPS

Search This thread

erica_renee

Senior Member
Sep 16, 2010
2,482
527
52
Louisville
earthmate-lt40

I would love to use my earthmate USB GPS as well.its super fast lock with precision accuracy on my notebook.in the thread mentioned by Dexter there is possible solution if you know some programing.but no talk there about the earthmate one.there are alot of people interested in a module for this a Dec could make some moneyi do think hint hint
Giggles
 

Dexter_nlb

Senior Member
Feb 12, 2009
5,459
4,549
Copenhagen
I would love to use my earthmate USB GPS as well.its super fast lock with precision accuracy on my notebook.in the thread mentioned by Dexter there is possible solution if you know some programing.but no talk there about the earthmate one.there are alot of people interested in a module for this a Dec could make some moneyi do think hint hint
Giggles

important is: can you find regular linux support for it? then we can probably use it here too. otherwise not, so if you search and find references to it..
post it, and i can look at your links for linux support if such exists..
 

erica_renee

Senior Member
Sep 16, 2010
2,482
527
52
Louisville
yes that works withbthe internal gps.

Yes I have done that and it does help with the internal GPS.but I would like to get my GPS USB reciever to work.it locks quick and can be put on top my van.
 

liu2002

Senior Member
Sep 18, 2010
111
9
Does anybody run the code:
Code:
su root
stty -F /dev/ttyUSB0 ispeed 4800 && cat < /dev/ttyUSB0
I ran it and it works like gps status in windows. GPS can get the data but how to let the system to know these data.
 

herbert1

Senior Member
Jul 25, 2007
207
67
Does anybody run the code:
Code:
su root
stty -F /dev/ttyUSB0 ispeed 4800 && cat < /dev/ttyUSB0
I ran it and it works like gps status in windows. GPS can get the data but how to let the system to know these data.

Can do a
Code:
hexdump -c /dev/ttyUSB0
and show us what kind of data you have

I suppose standard NMEA sentences (GGA / RMC / ...). In that case we can perhaps do something...

If you could also do a
Code:
stty -a -F /dev/ttyUSB0
it would also give us more informations
 

liu2002

Senior Member
Sep 18, 2010
111
9
Can do a
Code:
hexdump -c /dev/ttyUSB0
and show us what kind of data you have

I suppose standard NMEA sentences (GGA / RMC / ...). In that case we can perhaps do something...

If you could also do a
Code:
stty -a -F /dev/ttyUSB0
it would also give us more informations

I am sorry that I thought my thread had been abandoned. So I didn't see your reply. Now I use galaxy 1.05 and I try to run the code you give to me. However this rom can not recogize my gps, the acer original rom (HB3.0 can). So I can not test the code. Or I should PM M-dj to add the support for the PL2303(usb to serial) and this can let the pad to find my gps.
 

herbert1

Senior Member
Jul 25, 2007
207
67
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...
 

Attachments

  • UsbGPS4Droid_alpha3.apk
    77.3 KB · Views: 497

Nova5

Senior Member
Dec 30, 2008
127
4
Do you have an android phone? ShareGPS from the market will turn your phone into a Bluetooth GPS device, then use the aformentioned BlueGPS4Droid to connect to the phone for its GPS. Also ensure you have enabled Mock Locations on your tablet, and set up a internet share from your phone if the tablet doesn't have it itself.

I used this on a trip recently and it works great. My Inc2 shared its GPS and Internet link with the Iconia. I really like the ability to use the Inc2's superior GPS through the tablet with its 10 inch screen. We all know the Iconia has a lower than Subpar GPS implementation.

I looked around for a way to use the LT40 from Delorme on the Iconia and couldn't find anything good.
 

liu2002

Senior Member
Sep 18, 2010
111
9
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...

According your steps, gps running, but it seemed not get the data. No gps searching notification icon flashed and in the log data I don't see any thing. The information in my pm is not correct. I use the wrong device folder. But changed back to \dev\ttyUSB0, I can connect but no data.
 

josinpaul

Senior Member
Jan 21, 2011
479
127
40
Searching.....
Xiaomi Poco F1
Do you have an android phone? ShareGPS from the market will turn your phone into a Bluetooth GPS device, then use the aformentioned BlueGPS4Droid to connect to the phone for its GPS. Also ensure you have enabled Mock Locations on your tablet, and set up a internet share from your phone if the tablet doesn't have it itself.

I used this on a trip recently and it works great. My Inc2 shared its GPS and Internet link with the Iconia. I really like the ability to use the Inc2's superior GPS through the tablet with its 10 inch screen. We all know the Iconia has a lower than Subpar GPS implementation.

I looked around for a way to use the LT40 from Delorme on the Iconia and couldn't find anything good.

I beg to differ.my Ionia gets GPS connection under 7 seconds.try this it worked for me

http://forum.xda-developers.com/showthread.php?p=17668407
Sent from my A500 using xda premium
 

herbert1

Senior Member
Jul 25, 2007
207
67
According your steps, gps running, but it seemed not get the data. No gps searching notification icon flashed and in the log data I don't see any thing. The information in my pm is not correct. I use the wrong device folder. But changed back to \dev\ttyUSB0, I can connect but no data.

I don't have any usb GPS, so I cannot test anything myself! If you want something I will need a little more informations.

So here are some little things you can do to provide more details.

First you can verify if you receive something from your usb GPS:
Connect your android device to you computer and open a command shell on your android device using
Code:
adb shell
Then you can use
Code:
hexdump -c /dev/ttyUSB0
to display what the gps is sending (replace /dev/ttyUSB0 with your usb gps dev). You should see standard nmea sentences...

If you don't see valid nmea sentences you can use
Code:
stty -a -F /dev/ttyUSB0
to obtain more informations on your dev.

You can also verify read/write access rights of the device
Code:
ls -l /dev/ttyUSB0
We need at least read access. If we don't then you will need to root the android device in order to be able to change the access rights on the dev.

If the hexdump command works well then you can run usbGps and use the
Code:
logcat
command to obtain more informations on what happens in the the usbGps app (it would help me a lot!).

Also if usbGps doesn't work it should display a notification (not very useful but it can help a little).

Herbert

PS: the name of the device should really be something like /dev/ttyUSB0 with "/" not "\", so if you try to use "\dev\ttyUSB0" as your device name il will not work and it's normal.
 
  • Like
Reactions: al73r

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    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...
    2
    Hi Herbert!
    If you can help me please!
    I have a tablet with Android 1.6 and USB GPS dongle DN-100 by usglobalsat.

    This is a peace of dmesg when it attached:

    usb 1-2.3: new full speed USB device using ehci_hcd and address 6
    usb 1-2.3: New USB device found, idVendor=067b, idProduct=2303
    usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 1-2.3: Product: USB-Serial Controller D
    usb 1-2.3: Manufacturer: Prolific Technology Inc.
    usb 1-2.3: configuration #1 chosen from 1 choice
    pl2303 1-2.3:1.0: pl2303 converter detected
    usb 1-2.3: pl2303 converter now attached to ttyUSB5

    If run the code:

    su root
    stty -F /dev/ttyUSB5 ispeed 38400 && cat < /dev/ttyUSB5

    see standard NMEA sentences (GGA / RMC / ...) (speed 38400 from user manual)

    But you aplication USBGPS4DROID dont install in my tablet (I think it to another version Android)
    Any idea?

    Google has changed the API used to start Android services between Donuts (Android 1.6) version and Eclair (Android 2.0).
    As bluetooth API has been introduced in the SDK with Eclair, BlueGPS4Droid was initially made for Eclair.
    When I've made the USB version, I've kept the Eclair target.

    Since I've made a BlueGPS version specifically for Cupcake and Donuts, I can also try do so for UsbGPS... (but as stated before I won't be able to test it, so...).

    You will find the sources and the APK on github : https://github.com/HvB/UsbGps4Droid - https://github.com/HvB/UsbGps4Droid/downloads

    Herbert


    If you're happy with this work, you can use the thanks button... :)
    2
    This is just an early preliminary version. Actually it assumes 4800 bps GPS (default speed for Globalsat BU-353) . The next version will have the speed option reactivated and even (if I can manage it) an auto configure option.
    If you can reconfigure your GPS to use 4800bps instead of 19200bps there is a chance it will work.
    Or you can wait for the next version and try again : since your gps is recognized, normally the next version should be able to managed it
    Herbert.

    Here it is.
    With this new version (note that's still an early preliminary version) you will be able to specify the USB GPS connection speed and, eventually, to auto detect it. It should also, normally, better manage the USB connections. SiRF configuration has also been reactivated :)

    Herbert
    1
    According your steps, gps running, but it seemed not get the data. No gps searching notification icon flashed and in the log data I don't see any thing. The information in my pm is not correct. I use the wrong device folder. But changed back to \dev\ttyUSB0, I can connect but no data.

    I don't have any usb GPS, so I cannot test anything myself! If you want something I will need a little more informations.

    So here are some little things you can do to provide more details.

    First you can verify if you receive something from your usb GPS:
    Connect your android device to you computer and open a command shell on your android device using
    Code:
    adb shell
    Then you can use
    Code:
    hexdump -c /dev/ttyUSB0
    to display what the gps is sending (replace /dev/ttyUSB0 with your usb gps dev). You should see standard nmea sentences...

    If you don't see valid nmea sentences you can use
    Code:
    stty -a -F /dev/ttyUSB0
    to obtain more informations on your dev.

    You can also verify read/write access rights of the device
    Code:
    ls -l /dev/ttyUSB0
    We need at least read access. If we don't then you will need to root the android device in order to be able to change the access rights on the dev.

    If the hexdump command works well then you can run usbGps and use the
    Code:
    logcat
    command to obtain more informations on what happens in the the usbGps app (it would help me a lot!).

    Also if usbGps doesn't work it should display a notification (not very useful but it can help a little).

    Herbert

    PS: the name of the device should really be something like /dev/ttyUSB0 with "/" not "\", so if you try to use "\dev\ttyUSB0" as your device name il will not work and it's normal.
    1
    Hi Herbert,
    On the advice of Ian Fernandez of USGlobalSat I tried your usbGPS4Honeycomb_MR1_alpha.apk application on my 7" Double Power model EM63 tablet (Jellybean 4.1.1, Kernel version 3.0.8) using their model BU-353 GPS receiver and am unable to get any response (the GPS LED never blinks and there is no recognition of a GPS on any of several GPS programs) . I am now looking into the USB lines as I connected the male cable from the GPS to the male USB cable that came with the tablet through a male-to-male USB adapter (female-female). Other than something there, or possibly a USB problem with the tablet, it appears that your app does not function on this DoPo tablet. I will keep you posted on progress.
    Jim

    FWIW on my tablet one USB port wouldn't work for t he GPS...but would work for a keyboard or thumb drive. With the GPS you HAVE to use an OTG cable. With that, I was able to get it work.