yashsingh1/xdaforums huggingface dataset:
[Acer Iconia A500] captaniglu:
but the cyanogen rom dont fit to my special tablet..

what do you think about this..

1 - add a file named android.hardware.usb.host.xml on /system/etc/permissions

2 - containing the following lines:

<permissions>

<feature name="android.hardware.usb.host">

</feature></permissions>

3 - open in /system/etc/permissions file named handheld_core_hardware.xml or tablet_core_hardware.xml and add <feature name="android.hardware.usb.host"> into <permissions> section

4 - Reboot your device. Usb host api should work

You have to have root access to these files. After the changes and reboot it worked for me.

i got it from here

.basic4ppc.com/forum/additional-libraries-classes-official-updates/11449-pl2303-usb-rs232-adaptor-driver-5
[Acer Iconia A500] herbert1:
Good news ! It's an information which could be useful to other users.

I haven't looked very deeply in the kernel code or Android source code myself (everything works without problems on all devices I can access).

So were you able to use UsbGps ? And then which version are you using ?

Herbert
[Acer Iconia A500] captaniglu:
hi herbert..

thanks a lot for your help..

that was the solution..

when i pluged in the gps , your program usv4honeycomb_mr1_alpha1.apk poppt up and ask for permission..

the gps data are in nmea file ..

ok ...that it..worked for chipset rk3066..

thanks a lot..

mike
[Acer Iconia A500] al73r:
Trying this out on my kindle using the pharos gps-360
[Acer Iconia A500] herbert1:
The std nmea sentences are the ones beginning with "$GP" (like "$GPGGA,235948.000,0000.0000,N,00000.0000,E,0,00,50.0,0.0,M,0.0,M,0").

If these data come from the NMEA log from UsbGps than it works. However the NMEA data data show that the gps has not already made its first fix (when you have some fix you will have something like "$GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47" and "$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A").

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 ?

Herbert
[Acer Iconia A500] Nyvki:
Vitaliy

Hi Herbert. I still have problem with connection of BU-353 Usb GPS. I used you usb4honeycomb_mr1_alpha1.apk and I can't Choose Usb GPS. In this menu nothing appear.

And I can't start Usb GPS.

Can You help me?

I use Android 4.1.1. with SDK 3.0.8+, USB GPS BU-353.

Please contact me by e-mail: nyvki@mail.ru

If You need additional information please send me request, and I will send You back response.

Thanks a lot.

---------- Post added at 01:11 AM ---------- Previous post was at 01:05 AM ----------

Hi!

Can You describe step-by-step, how You connect USB GPS to You tablet.

I have same RK3066 with Android 4.1.1 (stok rom, not rooted) and BU-353 USB GPS.

I don't have enough knowledge in Android.

Thanks a lot.

Vitaliy
[Acer Iconia A500] herbert1:
I guess it's in the post from captaniglu just above...

It implies to add (or modify) a file named android.hardware.usb.host.xml on /system/etc/permissions.

Herbert
[Acer Iconia A500] Nyvki:
Hi.

I don't have root on my device. Can I something else add that file without root?

Just simply copying, does not work.

I tried to rename bluetooth.xml, does not save.

How can I create this file?

Help!

Thanks.

Vitaliy
[Acer Iconia A500] herbert1:
/system/etc/permissions and all files in this directory are read only (except for root). If you want to change them or add a file you have to gain root acces !

You need these files in /system/etc/permissions to enable USB host API. I you don't want to root your device then you won't have USB Host API...

Herbert

PS : you can also write to your device manufacturer and ask him to make a new and improved firmware.
[Acer Iconia A500] Nyvki:
Thanks for all!

After getting of root access, I want try again to launch Usb GPS receiver.

Which kind of your apk do you recommend, UsbGPS4Honeycomb_MR1_alpha1 or UsbGPS4Droid_alpha5?

Which apk would be better?

Vitaliy
[Acer Iconia A500] herbert1:
UsbGPS4Honeycomb_MR1_alpha1
[Acer Iconia A500] Nyvki:
Herbert!

Thanks for all!

Everything done.

I get root access to my TAB, copy "android.hardware.usb.host.xml" as you said.

After that I install your application, then run GPS.

Everything work.

Thanks for your help.

Vitaliy
[Acer Iconia A500] iizak:
UsbGPS4Droid won't start GPS after boot

I am having same kind of difficulties and I have UsbGPS4Droid_alpha5.apk installed. The only way to get the GPS working after Android boot is to uncheck the "Start/Stop GPS"-option and check it again, then it works. If leave the check there and reboot Android, the GPS won't work again.

