yashsingh1/xdaforums huggingface dataset:
[Acer Iconia A500] herbert1:
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
[Acer Iconia A500] sdegtyarev:
Thank you!

Will try ASAP.
[Acer Iconia A500] markzo:
usbgps delorme earthmate

I'm new and glad to be here. I have been following this thread for a few days. it seems to be the only one making progress on USB GPS. A big thank you to all involved.

I am trying to get a Delorme Earthmate USB GPS recognized by my recently purchased android tablet. I have installed usbgps4honeycomb and it runs with no errors (woowoo!) but, it can't find the GPS. When I select "Choose USB GPS", nothing shows up on the list except the word cancel.

The GPS functions fine on my laptop set at 4800, 8, n, 1. My tablet was inexspensive (cheap) and has a full size USB port that accepts keyboard, mouse and mass storage (also links to PC with cable). Is there a way to find out if the USB port was disabled for other serial options? Is the a diagnostic app to check this?

I have emailed the manufacturer with no response.

Any Ideas?

Tablet specs

Craig CMP 745e

:•10 inch Digital Capacitance Touch Screen (1024 x 600 , 16:9)

Processing Speed 1.3GHz

•Operating System : Powered By Google Android 4.0, Flash 11.1

•4 GB Built-in Flash Memory

•Built-in 1GB DDR III RAM

•Built-in Front camera

•Built-in WiFi (802.11b/g/n)

•Multi-Point Touch Screen

•Support 3D Gaming Accelerometer

•Mini HDMI AV Out Jack (1080p)

•Mini USB to Connect to Computer

•USB Host for Jump Drive Connection

•Micro SD Card Slot (Supports Max. 32GB)

•3.5mm Stereo Headphone Jack

•Connect With PC as Mass Storage Drive

looks to be ARM Cortex A8 RK2918
[Acer Iconia A500] sdegtyarev:
Hello Herbert.

Ok. it's not segfaults but not reading data from port.

I have one usb device in /dev/bus/usb/001/ and one serial device /dev/ttyACM0. Your software use /dev/bus/usb. When your software is running my serial device still available throw microcom:
[Acer Iconia A500] herbert1:
Hello,

If you could dump a logcat that could perhaps help to understand what happens and why it doesn't work as expected....

Herbert

---------- Post added at 10:12 PM ---------- Previous post was at 10:10 PM ----------

It looks like the app is not able to recognize the usb GPS...

If you could dump a logcat that could perhaps help to understand what happens.

Herbert
[Acer Iconia A500] markzo:
usbgps problems

As requested, here is a logcat file. hope it comes thru.

I also ran an app "USB Host Controller" and it makes the 2 following statements:

S3C USB host driver not found

and

Root hub present, USB host mode active

the same app also recognizes the gps when i plug it in as:

0200:1163 (Earthmate GPS HID)

DeLorme Publishing DeLorme USB Earthmate

Thanks again for helping. If you need more info, let me know.

markzo
[Acer Iconia A500] sdegtyarev:
Hello Herbert. Sorry for late answer. Here is part of logcat. I will try to solve problem by myself if you post source code because I really need this GPS device working.

