USB GPS as a Service
USB GPS as a Service
Hello, would it be possible to have the GPS running as a service with the mock location operation so that it can be used without having the application on the screen (to be used by other applications like navigation)? The service must start automatically without any user interaction.
Thank you,
Alex.
Thank you,
Alex.
Re: USB GPS as a Service
Hi Alex,
the GPS-Connector app already start a background service which is handling the communication to your external antenna.
Just have a look on the status bar of your smartphone - you see the current GNSS status (quality) icon there, even if the app is not visible.
So you must call "menu - exit app" to really stop the app and the background service.
Simply kicking the app out of the recently opened apps list doesn't stop the GPS-Connector.
On Android there is no way to start an app automatically without root access to the phone.
But: If you connect your external antenna via USB cable, the app is started automatically by android.
You will be asked the first time you use your external device ...
Greetz,
Markus
the GPS-Connector app already start a background service which is handling the communication to your external antenna.
Just have a look on the status bar of your smartphone - you see the current GNSS status (quality) icon there, even if the app is not visible.
So you must call "menu - exit app" to really stop the app and the background service.
Simply kicking the app out of the recently opened apps list doesn't stop the GPS-Connector.
On Android there is no way to start an app automatically without root access to the phone.
But: If you connect your external antenna via USB cable, the app is started automatically by android.
You will be asked the first time you use your external device ...
Greetz,
Markus
There is no code so big, twisted, or complex that maintenance can't make it worse. (Gerald M. Weinberg)
Re: USB GPS as a Service
Hello Markus,
Thank you for your prompt response. I will check again how it works. It is an Android Headunit I have in my car in which the onboard gps failed. I do have root access, so I will try to find the background service in order to start it automatically. In my first try it seemed that it worked only when the application was visible.
Best regards,
Slex.
Thank you for your prompt response. I will check again how it works. It is an Android Headunit I have in my car in which the onboard gps failed. I do have root access, so I will try to find the background service in order to start it automatically. In my first try it seemed that it worked only when the application was visible.
Best regards,
Slex.
Re: USB GPS as a Service
App updates:
Since version V1.0.0.18 you can start the app automatically on device reboot. (without re-connect the USB cable)
With the latest release version you can exit the app by action button in the status notification.
Cheers,
Markus
Since version V1.0.0.18 you can start the app automatically on device reboot. (without re-connect the USB cable)
With the latest release version you can exit the app by action button in the status notification.
Cheers,
Markus
There is no code so big, twisted, or complex that maintenance can't make it worse. (Gerald M. Weinberg)
Re: USB GPS as a Service
Hello. Thank you for your program! It works fine, but after rebooting the head unit, I need to reconnect the usb gps all the time. I have an Android 5.1.1 arm7a head unit and gps U-Blox 7.
Re: USB GPS as a Service
Hi Shalva,
what USB vendor did you select in the app? ublox or generic?
Just asking, because the auto-reconnect only works for known vendors.
Markus
what USB vendor did you select in the app? ublox or generic?
Just asking, because the auto-reconnect only works for known vendors.
Markus
There is no code so big, twisted, or complex that maintenance can't make it worse. (Gerald M. Weinberg)
Re: USB GPS as a Service
im use UBlox vendor in app and usb gps like this one:
Re: USB GPS as a Service
Hmm ... should work ...
Could you please send a log-file to gps-connector@pilablu.de ?
I need the logfile with successful reboot to see what's going on.
Please check this if you don't know how to create a log:
viewtopic.php?f=3&t=13
Thanks
Markus
Could you please send a log-file to gps-connector@pilablu.de ?
I need the logfile with successful reboot to see what's going on.
Please check this if you don't know how to create a log:
viewtopic.php?f=3&t=13
Thanks
Markus
There is no code so big, twisted, or complex that maintenance can't make it worse. (Gerald M. Weinberg)
Re: USB GPS as a Service
I sent the log by email
Re: USB GPS as a Service
In the log-file you can see that the USB device doesn't provide a bulk (read) interface.
Please check this lines: "Invalid USB bulk interface" and "claim endpoint 0xFF failed".
That's the reason why the app can't connect to the USB device.
Do you really only have this problem after rebooting?
For me it looks like a general problem of your device!
If you want to you can send a log-file with successful connection, so i can compare the USB interfaces.
Cheers
Markus
Please check this lines: "Invalid USB bulk interface" and "claim endpoint 0xFF failed".
That's the reason why the app can't connect to the USB device.
Do you really only have this problem after rebooting?
For me it looks like a general problem of your device!
If you want to you can send a log-file with successful connection, so i can compare the USB interfaces.
Cheers
Markus
There is no code so big, twisted, or complex that maintenance can't make it worse. (Gerald M. Weinberg)