Does anyone know reason for this, herbert1? Great work anyway.
[Acer Iconia A500] herbert1:
It never occurred to me that someone could really want to do things like that. If you want, you can fill a bug using the github bugtracker on the github repository. I will eventually try to fix it, however it wont be a top priority.

Herbert
[Acer Iconia A500] davidxlee:
Navistick

Hi Herbert,

Do you now have an USB GPS device? If I could send you our USB GPS device (called navistick) for you to test, please pm me.

We have two types of USB GPS devices, one with just USB GPS, one with USB GPS+memory. Both are using cp210x.

Thanks,

David
[Acer Iconia A500] ProfGoron:
Hi everyone,

I'm completely new on Android, as well as on this site. And as I am a French, please excuse my poor English :)

Having recently bought a generic tablet (Storex) without internal GPS, I plugged a USB GPS Stick (brand: BlueNext) but it didn't work!

So I saw this thread (which I tried to read entirely, or so I hope), and tried Herbert's application. Since I couldn't make it work at first, I did the following:

- editing xml stuff in /system/etc/permissions/, where I think I did all the necessary;

- installing USB Host Controller, which indicates me in Info panel (and that seems a bit paradoxal to me):

S3C USB Host driver NOT found!
Root hub present, USB Host mode is active!

- moreover, in the USB panel, there as some informations:

Connected USB devices
2-1 Realtek 802.11n NIC
1-1 Silicon Labs CP2104 USB to UART Bridge Controller

- what I can see in dmesg when I insert the stick:

spurious?
usb 1-1: new full speed USB device number 9 using sw_hcd_host0

and the number changes everytime I plug off and on

- in a Terminal, the command stty -a -F /dev/ttyUSB0 won't work: there isn't any ttyUSB0 device.

In order to ensure the GPS stick was working, I installed it on a PC: it uses CP210x and the Prolific driver pl2303. Staying outside a few minutes with the stick on the tablet, I saw the light flashing so it takes GPS signal.