11-27 15:26:05.875: V/UsbGPS(3117): current device: /dev/bus/usb/001/003
11-27 15:26:05.875: D/UsbGPS(3117): We have permession, good!
11-27 15:26:05.875: V/UsbGPS(3117): will set devive speed: 19200
11-27 15:26:05.875: V/UsbGPS(3117): starting usb reading task
11-27 15:26:05.875: D/UsbGPS(3117): claiming interface
11-27 15:26:05.882: D/UsbGPS(3117): data claimtrue
11-27 15:26:05.882: E/UsbGPS(3117): trying to find speed
11-27 15:26:05.890: V/UsbGPS(3117): usb reading thread started
11-27 15:26:05.890: D/UsbGPS(3117): data available 0
11-27 15:26:05.890: D/UsbGPS(3117): data read buffer - offset: 0 length: 8192
11-27 15:26:05.890: I/UsbGPS(3117): data read buffer empty [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
11-27 15:26:05.890: D/UsbGPS(3117): closing USB GPS output sream
11-27 15:26:05.890: D/UsbGPS(3117): closing USB GPS input streams
11-27 15:26:05.890: E/UsbGPS(3117): releasing usb interface for connection: android.hardware.usb.UsbDeviceConnection@411cbb58
11-27 15:26:05.898: I/cat(601): <3>[ 555.516998] cdc_acm 1-1.4:1.0: This device cannot do calls on its own. It is not a modem.
11-27 15:26:05.898: I/cat(601): <6>[ 555.517547] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
11-27 15:26:05.898: E/UsbGPS(3117): unable to release usb interface for connection: android.hardware.usb.UsbDeviceConnection@411cbb58
11-27 15:26:05.898: E/UsbGPS(3117): closing usb connection: android.hardware.usb.UsbDeviceConnection@411cbb58
11-27 15:26:05.898: D/UsbDeviceConnectionJNI(3117): close
11-27 15:26:05.898: E/UsbGPS(3117): Unable to establish connection
11-27 15:26:05.898: D/NotificationService(1587): new notification: numberDiff: 1 ticker: null pkg: org.broeuschmeul.android.gps.usb.provider id: 2131099786 tag: null priority: 0
11-27 15:26:05.898: D/NotificationService(1587): ANS send cat: 0 number: 1 msg:
[Acer Iconia A500] herbert1:
All the code is in the public repository ! And that's the case for every version published.

The app finds the usb device, it has rights to access it and tries to read the data from the gps device bit is not able read anything, so it gives up !

Herbert
[Acer Iconia A500] sdegtyarev:
version github looks very old.

AndroidManifest.xml	3 months ago	update version name (alpha 5) and code [HvB]

Wrong place?
[Acer Iconia A500] herbert1:
https://github.com/HvB/UsbGps4Droid/network
[Acer Iconia A500] m0fizor:
Hello,

I have a cheap USB tablet (no internal GPS, Android 4.0.4) and a random usb GPS receiver (This is the link to the GPS receiver: http://www.bluenext.co.uk/bluetooth-products/gps/92-bn-903s-gps-dongle.html ).

I tried to configure alpha 5 as following:

- Choose USB GPS: /mnt/usbhost1

- Choose GPS device speed: 9600

- USB GPS name: usb_gps

^^ this is the only possibility to "start" the GPS. Every other settings will fail with "cannot connect to usb gps".

The problem is that once i start a software navigation software (for example iGO), a notification appears: "retrying 4 more times" etc. So, i don't have any signal.

I also tried the version for Honeycomb+ but i cannot set the "Choose USB GPS" option.

The tablet is rooted and busybox is installed.

I also don't have "ttyUSB*" in /dev/ but i have a file called "usb_accesories" in there. Is there a link between them?

USB OTG is active since i can connect a 3G usb stick to the tablet via the usb otg adapter.

Cheers.
[Acer Iconia A500] herbert1:
Hi,

The honeycomb+ version use raw usb api, so normally it should work even without appropriate serial usb kernel driver. Obviously it doesn't work with your configuration since it doesn't show anything in "Choose USB GPS" option. :confused:

I just have one usb GPS a Globalsat BU-353, which I used without any problem on all otg devices I could access (nexus 7, galaxy nexus, galaxy note, asus transformer prime).

I don't think /mnt/usbhost1 is the correct device name (don'y know either if it is /dev/usb_accesories or not).

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

After plugin the usb gps, you can use dmsg shell command (as root) to obtain some information on how it is seen by the kernel (there will be a lot of things and among them you should see something like this http://xdaforums.com/showpost.php?p=22677753&postcount=30 :

This will give us some information about your device and the kernel driver used to generate the tty... It could also allow you to identify the tty device name :)

stty -a -F yourGpsDevice command could also give some information about the device configuration (speed, parity aso.)

The stty command will also allow you to change the tty conf (speed, parity, etc. must match the gps conf).

Since your GPS is also a bluetooth one, have tried to use it using the bluetooth version (if your tablet has bluetooth) ? If you can use bluetooth that's generally a better choice than usb...

Regards,

Herbert

---------- Post added at 06:01 PM ---------- Previous post was at 05:45 PM ----------

From the logcat you can see app is not able to read anything from /dev/ttyUSB0

It's consistent with the fact that you're not able read anything from it using the microcom command.

You could use dmesg to verify the usb conf, kernel driver and device name.

Since you're on JellyBean I suggest you to try the Honeycomb+ version http://xdaforums.com/showpost.php?p=34460622&postcount=71 which should work better :D
[Acer Iconia A500] m0fizor:
Thanks for your reply man,

For now i don't have access to the tablet (it's my father's tablet). The problem is that the gps module doesn't have the bluetooth protocol. It is USB-only.

At the beginning of February i will go back to my parent's home and i will try what you mentioned.

Thanks again for your reply.
[Acer Iconia A500] ch_m:
I read external USB GPS on /dev/bus/usb/001/002 (003, ...)

You can check it.

Michael
[Acer Iconia A500] IzzyWizzyVan:
I might have a go at this as I have an old earthmate usb gps in a draw somewhere :)
[Acer Iconia A500] IzzyWizzyVan:
I can't seem to get it to see it :(, I'll see if the terminal can see it.
[Acer Iconia A500] ch_m:
I see it from java program:

