PINE64
USB GPS dongles that work with Android on Pine64+ ? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Android on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=5)
+--- Thread: USB GPS dongles that work with Android on Pine64+ ? (/showthread.php?tid=5171)



USB GPS dongles that work with Android on Pine64+ ? - trondkj - 09-25-2017

Hi
Have anybody got any usb gps dongles to work with android on Pine64+? I would love to have positioning to work on my Pine64 with touchscreen. If anybody have tried it and got it to work, it would be nice to know Smile
Trond Kjetil


RE: USB GPS dongles that work with Android on Pine64+ ? - Airtau - 09-26-2017

This USB GPS library works at Android.


RE: USB GPS dongles that work with Android on Pine64+ ? - Skivholme - 11-16-2017

(09-25-2017, 05:09 AM)trondkj Wrote: Hi
Have anybody got any usb gps dongles to work with android on Pine64+? I would love to have positioning to work on my Pine64 with touchscreen. If anybody have tried it and got it to work, it would be nice to know Smile
Trond Kjetil

Hi,

I got a bu-353 GPS working with an app and mock position.

The gps did not show up as an tty device, so i could not get the Android_GPS_lib64 working.. Smile

I used this lib to read the serial.
https://github.com/felHR85/UsbSerial

Then this NMEA parser to parse the data from serial to something readable:
https://gist.github.com/javisantana/1326141

In android manifest the following permissions should be set:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />


I used Androids LocationManager to make a mock position.
On the device i had to enable developer mode (Settings -> About tablet, click 7 times on "Build number"), and then allow my app to set mock position in settings -> developer options.