So, now when I start UsbGps (which doesn't pop-up automatically when plugging the device), the "Choose Usb GPS" Panel shows 2 devices :

- /dev/bus/usb/001/009 (which changes everytime I plug off and on)

- /dev/bus/usb/002/002

When choosing the 1st device in the list and starting GPS, I get two informations in the task bar: "UsbGps service started", and immediately another "UsbGps: connection problem". In the same time a windows pops up, asking for permission to access USB peripheral. When selecting OK, the app crashes.

One more thing: in aLogcat I see writing thread is not ready

And NMEA logfile remains desperately empty...

I don't really know what to do, neither how to proceed! Any idea would be much appreciated, as I would want to use this tablet on a trip next month.

Anyway, thanks to Herbert for this application.

Rémy.
[Acer Iconia A500] lankin:
Download?

How do I download the latest .apk? I was on the github but only saw the source code. Is there a direct link?

Thanks,

Sean
[Acer Iconia A500] ron.72:
BlueNext

I now have Herberts code working with the Bluenext GPS, it needed some extra initialization.

Herbert, the diff file is attached should you want to incorporate it.

The apk I built mostly works, but has some quirks so I would prefer not to publish it until Herbert is happy with the beta version.

The tablet is an all winner A13 running ICS, USB via OTG.

ron.
[Acer Iconia A500] herbert1:
Github has discontinued their file download service, so it not possible anymore to share new apk with them.

I've made a new repository on bitbucket, where you'll be able to download all the apk:

https://bitbucket.org/HvB/usbgps4droid

Herbert

---------- Post added 30th April 2013 at 12:15 AM ---------- Previous post was 29th April 2013 at 11:50 PM ----------

Thanks !

I recently received two CP210x usb GPS (Navistick sent me two of their products :D ). I barely had any time to work with them these last weeks. I've seen it didn't work, but I wasn't able to track down what was wrong (my guess it was some initialisation problem - the usb device was recognized but not usable...).

I will try with your patch, but I hope it will greatly help to solve the problems we have with CP210x devices.

Herbert
[Acer Iconia A500] pthurman48:
Cobalt S1000 Tablet using Gobalsat BU-353s4 USB GPS

Good Morning All, and especially Herbert,

I am new to the android tab world. I am an old hand (retired DBA 2 yrs, Stephen F. Austin State Univ.) with java, c++, cobol, windows stuff, linux/unix and more… AND, BUT…

I have Cobalt S1000 Tablet with the following spec. (currently, not orig)

Model number : GOCLEVER TAB A103

Android version: 4.0.4

Baseband version: 1.4rc3

Kernel version: 3.0.8+

Android3@Linux#186

Thu Jul 5 14:59:27 CST 2012

Build Number: T15A4.0.4IMM76D20120801

I want to connect my BU-353s4 USB GPS to it. I read the complete thread. I have different problems, probably caused by me. I flashed the tab with new firmware I downloaded (GCA103_120824x) from GoClever.com The tab works fine. It is rooted. I have installed busybox, it works fine. At command line I can switch to su. The new firmware did not have the pl2303.ko file anywhere. I got one and put in /system/vendor/modules/. I got your app usbGps. It runs, but it stops. I don’t know what device to use. I have a ls –l of my /dev/tty* stuff attached, but I have some 50++ files in there. I also have a file named /dev/usb_accessory. usbGps stops with error message ‘Mock locations disabled’. I will attach logcat.txt, and dmesg.txt I see errors, but I know yall (little East Texasan) are much more up to speed on this than I am on this. Any help will be greatly apprieated.

Update since this morning:

I found the setting for 'Mock Locations enable/disable'. i enabled them, now usbGps starts and then keeps trying to connect to the gps device. It can't. I still don't know what to use in the first parameter /dev/tty.....

If another logcat and dmesg will help. Just ask.

Pat,
[Acer Iconia A500] lankin:
Automaticly use USB GPS

Herbert,

I am currently using your app with a BU-353 USB GPS Dongle. Everything seems to work fine, but I have one nagging issue that I was wondering if there is a fix for. Whenever I connect the dongle, the USB GPS app pops up and asks me if I want to use the USB GPS. With my setup, the dongle is on a hub, and the hub is powered off when the car turns off. Therefore everytime I turn on the car, the components are all reconnected. Is there some type of setting that can be checked to say "Automatically use USB GPS when detected"?

Thanks,

Sean
[Acer Iconia A500] perryborst:
other usb devices

hi herbert,

I tried your usbgps app, but i have a hicom hi-usb-206 and it doesn't work. I would like to get it to work with a wider range of gps devices, but i'm fairly new with android development. I've been doing ios for two years and other languages much longer. Could you give me some pointers on what thing i could check. I recognizes the device and when i start gps it stays on, but the device doesn't seem to start.

Hope you can give me so quick pointers...

Thanx for your work sofar, can imagine a lot of people will be happy with this!

All the best,

Perry
[Acer Iconia A500] BCush83:
help...

I keep getting a cannot connect to USB GPS and it stops. Any Help? I downloaded a USB device info tool and it gives me two paths, an android path of /dev/bus/usb/001/005 and a linux path of /sys/bus/usb/devices/1-1/. I've tried both of those paths and neither work. What am I doing wrong?

Tablet is Pipo S2, GPS is BU-353.

---------- Post added at 03:09 PM ---------- Previous post was at 02:51 PM ----------

I tried and it says cant open /dev/ttyusb0: no such file or directory..... can someone help me find the right path to my gps for this program to work. I followed the paths in root explorer and all the files are 0.00B is that right? Shouldn't the GPS be streaming data in and shouldn't I be able to see that data somehow?
[Acer Iconia A500] eppeP:
I don't know if you wrote the message wrong or had the wrong device name.

Either way, upper-case and lower-case matters, ttyUSB0 and ttyusb0 are not the same.
[Acer Iconia A500] BCush83:
help...

good to know, I did try it both ways and it says the same thing. I think this tablet has different paths, but I don't know how to trace it back. I did figure out an option B, I tethered my tablet to my cell phones GPS via wifi, but I really want the USB GPS working. I can plug it into the PC and run sirfdemo and gpsinfo and get data and a lock, bit when I switch it to the tablet...nothing. The PL2303 mock location provider can't connect, the usbgps program wont connect...I'm at a loss....

---------- Post added at 02:00 PM ---------- Previous post was at 01:50 PM ----------

I downloaded a USB Device Info app, and it gives me two paths

Android:

/dev/bus/usb/001/003

Linux:

1-1 with a path of-

/sys/bus/usb/devices/1-1/

this one is the GPS I believe.

and...

usb1 with a path of

/sys/bus/usb/devices/usb1/

this one is the USB HUB

so am I assume that I would now write

stty -F /dev/bus/usb/001/003 ispeed 4800 && cat < /dev/bus/usb/001/003 in terminal but I get operation not permitted

I tried

stty -F /dev/bus/usb/001 ispeed 4800 && cat < /dev/bus/usb/001 and I got Inappropriate ioctl for device

so I assume I'm getting closer maybe? But not doing something right.....

if I run /lsusb -v I get

Bus 1 Device 001: ID 1d6b:0002 (USB Hub)

Bus 1 Device 002: ID 067b:2303 (GPS)

Anyone who deals with this stuff is NOT being paid enough.....
[Acer Iconia A500] BCush83:
help...

Not sure if this helps any, but I downloaded this USB Serial Application and I can get data out of the GPS on the USB port, it lists the device ID as 1002. When I change the baud rate to 4800 the data scream seems to flow faster. But....this still doesn't help me get the GPS working....any help??

App:

**play.google.com/store/apps/details?id=slickdevlabs.apps.usbtoserialterm**
[Acer Iconia A500] pilotedge:
Is there a way to get this to start minimised?

It is working nicely for me, I am using a Finless 808 ROM v1.7 and a PL2303 type GPS. The usb device address changes each boot which is VERY annoying, so I have to Stop then Start the service again on boot.

Also, is this the main thread for support for this app?? I had to dig pretty hard to find it!
[Acer Iconia A500] simeonov_co:
Usb gps help pls!

NEED HELP!

I want to connect a GARMIN GPSMap 60CSx with ANDROID tablet (SAMSUNG GALAXY series) via USB. All I need is a real time tracking and display current position on schemes from imported GPX and/or SHP files.

Thank you in advance!

:):):):):)
[Acer Iconia A500] v+xda:
ASUS Transformer TF300T JellyBean 4.2.1 GPS: Camrose GT 730FL-S