http://developer.android.com/guide/topics/connectivity/usb/host.html
[Acer Iconia A500] asianremedy:
Is it possible to somehow autoboot this program? When it's starting I have to stop it and start again for it to work. Thanks
[Acer Iconia A500] ch_m:
Which program?
[Acer Iconia A500] asianremedy:
UsbGPS4Droid

every time when I start this software it shows me that it is enabled and gps service started but it's not. You have to stop it and then re-enable again. Is there any patch for this? Thanks
[Acer Iconia A500] IzzyWizzyVan:
Earthmate GPS not seen

Hi,

I've been playing with the USBGPS4Droid s/w but although the tab can see it the s/w can't - this is the dmesg output

[ 5445.301836] usb 1-1.4: New USB device found, idVendor=1163, idProduct=0100

[ 5445.301990] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[ 5445.302074] usb 1-1.4: Product: DeLorme USB Earthmate

[ 5445.302220] usb 1-1.4: Manufacturer: DeLorme Publishing

I think the problem is that the tab is not connecting the gps to a terminal so the s/w can't connect to it, I'm at a loss as to why it can't connect to it tho', anyone have any ideas?

Cheers,

Keith
[Acer Iconia A500] herbert1:
Which version do use ? The Honeycomb+ version or the normal version ?

If you can (If you have Honeycomb MR1, ICS or Jelly Bean) I suggest you to try the Honeycomb+ version http://xdaforums.com/showpost.php?p=34460622&postcount=71 which should work better.

If you're using the previous version, you have to see the GPS (seems to be ok) but also to have the proper kernel driver in order to obtain the tty device...

You should see it using dmesg and have 2 lines similar to the ones in bold:

If you don't have the serial kernel module for your gps, there will be no tty :crying:

Then you have 3 possibilities:

1) obtain or compile the kernel module for your system

2) change your system, if you can find one with the needed module

3) use the honeycomb+ version. It use raw usb api, so normally it should work even without appropriate serial usb kernel driver.