Installed ML1-Alpha1 (which identifies itself as Alpha 5) plugged in GPS, it recognizes it as /dev/bus/usb/001/004. I enabled Mock Locations after figuring out how to become a "developer".

No NMEA data in the 0 byte log.

"Choose GPS device speed" is greyed out, in says current speed 4800. From prior use of this GPS on my now-dead netbook, I know that I had set it to use 38400 speed (the fastest that netbook would handle). Is the speed mismatch the problem here? Is there a newer version? It seems that the version I have, from the readme text, has an "autoconf" for the baud rate... but what range of baud rates? Is 38400 included in the list?

Is there something else I should tweak, that I missed in reading this thread?

---------- Post added at 01:28 AM ---------- Previous post was at 12:57 AM ----------

Hmm. Do I need the PL2303 thing? Somehow on the first read, I thought that was only needed in the past, but maybe it is still needed?

Forgot to mention I am not rooted, and would prefer to stay that way.

---------- Post added at 01:06 PM ---------- Previous post was at 01:28 AM ----------

OK, I got confused about where to download, and the difference between alpha and alpha1 didn't stand out too well. When I got alpha1, it all seems to work... no auto-detection of the baud rate, but manual selection of the correct baud rate for which my device was previously configured enabled it to work fine.

Much better to reference bitbucket.org/HvB/usbgps4droid/downloads than the posts containing attachments, but I followed a link to such a post to find this thread... and it wasn't to the latest version. And neither is alpha1.

In Beta1, it is a bit confusing that the Current speed: report stays at the greyed-out 4800 when the actual speed is different.
[Acer Iconia A500] smudger15:
bluenext with all winner a20

Hi all

I've got an all winner a20 android with jellybean and a bluenext gps usb. Is there an app download that I can use to activate it...with idiot guide instructions?

Cheers
[Acer Iconia A500] smudger15:
bluenext with all winner a20

Hi Herbert

Ive got an allwinner a20 with usb bluenext and cant seem to get it to work. anyidea what Im doing wrong?

Ian
[Acer Iconia A500] jimandLinda:
Double Power Tablet

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
[Acer Iconia A500] elpakk:
usb gps

Yes, BlueGPS4Droid is perfect solution, I'm use it and I'm satisfied.
[Acer Iconia A500] BCush83:
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.
[Acer Iconia A500] jimandLinda:
O.T.G. Cable

Thanks loads for this information!!! I had determined that I was not getting Vcc out of the U.S.B. port but was not aware of the master/slave set-up. I have ordered an O.T.G. cable and have every confidence that it will function as it should once the cable is installed.

Jim
[Acer Iconia A500] vdubskey:
So I have my BU-353 GPS working on my Nexus 7 with the usbgps4honeycomb_beta1.apk running Timurs USBROM. I'm using it in my car as a replacement for my carpc. Does anyone know how to get the app from running in the foreground when plugging the device in or resuming from sleep? Is there a way to just having it run all the time in the background unnoticed? I would love an option in the app to enable usbgps after resume and run minimized by default.

Thanks.
[Acer Iconia A500] Raztan:
Thanks!, This works great on my JXD 7800, I've got a Pharos gps-500 (I think it uses the pl2303 I seen mentioned a lot)

Running Jelly Bean 4.2.2

Only issue is GPS testing app's can't read sat. But I guess the app must be a go between the dongle and the location frame work and thats why they're blind?

Other then that works great, thank you!
[Acer Iconia A500] pilotedge:
Yea I've been after this for a while. The problem is I think that it wont stay in the background as a service so you have to restart it each time. There is a little script somewhere for starting and stopping it and I was hoping to try putting it into tasker to see if that would work. However I haven't had the time, I'm not very proficient either!!

Let me know if you have any luck.
[Acer Iconia A500] vdubskey:
What do you mean by script? If you mean simply launching the UsbGPS app at boot/resume then that's what im already doing. I also send a keypress to the home key and then relaunch GoneMad Music Player. Very messy and coming from my previous Windows based carpc running Centrafuse, it annoys me to no end that its not a seamless experience.

If that's not what you mean by script do you have a link?

Thanks,

Joey
[Acer Iconia A500] iv00vi:
Wonde Proud GM90

Hello,

I managed to grab one of the "professional grade" GPS USB mice Wonde Proud GM90. This one has an advantage of providing Dead reckoning functionality directly in the USB mouse (it has a gyro inside and there is a separate connection for the car speed pulse). I am not sure how this is done, since the device outputs NMEA stream (when connected to Windows), but I believe it is generating fake NMEA messages when there is low signal available. It is a little bit strange, that under Windows it is being reported as 03eb:6129 and under Android it is being reported as 03eb:07d2 (see below). When connecting the the GPS mouse under Windows, it does not blink the LED until the drivers are installed. When it is connected to Android, it blinks correctly right away.

I would really love to make this work in Android as a new Location provider, as I am in the search of dead reckoning (I drive a lot in between tall buildings and in tunnels).

I tried USBGPS4DROID (all versions) with rooted Android. Latest version displays single USB port, I am able to start the program, but I get the usual "Will retry 5 more times before closing" and in the end the application Stops GPS. I get nothing in the NMEA log.

I also tried to hack the app in the same way as ron.72 did here: http://xdaforums.com/showpost.php?p=40843496&postcount=143 (values for my USb GPS mouse are the same, I only changed VendorID in his diff and applied it), but without success.

Can you help? I am willing to pay if someone would make it work.

Thank you all.

USB serial monitor response is the following:

$LAD_Temper_AD,650,LAD_GyroBase_AD,200381,

Result of USB Device Info:

Device Info

Device Path: /dev/bus/usb/002/002

Device Class: Communication Device (0x2)

Vendor ID: 03eb

Vendor Name: Atmel Corp.

Product ID: 07d2

Product Name: not in db

Interfaces

Interface #0

Class: Communication Device (0x2)

Endpoint: #0

Address : 131 (10000011)

Number : 3

Direction : Inbound (0x80)

Type : Intrrupt (0x3)

Poll Interval : 255

Max Packet Size: 8

Attributes : 000000011

Interface #1

Class: Communication Device Class (CDC) (0xa)

Endpoint: #0

Address : 1 (00000001)

Number : 1

Direction : Outbound (0x0)

Type : Bulk (0x2)

Poll Interval : 0

Max Packet Size: 64

Attributes : 000000010

Endpoint: #1

Address : 130 (10000010)

Number : 2

Direction : Inbound (0x80)

Type : Bulk (0x2)

Poll Interval : 0

Max Packet Size: 64

Attributes : 000000010
[Acer Iconia A500] iv00vi:
Hi, I found this GPS mouse and I am trying again... Still willing to pay for it :)
[Eee Pad Transformer General] yohanpra:
ive been experiencing something really strange since i got my dock two weeks ago......... normally my tf would charge to a 100% no problem and same with the dock........ now even after leaving both of them connected and then charging them over 12 hours........ the tablet first charged to a maximum of 99% then 98% then 97% now 96%, the dock is doing the same thing, and i have charged the tf and dock for over 12 hours repeatedly to make sure that i let the charge trickel in but to no avail,i wiped battery stats and dalvik cache, to no avail......should i be concerned?
[Eee Pad Transformer General] magicpork:
I think it's probably normal for the charger to stop at any point above 95%....happened to mine as well and it hangs around 96%-100%..randomly..