( http://xdaforums.com/showpost.php?p=34460622&postcount=71 )

Herbert
[Acer Iconia A500] IzzyWizzyVan:
Hi Herbert,

I've tried the cupcake and droid versions and the older honeycomb mr1 versions, the links you gave aren't recognised so I'm not sure if I've tried honeycomb+

Keith

---------- Post added at 10:46 PM ---------- Previous post was at 10:25 PM ----------

OK, found the alpha 5 version but the gps is still not recognised, I'm using the 4.2 Build 4 JB, I may revert back to ICS over the weekend and see if that works better.

Keith
[Acer Iconia A500] herbert1:
Just a copy/past problem. Here is the correct one:

http://xdaforums.com/showpost.php?p=34460622&postcount=71

The UsbGps4Droid and UsbGps4Cupcake versions need root access and a tty dev to work.

UsbGps4Cupcake is for Cupcake/Donuts and should not be used on other versions.

The UsbGps4Honeycom uses Android raw usb api. It doesn't need root access or a tty dev.

The second version UsbGPS4Honeycomb_MR1_alpha1.apk will detect usb devices and probe the gps speed...

This is the version I recommend.

Herbert
[Acer Iconia A500] IzzyWizzyVan:
Yep that's the one I tried alpha1 tho' the about box says it's alpha 5, it didn't detect the gps tho' :(
[Acer Iconia A500] asianremedy:
Hi Herbert,

Could help us out with the problem I posted earlier about the software toggle on/off? Would be very appreciated if this bug could be repaired. Thanks
[Acer Iconia A500] blackbile:
Hello Herbert,

you did a great job!!! I tried several apk and driver but I could not find any perfect solution, BUT with your "UsbGPS4Honeycomb_MR1_alpha1.apk" WITHOUT any driver - fantastic - it is working.

Yuandao/Vido N70HD tablet RK3066, JB 4.1.1 rooted

BR-355 GPS receiver with PS2 + PS2/USB adapter with PL2303 chip.

Thank you.

Zsolt from Hungary
[Acer Iconia A500] blackbile:
Herbert: which RS232-USB chip your program working with? Only PL2303?
[Acer Iconia A500] herbert1:
Nu7s, it looks like everything is working. If there is something in the nmea file, then the connection with the GPS is OK.

The nmea data show that the gps is has not already made its first fix. You should perhaps wait a little bit longer. On cold start,especially indoor or when the reception is poor, the first fix can be long: the gps has to obtain ephemerids, aso... The next ones should be faster.

Have you enabled the "mock provider" option in android settings ?

With UsbGPS4Honeycomb_MR1_alpha1.apk you don't need root access anymore.

The command stty -a -F /dev/ttyUSB0 should be run by the root user and is available when you install busybox (it's often installed when you root your device), so don't worry.

Herbert
[Acer Iconia A500] Nu7s:
Thanks for the quick reply.

I'm on the road tommorow, i'll test it outdoors then. The mock location option is activated. I expected some data to show on the GPStest app.

I'll report back tommorow...
[Acer Iconia A500] herbert1:
It's known to work with PL2303 (used in Globalsat usb GPS) and CP210x (used in MKT usb GPS).

However my app is not specific to these chips. If you have the kernel module needed for your chip, then your system should be able to see your gps and attach it to a tty device.

Personally I have only a Globalsat BU-353 (Globalsat sent it to me in order to support this work). If other GPS manufacturers give me some samples, I will perhaps be able to better support them...

Herbert

---------- Post added at 11:28 PM ---------- Previous post was at 11:23 PM ----------

GPS Test should show you position, but won't be able to display satellites info, due to some limitation of the Android API.
[Acer Iconia A500] Nu7s:
I tried it in the car today and after 15min it worked! :laugh: Havn't tested it with any software besides GPStest, but it seems to work fine.

I only have one more problem I need your help with... I can't seem to find a donate button to buy you a coffee? Do you have paypal? :o
[Acer Iconia A500] blackbile:
Hello,

I working on a Bluetooth USB GPS project, but cant work neither your UsbGPS4Honeycomb_MR1_alpha1.apk nor your BlueGps4Droid 1.2.5 (2012-05-01).

Please see that:

http://dragondevs.com/index.php?/topic/1241-bluetooth-usb-gps-on-n70hd-pending-project/#entry18476

If I did what you see on the Dragondevs thread, after that I could not choose anything in your BlueGps4Droid apk, because there was nothing...

Could you give some hints how can I go forward on this unknown road?
[Acer Iconia A500] herbert1:
The DragonDevs forum doesn't allow me see anything valuable...

---------- Post added at 03:54 PM ---------- Previous post was at 03:42 PM ----------

Don't search, there is no donate button... :)
[Acer Iconia A500] blackbile:
herbert1, here is my post from dragondevs forum:

*****************************************************************************************************

My main challenge is the bluetooth GSP nowadays.

I share the information with you, and maybe somebody can join the challenge.

- I tried on Feriross ROM 0123

- I have a bluetooth Bluemax GPS

- I connected a 4 port USB HUB to the tablet

Please see the screenshots how long I went:

After that I tried to connect with "hcitool cc bdaddr" (bdaddr = xx:xx:xx:xx:xx:xx from hcitool scan result) without quotes, but I cant,

I stand at this stage, any help?

*******************************************************

Yesterday night I tried again, and almost the same result what I got...

I realized that there are 2 different bdaddr when I see the Blumax GPS by bluetooth: one for maybe the HUB and one for the Bluemax?!

But I cant connect to either.
[Acer Iconia A500] herbert1:
dmesg shows that both your usb hub and your bluetooth usb dongle are recognized...

I guess you want to use it with a bluetooth gps and blueGps4droid or some equivalent...

I don't see why it couldn't work if your bluetooth dongle is properly configured...

Does your firmware support your bluetooth dongle ? I suppose you will need a appropriate driver and a compatible bluetooth stack.

Herbert
[Acer Iconia A500] blackbile:
I think too.

Yes, but blueGps4doid cant see the dongle device

What driver and stack? I tried btusb.ko is it a driver or stack?
[Acer Iconia A500] herbert1:
It looks like there is a bug with the KY-BT100 USB Bluetooth dongle and btusb on some linux kernels.

https://bugzilla.kernel.org/show_bug.cgi?id=12045

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/268502

I don't know if it's the same pb or not...

I haven't found anyone successfully using this on Android.

Some have used it successfully with ubuntu on a nokia phone (http://ubuntuliving.blogspot.fr/2007/02/pairing-cellphone-with-ubuntu-via.html ) but I guess it was with the previous version...

Herbert
[Acer Iconia A500] blackbile:
Hello,

I went ahead, please read my dragondevs post:

*************************************************************************************

2 step forward:

I won a battle, but who wins the war?

Steps what I do -

- lsmod

- if cant see "btusb" then

- insmod /system/lib/modules/btusb.ko

- connect bluetooth dongle

- if the dongle's LED blinking -> a small success

(I dont use the USB HUB anymore, the donlge works without it)

- hciconfig hci0 up

- hcitool scan

we got the dongle address

- hcitool dev

we got the hci0 address

rfcomm bind hci0 Bdaddr does not work for me...

rfcomm (just for sure)

we got the hci0 bdaddr (bdaddr = bluetooth dongle address - I think)

rfcomm connect /dev/rfcomm0 bdaddr

cat /dev/rfcomm0

and here we go -> I saw the GPS messages from the Bluetooth GPS dongle.

The next step about:

ln -s /dev/rfcomm0 /dev/ttyS10

which attach the rfcomm0 to the tty dev. But it was night... and my eyes was closed.

One of my problems:

sometimes something happen and then the dongle did not blink, I try rmmod and insmod again, but that not help.

*******************************************************************************

What do you advice?
[Acer Iconia A500] sevillano2012:
I need help

Hello to everyone.

Sorry for my bad english, i'm spanish.

i've read this post and following the thread because i have a problem with my tablet (Cube U30GTH). I have a USB-GPS with PL2303 serial interface. I've installed the necesary module and now i have correctly installed the module for my dongle (i see in dmesg) but i don´t see anything using gps4tab. Somebody can help me?

Many thanks in advance.
[Acer Iconia A500] herbert1:
Hi,

Where have you found this app gps4tab, I don't know it ? Is it a modified version of UsbGsp ?

Herbert
[Acer Iconia A500] sevillano2012:
Sorry, i really want to say "internalgps4gtab".
[Acer Iconia A500] herbert1:
This is an old version developed for this project [GUIDE] How to install Internal GPS Module . They have since decided to use another approach allowing a deeper integration ;)

You should try UsbGps4Droid or better the new version for Honeycomb, ICS or Jelly Bean...

This last version works great with PL2303 serial interface GPS.

Herbert
[Acer Iconia A500] sevillano2012:
Thanks Herbert. Where can i download the version for jb?
[Acer Iconia A500] herbert1:
RTFT
[Acer Iconia A500] sevillano2012:
Sorry. What is RTFT?
[Acer Iconia A500] captaniglu:
hi herbert..

installed your new UsbGPS4Honeycomb_MR1_alpha1.apk on my tablet with rk 3066 chipset ...jelly bean 4.1.1 ..kernel3.0.8+...

.same as post 81 before but different brand....odyd genio....and my navilock nl-464us usb gps-receiver with pl2303 but didnt work..

didnt recognised the usb host

in your programm it says... choose usb gps..but no input mask..

start gps.....cannot connect to gps..

terminal programm...

usb 1-1 new high speed usb device nr. 5 using usb20-otg .....

usb 1-1new usb device vendor..string..produkt...

usb 1-1product usb serial controller d

usb 1-1 manufacturer: prolific technology..

option usb 1-1 gsm modem converter and is now attached to ttyusb0

thats it..about the gps..

any idea..

do you know the app ...pl203gps mocklocation..

also dont work..but worked fine on my old tablet with one processor..

ps. in the app usb host controllercame this message :dmesg : klgctl..operation not permitted
[Acer Iconia A500] herbert1:
If no usb device is shown in the option selection menu, that means the usb gps is not recognized by the android layer.

With pl2303 recognized usb devices, when you plug them, the android tablet should also ask you the permission to start GPS4Honeycomb...

If it don't see any usb device, it won't work... normal

If the usb device is recognized by the kernel but is not shown using android api, than the problem is perhaps somewhere between both.

Can you see any nmea data using ttyusb0 ?

Which firmware do you use ?

Herbert

PS: I don't know pl203gps, won't help since it's closed source...

klgctl or klogctl ?
[Acer Iconia A500] captaniglu:
...klogctl...is ok ..sorry..

thanks a lot for your quick answer..

1. if i plug the gps in..i can see /usb/tty 1-1 but emty..

2. ttyusb0 is also empty..

3.nmea empty..

4. tablet dont also ask me the permission to start GPS4Honeycomb.

5.firmware... kernel 3.0.8+ mainbord new rk3066 with android 4.1

6. it looks like the gsm modem converter is attached to usb 1-1:ttyusb0 instead auf the gps ?

7. any idea ?

mike
[Acer Iconia A500] herbert1:
Is it a stock rom or a custom one ?

The kernel messages (dmesg) should show if the kernel module is loaded correctly and which devices are associated to the usb gps.

If everything is ok, the tty has also to be readable and correctly configured (using stty).

For UsbGps you can use the logcat to obtain more debug informations, however it won't give anything interesting if the usb gps is not correctly configured...

For the klogctl error you will find more informations here:

http://www.linuxquestions.org/questions/slackware-14/current-$dmesg-klogctl-operation-not-permitted-868186/

Herbert
[Acer Iconia A500] captaniglu:
thanks a lot for your answer..

its a stock rom..rooted..

what else can i do to get him running..

mike
[Acer Iconia A500] herbert1:
I think I've seen cyanogen based custom roms for rockship tablets with pl2303 support. If I remember correctly, several users were able to use pl2303 usb gps with these roms.